24925 lines
871 KiB
Go
24925 lines
871 KiB
Go
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
package api
|
|
|
|
import (
|
|
"io"
|
|
"net/url"
|
|
"time"
|
|
|
|
"github.com/go-faster/errors"
|
|
"github.com/go-faster/jx"
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Ref: #/components/schemas/ActionReportItem
|
|
type ActionReportItem struct {
|
|
Blocked bool `json:"blocked"`
|
|
IP string `json:"ip"`
|
|
BlockDuration float64 `json:"blockDuration"`
|
|
WillUnblockAt time.Time `json:"willUnblockAt"`
|
|
UserId string `json:"userId"`
|
|
ProcessedAt time.Time `json:"processedAt"`
|
|
}
|
|
|
|
// GetBlocked returns the value of Blocked.
|
|
func (s *ActionReportItem) GetBlocked() bool {
|
|
return s.Blocked
|
|
}
|
|
|
|
// GetIP returns the value of IP.
|
|
func (s *ActionReportItem) GetIP() string {
|
|
return s.IP
|
|
}
|
|
|
|
// GetBlockDuration returns the value of BlockDuration.
|
|
func (s *ActionReportItem) GetBlockDuration() float64 {
|
|
return s.BlockDuration
|
|
}
|
|
|
|
// GetWillUnblockAt returns the value of WillUnblockAt.
|
|
func (s *ActionReportItem) GetWillUnblockAt() time.Time {
|
|
return s.WillUnblockAt
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *ActionReportItem) GetUserId() string {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetProcessedAt returns the value of ProcessedAt.
|
|
func (s *ActionReportItem) GetProcessedAt() time.Time {
|
|
return s.ProcessedAt
|
|
}
|
|
|
|
// SetBlocked sets the value of Blocked.
|
|
func (s *ActionReportItem) SetBlocked(val bool) {
|
|
s.Blocked = val
|
|
}
|
|
|
|
// SetIP sets the value of IP.
|
|
func (s *ActionReportItem) SetIP(val string) {
|
|
s.IP = val
|
|
}
|
|
|
|
// SetBlockDuration sets the value of BlockDuration.
|
|
func (s *ActionReportItem) SetBlockDuration(val float64) {
|
|
s.BlockDuration = val
|
|
}
|
|
|
|
// SetWillUnblockAt sets the value of WillUnblockAt.
|
|
func (s *ActionReportItem) SetWillUnblockAt(val time.Time) {
|
|
s.WillUnblockAt = val
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *ActionReportItem) SetUserId(val string) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetProcessedAt sets the value of ProcessedAt.
|
|
func (s *ActionReportItem) SetProcessedAt(val time.Time) {
|
|
s.ProcessedAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ActiveInternalSquad
|
|
type ActiveInternalSquad struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ActiveInternalSquad) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *ActiveInternalSquad) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ActiveInternalSquad) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *ActiveInternalSquad) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/AllHwidDevices
|
|
type AllHwidDevices struct {
|
|
Devices []Device `json:"devices"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetDevices returns the value of Devices.
|
|
func (s *AllHwidDevices) GetDevices() []Device {
|
|
return s.Devices
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *AllHwidDevices) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetDevices sets the value of Devices.
|
|
func (s *AllHwidDevices) SetDevices(val []Device) {
|
|
s.Devices = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *AllHwidDevices) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
type Authorization struct {
|
|
Token string
|
|
Roles []string
|
|
}
|
|
|
|
// GetToken returns the value of Token.
|
|
func (s *Authorization) GetToken() string {
|
|
return s.Token
|
|
}
|
|
|
|
// GetRoles returns the value of Roles.
|
|
func (s *Authorization) GetRoles() []string {
|
|
return s.Roles
|
|
}
|
|
|
|
// SetToken sets the value of Token.
|
|
func (s *Authorization) SetToken(val string) {
|
|
s.Token = val
|
|
}
|
|
|
|
// SetRoles sets the value of Roles.
|
|
func (s *Authorization) SetRoles(val []string) {
|
|
s.Roles = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BadRequestError
|
|
type BadRequestError struct {
|
|
Message string `json:"message"`
|
|
StatusCode float64 `json:"statusCode"`
|
|
Errors []ValidationError `json:"errors"`
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *BadRequestError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *BadRequestError) GetStatusCode() float64 {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetErrors returns the value of Errors.
|
|
func (s *BadRequestError) GetErrors() []ValidationError {
|
|
return s.Errors
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *BadRequestError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *BadRequestError) SetStatusCode(val float64) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetErrors sets the value of Errors.
|
|
func (s *BadRequestError) SetErrors(val []ValidationError) {
|
|
s.Errors = val
|
|
}
|
|
|
|
func (*BadRequestError) apiTokensCreateRes() {}
|
|
func (*BadRequestError) apiTokensDeleteRes() {}
|
|
func (*BadRequestError) apiTokensFindAllRes() {}
|
|
func (*BadRequestError) apiTokensGetScopesRes() {}
|
|
func (*BadRequestError) authGetStatusRes() {}
|
|
func (*BadRequestError) authLoginRes() {}
|
|
func (*BadRequestError) authOauth2AuthorizeRes() {}
|
|
func (*BadRequestError) authOauth2CallbackRes() {}
|
|
func (*BadRequestError) authPasskeyAuthenticationOptionsRes() {}
|
|
func (*BadRequestError) authPasskeyAuthenticationVerifyRes() {}
|
|
func (*BadRequestError) authRegisterRes() {}
|
|
func (*BadRequestError) bandwidthStatsNodesGetNodeUserUsageRes() {}
|
|
func (*BadRequestError) bandwidthStatsNodesGetStatsNodeUsersUsageRes() {}
|
|
func (*BadRequestError) bandwidthStatsNodesGetStatsNodesUsersUsageRes() {}
|
|
func (*BadRequestError) bandwidthStatsUsersGetStatsNodesUsageRes() {}
|
|
func (*BadRequestError) bandwidthStatsUsersGetUserUsageByRangeRes() {}
|
|
func (*BadRequestError) configProfileCreateConfigProfileRes() {}
|
|
func (*BadRequestError) configProfileDeleteConfigProfileByUuidRes() {}
|
|
func (*BadRequestError) configProfileGetAllInboundsRes() {}
|
|
func (*BadRequestError) configProfileGetComputedConfigProfileByUuidRes() {}
|
|
func (*BadRequestError) configProfileGetConfigProfileByUuidRes() {}
|
|
func (*BadRequestError) configProfileGetConfigProfilesRes() {}
|
|
func (*BadRequestError) configProfileGetInboundsByProfileUuidRes() {}
|
|
func (*BadRequestError) configProfileReorderConfigProfilesRes() {}
|
|
func (*BadRequestError) configProfileUpdateConfigProfileRes() {}
|
|
func (*BadRequestError) externalSquadAddUsersToExternalSquadRes() {}
|
|
func (*BadRequestError) externalSquadCreateExternalSquadRes() {}
|
|
func (*BadRequestError) externalSquadDeleteExternalSquadRes() {}
|
|
func (*BadRequestError) externalSquadGetExternalSquadByUuidRes() {}
|
|
func (*BadRequestError) externalSquadGetExternalSquadsRes() {}
|
|
func (*BadRequestError) externalSquadRemoveUsersFromExternalSquadRes() {}
|
|
func (*BadRequestError) externalSquadReorderExternalSquadsRes() {}
|
|
func (*BadRequestError) externalSquadUpdateExternalSquadRes() {}
|
|
func (*BadRequestError) hostsBulkActionsDeleteHostsRes() {}
|
|
func (*BadRequestError) hostsBulkActionsDisableHostsRes() {}
|
|
func (*BadRequestError) hostsBulkActionsEnableHostsRes() {}
|
|
func (*BadRequestError) hostsBulkActionsSetPortToHostsRes() {}
|
|
func (*BadRequestError) hostsCreateHostRes() {}
|
|
func (*BadRequestError) hostsDeleteHostRes() {}
|
|
func (*BadRequestError) hostsGetAllHostTagsRes() {}
|
|
func (*BadRequestError) hostsGetAllHostsRes() {}
|
|
func (*BadRequestError) hostsGetOneHostRes() {}
|
|
func (*BadRequestError) hostsReorderHostsRes() {}
|
|
func (*BadRequestError) hostsUpdateHostRes() {}
|
|
func (*BadRequestError) hwidUserDevicesCreateUserHwidDeviceRes() {}
|
|
func (*BadRequestError) hwidUserDevicesDeleteAllUserHwidDevicesRes() {}
|
|
func (*BadRequestError) hwidUserDevicesDeleteUserHwidDeviceRes() {}
|
|
func (*BadRequestError) hwidUserDevicesGetAllUsersRes() {}
|
|
func (*BadRequestError) hwidUserDevicesGetHwidDevicesStatsRes() {}
|
|
func (*BadRequestError) hwidUserDevicesGetTopUsersByHwidDevicesRes() {}
|
|
func (*BadRequestError) hwidUserDevicesGetUserHwidDevicesRes() {}
|
|
func (*BadRequestError) infraBillingCreateInfraBillingHistoryRecordRes() {}
|
|
func (*BadRequestError) infraBillingCreateInfraBillingNodeRes() {}
|
|
func (*BadRequestError) infraBillingCreateInfraProviderRes() {}
|
|
func (*BadRequestError) infraBillingDeleteInfraBillingHistoryRecordByUuidRes() {}
|
|
func (*BadRequestError) infraBillingDeleteInfraBillingNodeByUuidRes() {}
|
|
func (*BadRequestError) infraBillingDeleteInfraProviderByUuidRes() {}
|
|
func (*BadRequestError) infraBillingGetBillingNodesRes() {}
|
|
func (*BadRequestError) infraBillingGetInfraBillingHistoryRecordsRes() {}
|
|
func (*BadRequestError) infraBillingGetInfraProviderByUuidRes() {}
|
|
func (*BadRequestError) infraBillingGetInfraProvidersRes() {}
|
|
func (*BadRequestError) infraBillingUpdateInfraBillingNodeRes() {}
|
|
func (*BadRequestError) infraBillingUpdateInfraProviderRes() {}
|
|
func (*BadRequestError) internalSquadAddUsersToInternalSquadRes() {}
|
|
func (*BadRequestError) internalSquadCreateInternalSquadRes() {}
|
|
func (*BadRequestError) internalSquadDeleteInternalSquadRes() {}
|
|
func (*BadRequestError) internalSquadGetInternalSquadAccessibleNodesRes() {}
|
|
func (*BadRequestError) internalSquadGetInternalSquadByUuidRes() {}
|
|
func (*BadRequestError) internalSquadGetInternalSquadsRes() {}
|
|
func (*BadRequestError) internalSquadRemoveUsersFromInternalSquadRes() {}
|
|
func (*BadRequestError) internalSquadReorderInternalSquadsRes() {}
|
|
func (*BadRequestError) internalSquadUpdateInternalSquadRes() {}
|
|
func (*BadRequestError) ipControlDropConnectionsRes() {}
|
|
func (*BadRequestError) ipControlFetchUserIpsRes() {}
|
|
func (*BadRequestError) ipControlFetchUsersIpsRes() {}
|
|
func (*BadRequestError) ipControlGetFetchIpsResultRes() {}
|
|
func (*BadRequestError) ipControlGetFetchUsersIpsResultRes() {}
|
|
func (*BadRequestError) keygenGenerateKeyRes() {}
|
|
func (*BadRequestError) metadataGetNodeMetadataRes() {}
|
|
func (*BadRequestError) metadataGetUserMetadataRes() {}
|
|
func (*BadRequestError) metadataUpsertNodeMetadataRes() {}
|
|
func (*BadRequestError) metadataUpsertUserMetadataRes() {}
|
|
func (*BadRequestError) nodePluginCloneNodePluginRes() {}
|
|
func (*BadRequestError) nodePluginCreateConfigRes() {}
|
|
func (*BadRequestError) nodePluginDeleteConfigRes() {}
|
|
func (*BadRequestError) nodePluginGetAllConfigsRes() {}
|
|
func (*BadRequestError) nodePluginGetConfigByUuidRes() {}
|
|
func (*BadRequestError) nodePluginPluginExecutorRes() {}
|
|
func (*BadRequestError) nodePluginReorderNodePluginsRes() {}
|
|
func (*BadRequestError) nodePluginUpdateConfigRes() {}
|
|
func (*BadRequestError) nodesBulkNodesActionsRes() {}
|
|
func (*BadRequestError) nodesBulkNodesUpdateRes() {}
|
|
func (*BadRequestError) nodesCreateNodeRes() {}
|
|
func (*BadRequestError) nodesDeleteNodeRes() {}
|
|
func (*BadRequestError) nodesDisableNodeRes() {}
|
|
func (*BadRequestError) nodesEnableNodeRes() {}
|
|
func (*BadRequestError) nodesGetAllNodesRes() {}
|
|
func (*BadRequestError) nodesGetAllNodesTagsRes() {}
|
|
func (*BadRequestError) nodesGetOneNodeRes() {}
|
|
func (*BadRequestError) nodesProfileModificationRes() {}
|
|
func (*BadRequestError) nodesReorderNodesRes() {}
|
|
func (*BadRequestError) nodesResetNodeTrafficRes() {}
|
|
func (*BadRequestError) nodesRestartAllNodesRes() {}
|
|
func (*BadRequestError) nodesRestartNodeRes() {}
|
|
func (*BadRequestError) nodesUpdateNodeRes() {}
|
|
func (*BadRequestError) nodesUsageHistoryGetStatsNodesUsageRes() {}
|
|
func (*BadRequestError) passkeyDeletePasskeyRes() {}
|
|
func (*BadRequestError) passkeyGetActivePasskeysRes() {}
|
|
func (*BadRequestError) passkeyPasskeyRegistrationOptionsRes() {}
|
|
func (*BadRequestError) passkeyPasskeyRegistrationVerifyRes() {}
|
|
func (*BadRequestError) passkeyUpdatePasskeyRes() {}
|
|
func (*BadRequestError) remnawaveSettingsGetSettingsRes() {}
|
|
func (*BadRequestError) remnawaveSettingsUpdateSettingsRes() {}
|
|
func (*BadRequestError) snippetsCreateSnippetRes() {}
|
|
func (*BadRequestError) snippetsDeleteSnippetByNameRes() {}
|
|
func (*BadRequestError) snippetsGetSnippetsRes() {}
|
|
func (*BadRequestError) snippetsUpdateSnippetRes() {}
|
|
func (*BadRequestError) subscriptionGetSubscriptionInfoByShortUuidRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigCloneSubscriptionPageConfigRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigCreateConfigRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigDeleteConfigRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigGetAllConfigsRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigGetConfigByUuidRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigReorderSubscriptionPageConfigsRes() {}
|
|
func (*BadRequestError) subscriptionPageConfigUpdateConfigRes() {}
|
|
func (*BadRequestError) subscriptionSettingsGetSettingsRes() {}
|
|
func (*BadRequestError) subscriptionSettingsUpdateSettingsRes() {}
|
|
func (*BadRequestError) subscriptionTemplateCreateTemplateRes() {}
|
|
func (*BadRequestError) subscriptionTemplateDeleteTemplateRes() {}
|
|
func (*BadRequestError) subscriptionTemplateGetAllTemplatesRes() {}
|
|
func (*BadRequestError) subscriptionTemplateGetTemplateByUuidRes() {}
|
|
func (*BadRequestError) subscriptionTemplateReorderSubscriptionTemplatesRes() {}
|
|
func (*BadRequestError) subscriptionTemplateUpdateTemplateRes() {}
|
|
func (*BadRequestError) subscriptionsGetAllSubscriptionsRes() {}
|
|
func (*BadRequestError) subscriptionsGetConnectionKeysByUuidRes() {}
|
|
func (*BadRequestError) subscriptionsGetRawSubscriptionByShortUuidRes() {}
|
|
func (*BadRequestError) subscriptionsGetSubpageConfigByShortUuidRes() {}
|
|
func (*BadRequestError) subscriptionsGetSubscriptionByShortUuidProtectedRes() {}
|
|
func (*BadRequestError) subscriptionsGetSubscriptionByUsernameRes() {}
|
|
func (*BadRequestError) subscriptionsGetSubscriptionByUuidRes() {}
|
|
func (*BadRequestError) systemDebugSrrMatcherRes() {}
|
|
func (*BadRequestError) systemGetBandwidthStatsRes() {}
|
|
func (*BadRequestError) systemGetMetadataRes() {}
|
|
func (*BadRequestError) systemGetNodesMetricsRes() {}
|
|
func (*BadRequestError) systemGetNodesStatisticsRes() {}
|
|
func (*BadRequestError) systemGetRecapRes() {}
|
|
func (*BadRequestError) systemGetRemnawaveHealthRes() {}
|
|
func (*BadRequestError) systemGetStatsRes() {}
|
|
func (*BadRequestError) systemGetX25519KeypairsRes() {}
|
|
func (*BadRequestError) torrentBlockerReportsGetTorrentBlockerReportsRes() {}
|
|
func (*BadRequestError) torrentBlockerReportsGetTorrentBlockerReportsStatsRes() {}
|
|
func (*BadRequestError) torrentBlockerReportsTruncateTorrentBlockerReportsRes() {}
|
|
func (*BadRequestError) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryRes() {}
|
|
func (*BadRequestError) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkAllExtendExpirationDateRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkAllResetUserTrafficRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkDeleteUsersByStatusRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkDeleteUsersRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkExtendExpirationDateRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkResetUserTrafficRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkRevokeUsersSubscriptionRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkUpdateAllUsersRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkUpdateUsersInternalSquadsRes() {}
|
|
func (*BadRequestError) usersBulkActionsBulkUpdateUsersRes() {}
|
|
func (*BadRequestError) usersCreateUserRes() {}
|
|
func (*BadRequestError) usersDeleteUserRes() {}
|
|
func (*BadRequestError) usersDisableUserRes() {}
|
|
func (*BadRequestError) usersEnableUserRes() {}
|
|
func (*BadRequestError) usersGetAllTagsRes() {}
|
|
func (*BadRequestError) usersGetAllUsersRes() {}
|
|
func (*BadRequestError) usersGetUserAccessibleNodesRes() {}
|
|
func (*BadRequestError) usersGetUserByIdRes() {}
|
|
func (*BadRequestError) usersGetUserByShortUuidRes() {}
|
|
func (*BadRequestError) usersGetUserByTelegramIdRes() {}
|
|
func (*BadRequestError) usersGetUserByUsernameRes() {}
|
|
func (*BadRequestError) usersGetUserByUuidRes() {}
|
|
func (*BadRequestError) usersGetUserSubscriptionRequestHistoryRes() {}
|
|
func (*BadRequestError) usersGetUsersByEmailRes() {}
|
|
func (*BadRequestError) usersGetUsersByTagRes() {}
|
|
func (*BadRequestError) usersGetUsersStreamRes() {}
|
|
func (*BadRequestError) usersResetUserTrafficRes() {}
|
|
func (*BadRequestError) usersResolveUserRes() {}
|
|
func (*BadRequestError) usersRevokeUserSubscriptionRes() {}
|
|
func (*BadRequestError) usersUpdateUserRes() {}
|
|
|
|
// Ref: #/components/schemas/BandwidthLastTwoDays
|
|
type BandwidthLastTwoDays struct {
|
|
Current string `json:"current"`
|
|
Previous string `json:"previous"`
|
|
Difference string `json:"difference"`
|
|
}
|
|
|
|
// GetCurrent returns the value of Current.
|
|
func (s *BandwidthLastTwoDays) GetCurrent() string {
|
|
return s.Current
|
|
}
|
|
|
|
// GetPrevious returns the value of Previous.
|
|
func (s *BandwidthLastTwoDays) GetPrevious() string {
|
|
return s.Previous
|
|
}
|
|
|
|
// GetDifference returns the value of Difference.
|
|
func (s *BandwidthLastTwoDays) GetDifference() string {
|
|
return s.Difference
|
|
}
|
|
|
|
// SetCurrent sets the value of Current.
|
|
func (s *BandwidthLastTwoDays) SetCurrent(val string) {
|
|
s.Current = val
|
|
}
|
|
|
|
// SetPrevious sets the value of Previous.
|
|
func (s *BandwidthLastTwoDays) SetPrevious(val string) {
|
|
s.Previous = val
|
|
}
|
|
|
|
// SetDifference sets the value of Difference.
|
|
func (s *BandwidthLastTwoDays) SetDifference(val string) {
|
|
s.Difference = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BillingHistoryItem
|
|
type BillingHistoryItem struct {
|
|
TotalAmount float64 `json:"totalAmount"`
|
|
TotalBills float64 `json:"totalBills"`
|
|
}
|
|
|
|
// GetTotalAmount returns the value of TotalAmount.
|
|
func (s *BillingHistoryItem) GetTotalAmount() float64 {
|
|
return s.TotalAmount
|
|
}
|
|
|
|
// GetTotalBills returns the value of TotalBills.
|
|
func (s *BillingHistoryItem) GetTotalBills() float64 {
|
|
return s.TotalBills
|
|
}
|
|
|
|
// SetTotalAmount sets the value of TotalAmount.
|
|
func (s *BillingHistoryItem) SetTotalAmount(val float64) {
|
|
s.TotalAmount = val
|
|
}
|
|
|
|
// SetTotalBills sets the value of TotalBills.
|
|
func (s *BillingHistoryItem) SetTotalBills(val float64) {
|
|
s.TotalBills = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BillingHistoryResponse
|
|
type BillingHistoryResponse struct {
|
|
Response BillingHistoryResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *BillingHistoryResponse) GetResponse() BillingHistoryResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *BillingHistoryResponse) SetResponse(val BillingHistoryResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*BillingHistoryResponse) infraBillingCreateInfraBillingHistoryRecordRes() {}
|
|
func (*BillingHistoryResponse) infraBillingDeleteInfraBillingHistoryRecordByUuidRes() {}
|
|
func (*BillingHistoryResponse) infraBillingGetInfraBillingHistoryRecordsRes() {}
|
|
|
|
type BillingHistoryResponseResponse struct {
|
|
Records []BillingHistoryResponseResponseRecordsItem `json:"records"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetRecords returns the value of Records.
|
|
func (s *BillingHistoryResponseResponse) GetRecords() []BillingHistoryResponseResponseRecordsItem {
|
|
return s.Records
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *BillingHistoryResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetRecords sets the value of Records.
|
|
func (s *BillingHistoryResponseResponse) SetRecords(val []BillingHistoryResponseResponseRecordsItem) {
|
|
s.Records = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *BillingHistoryResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
type BillingHistoryResponseResponseRecordsItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ProviderUuid uuid.UUID `json:"providerUuid"`
|
|
Amount float64 `json:"amount"`
|
|
BilledAt time.Time `json:"billedAt"`
|
|
Provider BillingHistoryResponseResponseRecordsItemProvider `json:"provider"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) GetProviderUuid() uuid.UUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetAmount returns the value of Amount.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) GetAmount() float64 {
|
|
return s.Amount
|
|
}
|
|
|
|
// GetBilledAt returns the value of BilledAt.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) GetBilledAt() time.Time {
|
|
return s.BilledAt
|
|
}
|
|
|
|
// GetProvider returns the value of Provider.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) GetProvider() BillingHistoryResponseResponseRecordsItemProvider {
|
|
return s.Provider
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) SetProviderUuid(val uuid.UUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetAmount sets the value of Amount.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) SetAmount(val float64) {
|
|
s.Amount = val
|
|
}
|
|
|
|
// SetBilledAt sets the value of BilledAt.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) SetBilledAt(val time.Time) {
|
|
s.BilledAt = val
|
|
}
|
|
|
|
// SetProvider sets the value of Provider.
|
|
func (s *BillingHistoryResponseResponseRecordsItem) SetProvider(val BillingHistoryResponseResponseRecordsItemProvider) {
|
|
s.Provider = val
|
|
}
|
|
|
|
type BillingHistoryResponseResponseRecordsItemProvider struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
FaviconLink NilString `json:"faviconLink"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) GetFaviconLink() NilString {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *BillingHistoryResponseResponseRecordsItemProvider) SetFaviconLink(val NilString) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BillingNode
|
|
type BillingNode struct {
|
|
Name string `json:"name"`
|
|
Details NilInfraProvidersDetail `json:"details"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *BillingNode) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetDetails returns the value of Details.
|
|
func (s *BillingNode) GetDetails() NilInfraProvidersDetail {
|
|
return s.Details
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *BillingNode) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetDetails sets the value of Details.
|
|
func (s *BillingNode) SetDetails(val NilInfraProvidersDetail) {
|
|
s.Details = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BillingNodesResponse
|
|
type BillingNodesResponse struct {
|
|
Response BillingNodesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *BillingNodesResponse) GetResponse() BillingNodesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *BillingNodesResponse) SetResponse(val BillingNodesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*BillingNodesResponse) infraBillingCreateInfraBillingNodeRes() {}
|
|
func (*BillingNodesResponse) infraBillingDeleteInfraBillingNodeByUuidRes() {}
|
|
func (*BillingNodesResponse) infraBillingGetBillingNodesRes() {}
|
|
func (*BillingNodesResponse) infraBillingUpdateInfraBillingNodeRes() {}
|
|
|
|
type BillingNodesResponseResponse struct {
|
|
TotalBillingNodes float64 `json:"totalBillingNodes"`
|
|
BillingNodes []BillingNodesResponseResponseBillingNodesItem `json:"billingNodes"`
|
|
AvailableBillingNodes []Node `json:"availableBillingNodes"`
|
|
TotalAvailableBillingNodes float64 `json:"totalAvailableBillingNodes"`
|
|
Stats BillingNodesResponseResponseStats `json:"stats"`
|
|
}
|
|
|
|
// GetTotalBillingNodes returns the value of TotalBillingNodes.
|
|
func (s *BillingNodesResponseResponse) GetTotalBillingNodes() float64 {
|
|
return s.TotalBillingNodes
|
|
}
|
|
|
|
// GetBillingNodes returns the value of BillingNodes.
|
|
func (s *BillingNodesResponseResponse) GetBillingNodes() []BillingNodesResponseResponseBillingNodesItem {
|
|
return s.BillingNodes
|
|
}
|
|
|
|
// GetAvailableBillingNodes returns the value of AvailableBillingNodes.
|
|
func (s *BillingNodesResponseResponse) GetAvailableBillingNodes() []Node {
|
|
return s.AvailableBillingNodes
|
|
}
|
|
|
|
// GetTotalAvailableBillingNodes returns the value of TotalAvailableBillingNodes.
|
|
func (s *BillingNodesResponseResponse) GetTotalAvailableBillingNodes() float64 {
|
|
return s.TotalAvailableBillingNodes
|
|
}
|
|
|
|
// GetStats returns the value of Stats.
|
|
func (s *BillingNodesResponseResponse) GetStats() BillingNodesResponseResponseStats {
|
|
return s.Stats
|
|
}
|
|
|
|
// SetTotalBillingNodes sets the value of TotalBillingNodes.
|
|
func (s *BillingNodesResponseResponse) SetTotalBillingNodes(val float64) {
|
|
s.TotalBillingNodes = val
|
|
}
|
|
|
|
// SetBillingNodes sets the value of BillingNodes.
|
|
func (s *BillingNodesResponseResponse) SetBillingNodes(val []BillingNodesResponseResponseBillingNodesItem) {
|
|
s.BillingNodes = val
|
|
}
|
|
|
|
// SetAvailableBillingNodes sets the value of AvailableBillingNodes.
|
|
func (s *BillingNodesResponseResponse) SetAvailableBillingNodes(val []Node) {
|
|
s.AvailableBillingNodes = val
|
|
}
|
|
|
|
// SetTotalAvailableBillingNodes sets the value of TotalAvailableBillingNodes.
|
|
func (s *BillingNodesResponseResponse) SetTotalAvailableBillingNodes(val float64) {
|
|
s.TotalAvailableBillingNodes = val
|
|
}
|
|
|
|
// SetStats sets the value of Stats.
|
|
func (s *BillingNodesResponseResponse) SetStats(val BillingNodesResponseResponseStats) {
|
|
s.Stats = val
|
|
}
|
|
|
|
type BillingNodesResponseResponseBillingNodesItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
NodeUuid NilUUID `json:"nodeUuid"`
|
|
Name NilString `json:"name"`
|
|
ProviderUuid uuid.UUID `json:"providerUuid"`
|
|
Provider BillingNodesResponseResponseBillingNodesItemProvider `json:"provider"`
|
|
Node Node `json:"node"`
|
|
NextBillingAt time.Time `json:"nextBillingAt"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetNodeUuid() NilUUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetName() NilString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetProviderUuid() uuid.UUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetProvider returns the value of Provider.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetProvider() BillingNodesResponseResponseBillingNodesItemProvider {
|
|
return s.Provider
|
|
}
|
|
|
|
// GetNode returns the value of Node.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetNode() Node {
|
|
return s.Node
|
|
}
|
|
|
|
// GetNextBillingAt returns the value of NextBillingAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetNextBillingAt() time.Time {
|
|
return s.NextBillingAt
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetNodeUuid(val NilUUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetName(val NilString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetProviderUuid(val uuid.UUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetProvider sets the value of Provider.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetProvider(val BillingNodesResponseResponseBillingNodesItemProvider) {
|
|
s.Provider = val
|
|
}
|
|
|
|
// SetNode sets the value of Node.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetNode(val Node) {
|
|
s.Node = val
|
|
}
|
|
|
|
// SetNextBillingAt sets the value of NextBillingAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetNextBillingAt(val time.Time) {
|
|
s.NextBillingAt = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *BillingNodesResponseResponseBillingNodesItem) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
type BillingNodesResponseResponseBillingNodesItemProvider struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
LoginUrl NilString `json:"loginUrl"`
|
|
FaviconLink NilString `json:"faviconLink"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetLoginUrl returns the value of LoginUrl.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) GetLoginUrl() NilString {
|
|
return s.LoginUrl
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) GetFaviconLink() NilString {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetLoginUrl sets the value of LoginUrl.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) SetLoginUrl(val NilString) {
|
|
s.LoginUrl = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *BillingNodesResponseResponseBillingNodesItemProvider) SetFaviconLink(val NilString) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
type BillingNodesResponseResponseStats struct {
|
|
UpcomingNodesCount float64 `json:"upcomingNodesCount"`
|
|
CurrentMonthPayments float64 `json:"currentMonthPayments"`
|
|
TotalSpent float64 `json:"totalSpent"`
|
|
}
|
|
|
|
// GetUpcomingNodesCount returns the value of UpcomingNodesCount.
|
|
func (s *BillingNodesResponseResponseStats) GetUpcomingNodesCount() float64 {
|
|
return s.UpcomingNodesCount
|
|
}
|
|
|
|
// GetCurrentMonthPayments returns the value of CurrentMonthPayments.
|
|
func (s *BillingNodesResponseResponseStats) GetCurrentMonthPayments() float64 {
|
|
return s.CurrentMonthPayments
|
|
}
|
|
|
|
// GetTotalSpent returns the value of TotalSpent.
|
|
func (s *BillingNodesResponseResponseStats) GetTotalSpent() float64 {
|
|
return s.TotalSpent
|
|
}
|
|
|
|
// SetUpcomingNodesCount sets the value of UpcomingNodesCount.
|
|
func (s *BillingNodesResponseResponseStats) SetUpcomingNodesCount(val float64) {
|
|
s.UpcomingNodesCount = val
|
|
}
|
|
|
|
// SetCurrentMonthPayments sets the value of CurrentMonthPayments.
|
|
func (s *BillingNodesResponseResponseStats) SetCurrentMonthPayments(val float64) {
|
|
s.CurrentMonthPayments = val
|
|
}
|
|
|
|
// SetTotalSpent sets the value of TotalSpent.
|
|
func (s *BillingNodesResponseResponseStats) SetTotalSpent(val float64) {
|
|
s.TotalSpent = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BrandingSettings
|
|
type BrandingSettings struct {
|
|
Title NilString `json:"title"`
|
|
LogoUrl NilURI `json:"logoUrl"`
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *BrandingSettings) GetTitle() NilString {
|
|
return s.Title
|
|
}
|
|
|
|
// GetLogoUrl returns the value of LogoUrl.
|
|
func (s *BrandingSettings) GetLogoUrl() NilURI {
|
|
return s.LogoUrl
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *BrandingSettings) SetTitle(val NilString) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetLogoUrl sets the value of LogoUrl.
|
|
func (s *BrandingSettings) SetLogoUrl(val NilURI) {
|
|
s.LogoUrl = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkActionResponse
|
|
type BulkActionResponse struct {
|
|
Response BulkActionResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *BulkActionResponse) GetResponse() BulkActionResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *BulkActionResponse) SetResponse(val BulkActionResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*BulkActionResponse) usersBulkActionsBulkDeleteUsersByStatusRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkDeleteUsersRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkExtendExpirationDateRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkResetUserTrafficRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkRevokeUsersSubscriptionRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkUpdateUsersInternalSquadsRes() {}
|
|
func (*BulkActionResponse) usersBulkActionsBulkUpdateUsersRes() {}
|
|
|
|
type BulkActionResponseResponse struct {
|
|
AffectedRows float64 `json:"affectedRows"`
|
|
}
|
|
|
|
// GetAffectedRows returns the value of AffectedRows.
|
|
func (s *BulkActionResponseResponse) GetAffectedRows() float64 {
|
|
return s.AffectedRows
|
|
}
|
|
|
|
// SetAffectedRows sets the value of AffectedRows.
|
|
func (s *BulkActionResponseResponse) SetAffectedRows(val float64) {
|
|
s.AffectedRows = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkAllExtendExpirationDateRequest
|
|
type BulkAllExtendExpirationDateRequest struct {
|
|
ExtendDays int `json:"extendDays"`
|
|
}
|
|
|
|
// GetExtendDays returns the value of ExtendDays.
|
|
func (s *BulkAllExtendExpirationDateRequest) GetExtendDays() int {
|
|
return s.ExtendDays
|
|
}
|
|
|
|
// SetExtendDays sets the value of ExtendDays.
|
|
func (s *BulkAllExtendExpirationDateRequest) SetExtendDays(val int) {
|
|
s.ExtendDays = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkAllUpdateUsersRequest
|
|
type BulkAllUpdateUsersRequest struct {
|
|
Status OptBulkAllUpdateUsersRequestStatus `json:"status"`
|
|
// Traffic limit in bytes. 0 - unlimited.
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
// Traffic limit reset strategy.
|
|
TrafficLimitStrategy OptBulkAllUpdateUsersRequestTrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
// Expiration date: 2025-01-17T15:38:45.065Z.
|
|
ExpireAt OptDateTime `json:"expireAt"`
|
|
Description OptNilString `json:"description"`
|
|
TelegramId OptNilInt `json:"telegramId"`
|
|
Email OptNilString `json:"email"`
|
|
Tag OptNilString `json:"tag"`
|
|
HwidDeviceLimit OptNilInt `json:"hwidDeviceLimit"`
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *BulkAllUpdateUsersRequest) GetStatus() OptBulkAllUpdateUsersRequestStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *BulkAllUpdateUsersRequest) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *BulkAllUpdateUsersRequest) GetTrafficLimitStrategy() OptBulkAllUpdateUsersRequestTrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *BulkAllUpdateUsersRequest) GetExpireAt() OptDateTime {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *BulkAllUpdateUsersRequest) GetDescription() OptNilString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetTelegramId returns the value of TelegramId.
|
|
func (s *BulkAllUpdateUsersRequest) GetTelegramId() OptNilInt {
|
|
return s.TelegramId
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *BulkAllUpdateUsersRequest) GetEmail() OptNilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *BulkAllUpdateUsersRequest) GetTag() OptNilString {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetHwidDeviceLimit returns the value of HwidDeviceLimit.
|
|
func (s *BulkAllUpdateUsersRequest) GetHwidDeviceLimit() OptNilInt {
|
|
return s.HwidDeviceLimit
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *BulkAllUpdateUsersRequest) SetStatus(val OptBulkAllUpdateUsersRequestStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *BulkAllUpdateUsersRequest) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *BulkAllUpdateUsersRequest) SetTrafficLimitStrategy(val OptBulkAllUpdateUsersRequestTrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *BulkAllUpdateUsersRequest) SetExpireAt(val OptDateTime) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *BulkAllUpdateUsersRequest) SetDescription(val OptNilString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetTelegramId sets the value of TelegramId.
|
|
func (s *BulkAllUpdateUsersRequest) SetTelegramId(val OptNilInt) {
|
|
s.TelegramId = val
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *BulkAllUpdateUsersRequest) SetEmail(val OptNilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *BulkAllUpdateUsersRequest) SetTag(val OptNilString) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetHwidDeviceLimit sets the value of HwidDeviceLimit.
|
|
func (s *BulkAllUpdateUsersRequest) SetHwidDeviceLimit(val OptNilInt) {
|
|
s.HwidDeviceLimit = val
|
|
}
|
|
|
|
type BulkAllUpdateUsersRequestStatus string
|
|
|
|
const (
|
|
BulkAllUpdateUsersRequestStatusACTIVE BulkAllUpdateUsersRequestStatus = "ACTIVE"
|
|
BulkAllUpdateUsersRequestStatusDISABLED BulkAllUpdateUsersRequestStatus = "DISABLED"
|
|
BulkAllUpdateUsersRequestStatusLIMITED BulkAllUpdateUsersRequestStatus = "LIMITED"
|
|
BulkAllUpdateUsersRequestStatusEXPIRED BulkAllUpdateUsersRequestStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all BulkAllUpdateUsersRequestStatus values.
|
|
func (BulkAllUpdateUsersRequestStatus) AllValues() []BulkAllUpdateUsersRequestStatus {
|
|
return []BulkAllUpdateUsersRequestStatus{
|
|
BulkAllUpdateUsersRequestStatusACTIVE,
|
|
BulkAllUpdateUsersRequestStatusDISABLED,
|
|
BulkAllUpdateUsersRequestStatusLIMITED,
|
|
BulkAllUpdateUsersRequestStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkAllUpdateUsersRequestStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkAllUpdateUsersRequestStatusACTIVE:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestStatusDISABLED:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestStatusLIMITED:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkAllUpdateUsersRequestStatus) UnmarshalText(data []byte) error {
|
|
switch BulkAllUpdateUsersRequestStatus(data) {
|
|
case BulkAllUpdateUsersRequestStatusACTIVE:
|
|
*s = BulkAllUpdateUsersRequestStatusACTIVE
|
|
return nil
|
|
case BulkAllUpdateUsersRequestStatusDISABLED:
|
|
*s = BulkAllUpdateUsersRequestStatusDISABLED
|
|
return nil
|
|
case BulkAllUpdateUsersRequestStatusLIMITED:
|
|
*s = BulkAllUpdateUsersRequestStatusLIMITED
|
|
return nil
|
|
case BulkAllUpdateUsersRequestStatusEXPIRED:
|
|
*s = BulkAllUpdateUsersRequestStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Traffic limit reset strategy.
|
|
type BulkAllUpdateUsersRequestTrafficLimitStrategy string
|
|
|
|
const (
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyNORESET BulkAllUpdateUsersRequestTrafficLimitStrategy = "NO_RESET"
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyDAY BulkAllUpdateUsersRequestTrafficLimitStrategy = "DAY"
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyWEEK BulkAllUpdateUsersRequestTrafficLimitStrategy = "WEEK"
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyMONTH BulkAllUpdateUsersRequestTrafficLimitStrategy = "MONTH"
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyMONTHROLLING BulkAllUpdateUsersRequestTrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all BulkAllUpdateUsersRequestTrafficLimitStrategy values.
|
|
func (BulkAllUpdateUsersRequestTrafficLimitStrategy) AllValues() []BulkAllUpdateUsersRequestTrafficLimitStrategy {
|
|
return []BulkAllUpdateUsersRequestTrafficLimitStrategy{
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyNORESET,
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyDAY,
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyWEEK,
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyMONTH,
|
|
BulkAllUpdateUsersRequestTrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkAllUpdateUsersRequestTrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkAllUpdateUsersRequestTrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch BulkAllUpdateUsersRequestTrafficLimitStrategy(data) {
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyNORESET:
|
|
*s = BulkAllUpdateUsersRequestTrafficLimitStrategyNORESET
|
|
return nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyDAY:
|
|
*s = BulkAllUpdateUsersRequestTrafficLimitStrategyDAY
|
|
return nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyWEEK:
|
|
*s = BulkAllUpdateUsersRequestTrafficLimitStrategyWEEK
|
|
return nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyMONTH:
|
|
*s = BulkAllUpdateUsersRequestTrafficLimitStrategyMONTH
|
|
return nil
|
|
case BulkAllUpdateUsersRequestTrafficLimitStrategyMONTHROLLING:
|
|
*s = BulkAllUpdateUsersRequestTrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkDeleteUsersByStatusRequest
|
|
type BulkDeleteUsersByStatusRequest struct {
|
|
Status OptBulkDeleteUsersByStatusRequestStatus `json:"status"`
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *BulkDeleteUsersByStatusRequest) GetStatus() OptBulkDeleteUsersByStatusRequestStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *BulkDeleteUsersByStatusRequest) SetStatus(val OptBulkDeleteUsersByStatusRequestStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
type BulkDeleteUsersByStatusRequestStatus string
|
|
|
|
const (
|
|
BulkDeleteUsersByStatusRequestStatusACTIVE BulkDeleteUsersByStatusRequestStatus = "ACTIVE"
|
|
BulkDeleteUsersByStatusRequestStatusDISABLED BulkDeleteUsersByStatusRequestStatus = "DISABLED"
|
|
BulkDeleteUsersByStatusRequestStatusLIMITED BulkDeleteUsersByStatusRequestStatus = "LIMITED"
|
|
BulkDeleteUsersByStatusRequestStatusEXPIRED BulkDeleteUsersByStatusRequestStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all BulkDeleteUsersByStatusRequestStatus values.
|
|
func (BulkDeleteUsersByStatusRequestStatus) AllValues() []BulkDeleteUsersByStatusRequestStatus {
|
|
return []BulkDeleteUsersByStatusRequestStatus{
|
|
BulkDeleteUsersByStatusRequestStatusACTIVE,
|
|
BulkDeleteUsersByStatusRequestStatusDISABLED,
|
|
BulkDeleteUsersByStatusRequestStatusLIMITED,
|
|
BulkDeleteUsersByStatusRequestStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkDeleteUsersByStatusRequestStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkDeleteUsersByStatusRequestStatusACTIVE:
|
|
return []byte(s), nil
|
|
case BulkDeleteUsersByStatusRequestStatusDISABLED:
|
|
return []byte(s), nil
|
|
case BulkDeleteUsersByStatusRequestStatusLIMITED:
|
|
return []byte(s), nil
|
|
case BulkDeleteUsersByStatusRequestStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkDeleteUsersByStatusRequestStatus) UnmarshalText(data []byte) error {
|
|
switch BulkDeleteUsersByStatusRequestStatus(data) {
|
|
case BulkDeleteUsersByStatusRequestStatusACTIVE:
|
|
*s = BulkDeleteUsersByStatusRequestStatusACTIVE
|
|
return nil
|
|
case BulkDeleteUsersByStatusRequestStatusDISABLED:
|
|
*s = BulkDeleteUsersByStatusRequestStatusDISABLED
|
|
return nil
|
|
case BulkDeleteUsersByStatusRequestStatusLIMITED:
|
|
*s = BulkDeleteUsersByStatusRequestStatusLIMITED
|
|
return nil
|
|
case BulkDeleteUsersByStatusRequestStatusEXPIRED:
|
|
*s = BulkDeleteUsersByStatusRequestStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkExtendExpirationDateRequest
|
|
type BulkExtendExpirationDateRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
ExtendDays int `json:"extendDays"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkExtendExpirationDateRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetExtendDays returns the value of ExtendDays.
|
|
func (s *BulkExtendExpirationDateRequest) GetExtendDays() int {
|
|
return s.ExtendDays
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkExtendExpirationDateRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetExtendDays sets the value of ExtendDays.
|
|
func (s *BulkExtendExpirationDateRequest) SetExtendDays(val int) {
|
|
s.ExtendDays = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkNodesActionsRequest
|
|
type BulkNodesActionsRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
Action BulkNodesActionsRequestAction `json:"action"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkNodesActionsRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetAction returns the value of Action.
|
|
func (s *BulkNodesActionsRequest) GetAction() BulkNodesActionsRequestAction {
|
|
return s.Action
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkNodesActionsRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetAction sets the value of Action.
|
|
func (s *BulkNodesActionsRequest) SetAction(val BulkNodesActionsRequestAction) {
|
|
s.Action = val
|
|
}
|
|
|
|
type BulkNodesActionsRequestAction string
|
|
|
|
const (
|
|
BulkNodesActionsRequestActionENABLE BulkNodesActionsRequestAction = "ENABLE"
|
|
BulkNodesActionsRequestActionDISABLE BulkNodesActionsRequestAction = "DISABLE"
|
|
BulkNodesActionsRequestActionRESTART BulkNodesActionsRequestAction = "RESTART"
|
|
BulkNodesActionsRequestActionRESETTRAFFIC BulkNodesActionsRequestAction = "RESET_TRAFFIC"
|
|
)
|
|
|
|
// AllValues returns all BulkNodesActionsRequestAction values.
|
|
func (BulkNodesActionsRequestAction) AllValues() []BulkNodesActionsRequestAction {
|
|
return []BulkNodesActionsRequestAction{
|
|
BulkNodesActionsRequestActionENABLE,
|
|
BulkNodesActionsRequestActionDISABLE,
|
|
BulkNodesActionsRequestActionRESTART,
|
|
BulkNodesActionsRequestActionRESETTRAFFIC,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkNodesActionsRequestAction) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkNodesActionsRequestActionENABLE:
|
|
return []byte(s), nil
|
|
case BulkNodesActionsRequestActionDISABLE:
|
|
return []byte(s), nil
|
|
case BulkNodesActionsRequestActionRESTART:
|
|
return []byte(s), nil
|
|
case BulkNodesActionsRequestActionRESETTRAFFIC:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkNodesActionsRequestAction) UnmarshalText(data []byte) error {
|
|
switch BulkNodesActionsRequestAction(data) {
|
|
case BulkNodesActionsRequestActionENABLE:
|
|
*s = BulkNodesActionsRequestActionENABLE
|
|
return nil
|
|
case BulkNodesActionsRequestActionDISABLE:
|
|
*s = BulkNodesActionsRequestActionDISABLE
|
|
return nil
|
|
case BulkNodesActionsRequestActionRESTART:
|
|
*s = BulkNodesActionsRequestActionRESTART
|
|
return nil
|
|
case BulkNodesActionsRequestActionRESETTRAFFIC:
|
|
*s = BulkNodesActionsRequestActionRESETTRAFFIC
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkNodesUpdateRequest
|
|
type BulkNodesUpdateRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
Fields BulkNodesUpdateRequestFields `json:"fields"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkNodesUpdateRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetFields returns the value of Fields.
|
|
func (s *BulkNodesUpdateRequest) GetFields() BulkNodesUpdateRequestFields {
|
|
return s.Fields
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkNodesUpdateRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetFields sets the value of Fields.
|
|
func (s *BulkNodesUpdateRequest) SetFields(val BulkNodesUpdateRequestFields) {
|
|
s.Fields = val
|
|
}
|
|
|
|
type BulkNodesUpdateRequestFields struct {
|
|
CountryCode OptString `json:"countryCode"`
|
|
ConsumptionMultiplier OptFloat64 `json:"consumptionMultiplier"`
|
|
NodeConsumptionMultiplier OptFloat64 `json:"nodeConsumptionMultiplier"`
|
|
ProviderUuid OptNilUUID `json:"providerUuid"`
|
|
Tags []string `json:"tags"`
|
|
ActivePluginUuid OptNilUUID `json:"activePluginUuid"`
|
|
Note OptNilString `json:"note"`
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *BulkNodesUpdateRequestFields) GetCountryCode() OptString {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConsumptionMultiplier returns the value of ConsumptionMultiplier.
|
|
func (s *BulkNodesUpdateRequestFields) GetConsumptionMultiplier() OptFloat64 {
|
|
return s.ConsumptionMultiplier
|
|
}
|
|
|
|
// GetNodeConsumptionMultiplier returns the value of NodeConsumptionMultiplier.
|
|
func (s *BulkNodesUpdateRequestFields) GetNodeConsumptionMultiplier() OptFloat64 {
|
|
return s.NodeConsumptionMultiplier
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *BulkNodesUpdateRequestFields) GetProviderUuid() OptNilUUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *BulkNodesUpdateRequestFields) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetActivePluginUuid returns the value of ActivePluginUuid.
|
|
func (s *BulkNodesUpdateRequestFields) GetActivePluginUuid() OptNilUUID {
|
|
return s.ActivePluginUuid
|
|
}
|
|
|
|
// GetNote returns the value of Note.
|
|
func (s *BulkNodesUpdateRequestFields) GetNote() OptNilString {
|
|
return s.Note
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *BulkNodesUpdateRequestFields) SetCountryCode(val OptString) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConsumptionMultiplier sets the value of ConsumptionMultiplier.
|
|
func (s *BulkNodesUpdateRequestFields) SetConsumptionMultiplier(val OptFloat64) {
|
|
s.ConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetNodeConsumptionMultiplier sets the value of NodeConsumptionMultiplier.
|
|
func (s *BulkNodesUpdateRequestFields) SetNodeConsumptionMultiplier(val OptFloat64) {
|
|
s.NodeConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *BulkNodesUpdateRequestFields) SetProviderUuid(val OptNilUUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *BulkNodesUpdateRequestFields) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetActivePluginUuid sets the value of ActivePluginUuid.
|
|
func (s *BulkNodesUpdateRequestFields) SetActivePluginUuid(val OptNilUUID) {
|
|
s.ActivePluginUuid = val
|
|
}
|
|
|
|
// SetNote sets the value of Note.
|
|
func (s *BulkNodesUpdateRequestFields) SetNote(val OptNilString) {
|
|
s.Note = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkUpdateUsersRequest
|
|
type BulkUpdateUsersRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
Fields BulkUpdateUsersRequestFields `json:"fields"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkUpdateUsersRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetFields returns the value of Fields.
|
|
func (s *BulkUpdateUsersRequest) GetFields() BulkUpdateUsersRequestFields {
|
|
return s.Fields
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkUpdateUsersRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetFields sets the value of Fields.
|
|
func (s *BulkUpdateUsersRequest) SetFields(val BulkUpdateUsersRequestFields) {
|
|
s.Fields = val
|
|
}
|
|
|
|
type BulkUpdateUsersRequestFields struct {
|
|
Status OptBulkUpdateUsersRequestFieldsStatus `json:"status"`
|
|
// Traffic limit in bytes. 0 - unlimited.
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
// Traffic limit reset strategy.
|
|
TrafficLimitStrategy OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
// Expiration date: 2025-01-17T15:38:45.065Z.
|
|
ExpireAt OptDateTime `json:"expireAt"`
|
|
Description OptNilString `json:"description"`
|
|
TelegramId OptNilInt `json:"telegramId"`
|
|
Email OptNilString `json:"email"`
|
|
Tag OptNilString `json:"tag"`
|
|
HwidDeviceLimit OptNilInt `json:"hwidDeviceLimit"`
|
|
// Optional. External squad UUID.
|
|
ExternalSquadUuid OptNilUUID `json:"externalSquadUuid"`
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *BulkUpdateUsersRequestFields) GetStatus() OptBulkUpdateUsersRequestFieldsStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *BulkUpdateUsersRequestFields) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *BulkUpdateUsersRequestFields) GetTrafficLimitStrategy() OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *BulkUpdateUsersRequestFields) GetExpireAt() OptDateTime {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *BulkUpdateUsersRequestFields) GetDescription() OptNilString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetTelegramId returns the value of TelegramId.
|
|
func (s *BulkUpdateUsersRequestFields) GetTelegramId() OptNilInt {
|
|
return s.TelegramId
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *BulkUpdateUsersRequestFields) GetEmail() OptNilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *BulkUpdateUsersRequestFields) GetTag() OptNilString {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetHwidDeviceLimit returns the value of HwidDeviceLimit.
|
|
func (s *BulkUpdateUsersRequestFields) GetHwidDeviceLimit() OptNilInt {
|
|
return s.HwidDeviceLimit
|
|
}
|
|
|
|
// GetExternalSquadUuid returns the value of ExternalSquadUuid.
|
|
func (s *BulkUpdateUsersRequestFields) GetExternalSquadUuid() OptNilUUID {
|
|
return s.ExternalSquadUuid
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *BulkUpdateUsersRequestFields) SetStatus(val OptBulkUpdateUsersRequestFieldsStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *BulkUpdateUsersRequestFields) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *BulkUpdateUsersRequestFields) SetTrafficLimitStrategy(val OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *BulkUpdateUsersRequestFields) SetExpireAt(val OptDateTime) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *BulkUpdateUsersRequestFields) SetDescription(val OptNilString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetTelegramId sets the value of TelegramId.
|
|
func (s *BulkUpdateUsersRequestFields) SetTelegramId(val OptNilInt) {
|
|
s.TelegramId = val
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *BulkUpdateUsersRequestFields) SetEmail(val OptNilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *BulkUpdateUsersRequestFields) SetTag(val OptNilString) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetHwidDeviceLimit sets the value of HwidDeviceLimit.
|
|
func (s *BulkUpdateUsersRequestFields) SetHwidDeviceLimit(val OptNilInt) {
|
|
s.HwidDeviceLimit = val
|
|
}
|
|
|
|
// SetExternalSquadUuid sets the value of ExternalSquadUuid.
|
|
func (s *BulkUpdateUsersRequestFields) SetExternalSquadUuid(val OptNilUUID) {
|
|
s.ExternalSquadUuid = val
|
|
}
|
|
|
|
type BulkUpdateUsersRequestFieldsStatus string
|
|
|
|
const (
|
|
BulkUpdateUsersRequestFieldsStatusACTIVE BulkUpdateUsersRequestFieldsStatus = "ACTIVE"
|
|
BulkUpdateUsersRequestFieldsStatusDISABLED BulkUpdateUsersRequestFieldsStatus = "DISABLED"
|
|
BulkUpdateUsersRequestFieldsStatusLIMITED BulkUpdateUsersRequestFieldsStatus = "LIMITED"
|
|
BulkUpdateUsersRequestFieldsStatusEXPIRED BulkUpdateUsersRequestFieldsStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all BulkUpdateUsersRequestFieldsStatus values.
|
|
func (BulkUpdateUsersRequestFieldsStatus) AllValues() []BulkUpdateUsersRequestFieldsStatus {
|
|
return []BulkUpdateUsersRequestFieldsStatus{
|
|
BulkUpdateUsersRequestFieldsStatusACTIVE,
|
|
BulkUpdateUsersRequestFieldsStatusDISABLED,
|
|
BulkUpdateUsersRequestFieldsStatusLIMITED,
|
|
BulkUpdateUsersRequestFieldsStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkUpdateUsersRequestFieldsStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkUpdateUsersRequestFieldsStatusACTIVE:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsStatusDISABLED:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsStatusLIMITED:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkUpdateUsersRequestFieldsStatus) UnmarshalText(data []byte) error {
|
|
switch BulkUpdateUsersRequestFieldsStatus(data) {
|
|
case BulkUpdateUsersRequestFieldsStatusACTIVE:
|
|
*s = BulkUpdateUsersRequestFieldsStatusACTIVE
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsStatusDISABLED:
|
|
*s = BulkUpdateUsersRequestFieldsStatusDISABLED
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsStatusLIMITED:
|
|
*s = BulkUpdateUsersRequestFieldsStatusLIMITED
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsStatusEXPIRED:
|
|
*s = BulkUpdateUsersRequestFieldsStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Traffic limit reset strategy.
|
|
type BulkUpdateUsersRequestFieldsTrafficLimitStrategy string
|
|
|
|
const (
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyNORESET BulkUpdateUsersRequestFieldsTrafficLimitStrategy = "NO_RESET"
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyDAY BulkUpdateUsersRequestFieldsTrafficLimitStrategy = "DAY"
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyWEEK BulkUpdateUsersRequestFieldsTrafficLimitStrategy = "WEEK"
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTH BulkUpdateUsersRequestFieldsTrafficLimitStrategy = "MONTH"
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTHROLLING BulkUpdateUsersRequestFieldsTrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all BulkUpdateUsersRequestFieldsTrafficLimitStrategy values.
|
|
func (BulkUpdateUsersRequestFieldsTrafficLimitStrategy) AllValues() []BulkUpdateUsersRequestFieldsTrafficLimitStrategy {
|
|
return []BulkUpdateUsersRequestFieldsTrafficLimitStrategy{
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyNORESET,
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyDAY,
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyWEEK,
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTH,
|
|
BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s BulkUpdateUsersRequestFieldsTrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *BulkUpdateUsersRequestFieldsTrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch BulkUpdateUsersRequestFieldsTrafficLimitStrategy(data) {
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyNORESET:
|
|
*s = BulkUpdateUsersRequestFieldsTrafficLimitStrategyNORESET
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyDAY:
|
|
*s = BulkUpdateUsersRequestFieldsTrafficLimitStrategyDAY
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyWEEK:
|
|
*s = BulkUpdateUsersRequestFieldsTrafficLimitStrategyWEEK
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTH:
|
|
*s = BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTH
|
|
return nil
|
|
case BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTHROLLING:
|
|
*s = BulkUpdateUsersRequestFieldsTrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkUpdateUsersSquadsRequest
|
|
type BulkUpdateUsersSquadsRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
ActiveInternalSquads []uuid.UUID `json:"activeInternalSquads"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkUpdateUsersSquadsRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetActiveInternalSquads returns the value of ActiveInternalSquads.
|
|
func (s *BulkUpdateUsersSquadsRequest) GetActiveInternalSquads() []uuid.UUID {
|
|
return s.ActiveInternalSquads
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkUpdateUsersSquadsRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetActiveInternalSquads sets the value of ActiveInternalSquads.
|
|
func (s *BulkUpdateUsersSquadsRequest) SetActiveInternalSquads(val []uuid.UUID) {
|
|
s.ActiveInternalSquads = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkUuidsRequest
|
|
type BulkUuidsRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkUuidsRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkUuidsRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/BulkUuidsRequest2
|
|
type BulkUuidsRequest2 struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *BulkUuidsRequest2) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *BulkUuidsRequest2) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ByAppItem
|
|
type ByAppItem struct {
|
|
App string `json:"app"`
|
|
Count float64 `json:"count"`
|
|
}
|
|
|
|
// GetApp returns the value of App.
|
|
func (s *ByAppItem) GetApp() string {
|
|
return s.App
|
|
}
|
|
|
|
// GetCount returns the value of Count.
|
|
func (s *ByAppItem) GetCount() float64 {
|
|
return s.Count
|
|
}
|
|
|
|
// SetApp sets the value of App.
|
|
func (s *ByAppItem) SetApp(val string) {
|
|
s.App = val
|
|
}
|
|
|
|
// SetCount sets the value of Count.
|
|
func (s *ByAppItem) SetCount(val float64) {
|
|
s.Count = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CloneNodePluginRequestRequest
|
|
type CloneNodePluginRequestRequest struct {
|
|
CloneFromUuid uuid.UUID `json:"cloneFromUuid"`
|
|
}
|
|
|
|
// GetCloneFromUuid returns the value of CloneFromUuid.
|
|
func (s *CloneNodePluginRequestRequest) GetCloneFromUuid() uuid.UUID {
|
|
return s.CloneFromUuid
|
|
}
|
|
|
|
// SetCloneFromUuid sets the value of CloneFromUuid.
|
|
func (s *CloneNodePluginRequestRequest) SetCloneFromUuid(val uuid.UUID) {
|
|
s.CloneFromUuid = val
|
|
}
|
|
|
|
// {"markdownDescription":"Condition to check against the **headerName**.",
|
|
// "defaultSnippets":[{"label":"Examples: Check if header contains \"text/html\"",
|
|
// "markdownDescription":"Condition to check if **headerName** contains \"text/html\"",
|
|
// "body":{"headerName":"accept","operator":"CONTAINS","value":"text/html","caseSensitive":true}}]}.
|
|
// Ref: #/components/schemas/Condition
|
|
type Condition struct {
|
|
// {"markdownDescription":"**Name** of the HTTP header to check. Must comply with RFC 7230."}.
|
|
HeaderName string `json:"headerName"`
|
|
// {"errorMessage":"Invalid operator. Please select a valid operator.",
|
|
// "markdownDescription":"Operator to use for comparing the `headerName` with `value`.",
|
|
// "markdownEnumDescriptions":["Performs an exact, comparison between the header value and specified
|
|
// string. `string === value`","Ensures the header value does not exactly match the specified string.
|
|
// `string !== value`","Checks if the header value contains the specified string as a substring.
|
|
// `string.includes()`","Verifies the header value does not contain the specified string as a
|
|
// substring. `!string.includes()`","Validates that the header value begins with the specified string.
|
|
// `string.startsWith()`","Validates that the header value does not begin with the specified string.
|
|
// `!string.startsWith()`","Confirms the header value ends with the specified string. `string.
|
|
// endsWith()`","Confirms the header value does not end with the specified string. `!string.
|
|
// endsWith()`","Evaluates if the header value matches the specified regular expression pattern.
|
|
// `regex.test()`","Evaluates if the header value does not match the specified regular expression
|
|
// pattern. `!regex.test()`"]}.
|
|
Operator ConditionOperator `json:"operator"`
|
|
// {"markdownDescription":"**Value** to check against the **headerName**."}.
|
|
Value string `json:"value"`
|
|
// {"markdownDescription":"Whether the value is **case sensitive**. \n\n - `true`: the value will be
|
|
// compared as is. \n\n - `false`: the value will be lowercased **before** comparison."}.
|
|
CaseSensitive bool `json:"caseSensitive"`
|
|
}
|
|
|
|
// GetHeaderName returns the value of HeaderName.
|
|
func (s *Condition) GetHeaderName() string {
|
|
return s.HeaderName
|
|
}
|
|
|
|
// GetOperator returns the value of Operator.
|
|
func (s *Condition) GetOperator() ConditionOperator {
|
|
return s.Operator
|
|
}
|
|
|
|
// GetValue returns the value of Value.
|
|
func (s *Condition) GetValue() string {
|
|
return s.Value
|
|
}
|
|
|
|
// GetCaseSensitive returns the value of CaseSensitive.
|
|
func (s *Condition) GetCaseSensitive() bool {
|
|
return s.CaseSensitive
|
|
}
|
|
|
|
// SetHeaderName sets the value of HeaderName.
|
|
func (s *Condition) SetHeaderName(val string) {
|
|
s.HeaderName = val
|
|
}
|
|
|
|
// SetOperator sets the value of Operator.
|
|
func (s *Condition) SetOperator(val ConditionOperator) {
|
|
s.Operator = val
|
|
}
|
|
|
|
// SetValue sets the value of Value.
|
|
func (s *Condition) SetValue(val string) {
|
|
s.Value = val
|
|
}
|
|
|
|
// SetCaseSensitive sets the value of CaseSensitive.
|
|
func (s *Condition) SetCaseSensitive(val bool) {
|
|
s.CaseSensitive = val
|
|
}
|
|
|
|
// {"errorMessage":"Invalid operator. Please select a valid operator.",
|
|
// "markdownDescription":"Operator to use for comparing the `headerName` with `value`.",
|
|
// "markdownEnumDescriptions":["Performs an exact, comparison between the header value and specified
|
|
// string. `string === value`","Ensures the header value does not exactly match the specified string.
|
|
// `string !== value`","Checks if the header value contains the specified string as a substring.
|
|
// `string.includes()`","Verifies the header value does not contain the specified string as a
|
|
// substring. `!string.includes()`","Validates that the header value begins with the specified string.
|
|
//
|
|
// `string.startsWith()`","Validates that the header value does not begin with the specified string.
|
|
//
|
|
// `!string.startsWith()`","Confirms the header value ends with the specified string. `string.
|
|
// endsWith()`","Confirms the header value does not end with the specified string. `!string.
|
|
// endsWith()`","Evaluates if the header value matches the specified regular expression pattern.
|
|
// `regex.test()`","Evaluates if the header value does not match the specified regular expression
|
|
// pattern. `!regex.test()`"]}.
|
|
type ConditionOperator string
|
|
|
|
const (
|
|
ConditionOperatorEQUALS ConditionOperator = "EQUALS"
|
|
ConditionOperatorNOTEQUALS ConditionOperator = "NOT_EQUALS"
|
|
ConditionOperatorCONTAINS ConditionOperator = "CONTAINS"
|
|
ConditionOperatorNOTCONTAINS ConditionOperator = "NOT_CONTAINS"
|
|
ConditionOperatorSTARTSWITH ConditionOperator = "STARTS_WITH"
|
|
ConditionOperatorNOTSTARTSWITH ConditionOperator = "NOT_STARTS_WITH"
|
|
ConditionOperatorENDSWITH ConditionOperator = "ENDS_WITH"
|
|
ConditionOperatorNOTENDSWITH ConditionOperator = "NOT_ENDS_WITH"
|
|
ConditionOperatorREGEX ConditionOperator = "REGEX"
|
|
ConditionOperatorNOTREGEX ConditionOperator = "NOT_REGEX"
|
|
)
|
|
|
|
// AllValues returns all ConditionOperator values.
|
|
func (ConditionOperator) AllValues() []ConditionOperator {
|
|
return []ConditionOperator{
|
|
ConditionOperatorEQUALS,
|
|
ConditionOperatorNOTEQUALS,
|
|
ConditionOperatorCONTAINS,
|
|
ConditionOperatorNOTCONTAINS,
|
|
ConditionOperatorSTARTSWITH,
|
|
ConditionOperatorNOTSTARTSWITH,
|
|
ConditionOperatorENDSWITH,
|
|
ConditionOperatorNOTENDSWITH,
|
|
ConditionOperatorREGEX,
|
|
ConditionOperatorNOTREGEX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s ConditionOperator) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case ConditionOperatorEQUALS:
|
|
return []byte(s), nil
|
|
case ConditionOperatorNOTEQUALS:
|
|
return []byte(s), nil
|
|
case ConditionOperatorCONTAINS:
|
|
return []byte(s), nil
|
|
case ConditionOperatorNOTCONTAINS:
|
|
return []byte(s), nil
|
|
case ConditionOperatorSTARTSWITH:
|
|
return []byte(s), nil
|
|
case ConditionOperatorNOTSTARTSWITH:
|
|
return []byte(s), nil
|
|
case ConditionOperatorENDSWITH:
|
|
return []byte(s), nil
|
|
case ConditionOperatorNOTENDSWITH:
|
|
return []byte(s), nil
|
|
case ConditionOperatorREGEX:
|
|
return []byte(s), nil
|
|
case ConditionOperatorNOTREGEX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *ConditionOperator) UnmarshalText(data []byte) error {
|
|
switch ConditionOperator(data) {
|
|
case ConditionOperatorEQUALS:
|
|
*s = ConditionOperatorEQUALS
|
|
return nil
|
|
case ConditionOperatorNOTEQUALS:
|
|
*s = ConditionOperatorNOTEQUALS
|
|
return nil
|
|
case ConditionOperatorCONTAINS:
|
|
*s = ConditionOperatorCONTAINS
|
|
return nil
|
|
case ConditionOperatorNOTCONTAINS:
|
|
*s = ConditionOperatorNOTCONTAINS
|
|
return nil
|
|
case ConditionOperatorSTARTSWITH:
|
|
*s = ConditionOperatorSTARTSWITH
|
|
return nil
|
|
case ConditionOperatorNOTSTARTSWITH:
|
|
*s = ConditionOperatorNOTSTARTSWITH
|
|
return nil
|
|
case ConditionOperatorENDSWITH:
|
|
*s = ConditionOperatorENDSWITH
|
|
return nil
|
|
case ConditionOperatorNOTENDSWITH:
|
|
*s = ConditionOperatorNOTENDSWITH
|
|
return nil
|
|
case ConditionOperatorREGEX:
|
|
*s = ConditionOperatorREGEX
|
|
return nil
|
|
case ConditionOperatorNOTREGEX:
|
|
*s = ConditionOperatorNOTREGEX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/Config
|
|
type Config struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
Config jx.Raw `json:"config"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *Config) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *Config) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *Config) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *Config) GetConfig() jx.Raw {
|
|
return s.Config
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *Config) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *Config) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *Config) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *Config) SetConfig(val jx.Raw) {
|
|
s.Config = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ConfigProfile
|
|
type ConfigProfile struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
Config jx.Raw `json:"config"`
|
|
Inbounds []Inbound `json:"inbounds"`
|
|
Nodes []Node `json:"nodes"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ConfigProfile) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *ConfigProfile) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *ConfigProfile) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *ConfigProfile) GetConfig() jx.Raw {
|
|
return s.Config
|
|
}
|
|
|
|
// GetInbounds returns the value of Inbounds.
|
|
func (s *ConfigProfile) GetInbounds() []Inbound {
|
|
return s.Inbounds
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *ConfigProfile) GetNodes() []Node {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *ConfigProfile) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *ConfigProfile) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ConfigProfile) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *ConfigProfile) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *ConfigProfile) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *ConfigProfile) SetConfig(val jx.Raw) {
|
|
s.Config = val
|
|
}
|
|
|
|
// SetInbounds sets the value of Inbounds.
|
|
func (s *ConfigProfile) SetInbounds(val []Inbound) {
|
|
s.Inbounds = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *ConfigProfile) SetNodes(val []Node) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *ConfigProfile) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *ConfigProfile) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// ConfigProfileCreateConfigProfileConflict is response for ConfigProfileCreateConfigProfile operation.
|
|
type ConfigProfileCreateConfigProfileConflict struct{}
|
|
|
|
func (*ConfigProfileCreateConfigProfileConflict) configProfileCreateConfigProfileRes() {}
|
|
|
|
// Ref: #/components/schemas/ConfigProfileItem
|
|
type ConfigProfileItem struct {
|
|
ActiveConfigProfileUuid NilUUID `json:"activeConfigProfileUuid"`
|
|
ActiveInbounds []Inbound `json:"activeInbounds"`
|
|
}
|
|
|
|
// GetActiveConfigProfileUuid returns the value of ActiveConfigProfileUuid.
|
|
func (s *ConfigProfileItem) GetActiveConfigProfileUuid() NilUUID {
|
|
return s.ActiveConfigProfileUuid
|
|
}
|
|
|
|
// GetActiveInbounds returns the value of ActiveInbounds.
|
|
func (s *ConfigProfileItem) GetActiveInbounds() []Inbound {
|
|
return s.ActiveInbounds
|
|
}
|
|
|
|
// SetActiveConfigProfileUuid sets the value of ActiveConfigProfileUuid.
|
|
func (s *ConfigProfileItem) SetActiveConfigProfileUuid(val NilUUID) {
|
|
s.ActiveConfigProfileUuid = val
|
|
}
|
|
|
|
// SetActiveInbounds sets the value of ActiveInbounds.
|
|
func (s *ConfigProfileItem) SetActiveInbounds(val []Inbound) {
|
|
s.ActiveInbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ConfigProfileRef
|
|
type ConfigProfileRef struct {
|
|
ActiveConfigProfileUuid uuid.UUID `json:"activeConfigProfileUuid"`
|
|
ActiveInbounds []uuid.UUID `json:"activeInbounds"`
|
|
}
|
|
|
|
// GetActiveConfigProfileUuid returns the value of ActiveConfigProfileUuid.
|
|
func (s *ConfigProfileRef) GetActiveConfigProfileUuid() uuid.UUID {
|
|
return s.ActiveConfigProfileUuid
|
|
}
|
|
|
|
// GetActiveInbounds returns the value of ActiveInbounds.
|
|
func (s *ConfigProfileRef) GetActiveInbounds() []uuid.UUID {
|
|
return s.ActiveInbounds
|
|
}
|
|
|
|
// SetActiveConfigProfileUuid sets the value of ActiveConfigProfileUuid.
|
|
func (s *ConfigProfileRef) SetActiveConfigProfileUuid(val uuid.UUID) {
|
|
s.ActiveConfigProfileUuid = val
|
|
}
|
|
|
|
// SetActiveInbounds sets the value of ActiveInbounds.
|
|
func (s *ConfigProfileRef) SetActiveInbounds(val []uuid.UUID) {
|
|
s.ActiveInbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ConfigProfileResponse
|
|
type ConfigProfileResponse struct {
|
|
Response ConfigProfile `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ConfigProfileResponse) GetResponse() ConfigProfile {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ConfigProfileResponse) SetResponse(val ConfigProfile) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ConfigProfileResponse) configProfileCreateConfigProfileRes() {}
|
|
func (*ConfigProfileResponse) configProfileGetComputedConfigProfileByUuidRes() {}
|
|
func (*ConfigProfileResponse) configProfileGetConfigProfileByUuidRes() {}
|
|
func (*ConfigProfileResponse) configProfileUpdateConfigProfileRes() {}
|
|
|
|
// ConfigProfileUpdateConfigProfileConflict is response for ConfigProfileUpdateConfigProfile operation.
|
|
type ConfigProfileUpdateConfigProfileConflict struct{}
|
|
|
|
func (*ConfigProfileUpdateConfigProfileConflict) configProfileUpdateConfigProfileRes() {}
|
|
|
|
// Ref: #/components/schemas/ConfigProfilesResponse
|
|
type ConfigProfilesResponse struct {
|
|
Response ConfigProfilesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ConfigProfilesResponse) GetResponse() ConfigProfilesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ConfigProfilesResponse) SetResponse(val ConfigProfilesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ConfigProfilesResponse) configProfileGetConfigProfilesRes() {}
|
|
func (*ConfigProfilesResponse) configProfileReorderConfigProfilesRes() {}
|
|
|
|
type ConfigProfilesResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
ConfigProfiles []ConfigProfile `json:"configProfiles"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *ConfigProfilesResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetConfigProfiles returns the value of ConfigProfiles.
|
|
func (s *ConfigProfilesResponseResponse) GetConfigProfiles() []ConfigProfile {
|
|
return s.ConfigProfiles
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *ConfigProfilesResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetConfigProfiles sets the value of ConfigProfiles.
|
|
func (s *ConfigProfilesResponseResponse) SetConfigProfiles(val []ConfigProfile) {
|
|
s.ConfigProfiles = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateApiTokenRequest
|
|
type CreateApiTokenRequest struct {
|
|
Name string `json:"name"`
|
|
ExpiresInDays float64 `json:"expiresInDays"`
|
|
Scopes []string `json:"scopes"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateApiTokenRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetExpiresInDays returns the value of ExpiresInDays.
|
|
func (s *CreateApiTokenRequest) GetExpiresInDays() float64 {
|
|
return s.ExpiresInDays
|
|
}
|
|
|
|
// GetScopes returns the value of Scopes.
|
|
func (s *CreateApiTokenRequest) GetScopes() []string {
|
|
return s.Scopes
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateApiTokenRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetExpiresInDays sets the value of ExpiresInDays.
|
|
func (s *CreateApiTokenRequest) SetExpiresInDays(val float64) {
|
|
s.ExpiresInDays = val
|
|
}
|
|
|
|
// SetScopes sets the value of Scopes.
|
|
func (s *CreateApiTokenRequest) SetScopes(val []string) {
|
|
s.Scopes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateApiTokenResponse
|
|
type CreateApiTokenResponse struct {
|
|
Response CreateApiTokenResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *CreateApiTokenResponse) GetResponse() CreateApiTokenResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *CreateApiTokenResponse) SetResponse(val CreateApiTokenResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*CreateApiTokenResponse) apiTokensCreateRes() {}
|
|
|
|
type CreateApiTokenResponseResponse struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
ExpireAt time.Time `json:"expireAt"`
|
|
Scopes []string `json:"scopes"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *CreateApiTokenResponseResponse) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateApiTokenResponseResponse) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *CreateApiTokenResponseResponse) GetExpireAt() time.Time {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetScopes returns the value of Scopes.
|
|
func (s *CreateApiTokenResponseResponse) GetScopes() []string {
|
|
return s.Scopes
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *CreateApiTokenResponseResponse) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *CreateApiTokenResponseResponse) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetToken returns the value of Token.
|
|
func (s *CreateApiTokenResponseResponse) GetToken() string {
|
|
return s.Token
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *CreateApiTokenResponseResponse) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateApiTokenResponseResponse) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *CreateApiTokenResponseResponse) SetExpireAt(val time.Time) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetScopes sets the value of Scopes.
|
|
func (s *CreateApiTokenResponseResponse) SetScopes(val []string) {
|
|
s.Scopes = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *CreateApiTokenResponseResponse) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *CreateApiTokenResponseResponse) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetToken sets the value of Token.
|
|
func (s *CreateApiTokenResponseResponse) SetToken(val string) {
|
|
s.Token = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateConfigProfileRequest
|
|
type CreateConfigProfileRequest struct {
|
|
Name string `json:"name"`
|
|
Config CreateConfigProfileRequestConfig `json:"config"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateConfigProfileRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *CreateConfigProfileRequest) GetConfig() CreateConfigProfileRequestConfig {
|
|
return s.Config
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateConfigProfileRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *CreateConfigProfileRequest) SetConfig(val CreateConfigProfileRequestConfig) {
|
|
s.Config = val
|
|
}
|
|
|
|
type CreateConfigProfileRequestConfig struct{}
|
|
|
|
// Ref: #/components/schemas/CreateExternalSquadRequest
|
|
type CreateExternalSquadRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateExternalSquadRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateExternalSquadRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateHostRequest
|
|
type CreateHostRequest struct {
|
|
Inbound InboundRef `json:"inbound"`
|
|
Remark string `json:"remark"`
|
|
Address string `json:"address"`
|
|
Port int `json:"port"`
|
|
Path OptNilString `json:"path"`
|
|
Sni OptNilString `json:"sni"`
|
|
Host OptNilString `json:"host"`
|
|
Alpn OptNilCreateHostRequestAlpn `json:"alpn"`
|
|
Fingerprint OptNilString `json:"fingerprint"`
|
|
IsDisabled OptBool `json:"isDisabled"`
|
|
SecurityLayer OptCreateHostRequestSecurityLayer `json:"securityLayer"`
|
|
XhttpExtraParams jx.Raw `json:"xhttpExtraParams"`
|
|
MuxParams jx.Raw `json:"muxParams"`
|
|
SockoptParams jx.Raw `json:"sockoptParams"`
|
|
FinalMask jx.Raw `json:"finalMask"`
|
|
ServerDescription OptNilString `json:"serverDescription"`
|
|
Tags []string `json:"tags"`
|
|
IsHidden OptBool `json:"isHidden"`
|
|
OverrideSniFromAddress OptBool `json:"overrideSniFromAddress"`
|
|
KeepSniBlank OptBool `json:"keepSniBlank"`
|
|
PinnedPeerCertSha256 OptNilString `json:"pinnedPeerCertSha256"`
|
|
VerifyPeerCertByName OptNilString `json:"verifyPeerCertByName"`
|
|
VlessRouteId OptNilInt `json:"vlessRouteId"`
|
|
ShuffleHost OptBool `json:"shuffleHost"`
|
|
MihomoX25519 OptBool `json:"mihomoX25519"`
|
|
MihomoIpVersion OptNilCreateHostRequestMihomoIpVersion `json:"mihomoIpVersion"`
|
|
Nodes []uuid.UUID `json:"nodes"`
|
|
XrayJsonTemplateUuid OptNilUUID `json:"xrayJsonTemplateUuid"`
|
|
// Optional. Internal squads from which the host will be excluded.
|
|
ExcludedInternalSquads []uuid.UUID `json:"excludedInternalSquads"`
|
|
// Optional. Subscription types from which the host will be excluded from.
|
|
ExcludeFromSubscriptionTypes []CreateHostRequestExcludeFromSubscriptionTypesItem `json:"excludeFromSubscriptionTypes"`
|
|
}
|
|
|
|
// GetInbound returns the value of Inbound.
|
|
func (s *CreateHostRequest) GetInbound() InboundRef {
|
|
return s.Inbound
|
|
}
|
|
|
|
// GetRemark returns the value of Remark.
|
|
func (s *CreateHostRequest) GetRemark() string {
|
|
return s.Remark
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *CreateHostRequest) GetAddress() string {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *CreateHostRequest) GetPort() int {
|
|
return s.Port
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *CreateHostRequest) GetPath() OptNilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetSni returns the value of Sni.
|
|
func (s *CreateHostRequest) GetSni() OptNilString {
|
|
return s.Sni
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *CreateHostRequest) GetHost() OptNilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetAlpn returns the value of Alpn.
|
|
func (s *CreateHostRequest) GetAlpn() OptNilCreateHostRequestAlpn {
|
|
return s.Alpn
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *CreateHostRequest) GetFingerprint() OptNilString {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *CreateHostRequest) GetIsDisabled() OptBool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetSecurityLayer returns the value of SecurityLayer.
|
|
func (s *CreateHostRequest) GetSecurityLayer() OptCreateHostRequestSecurityLayer {
|
|
return s.SecurityLayer
|
|
}
|
|
|
|
// GetXhttpExtraParams returns the value of XhttpExtraParams.
|
|
func (s *CreateHostRequest) GetXhttpExtraParams() jx.Raw {
|
|
return s.XhttpExtraParams
|
|
}
|
|
|
|
// GetMuxParams returns the value of MuxParams.
|
|
func (s *CreateHostRequest) GetMuxParams() jx.Raw {
|
|
return s.MuxParams
|
|
}
|
|
|
|
// GetSockoptParams returns the value of SockoptParams.
|
|
func (s *CreateHostRequest) GetSockoptParams() jx.Raw {
|
|
return s.SockoptParams
|
|
}
|
|
|
|
// GetFinalMask returns the value of FinalMask.
|
|
func (s *CreateHostRequest) GetFinalMask() jx.Raw {
|
|
return s.FinalMask
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *CreateHostRequest) GetServerDescription() OptNilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *CreateHostRequest) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetIsHidden returns the value of IsHidden.
|
|
func (s *CreateHostRequest) GetIsHidden() OptBool {
|
|
return s.IsHidden
|
|
}
|
|
|
|
// GetOverrideSniFromAddress returns the value of OverrideSniFromAddress.
|
|
func (s *CreateHostRequest) GetOverrideSniFromAddress() OptBool {
|
|
return s.OverrideSniFromAddress
|
|
}
|
|
|
|
// GetKeepSniBlank returns the value of KeepSniBlank.
|
|
func (s *CreateHostRequest) GetKeepSniBlank() OptBool {
|
|
return s.KeepSniBlank
|
|
}
|
|
|
|
// GetPinnedPeerCertSha256 returns the value of PinnedPeerCertSha256.
|
|
func (s *CreateHostRequest) GetPinnedPeerCertSha256() OptNilString {
|
|
return s.PinnedPeerCertSha256
|
|
}
|
|
|
|
// GetVerifyPeerCertByName returns the value of VerifyPeerCertByName.
|
|
func (s *CreateHostRequest) GetVerifyPeerCertByName() OptNilString {
|
|
return s.VerifyPeerCertByName
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *CreateHostRequest) GetVlessRouteId() OptNilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// GetShuffleHost returns the value of ShuffleHost.
|
|
func (s *CreateHostRequest) GetShuffleHost() OptBool {
|
|
return s.ShuffleHost
|
|
}
|
|
|
|
// GetMihomoX25519 returns the value of MihomoX25519.
|
|
func (s *CreateHostRequest) GetMihomoX25519() OptBool {
|
|
return s.MihomoX25519
|
|
}
|
|
|
|
// GetMihomoIpVersion returns the value of MihomoIpVersion.
|
|
func (s *CreateHostRequest) GetMihomoIpVersion() OptNilCreateHostRequestMihomoIpVersion {
|
|
return s.MihomoIpVersion
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *CreateHostRequest) GetNodes() []uuid.UUID {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetXrayJsonTemplateUuid returns the value of XrayJsonTemplateUuid.
|
|
func (s *CreateHostRequest) GetXrayJsonTemplateUuid() OptNilUUID {
|
|
return s.XrayJsonTemplateUuid
|
|
}
|
|
|
|
// GetExcludedInternalSquads returns the value of ExcludedInternalSquads.
|
|
func (s *CreateHostRequest) GetExcludedInternalSquads() []uuid.UUID {
|
|
return s.ExcludedInternalSquads
|
|
}
|
|
|
|
// GetExcludeFromSubscriptionTypes returns the value of ExcludeFromSubscriptionTypes.
|
|
func (s *CreateHostRequest) GetExcludeFromSubscriptionTypes() []CreateHostRequestExcludeFromSubscriptionTypesItem {
|
|
return s.ExcludeFromSubscriptionTypes
|
|
}
|
|
|
|
// SetInbound sets the value of Inbound.
|
|
func (s *CreateHostRequest) SetInbound(val InboundRef) {
|
|
s.Inbound = val
|
|
}
|
|
|
|
// SetRemark sets the value of Remark.
|
|
func (s *CreateHostRequest) SetRemark(val string) {
|
|
s.Remark = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *CreateHostRequest) SetAddress(val string) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *CreateHostRequest) SetPort(val int) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *CreateHostRequest) SetPath(val OptNilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetSni sets the value of Sni.
|
|
func (s *CreateHostRequest) SetSni(val OptNilString) {
|
|
s.Sni = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *CreateHostRequest) SetHost(val OptNilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetAlpn sets the value of Alpn.
|
|
func (s *CreateHostRequest) SetAlpn(val OptNilCreateHostRequestAlpn) {
|
|
s.Alpn = val
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *CreateHostRequest) SetFingerprint(val OptNilString) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *CreateHostRequest) SetIsDisabled(val OptBool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetSecurityLayer sets the value of SecurityLayer.
|
|
func (s *CreateHostRequest) SetSecurityLayer(val OptCreateHostRequestSecurityLayer) {
|
|
s.SecurityLayer = val
|
|
}
|
|
|
|
// SetXhttpExtraParams sets the value of XhttpExtraParams.
|
|
func (s *CreateHostRequest) SetXhttpExtraParams(val jx.Raw) {
|
|
s.XhttpExtraParams = val
|
|
}
|
|
|
|
// SetMuxParams sets the value of MuxParams.
|
|
func (s *CreateHostRequest) SetMuxParams(val jx.Raw) {
|
|
s.MuxParams = val
|
|
}
|
|
|
|
// SetSockoptParams sets the value of SockoptParams.
|
|
func (s *CreateHostRequest) SetSockoptParams(val jx.Raw) {
|
|
s.SockoptParams = val
|
|
}
|
|
|
|
// SetFinalMask sets the value of FinalMask.
|
|
func (s *CreateHostRequest) SetFinalMask(val jx.Raw) {
|
|
s.FinalMask = val
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *CreateHostRequest) SetServerDescription(val OptNilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *CreateHostRequest) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetIsHidden sets the value of IsHidden.
|
|
func (s *CreateHostRequest) SetIsHidden(val OptBool) {
|
|
s.IsHidden = val
|
|
}
|
|
|
|
// SetOverrideSniFromAddress sets the value of OverrideSniFromAddress.
|
|
func (s *CreateHostRequest) SetOverrideSniFromAddress(val OptBool) {
|
|
s.OverrideSniFromAddress = val
|
|
}
|
|
|
|
// SetKeepSniBlank sets the value of KeepSniBlank.
|
|
func (s *CreateHostRequest) SetKeepSniBlank(val OptBool) {
|
|
s.KeepSniBlank = val
|
|
}
|
|
|
|
// SetPinnedPeerCertSha256 sets the value of PinnedPeerCertSha256.
|
|
func (s *CreateHostRequest) SetPinnedPeerCertSha256(val OptNilString) {
|
|
s.PinnedPeerCertSha256 = val
|
|
}
|
|
|
|
// SetVerifyPeerCertByName sets the value of VerifyPeerCertByName.
|
|
func (s *CreateHostRequest) SetVerifyPeerCertByName(val OptNilString) {
|
|
s.VerifyPeerCertByName = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *CreateHostRequest) SetVlessRouteId(val OptNilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// SetShuffleHost sets the value of ShuffleHost.
|
|
func (s *CreateHostRequest) SetShuffleHost(val OptBool) {
|
|
s.ShuffleHost = val
|
|
}
|
|
|
|
// SetMihomoX25519 sets the value of MihomoX25519.
|
|
func (s *CreateHostRequest) SetMihomoX25519(val OptBool) {
|
|
s.MihomoX25519 = val
|
|
}
|
|
|
|
// SetMihomoIpVersion sets the value of MihomoIpVersion.
|
|
func (s *CreateHostRequest) SetMihomoIpVersion(val OptNilCreateHostRequestMihomoIpVersion) {
|
|
s.MihomoIpVersion = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *CreateHostRequest) SetNodes(val []uuid.UUID) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetXrayJsonTemplateUuid sets the value of XrayJsonTemplateUuid.
|
|
func (s *CreateHostRequest) SetXrayJsonTemplateUuid(val OptNilUUID) {
|
|
s.XrayJsonTemplateUuid = val
|
|
}
|
|
|
|
// SetExcludedInternalSquads sets the value of ExcludedInternalSquads.
|
|
func (s *CreateHostRequest) SetExcludedInternalSquads(val []uuid.UUID) {
|
|
s.ExcludedInternalSquads = val
|
|
}
|
|
|
|
// SetExcludeFromSubscriptionTypes sets the value of ExcludeFromSubscriptionTypes.
|
|
func (s *CreateHostRequest) SetExcludeFromSubscriptionTypes(val []CreateHostRequestExcludeFromSubscriptionTypesItem) {
|
|
s.ExcludeFromSubscriptionTypes = val
|
|
}
|
|
|
|
type CreateHostRequestAlpn string
|
|
|
|
const (
|
|
CreateHostRequestAlpnH3 CreateHostRequestAlpn = "h3"
|
|
CreateHostRequestAlpnH2 CreateHostRequestAlpn = "h2"
|
|
CreateHostRequestAlpnHTTP11 CreateHostRequestAlpn = "http/1.1"
|
|
CreateHostRequestAlpnH2HTTP11 CreateHostRequestAlpn = "h2,http/1.1"
|
|
CreateHostRequestAlpnH3H2HTTP11 CreateHostRequestAlpn = "h3,h2,http/1.1"
|
|
CreateHostRequestAlpnH3H2 CreateHostRequestAlpn = "h3,h2"
|
|
)
|
|
|
|
// AllValues returns all CreateHostRequestAlpn values.
|
|
func (CreateHostRequestAlpn) AllValues() []CreateHostRequestAlpn {
|
|
return []CreateHostRequestAlpn{
|
|
CreateHostRequestAlpnH3,
|
|
CreateHostRequestAlpnH2,
|
|
CreateHostRequestAlpnHTTP11,
|
|
CreateHostRequestAlpnH2HTTP11,
|
|
CreateHostRequestAlpnH3H2HTTP11,
|
|
CreateHostRequestAlpnH3H2,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateHostRequestAlpn) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateHostRequestAlpnH3:
|
|
return []byte(s), nil
|
|
case CreateHostRequestAlpnH2:
|
|
return []byte(s), nil
|
|
case CreateHostRequestAlpnHTTP11:
|
|
return []byte(s), nil
|
|
case CreateHostRequestAlpnH2HTTP11:
|
|
return []byte(s), nil
|
|
case CreateHostRequestAlpnH3H2HTTP11:
|
|
return []byte(s), nil
|
|
case CreateHostRequestAlpnH3H2:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateHostRequestAlpn) UnmarshalText(data []byte) error {
|
|
switch CreateHostRequestAlpn(data) {
|
|
case CreateHostRequestAlpnH3:
|
|
*s = CreateHostRequestAlpnH3
|
|
return nil
|
|
case CreateHostRequestAlpnH2:
|
|
*s = CreateHostRequestAlpnH2
|
|
return nil
|
|
case CreateHostRequestAlpnHTTP11:
|
|
*s = CreateHostRequestAlpnHTTP11
|
|
return nil
|
|
case CreateHostRequestAlpnH2HTTP11:
|
|
*s = CreateHostRequestAlpnH2HTTP11
|
|
return nil
|
|
case CreateHostRequestAlpnH3H2HTTP11:
|
|
*s = CreateHostRequestAlpnH3H2HTTP11
|
|
return nil
|
|
case CreateHostRequestAlpnH3H2:
|
|
*s = CreateHostRequestAlpnH3H2
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type CreateHostRequestExcludeFromSubscriptionTypesItem string
|
|
|
|
const (
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON CreateHostRequestExcludeFromSubscriptionTypesItem = "XRAY_JSON"
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64 CreateHostRequestExcludeFromSubscriptionTypesItem = "XRAY_BASE64"
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemMIHOMO CreateHostRequestExcludeFromSubscriptionTypesItem = "MIHOMO"
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemSTASH CreateHostRequestExcludeFromSubscriptionTypesItem = "STASH"
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemCLASH CreateHostRequestExcludeFromSubscriptionTypesItem = "CLASH"
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemSINGBOX CreateHostRequestExcludeFromSubscriptionTypesItem = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all CreateHostRequestExcludeFromSubscriptionTypesItem values.
|
|
func (CreateHostRequestExcludeFromSubscriptionTypesItem) AllValues() []CreateHostRequestExcludeFromSubscriptionTypesItem {
|
|
return []CreateHostRequestExcludeFromSubscriptionTypesItem{
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON,
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64,
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemMIHOMO,
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemSTASH,
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemCLASH,
|
|
CreateHostRequestExcludeFromSubscriptionTypesItemSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateHostRequestExcludeFromSubscriptionTypesItem) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
return []byte(s), nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
return []byte(s), nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
return []byte(s), nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
return []byte(s), nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
return []byte(s), nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateHostRequestExcludeFromSubscriptionTypesItem) UnmarshalText(data []byte) error {
|
|
switch CreateHostRequestExcludeFromSubscriptionTypesItem(data) {
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON
|
|
return nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64
|
|
return nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemMIHOMO
|
|
return nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemSTASH
|
|
return nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemCLASH
|
|
return nil
|
|
case CreateHostRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
*s = CreateHostRequestExcludeFromSubscriptionTypesItemSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type CreateHostRequestMihomoIpVersion string
|
|
|
|
const (
|
|
CreateHostRequestMihomoIpVersionDual CreateHostRequestMihomoIpVersion = "dual"
|
|
CreateHostRequestMihomoIpVersionIpv4 CreateHostRequestMihomoIpVersion = "ipv4"
|
|
CreateHostRequestMihomoIpVersionIpv6 CreateHostRequestMihomoIpVersion = "ipv6"
|
|
CreateHostRequestMihomoIpVersionIpv4Prefer CreateHostRequestMihomoIpVersion = "ipv4-prefer"
|
|
CreateHostRequestMihomoIpVersionIpv6Prefer CreateHostRequestMihomoIpVersion = "ipv6-prefer"
|
|
)
|
|
|
|
// AllValues returns all CreateHostRequestMihomoIpVersion values.
|
|
func (CreateHostRequestMihomoIpVersion) AllValues() []CreateHostRequestMihomoIpVersion {
|
|
return []CreateHostRequestMihomoIpVersion{
|
|
CreateHostRequestMihomoIpVersionDual,
|
|
CreateHostRequestMihomoIpVersionIpv4,
|
|
CreateHostRequestMihomoIpVersionIpv6,
|
|
CreateHostRequestMihomoIpVersionIpv4Prefer,
|
|
CreateHostRequestMihomoIpVersionIpv6Prefer,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateHostRequestMihomoIpVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateHostRequestMihomoIpVersionDual:
|
|
return []byte(s), nil
|
|
case CreateHostRequestMihomoIpVersionIpv4:
|
|
return []byte(s), nil
|
|
case CreateHostRequestMihomoIpVersionIpv6:
|
|
return []byte(s), nil
|
|
case CreateHostRequestMihomoIpVersionIpv4Prefer:
|
|
return []byte(s), nil
|
|
case CreateHostRequestMihomoIpVersionIpv6Prefer:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateHostRequestMihomoIpVersion) UnmarshalText(data []byte) error {
|
|
switch CreateHostRequestMihomoIpVersion(data) {
|
|
case CreateHostRequestMihomoIpVersionDual:
|
|
*s = CreateHostRequestMihomoIpVersionDual
|
|
return nil
|
|
case CreateHostRequestMihomoIpVersionIpv4:
|
|
*s = CreateHostRequestMihomoIpVersionIpv4
|
|
return nil
|
|
case CreateHostRequestMihomoIpVersionIpv6:
|
|
*s = CreateHostRequestMihomoIpVersionIpv6
|
|
return nil
|
|
case CreateHostRequestMihomoIpVersionIpv4Prefer:
|
|
*s = CreateHostRequestMihomoIpVersionIpv4Prefer
|
|
return nil
|
|
case CreateHostRequestMihomoIpVersionIpv6Prefer:
|
|
*s = CreateHostRequestMihomoIpVersionIpv6Prefer
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type CreateHostRequestSecurityLayer string
|
|
|
|
const (
|
|
CreateHostRequestSecurityLayerDEFAULT CreateHostRequestSecurityLayer = "DEFAULT"
|
|
CreateHostRequestSecurityLayerTLS CreateHostRequestSecurityLayer = "TLS"
|
|
CreateHostRequestSecurityLayerNONE CreateHostRequestSecurityLayer = "NONE"
|
|
)
|
|
|
|
// AllValues returns all CreateHostRequestSecurityLayer values.
|
|
func (CreateHostRequestSecurityLayer) AllValues() []CreateHostRequestSecurityLayer {
|
|
return []CreateHostRequestSecurityLayer{
|
|
CreateHostRequestSecurityLayerDEFAULT,
|
|
CreateHostRequestSecurityLayerTLS,
|
|
CreateHostRequestSecurityLayerNONE,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateHostRequestSecurityLayer) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateHostRequestSecurityLayerDEFAULT:
|
|
return []byte(s), nil
|
|
case CreateHostRequestSecurityLayerTLS:
|
|
return []byte(s), nil
|
|
case CreateHostRequestSecurityLayerNONE:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateHostRequestSecurityLayer) UnmarshalText(data []byte) error {
|
|
switch CreateHostRequestSecurityLayer(data) {
|
|
case CreateHostRequestSecurityLayerDEFAULT:
|
|
*s = CreateHostRequestSecurityLayerDEFAULT
|
|
return nil
|
|
case CreateHostRequestSecurityLayerTLS:
|
|
*s = CreateHostRequestSecurityLayerTLS
|
|
return nil
|
|
case CreateHostRequestSecurityLayerNONE:
|
|
*s = CreateHostRequestSecurityLayerNONE
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateInfraBillingHistoryRecordRequest
|
|
type CreateInfraBillingHistoryRecordRequest struct {
|
|
ProviderUuid uuid.UUID `json:"providerUuid"`
|
|
Amount float64 `json:"amount"`
|
|
// Billing date. Format: 2025-01-17T15:38:45.065Z.
|
|
BilledAt time.Time `json:"billedAt"`
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) GetProviderUuid() uuid.UUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetAmount returns the value of Amount.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) GetAmount() float64 {
|
|
return s.Amount
|
|
}
|
|
|
|
// GetBilledAt returns the value of BilledAt.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) GetBilledAt() time.Time {
|
|
return s.BilledAt
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) SetProviderUuid(val uuid.UUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetAmount sets the value of Amount.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) SetAmount(val float64) {
|
|
s.Amount = val
|
|
}
|
|
|
|
// SetBilledAt sets the value of BilledAt.
|
|
func (s *CreateInfraBillingHistoryRecordRequest) SetBilledAt(val time.Time) {
|
|
s.BilledAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateInfraBillingNodeRequest
|
|
type CreateInfraBillingNodeRequest struct {
|
|
ProviderUuid uuid.UUID `json:"providerUuid"`
|
|
NodeUuid NilUUID `json:"nodeUuid"`
|
|
Name NilString `json:"name"`
|
|
// Next billing date. Format: 2025-01-17T15:38:45.065Z.
|
|
NextBillingAt time.Time `json:"nextBillingAt"`
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *CreateInfraBillingNodeRequest) GetProviderUuid() uuid.UUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *CreateInfraBillingNodeRequest) GetNodeUuid() NilUUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateInfraBillingNodeRequest) GetName() NilString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetNextBillingAt returns the value of NextBillingAt.
|
|
func (s *CreateInfraBillingNodeRequest) GetNextBillingAt() time.Time {
|
|
return s.NextBillingAt
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *CreateInfraBillingNodeRequest) SetProviderUuid(val uuid.UUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *CreateInfraBillingNodeRequest) SetNodeUuid(val NilUUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateInfraBillingNodeRequest) SetName(val NilString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetNextBillingAt sets the value of NextBillingAt.
|
|
func (s *CreateInfraBillingNodeRequest) SetNextBillingAt(val time.Time) {
|
|
s.NextBillingAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateInfraProviderRequest
|
|
type CreateInfraProviderRequest struct {
|
|
Name string `json:"name"`
|
|
FaviconLink OptURI `json:"faviconLink"`
|
|
LoginUrl OptURI `json:"loginUrl"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateInfraProviderRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *CreateInfraProviderRequest) GetFaviconLink() OptURI {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// GetLoginUrl returns the value of LoginUrl.
|
|
func (s *CreateInfraProviderRequest) GetLoginUrl() OptURI {
|
|
return s.LoginUrl
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateInfraProviderRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *CreateInfraProviderRequest) SetFaviconLink(val OptURI) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
// SetLoginUrl sets the value of LoginUrl.
|
|
func (s *CreateInfraProviderRequest) SetLoginUrl(val OptURI) {
|
|
s.LoginUrl = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateInternalSquadRequest
|
|
type CreateInternalSquadRequest struct {
|
|
Name string `json:"name"`
|
|
Inbounds []uuid.UUID `json:"inbounds"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateInternalSquadRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetInbounds returns the value of Inbounds.
|
|
func (s *CreateInternalSquadRequest) GetInbounds() []uuid.UUID {
|
|
return s.Inbounds
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateInternalSquadRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetInbounds sets the value of Inbounds.
|
|
func (s *CreateInternalSquadRequest) SetInbounds(val []uuid.UUID) {
|
|
s.Inbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateNodePluginRequest
|
|
type CreateNodePluginRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateNodePluginRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateNodePluginRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateNodePluginResponse
|
|
type CreateNodePluginResponse struct {
|
|
Response NodePlugin `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *CreateNodePluginResponse) GetResponse() NodePlugin {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *CreateNodePluginResponse) SetResponse(val NodePlugin) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*CreateNodePluginResponse) nodePluginCreateConfigRes() {}
|
|
|
|
// Ref: #/components/schemas/CreateNodeRequest
|
|
type CreateNodeRequest struct {
|
|
Name string `json:"name"`
|
|
Address string `json:"address"`
|
|
Port OptInt `json:"port"`
|
|
ProxyUrl OptNilString `json:"proxyUrl"`
|
|
IsTrafficTrackingActive OptBool `json:"isTrafficTrackingActive"`
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
NotifyPercent OptInt `json:"notifyPercent"`
|
|
TrafficResetDay OptInt `json:"trafficResetDay"`
|
|
CountryCode OptString `json:"countryCode"`
|
|
ConsumptionMultiplier OptFloat64 `json:"consumptionMultiplier"`
|
|
NodeConsumptionMultiplier OptFloat64 `json:"nodeConsumptionMultiplier"`
|
|
ConfigProfile ConfigProfileRef `json:"configProfile"`
|
|
ProviderUuid OptNilUUID `json:"providerUuid"`
|
|
Tags []string `json:"tags"`
|
|
ActivePluginUuid OptNilUUID `json:"activePluginUuid"`
|
|
Note OptString `json:"note"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateNodeRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *CreateNodeRequest) GetAddress() string {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *CreateNodeRequest) GetPort() OptInt {
|
|
return s.Port
|
|
}
|
|
|
|
// GetProxyUrl returns the value of ProxyUrl.
|
|
func (s *CreateNodeRequest) GetProxyUrl() OptNilString {
|
|
return s.ProxyUrl
|
|
}
|
|
|
|
// GetIsTrafficTrackingActive returns the value of IsTrafficTrackingActive.
|
|
func (s *CreateNodeRequest) GetIsTrafficTrackingActive() OptBool {
|
|
return s.IsTrafficTrackingActive
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *CreateNodeRequest) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetNotifyPercent returns the value of NotifyPercent.
|
|
func (s *CreateNodeRequest) GetNotifyPercent() OptInt {
|
|
return s.NotifyPercent
|
|
}
|
|
|
|
// GetTrafficResetDay returns the value of TrafficResetDay.
|
|
func (s *CreateNodeRequest) GetTrafficResetDay() OptInt {
|
|
return s.TrafficResetDay
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *CreateNodeRequest) GetCountryCode() OptString {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConsumptionMultiplier returns the value of ConsumptionMultiplier.
|
|
func (s *CreateNodeRequest) GetConsumptionMultiplier() OptFloat64 {
|
|
return s.ConsumptionMultiplier
|
|
}
|
|
|
|
// GetNodeConsumptionMultiplier returns the value of NodeConsumptionMultiplier.
|
|
func (s *CreateNodeRequest) GetNodeConsumptionMultiplier() OptFloat64 {
|
|
return s.NodeConsumptionMultiplier
|
|
}
|
|
|
|
// GetConfigProfile returns the value of ConfigProfile.
|
|
func (s *CreateNodeRequest) GetConfigProfile() ConfigProfileRef {
|
|
return s.ConfigProfile
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *CreateNodeRequest) GetProviderUuid() OptNilUUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *CreateNodeRequest) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetActivePluginUuid returns the value of ActivePluginUuid.
|
|
func (s *CreateNodeRequest) GetActivePluginUuid() OptNilUUID {
|
|
return s.ActivePluginUuid
|
|
}
|
|
|
|
// GetNote returns the value of Note.
|
|
func (s *CreateNodeRequest) GetNote() OptString {
|
|
return s.Note
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateNodeRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *CreateNodeRequest) SetAddress(val string) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *CreateNodeRequest) SetPort(val OptInt) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetProxyUrl sets the value of ProxyUrl.
|
|
func (s *CreateNodeRequest) SetProxyUrl(val OptNilString) {
|
|
s.ProxyUrl = val
|
|
}
|
|
|
|
// SetIsTrafficTrackingActive sets the value of IsTrafficTrackingActive.
|
|
func (s *CreateNodeRequest) SetIsTrafficTrackingActive(val OptBool) {
|
|
s.IsTrafficTrackingActive = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *CreateNodeRequest) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetNotifyPercent sets the value of NotifyPercent.
|
|
func (s *CreateNodeRequest) SetNotifyPercent(val OptInt) {
|
|
s.NotifyPercent = val
|
|
}
|
|
|
|
// SetTrafficResetDay sets the value of TrafficResetDay.
|
|
func (s *CreateNodeRequest) SetTrafficResetDay(val OptInt) {
|
|
s.TrafficResetDay = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *CreateNodeRequest) SetCountryCode(val OptString) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConsumptionMultiplier sets the value of ConsumptionMultiplier.
|
|
func (s *CreateNodeRequest) SetConsumptionMultiplier(val OptFloat64) {
|
|
s.ConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetNodeConsumptionMultiplier sets the value of NodeConsumptionMultiplier.
|
|
func (s *CreateNodeRequest) SetNodeConsumptionMultiplier(val OptFloat64) {
|
|
s.NodeConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetConfigProfile sets the value of ConfigProfile.
|
|
func (s *CreateNodeRequest) SetConfigProfile(val ConfigProfileRef) {
|
|
s.ConfigProfile = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *CreateNodeRequest) SetProviderUuid(val OptNilUUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *CreateNodeRequest) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetActivePluginUuid sets the value of ActivePluginUuid.
|
|
func (s *CreateNodeRequest) SetActivePluginUuid(val OptNilUUID) {
|
|
s.ActivePluginUuid = val
|
|
}
|
|
|
|
// SetNote sets the value of Note.
|
|
func (s *CreateNodeRequest) SetNote(val OptString) {
|
|
s.Note = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateSubscriptionPageConfigRequest
|
|
type CreateSubscriptionPageConfigRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateSubscriptionPageConfigRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateSubscriptionPageConfigRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateSubscriptionPageConfigResponse
|
|
type CreateSubscriptionPageConfigResponse struct {
|
|
Response Config `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *CreateSubscriptionPageConfigResponse) GetResponse() Config {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *CreateSubscriptionPageConfigResponse) SetResponse(val Config) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*CreateSubscriptionPageConfigResponse) subscriptionPageConfigCreateConfigRes() {}
|
|
|
|
// Ref: #/components/schemas/CreateSubscriptionTemplateRequest
|
|
type CreateSubscriptionTemplateRequest struct {
|
|
Name string `json:"name"`
|
|
TemplateType CreateSubscriptionTemplateRequestTemplateType `json:"templateType"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *CreateSubscriptionTemplateRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetTemplateType returns the value of TemplateType.
|
|
func (s *CreateSubscriptionTemplateRequest) GetTemplateType() CreateSubscriptionTemplateRequestTemplateType {
|
|
return s.TemplateType
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *CreateSubscriptionTemplateRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetTemplateType sets the value of TemplateType.
|
|
func (s *CreateSubscriptionTemplateRequest) SetTemplateType(val CreateSubscriptionTemplateRequestTemplateType) {
|
|
s.TemplateType = val
|
|
}
|
|
|
|
type CreateSubscriptionTemplateRequestTemplateType string
|
|
|
|
const (
|
|
CreateSubscriptionTemplateRequestTemplateTypeXRAYJSON CreateSubscriptionTemplateRequestTemplateType = "XRAY_JSON"
|
|
CreateSubscriptionTemplateRequestTemplateTypeXRAYBASE64 CreateSubscriptionTemplateRequestTemplateType = "XRAY_BASE64"
|
|
CreateSubscriptionTemplateRequestTemplateTypeMIHOMO CreateSubscriptionTemplateRequestTemplateType = "MIHOMO"
|
|
CreateSubscriptionTemplateRequestTemplateTypeSTASH CreateSubscriptionTemplateRequestTemplateType = "STASH"
|
|
CreateSubscriptionTemplateRequestTemplateTypeCLASH CreateSubscriptionTemplateRequestTemplateType = "CLASH"
|
|
CreateSubscriptionTemplateRequestTemplateTypeSINGBOX CreateSubscriptionTemplateRequestTemplateType = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all CreateSubscriptionTemplateRequestTemplateType values.
|
|
func (CreateSubscriptionTemplateRequestTemplateType) AllValues() []CreateSubscriptionTemplateRequestTemplateType {
|
|
return []CreateSubscriptionTemplateRequestTemplateType{
|
|
CreateSubscriptionTemplateRequestTemplateTypeXRAYJSON,
|
|
CreateSubscriptionTemplateRequestTemplateTypeXRAYBASE64,
|
|
CreateSubscriptionTemplateRequestTemplateTypeMIHOMO,
|
|
CreateSubscriptionTemplateRequestTemplateTypeSTASH,
|
|
CreateSubscriptionTemplateRequestTemplateTypeCLASH,
|
|
CreateSubscriptionTemplateRequestTemplateTypeSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateSubscriptionTemplateRequestTemplateType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateSubscriptionTemplateRequestTemplateTypeXRAYJSON:
|
|
return []byte(s), nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeXRAYBASE64:
|
|
return []byte(s), nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeMIHOMO:
|
|
return []byte(s), nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeSTASH:
|
|
return []byte(s), nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeCLASH:
|
|
return []byte(s), nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateSubscriptionTemplateRequestTemplateType) UnmarshalText(data []byte) error {
|
|
switch CreateSubscriptionTemplateRequestTemplateType(data) {
|
|
case CreateSubscriptionTemplateRequestTemplateTypeXRAYJSON:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeXRAYJSON
|
|
return nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeXRAYBASE64:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeXRAYBASE64
|
|
return nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeMIHOMO:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeMIHOMO
|
|
return nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeSTASH:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeSTASH
|
|
return nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeCLASH:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeCLASH
|
|
return nil
|
|
case CreateSubscriptionTemplateRequestTemplateTypeSINGBOX:
|
|
*s = CreateSubscriptionTemplateRequestTemplateTypeSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateUserHwidDeviceRequest
|
|
type CreateUserHwidDeviceRequest struct {
|
|
Hwid string `json:"hwid"`
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
Platform OptString `json:"platform"`
|
|
OsVersion OptString `json:"osVersion"`
|
|
DeviceModel OptString `json:"deviceModel"`
|
|
UserAgent OptString `json:"userAgent"`
|
|
RequestIp OptString `json:"requestIp"`
|
|
}
|
|
|
|
// GetHwid returns the value of Hwid.
|
|
func (s *CreateUserHwidDeviceRequest) GetHwid() string {
|
|
return s.Hwid
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *CreateUserHwidDeviceRequest) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetPlatform returns the value of Platform.
|
|
func (s *CreateUserHwidDeviceRequest) GetPlatform() OptString {
|
|
return s.Platform
|
|
}
|
|
|
|
// GetOsVersion returns the value of OsVersion.
|
|
func (s *CreateUserHwidDeviceRequest) GetOsVersion() OptString {
|
|
return s.OsVersion
|
|
}
|
|
|
|
// GetDeviceModel returns the value of DeviceModel.
|
|
func (s *CreateUserHwidDeviceRequest) GetDeviceModel() OptString {
|
|
return s.DeviceModel
|
|
}
|
|
|
|
// GetUserAgent returns the value of UserAgent.
|
|
func (s *CreateUserHwidDeviceRequest) GetUserAgent() OptString {
|
|
return s.UserAgent
|
|
}
|
|
|
|
// GetRequestIp returns the value of RequestIp.
|
|
func (s *CreateUserHwidDeviceRequest) GetRequestIp() OptString {
|
|
return s.RequestIp
|
|
}
|
|
|
|
// SetHwid sets the value of Hwid.
|
|
func (s *CreateUserHwidDeviceRequest) SetHwid(val string) {
|
|
s.Hwid = val
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *CreateUserHwidDeviceRequest) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetPlatform sets the value of Platform.
|
|
func (s *CreateUserHwidDeviceRequest) SetPlatform(val OptString) {
|
|
s.Platform = val
|
|
}
|
|
|
|
// SetOsVersion sets the value of OsVersion.
|
|
func (s *CreateUserHwidDeviceRequest) SetOsVersion(val OptString) {
|
|
s.OsVersion = val
|
|
}
|
|
|
|
// SetDeviceModel sets the value of DeviceModel.
|
|
func (s *CreateUserHwidDeviceRequest) SetDeviceModel(val OptString) {
|
|
s.DeviceModel = val
|
|
}
|
|
|
|
// SetUserAgent sets the value of UserAgent.
|
|
func (s *CreateUserHwidDeviceRequest) SetUserAgent(val OptString) {
|
|
s.UserAgent = val
|
|
}
|
|
|
|
// SetRequestIp sets the value of RequestIp.
|
|
func (s *CreateUserHwidDeviceRequest) SetRequestIp(val OptString) {
|
|
s.RequestIp = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/CreateUserRequest
|
|
type CreateUserRequest struct {
|
|
// Unique username for the user. Required. Must be 3-36 characters long and contain only letters,
|
|
// numbers, underscores and dashes.
|
|
Username string `json:"username"`
|
|
// Optional. User account status. Defaults to ACTIVE.
|
|
Status OptCreateUserRequestStatus `json:"status"`
|
|
// Optional. Short UUID identifier for the user.
|
|
ShortUuid OptString `json:"shortUuid"`
|
|
// Optional. Password for Trojan protocol. Must be 8-32 characters.
|
|
TrojanPassword OptString `json:"trojanPassword"`
|
|
// Optional. UUID for VLESS protocol. Must be a valid UUID format.
|
|
VlessUuid OptUUID `json:"vlessUuid"`
|
|
// Optional. Password for Shadowsocks protocol. Must be 8-32 characters.
|
|
SsPassword OptString `json:"ssPassword"`
|
|
// Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
// Available reset periods.
|
|
TrafficLimitStrategy OptCreateUserRequestTrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
// Account expiration date. Required. Format: 2025-01-17T15:38:45.065Z.
|
|
ExpireAt time.Time `json:"expireAt"`
|
|
// Optional. Account creation date. Format: 2025-01-17T15:38:45.065Z.
|
|
CreatedAt OptDateTime `json:"createdAt"`
|
|
// Optional. Date of last traffic reset. Format: 2025-01-17T15:38:45.065Z.
|
|
LastTrafficResetAt OptDateTime `json:"lastTrafficResetAt"`
|
|
// Optional. Additional notes or description for the user account.
|
|
Description OptString `json:"description"`
|
|
// Optional. User tag for categorization. Max 16 characters, uppercase letters, numbers and
|
|
// underscores only.
|
|
Tag OptNilString `json:"tag"`
|
|
// Optional. Telegram user ID for notifications. Must be an integer.
|
|
TelegramId OptNilInt `json:"telegramId"`
|
|
// Optional. User email address. Must be a valid email format.
|
|
Email OptNilString `json:"email"`
|
|
// Optional. Maximum number of hardware devices allowed. Must be a positive integer.
|
|
HwidDeviceLimit OptInt `json:"hwidDeviceLimit"`
|
|
// Optional. Array of UUIDs representing enabled internal squads.
|
|
ActiveInternalSquads []uuid.UUID `json:"activeInternalSquads"`
|
|
// Optional. Pass UUID to create user with specific UUID, otherwise it will be generated
|
|
// automatically.
|
|
UUID OptUUID `json:"uuid"`
|
|
// Optional. External squad UUID.
|
|
ExternalSquadUuid OptNilUUID `json:"externalSquadUuid"`
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *CreateUserRequest) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *CreateUserRequest) GetStatus() OptCreateUserRequestStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *CreateUserRequest) GetShortUuid() OptString {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// GetTrojanPassword returns the value of TrojanPassword.
|
|
func (s *CreateUserRequest) GetTrojanPassword() OptString {
|
|
return s.TrojanPassword
|
|
}
|
|
|
|
// GetVlessUuid returns the value of VlessUuid.
|
|
func (s *CreateUserRequest) GetVlessUuid() OptUUID {
|
|
return s.VlessUuid
|
|
}
|
|
|
|
// GetSsPassword returns the value of SsPassword.
|
|
func (s *CreateUserRequest) GetSsPassword() OptString {
|
|
return s.SsPassword
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *CreateUserRequest) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *CreateUserRequest) GetTrafficLimitStrategy() OptCreateUserRequestTrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *CreateUserRequest) GetExpireAt() time.Time {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *CreateUserRequest) GetCreatedAt() OptDateTime {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetLastTrafficResetAt returns the value of LastTrafficResetAt.
|
|
func (s *CreateUserRequest) GetLastTrafficResetAt() OptDateTime {
|
|
return s.LastTrafficResetAt
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *CreateUserRequest) GetDescription() OptString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *CreateUserRequest) GetTag() OptNilString {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetTelegramId returns the value of TelegramId.
|
|
func (s *CreateUserRequest) GetTelegramId() OptNilInt {
|
|
return s.TelegramId
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *CreateUserRequest) GetEmail() OptNilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetHwidDeviceLimit returns the value of HwidDeviceLimit.
|
|
func (s *CreateUserRequest) GetHwidDeviceLimit() OptInt {
|
|
return s.HwidDeviceLimit
|
|
}
|
|
|
|
// GetActiveInternalSquads returns the value of ActiveInternalSquads.
|
|
func (s *CreateUserRequest) GetActiveInternalSquads() []uuid.UUID {
|
|
return s.ActiveInternalSquads
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *CreateUserRequest) GetUUID() OptUUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetExternalSquadUuid returns the value of ExternalSquadUuid.
|
|
func (s *CreateUserRequest) GetExternalSquadUuid() OptNilUUID {
|
|
return s.ExternalSquadUuid
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *CreateUserRequest) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *CreateUserRequest) SetStatus(val OptCreateUserRequestStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *CreateUserRequest) SetShortUuid(val OptString) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// SetTrojanPassword sets the value of TrojanPassword.
|
|
func (s *CreateUserRequest) SetTrojanPassword(val OptString) {
|
|
s.TrojanPassword = val
|
|
}
|
|
|
|
// SetVlessUuid sets the value of VlessUuid.
|
|
func (s *CreateUserRequest) SetVlessUuid(val OptUUID) {
|
|
s.VlessUuid = val
|
|
}
|
|
|
|
// SetSsPassword sets the value of SsPassword.
|
|
func (s *CreateUserRequest) SetSsPassword(val OptString) {
|
|
s.SsPassword = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *CreateUserRequest) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *CreateUserRequest) SetTrafficLimitStrategy(val OptCreateUserRequestTrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *CreateUserRequest) SetExpireAt(val time.Time) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *CreateUserRequest) SetCreatedAt(val OptDateTime) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetLastTrafficResetAt sets the value of LastTrafficResetAt.
|
|
func (s *CreateUserRequest) SetLastTrafficResetAt(val OptDateTime) {
|
|
s.LastTrafficResetAt = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *CreateUserRequest) SetDescription(val OptString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *CreateUserRequest) SetTag(val OptNilString) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetTelegramId sets the value of TelegramId.
|
|
func (s *CreateUserRequest) SetTelegramId(val OptNilInt) {
|
|
s.TelegramId = val
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *CreateUserRequest) SetEmail(val OptNilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetHwidDeviceLimit sets the value of HwidDeviceLimit.
|
|
func (s *CreateUserRequest) SetHwidDeviceLimit(val OptInt) {
|
|
s.HwidDeviceLimit = val
|
|
}
|
|
|
|
// SetActiveInternalSquads sets the value of ActiveInternalSquads.
|
|
func (s *CreateUserRequest) SetActiveInternalSquads(val []uuid.UUID) {
|
|
s.ActiveInternalSquads = val
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *CreateUserRequest) SetUUID(val OptUUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetExternalSquadUuid sets the value of ExternalSquadUuid.
|
|
func (s *CreateUserRequest) SetExternalSquadUuid(val OptNilUUID) {
|
|
s.ExternalSquadUuid = val
|
|
}
|
|
|
|
// Optional. User account status. Defaults to ACTIVE.
|
|
type CreateUserRequestStatus string
|
|
|
|
const (
|
|
CreateUserRequestStatusACTIVE CreateUserRequestStatus = "ACTIVE"
|
|
CreateUserRequestStatusDISABLED CreateUserRequestStatus = "DISABLED"
|
|
CreateUserRequestStatusLIMITED CreateUserRequestStatus = "LIMITED"
|
|
CreateUserRequestStatusEXPIRED CreateUserRequestStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all CreateUserRequestStatus values.
|
|
func (CreateUserRequestStatus) AllValues() []CreateUserRequestStatus {
|
|
return []CreateUserRequestStatus{
|
|
CreateUserRequestStatusACTIVE,
|
|
CreateUserRequestStatusDISABLED,
|
|
CreateUserRequestStatusLIMITED,
|
|
CreateUserRequestStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateUserRequestStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateUserRequestStatusACTIVE:
|
|
return []byte(s), nil
|
|
case CreateUserRequestStatusDISABLED:
|
|
return []byte(s), nil
|
|
case CreateUserRequestStatusLIMITED:
|
|
return []byte(s), nil
|
|
case CreateUserRequestStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateUserRequestStatus) UnmarshalText(data []byte) error {
|
|
switch CreateUserRequestStatus(data) {
|
|
case CreateUserRequestStatusACTIVE:
|
|
*s = CreateUserRequestStatusACTIVE
|
|
return nil
|
|
case CreateUserRequestStatusDISABLED:
|
|
*s = CreateUserRequestStatusDISABLED
|
|
return nil
|
|
case CreateUserRequestStatusLIMITED:
|
|
*s = CreateUserRequestStatusLIMITED
|
|
return nil
|
|
case CreateUserRequestStatusEXPIRED:
|
|
*s = CreateUserRequestStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Available reset periods.
|
|
type CreateUserRequestTrafficLimitStrategy string
|
|
|
|
const (
|
|
CreateUserRequestTrafficLimitStrategyNORESET CreateUserRequestTrafficLimitStrategy = "NO_RESET"
|
|
CreateUserRequestTrafficLimitStrategyDAY CreateUserRequestTrafficLimitStrategy = "DAY"
|
|
CreateUserRequestTrafficLimitStrategyWEEK CreateUserRequestTrafficLimitStrategy = "WEEK"
|
|
CreateUserRequestTrafficLimitStrategyMONTH CreateUserRequestTrafficLimitStrategy = "MONTH"
|
|
CreateUserRequestTrafficLimitStrategyMONTHROLLING CreateUserRequestTrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all CreateUserRequestTrafficLimitStrategy values.
|
|
func (CreateUserRequestTrafficLimitStrategy) AllValues() []CreateUserRequestTrafficLimitStrategy {
|
|
return []CreateUserRequestTrafficLimitStrategy{
|
|
CreateUserRequestTrafficLimitStrategyNORESET,
|
|
CreateUserRequestTrafficLimitStrategyDAY,
|
|
CreateUserRequestTrafficLimitStrategyWEEK,
|
|
CreateUserRequestTrafficLimitStrategyMONTH,
|
|
CreateUserRequestTrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s CreateUserRequestTrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case CreateUserRequestTrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case CreateUserRequestTrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case CreateUserRequestTrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case CreateUserRequestTrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case CreateUserRequestTrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *CreateUserRequestTrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch CreateUserRequestTrafficLimitStrategy(data) {
|
|
case CreateUserRequestTrafficLimitStrategyNORESET:
|
|
*s = CreateUserRequestTrafficLimitStrategyNORESET
|
|
return nil
|
|
case CreateUserRequestTrafficLimitStrategyDAY:
|
|
*s = CreateUserRequestTrafficLimitStrategyDAY
|
|
return nil
|
|
case CreateUserRequestTrafficLimitStrategyWEEK:
|
|
*s = CreateUserRequestTrafficLimitStrategyWEEK
|
|
return nil
|
|
case CreateUserRequestTrafficLimitStrategyMONTH:
|
|
*s = CreateUserRequestTrafficLimitStrategyMONTH
|
|
return nil
|
|
case CreateUserRequestTrafficLimitStrategyMONTHROLLING:
|
|
*s = CreateUserRequestTrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/CustomRemark
|
|
type CustomRemark struct {
|
|
ExpiredUsers []string `json:"expiredUsers"`
|
|
LimitedUsers []string `json:"limitedUsers"`
|
|
DisabledUsers []string `json:"disabledUsers"`
|
|
EmptyHosts []string `json:"emptyHosts"`
|
|
HWIDMaxDevicesExceeded []string `json:"HWIDMaxDevicesExceeded"`
|
|
HWIDNotSupported []string `json:"HWIDNotSupported"`
|
|
}
|
|
|
|
// GetExpiredUsers returns the value of ExpiredUsers.
|
|
func (s *CustomRemark) GetExpiredUsers() []string {
|
|
return s.ExpiredUsers
|
|
}
|
|
|
|
// GetLimitedUsers returns the value of LimitedUsers.
|
|
func (s *CustomRemark) GetLimitedUsers() []string {
|
|
return s.LimitedUsers
|
|
}
|
|
|
|
// GetDisabledUsers returns the value of DisabledUsers.
|
|
func (s *CustomRemark) GetDisabledUsers() []string {
|
|
return s.DisabledUsers
|
|
}
|
|
|
|
// GetEmptyHosts returns the value of EmptyHosts.
|
|
func (s *CustomRemark) GetEmptyHosts() []string {
|
|
return s.EmptyHosts
|
|
}
|
|
|
|
// GetHWIDMaxDevicesExceeded returns the value of HWIDMaxDevicesExceeded.
|
|
func (s *CustomRemark) GetHWIDMaxDevicesExceeded() []string {
|
|
return s.HWIDMaxDevicesExceeded
|
|
}
|
|
|
|
// GetHWIDNotSupported returns the value of HWIDNotSupported.
|
|
func (s *CustomRemark) GetHWIDNotSupported() []string {
|
|
return s.HWIDNotSupported
|
|
}
|
|
|
|
// SetExpiredUsers sets the value of ExpiredUsers.
|
|
func (s *CustomRemark) SetExpiredUsers(val []string) {
|
|
s.ExpiredUsers = val
|
|
}
|
|
|
|
// SetLimitedUsers sets the value of LimitedUsers.
|
|
func (s *CustomRemark) SetLimitedUsers(val []string) {
|
|
s.LimitedUsers = val
|
|
}
|
|
|
|
// SetDisabledUsers sets the value of DisabledUsers.
|
|
func (s *CustomRemark) SetDisabledUsers(val []string) {
|
|
s.DisabledUsers = val
|
|
}
|
|
|
|
// SetEmptyHosts sets the value of EmptyHosts.
|
|
func (s *CustomRemark) SetEmptyHosts(val []string) {
|
|
s.EmptyHosts = val
|
|
}
|
|
|
|
// SetHWIDMaxDevicesExceeded sets the value of HWIDMaxDevicesExceeded.
|
|
func (s *CustomRemark) SetHWIDMaxDevicesExceeded(val []string) {
|
|
s.HWIDMaxDevicesExceeded = val
|
|
}
|
|
|
|
// SetHWIDNotSupported sets the value of HWIDNotSupported.
|
|
func (s *CustomRemark) SetHWIDNotSupported(val []string) {
|
|
s.HWIDNotSupported = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DebugSrrMatcherRequest
|
|
type DebugSrrMatcherRequest struct {
|
|
ResponseRules ResponseRules `json:"responseRules"`
|
|
}
|
|
|
|
// GetResponseRules returns the value of ResponseRules.
|
|
func (s *DebugSrrMatcherRequest) GetResponseRules() ResponseRules {
|
|
return s.ResponseRules
|
|
}
|
|
|
|
// SetResponseRules sets the value of ResponseRules.
|
|
func (s *DebugSrrMatcherRequest) SetResponseRules(val ResponseRules) {
|
|
s.ResponseRules = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DebugSrrMatcherResponse
|
|
type DebugSrrMatcherResponse struct {
|
|
Response DebugSrrMatcherResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *DebugSrrMatcherResponse) GetResponse() DebugSrrMatcherResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *DebugSrrMatcherResponse) SetResponse(val DebugSrrMatcherResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*DebugSrrMatcherResponse) systemDebugSrrMatcherRes() {}
|
|
|
|
type DebugSrrMatcherResponseResponse struct {
|
|
Matched bool `json:"matched"`
|
|
ResponseType DebugSrrMatcherResponseResponseResponseType `json:"responseType"`
|
|
MatchedRule Rule `json:"matchedRule"`
|
|
InputHeaders DebugSrrMatcherResponseResponseInputHeaders `json:"inputHeaders"`
|
|
OutputHeaders DebugSrrMatcherResponseResponseOutputHeaders `json:"outputHeaders"`
|
|
}
|
|
|
|
// GetMatched returns the value of Matched.
|
|
func (s *DebugSrrMatcherResponseResponse) GetMatched() bool {
|
|
return s.Matched
|
|
}
|
|
|
|
// GetResponseType returns the value of ResponseType.
|
|
func (s *DebugSrrMatcherResponseResponse) GetResponseType() DebugSrrMatcherResponseResponseResponseType {
|
|
return s.ResponseType
|
|
}
|
|
|
|
// GetMatchedRule returns the value of MatchedRule.
|
|
func (s *DebugSrrMatcherResponseResponse) GetMatchedRule() Rule {
|
|
return s.MatchedRule
|
|
}
|
|
|
|
// GetInputHeaders returns the value of InputHeaders.
|
|
func (s *DebugSrrMatcherResponseResponse) GetInputHeaders() DebugSrrMatcherResponseResponseInputHeaders {
|
|
return s.InputHeaders
|
|
}
|
|
|
|
// GetOutputHeaders returns the value of OutputHeaders.
|
|
func (s *DebugSrrMatcherResponseResponse) GetOutputHeaders() DebugSrrMatcherResponseResponseOutputHeaders {
|
|
return s.OutputHeaders
|
|
}
|
|
|
|
// SetMatched sets the value of Matched.
|
|
func (s *DebugSrrMatcherResponseResponse) SetMatched(val bool) {
|
|
s.Matched = val
|
|
}
|
|
|
|
// SetResponseType sets the value of ResponseType.
|
|
func (s *DebugSrrMatcherResponseResponse) SetResponseType(val DebugSrrMatcherResponseResponseResponseType) {
|
|
s.ResponseType = val
|
|
}
|
|
|
|
// SetMatchedRule sets the value of MatchedRule.
|
|
func (s *DebugSrrMatcherResponseResponse) SetMatchedRule(val Rule) {
|
|
s.MatchedRule = val
|
|
}
|
|
|
|
// SetInputHeaders sets the value of InputHeaders.
|
|
func (s *DebugSrrMatcherResponseResponse) SetInputHeaders(val DebugSrrMatcherResponseResponseInputHeaders) {
|
|
s.InputHeaders = val
|
|
}
|
|
|
|
// SetOutputHeaders sets the value of OutputHeaders.
|
|
func (s *DebugSrrMatcherResponseResponse) SetOutputHeaders(val DebugSrrMatcherResponseResponseOutputHeaders) {
|
|
s.OutputHeaders = val
|
|
}
|
|
|
|
type DebugSrrMatcherResponseResponseInputHeaders map[string]string
|
|
|
|
func (s *DebugSrrMatcherResponseResponseInputHeaders) init() DebugSrrMatcherResponseResponseInputHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type DebugSrrMatcherResponseResponseOutputHeaders map[string]string
|
|
|
|
func (s *DebugSrrMatcherResponseResponseOutputHeaders) init() DebugSrrMatcherResponseResponseOutputHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type DebugSrrMatcherResponseResponseResponseType string
|
|
|
|
const (
|
|
DebugSrrMatcherResponseResponseResponseTypeXRAYJSON DebugSrrMatcherResponseResponseResponseType = "XRAY_JSON"
|
|
DebugSrrMatcherResponseResponseResponseTypeXRAYBASE64 DebugSrrMatcherResponseResponseResponseType = "XRAY_BASE64"
|
|
DebugSrrMatcherResponseResponseResponseTypeMIHOMO DebugSrrMatcherResponseResponseResponseType = "MIHOMO"
|
|
DebugSrrMatcherResponseResponseResponseTypeSTASH DebugSrrMatcherResponseResponseResponseType = "STASH"
|
|
DebugSrrMatcherResponseResponseResponseTypeCLASH DebugSrrMatcherResponseResponseResponseType = "CLASH"
|
|
DebugSrrMatcherResponseResponseResponseTypeSINGBOX DebugSrrMatcherResponseResponseResponseType = "SINGBOX"
|
|
DebugSrrMatcherResponseResponseResponseTypeBROWSER DebugSrrMatcherResponseResponseResponseType = "BROWSER"
|
|
DebugSrrMatcherResponseResponseResponseTypeBLOCK DebugSrrMatcherResponseResponseResponseType = "BLOCK"
|
|
DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE404 DebugSrrMatcherResponseResponseResponseType = "STATUS_CODE_404"
|
|
DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE451 DebugSrrMatcherResponseResponseResponseType = "STATUS_CODE_451"
|
|
DebugSrrMatcherResponseResponseResponseTypeSOCKETDROP DebugSrrMatcherResponseResponseResponseType = "SOCKET_DROP"
|
|
)
|
|
|
|
// AllValues returns all DebugSrrMatcherResponseResponseResponseType values.
|
|
func (DebugSrrMatcherResponseResponseResponseType) AllValues() []DebugSrrMatcherResponseResponseResponseType {
|
|
return []DebugSrrMatcherResponseResponseResponseType{
|
|
DebugSrrMatcherResponseResponseResponseTypeXRAYJSON,
|
|
DebugSrrMatcherResponseResponseResponseTypeXRAYBASE64,
|
|
DebugSrrMatcherResponseResponseResponseTypeMIHOMO,
|
|
DebugSrrMatcherResponseResponseResponseTypeSTASH,
|
|
DebugSrrMatcherResponseResponseResponseTypeCLASH,
|
|
DebugSrrMatcherResponseResponseResponseTypeSINGBOX,
|
|
DebugSrrMatcherResponseResponseResponseTypeBROWSER,
|
|
DebugSrrMatcherResponseResponseResponseTypeBLOCK,
|
|
DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE404,
|
|
DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE451,
|
|
DebugSrrMatcherResponseResponseResponseTypeSOCKETDROP,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s DebugSrrMatcherResponseResponseResponseType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case DebugSrrMatcherResponseResponseResponseTypeXRAYJSON:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeXRAYBASE64:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeMIHOMO:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTASH:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeCLASH:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSINGBOX:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeBROWSER:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeBLOCK:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE404:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE451:
|
|
return []byte(s), nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSOCKETDROP:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *DebugSrrMatcherResponseResponseResponseType) UnmarshalText(data []byte) error {
|
|
switch DebugSrrMatcherResponseResponseResponseType(data) {
|
|
case DebugSrrMatcherResponseResponseResponseTypeXRAYJSON:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeXRAYJSON
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeXRAYBASE64:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeXRAYBASE64
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeMIHOMO:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeMIHOMO
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTASH:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeSTASH
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeCLASH:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeCLASH
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSINGBOX:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeSINGBOX
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeBROWSER:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeBROWSER
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeBLOCK:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeBLOCK
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE404:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE404
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE451:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeSTATUSCODE451
|
|
return nil
|
|
case DebugSrrMatcherResponseResponseResponseTypeSOCKETDROP:
|
|
*s = DebugSrrMatcherResponseResponseResponseTypeSOCKETDROP
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// {"markdownDescription":"Settings for the **response rules** config. Optional."}.
|
|
// Ref: #/components/schemas/DebugSrrMatcherSettings
|
|
type DebugSrrMatcherSettings struct {
|
|
// {"markdownDescription":"Usually, a user's subscription may also be available via additional paths
|
|
// such as **/json**, **/stash**, or **/mihomo**. If this flag is set to **true**, access via these
|
|
// additional paths will be disabled."}.
|
|
DisableSubscriptionAccessByPath OptBool `json:"disableSubscriptionAccessByPath"`
|
|
}
|
|
|
|
// GetDisableSubscriptionAccessByPath returns the value of DisableSubscriptionAccessByPath.
|
|
func (s *DebugSrrMatcherSettings) GetDisableSubscriptionAccessByPath() OptBool {
|
|
return s.DisableSubscriptionAccessByPath
|
|
}
|
|
|
|
// SetDisableSubscriptionAccessByPath sets the value of DisableSubscriptionAccessByPath.
|
|
func (s *DebugSrrMatcherSettings) SetDisableSubscriptionAccessByPath(val OptBool) {
|
|
s.DisableSubscriptionAccessByPath = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DeleteAllUserHwidDevicesRequest
|
|
type DeleteAllUserHwidDevicesRequest struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *DeleteAllUserHwidDevicesRequest) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *DeleteAllUserHwidDevicesRequest) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DeleteApiTokenResponse
|
|
type DeleteApiTokenResponse struct {
|
|
Response bool `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *DeleteApiTokenResponse) GetResponse() bool {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *DeleteApiTokenResponse) SetResponse(val bool) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*DeleteApiTokenResponse) apiTokensDeleteRes() {}
|
|
|
|
// Ref: #/components/schemas/DeletePasskeyRequest
|
|
type DeletePasskeyRequest struct {
|
|
ID string `json:"id"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *DeletePasskeyRequest) GetID() string {
|
|
return s.ID
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *DeletePasskeyRequest) SetID(val string) {
|
|
s.ID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DeleteResponse
|
|
type DeleteResponse struct {
|
|
Response DeleteResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *DeleteResponse) GetResponse() DeleteResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *DeleteResponse) SetResponse(val DeleteResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*DeleteResponse) configProfileDeleteConfigProfileByUuidRes() {}
|
|
func (*DeleteResponse) externalSquadDeleteExternalSquadRes() {}
|
|
func (*DeleteResponse) hostsDeleteHostRes() {}
|
|
func (*DeleteResponse) infraBillingDeleteInfraProviderByUuidRes() {}
|
|
func (*DeleteResponse) internalSquadDeleteInternalSquadRes() {}
|
|
func (*DeleteResponse) nodePluginDeleteConfigRes() {}
|
|
func (*DeleteResponse) nodesDeleteNodeRes() {}
|
|
func (*DeleteResponse) subscriptionPageConfigDeleteConfigRes() {}
|
|
func (*DeleteResponse) subscriptionTemplateDeleteTemplateRes() {}
|
|
func (*DeleteResponse) usersDeleteUserRes() {}
|
|
|
|
type DeleteResponseResponse struct {
|
|
IsDeleted bool `json:"isDeleted"`
|
|
}
|
|
|
|
// GetIsDeleted returns the value of IsDeleted.
|
|
func (s *DeleteResponseResponse) GetIsDeleted() bool {
|
|
return s.IsDeleted
|
|
}
|
|
|
|
// SetIsDeleted sets the value of IsDeleted.
|
|
func (s *DeleteResponseResponse) SetIsDeleted(val bool) {
|
|
s.IsDeleted = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DeleteSnippetRequest
|
|
type DeleteSnippetRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *DeleteSnippetRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *DeleteSnippetRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DeleteUserHwidDeviceRequest
|
|
type DeleteUserHwidDeviceRequest struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
Hwid string `json:"hwid"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *DeleteUserHwidDeviceRequest) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetHwid returns the value of Hwid.
|
|
func (s *DeleteUserHwidDeviceRequest) GetHwid() string {
|
|
return s.Hwid
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *DeleteUserHwidDeviceRequest) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetHwid sets the value of Hwid.
|
|
func (s *DeleteUserHwidDeviceRequest) SetHwid(val string) {
|
|
s.Hwid = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Device
|
|
type Device struct {
|
|
Hwid string `json:"hwid"`
|
|
UserId float64 `json:"userId"`
|
|
Platform NilString `json:"platform"`
|
|
OsVersion NilString `json:"osVersion"`
|
|
DeviceModel NilString `json:"deviceModel"`
|
|
UserAgent NilString `json:"userAgent"`
|
|
RequestIp NilString `json:"requestIp"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetHwid returns the value of Hwid.
|
|
func (s *Device) GetHwid() string {
|
|
return s.Hwid
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *Device) GetUserId() float64 {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetPlatform returns the value of Platform.
|
|
func (s *Device) GetPlatform() NilString {
|
|
return s.Platform
|
|
}
|
|
|
|
// GetOsVersion returns the value of OsVersion.
|
|
func (s *Device) GetOsVersion() NilString {
|
|
return s.OsVersion
|
|
}
|
|
|
|
// GetDeviceModel returns the value of DeviceModel.
|
|
func (s *Device) GetDeviceModel() NilString {
|
|
return s.DeviceModel
|
|
}
|
|
|
|
// GetUserAgent returns the value of UserAgent.
|
|
func (s *Device) GetUserAgent() NilString {
|
|
return s.UserAgent
|
|
}
|
|
|
|
// GetRequestIp returns the value of RequestIp.
|
|
func (s *Device) GetRequestIp() NilString {
|
|
return s.RequestIp
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *Device) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *Device) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetHwid sets the value of Hwid.
|
|
func (s *Device) SetHwid(val string) {
|
|
s.Hwid = val
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *Device) SetUserId(val float64) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetPlatform sets the value of Platform.
|
|
func (s *Device) SetPlatform(val NilString) {
|
|
s.Platform = val
|
|
}
|
|
|
|
// SetOsVersion sets the value of OsVersion.
|
|
func (s *Device) SetOsVersion(val NilString) {
|
|
s.OsVersion = val
|
|
}
|
|
|
|
// SetDeviceModel sets the value of DeviceModel.
|
|
func (s *Device) SetDeviceModel(val NilString) {
|
|
s.DeviceModel = val
|
|
}
|
|
|
|
// SetUserAgent sets the value of UserAgent.
|
|
func (s *Device) SetUserAgent(val NilString) {
|
|
s.UserAgent = val
|
|
}
|
|
|
|
// SetRequestIp sets the value of RequestIp.
|
|
func (s *Device) SetRequestIp(val NilString) {
|
|
s.RequestIp = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *Device) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *Device) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/DropConnectionsRequest
|
|
type DropConnectionsRequest struct {
|
|
DropBy DropConnectionsRequestDropBy `json:"dropBy"`
|
|
TargetNodes DropConnectionsRequestTargetNodes `json:"targetNodes"`
|
|
}
|
|
|
|
// GetDropBy returns the value of DropBy.
|
|
func (s *DropConnectionsRequest) GetDropBy() DropConnectionsRequestDropBy {
|
|
return s.DropBy
|
|
}
|
|
|
|
// GetTargetNodes returns the value of TargetNodes.
|
|
func (s *DropConnectionsRequest) GetTargetNodes() DropConnectionsRequestTargetNodes {
|
|
return s.TargetNodes
|
|
}
|
|
|
|
// SetDropBy sets the value of DropBy.
|
|
func (s *DropConnectionsRequest) SetDropBy(val DropConnectionsRequestDropBy) {
|
|
s.DropBy = val
|
|
}
|
|
|
|
// SetTargetNodes sets the value of TargetNodes.
|
|
func (s *DropConnectionsRequest) SetTargetNodes(val DropConnectionsRequestTargetNodes) {
|
|
s.TargetNodes = val
|
|
}
|
|
|
|
// DropConnectionsRequestDropBy represents sum type.
|
|
type DropConnectionsRequestDropBy struct {
|
|
Type DropConnectionsRequestDropByType // switch on this field
|
|
DropConnectionsRequestDropBy0 DropConnectionsRequestDropBy0
|
|
DropConnectionsRequestDropBy1 DropConnectionsRequestDropBy1
|
|
}
|
|
|
|
// DropConnectionsRequestDropByType is oneOf type of DropConnectionsRequestDropBy.
|
|
type DropConnectionsRequestDropByType string
|
|
|
|
// Possible values for DropConnectionsRequestDropByType.
|
|
const (
|
|
DropConnectionsRequestDropBy0DropConnectionsRequestDropBy DropConnectionsRequestDropByType = "DropConnectionsRequestDropBy0"
|
|
DropConnectionsRequestDropBy1DropConnectionsRequestDropBy DropConnectionsRequestDropByType = "DropConnectionsRequestDropBy1"
|
|
)
|
|
|
|
// IsDropConnectionsRequestDropBy0 reports whether DropConnectionsRequestDropBy is DropConnectionsRequestDropBy0.
|
|
func (s DropConnectionsRequestDropBy) IsDropConnectionsRequestDropBy0() bool {
|
|
return s.Type == DropConnectionsRequestDropBy0DropConnectionsRequestDropBy
|
|
}
|
|
|
|
// IsDropConnectionsRequestDropBy1 reports whether DropConnectionsRequestDropBy is DropConnectionsRequestDropBy1.
|
|
func (s DropConnectionsRequestDropBy) IsDropConnectionsRequestDropBy1() bool {
|
|
return s.Type == DropConnectionsRequestDropBy1DropConnectionsRequestDropBy
|
|
}
|
|
|
|
// SetDropConnectionsRequestDropBy0 sets DropConnectionsRequestDropBy to DropConnectionsRequestDropBy0.
|
|
func (s *DropConnectionsRequestDropBy) SetDropConnectionsRequestDropBy0(v DropConnectionsRequestDropBy0) {
|
|
s.Type = DropConnectionsRequestDropBy0DropConnectionsRequestDropBy
|
|
s.DropConnectionsRequestDropBy0 = v
|
|
}
|
|
|
|
// GetDropConnectionsRequestDropBy0 returns DropConnectionsRequestDropBy0 and true boolean if DropConnectionsRequestDropBy is DropConnectionsRequestDropBy0.
|
|
func (s DropConnectionsRequestDropBy) GetDropConnectionsRequestDropBy0() (v DropConnectionsRequestDropBy0, ok bool) {
|
|
if !s.IsDropConnectionsRequestDropBy0() {
|
|
return v, false
|
|
}
|
|
return s.DropConnectionsRequestDropBy0, true
|
|
}
|
|
|
|
// NewDropConnectionsRequestDropBy0DropConnectionsRequestDropBy returns new DropConnectionsRequestDropBy from DropConnectionsRequestDropBy0.
|
|
func NewDropConnectionsRequestDropBy0DropConnectionsRequestDropBy(v DropConnectionsRequestDropBy0) DropConnectionsRequestDropBy {
|
|
var s DropConnectionsRequestDropBy
|
|
s.SetDropConnectionsRequestDropBy0(v)
|
|
return s
|
|
}
|
|
|
|
// SetDropConnectionsRequestDropBy1 sets DropConnectionsRequestDropBy to DropConnectionsRequestDropBy1.
|
|
func (s *DropConnectionsRequestDropBy) SetDropConnectionsRequestDropBy1(v DropConnectionsRequestDropBy1) {
|
|
s.Type = DropConnectionsRequestDropBy1DropConnectionsRequestDropBy
|
|
s.DropConnectionsRequestDropBy1 = v
|
|
}
|
|
|
|
// GetDropConnectionsRequestDropBy1 returns DropConnectionsRequestDropBy1 and true boolean if DropConnectionsRequestDropBy is DropConnectionsRequestDropBy1.
|
|
func (s DropConnectionsRequestDropBy) GetDropConnectionsRequestDropBy1() (v DropConnectionsRequestDropBy1, ok bool) {
|
|
if !s.IsDropConnectionsRequestDropBy1() {
|
|
return v, false
|
|
}
|
|
return s.DropConnectionsRequestDropBy1, true
|
|
}
|
|
|
|
// NewDropConnectionsRequestDropBy1DropConnectionsRequestDropBy returns new DropConnectionsRequestDropBy from DropConnectionsRequestDropBy1.
|
|
func NewDropConnectionsRequestDropBy1DropConnectionsRequestDropBy(v DropConnectionsRequestDropBy1) DropConnectionsRequestDropBy {
|
|
var s DropConnectionsRequestDropBy
|
|
s.SetDropConnectionsRequestDropBy1(v)
|
|
return s
|
|
}
|
|
|
|
// Drop by user UUIDs.
|
|
type DropConnectionsRequestDropBy0 struct {
|
|
By DropConnectionsRequestDropBy0By `json:"by"`
|
|
UserUuids []uuid.UUID `json:"userUuids"`
|
|
}
|
|
|
|
// GetBy returns the value of By.
|
|
func (s *DropConnectionsRequestDropBy0) GetBy() DropConnectionsRequestDropBy0By {
|
|
return s.By
|
|
}
|
|
|
|
// GetUserUuids returns the value of UserUuids.
|
|
func (s *DropConnectionsRequestDropBy0) GetUserUuids() []uuid.UUID {
|
|
return s.UserUuids
|
|
}
|
|
|
|
// SetBy sets the value of By.
|
|
func (s *DropConnectionsRequestDropBy0) SetBy(val DropConnectionsRequestDropBy0By) {
|
|
s.By = val
|
|
}
|
|
|
|
// SetUserUuids sets the value of UserUuids.
|
|
func (s *DropConnectionsRequestDropBy0) SetUserUuids(val []uuid.UUID) {
|
|
s.UserUuids = val
|
|
}
|
|
|
|
type DropConnectionsRequestDropBy0By string
|
|
|
|
const (
|
|
DropConnectionsRequestDropBy0ByUserUuids DropConnectionsRequestDropBy0By = "userUuids"
|
|
)
|
|
|
|
// AllValues returns all DropConnectionsRequestDropBy0By values.
|
|
func (DropConnectionsRequestDropBy0By) AllValues() []DropConnectionsRequestDropBy0By {
|
|
return []DropConnectionsRequestDropBy0By{
|
|
DropConnectionsRequestDropBy0ByUserUuids,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s DropConnectionsRequestDropBy0By) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case DropConnectionsRequestDropBy0ByUserUuids:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *DropConnectionsRequestDropBy0By) UnmarshalText(data []byte) error {
|
|
switch DropConnectionsRequestDropBy0By(data) {
|
|
case DropConnectionsRequestDropBy0ByUserUuids:
|
|
*s = DropConnectionsRequestDropBy0ByUserUuids
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Drop by IP addresses.
|
|
type DropConnectionsRequestDropBy1 struct {
|
|
By DropConnectionsRequestDropBy1By `json:"by"`
|
|
IpAddresses []string `json:"ipAddresses"`
|
|
}
|
|
|
|
// GetBy returns the value of By.
|
|
func (s *DropConnectionsRequestDropBy1) GetBy() DropConnectionsRequestDropBy1By {
|
|
return s.By
|
|
}
|
|
|
|
// GetIpAddresses returns the value of IpAddresses.
|
|
func (s *DropConnectionsRequestDropBy1) GetIpAddresses() []string {
|
|
return s.IpAddresses
|
|
}
|
|
|
|
// SetBy sets the value of By.
|
|
func (s *DropConnectionsRequestDropBy1) SetBy(val DropConnectionsRequestDropBy1By) {
|
|
s.By = val
|
|
}
|
|
|
|
// SetIpAddresses sets the value of IpAddresses.
|
|
func (s *DropConnectionsRequestDropBy1) SetIpAddresses(val []string) {
|
|
s.IpAddresses = val
|
|
}
|
|
|
|
type DropConnectionsRequestDropBy1By string
|
|
|
|
const (
|
|
DropConnectionsRequestDropBy1ByIpAddresses DropConnectionsRequestDropBy1By = "ipAddresses"
|
|
)
|
|
|
|
// AllValues returns all DropConnectionsRequestDropBy1By values.
|
|
func (DropConnectionsRequestDropBy1By) AllValues() []DropConnectionsRequestDropBy1By {
|
|
return []DropConnectionsRequestDropBy1By{
|
|
DropConnectionsRequestDropBy1ByIpAddresses,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s DropConnectionsRequestDropBy1By) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case DropConnectionsRequestDropBy1ByIpAddresses:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *DropConnectionsRequestDropBy1By) UnmarshalText(data []byte) error {
|
|
switch DropConnectionsRequestDropBy1By(data) {
|
|
case DropConnectionsRequestDropBy1ByIpAddresses:
|
|
*s = DropConnectionsRequestDropBy1ByIpAddresses
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// DropConnectionsRequestTargetNodes represents sum type.
|
|
type DropConnectionsRequestTargetNodes struct {
|
|
Type DropConnectionsRequestTargetNodesType // switch on this field
|
|
DropConnectionsRequestTargetNodes0 DropConnectionsRequestTargetNodes0
|
|
DropConnectionsRequestTargetNodes1 DropConnectionsRequestTargetNodes1
|
|
}
|
|
|
|
// DropConnectionsRequestTargetNodesType is oneOf type of DropConnectionsRequestTargetNodes.
|
|
type DropConnectionsRequestTargetNodesType string
|
|
|
|
// Possible values for DropConnectionsRequestTargetNodesType.
|
|
const (
|
|
DropConnectionsRequestTargetNodes0DropConnectionsRequestTargetNodes DropConnectionsRequestTargetNodesType = "DropConnectionsRequestTargetNodes0"
|
|
DropConnectionsRequestTargetNodes1DropConnectionsRequestTargetNodes DropConnectionsRequestTargetNodesType = "DropConnectionsRequestTargetNodes1"
|
|
)
|
|
|
|
// IsDropConnectionsRequestTargetNodes0 reports whether DropConnectionsRequestTargetNodes is DropConnectionsRequestTargetNodes0.
|
|
func (s DropConnectionsRequestTargetNodes) IsDropConnectionsRequestTargetNodes0() bool {
|
|
return s.Type == DropConnectionsRequestTargetNodes0DropConnectionsRequestTargetNodes
|
|
}
|
|
|
|
// IsDropConnectionsRequestTargetNodes1 reports whether DropConnectionsRequestTargetNodes is DropConnectionsRequestTargetNodes1.
|
|
func (s DropConnectionsRequestTargetNodes) IsDropConnectionsRequestTargetNodes1() bool {
|
|
return s.Type == DropConnectionsRequestTargetNodes1DropConnectionsRequestTargetNodes
|
|
}
|
|
|
|
// SetDropConnectionsRequestTargetNodes0 sets DropConnectionsRequestTargetNodes to DropConnectionsRequestTargetNodes0.
|
|
func (s *DropConnectionsRequestTargetNodes) SetDropConnectionsRequestTargetNodes0(v DropConnectionsRequestTargetNodes0) {
|
|
s.Type = DropConnectionsRequestTargetNodes0DropConnectionsRequestTargetNodes
|
|
s.DropConnectionsRequestTargetNodes0 = v
|
|
}
|
|
|
|
// GetDropConnectionsRequestTargetNodes0 returns DropConnectionsRequestTargetNodes0 and true boolean if DropConnectionsRequestTargetNodes is DropConnectionsRequestTargetNodes0.
|
|
func (s DropConnectionsRequestTargetNodes) GetDropConnectionsRequestTargetNodes0() (v DropConnectionsRequestTargetNodes0, ok bool) {
|
|
if !s.IsDropConnectionsRequestTargetNodes0() {
|
|
return v, false
|
|
}
|
|
return s.DropConnectionsRequestTargetNodes0, true
|
|
}
|
|
|
|
// NewDropConnectionsRequestTargetNodes0DropConnectionsRequestTargetNodes returns new DropConnectionsRequestTargetNodes from DropConnectionsRequestTargetNodes0.
|
|
func NewDropConnectionsRequestTargetNodes0DropConnectionsRequestTargetNodes(v DropConnectionsRequestTargetNodes0) DropConnectionsRequestTargetNodes {
|
|
var s DropConnectionsRequestTargetNodes
|
|
s.SetDropConnectionsRequestTargetNodes0(v)
|
|
return s
|
|
}
|
|
|
|
// SetDropConnectionsRequestTargetNodes1 sets DropConnectionsRequestTargetNodes to DropConnectionsRequestTargetNodes1.
|
|
func (s *DropConnectionsRequestTargetNodes) SetDropConnectionsRequestTargetNodes1(v DropConnectionsRequestTargetNodes1) {
|
|
s.Type = DropConnectionsRequestTargetNodes1DropConnectionsRequestTargetNodes
|
|
s.DropConnectionsRequestTargetNodes1 = v
|
|
}
|
|
|
|
// GetDropConnectionsRequestTargetNodes1 returns DropConnectionsRequestTargetNodes1 and true boolean if DropConnectionsRequestTargetNodes is DropConnectionsRequestTargetNodes1.
|
|
func (s DropConnectionsRequestTargetNodes) GetDropConnectionsRequestTargetNodes1() (v DropConnectionsRequestTargetNodes1, ok bool) {
|
|
if !s.IsDropConnectionsRequestTargetNodes1() {
|
|
return v, false
|
|
}
|
|
return s.DropConnectionsRequestTargetNodes1, true
|
|
}
|
|
|
|
// NewDropConnectionsRequestTargetNodes1DropConnectionsRequestTargetNodes returns new DropConnectionsRequestTargetNodes from DropConnectionsRequestTargetNodes1.
|
|
func NewDropConnectionsRequestTargetNodes1DropConnectionsRequestTargetNodes(v DropConnectionsRequestTargetNodes1) DropConnectionsRequestTargetNodes {
|
|
var s DropConnectionsRequestTargetNodes
|
|
s.SetDropConnectionsRequestTargetNodes1(v)
|
|
return s
|
|
}
|
|
|
|
// Target all connected nodes.
|
|
type DropConnectionsRequestTargetNodes0 struct {
|
|
Target DropConnectionsRequestTargetNodes0Target `json:"target"`
|
|
}
|
|
|
|
// GetTarget returns the value of Target.
|
|
func (s *DropConnectionsRequestTargetNodes0) GetTarget() DropConnectionsRequestTargetNodes0Target {
|
|
return s.Target
|
|
}
|
|
|
|
// SetTarget sets the value of Target.
|
|
func (s *DropConnectionsRequestTargetNodes0) SetTarget(val DropConnectionsRequestTargetNodes0Target) {
|
|
s.Target = val
|
|
}
|
|
|
|
type DropConnectionsRequestTargetNodes0Target string
|
|
|
|
const (
|
|
DropConnectionsRequestTargetNodes0TargetAllNodes DropConnectionsRequestTargetNodes0Target = "allNodes"
|
|
)
|
|
|
|
// AllValues returns all DropConnectionsRequestTargetNodes0Target values.
|
|
func (DropConnectionsRequestTargetNodes0Target) AllValues() []DropConnectionsRequestTargetNodes0Target {
|
|
return []DropConnectionsRequestTargetNodes0Target{
|
|
DropConnectionsRequestTargetNodes0TargetAllNodes,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s DropConnectionsRequestTargetNodes0Target) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case DropConnectionsRequestTargetNodes0TargetAllNodes:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *DropConnectionsRequestTargetNodes0Target) UnmarshalText(data []byte) error {
|
|
switch DropConnectionsRequestTargetNodes0Target(data) {
|
|
case DropConnectionsRequestTargetNodes0TargetAllNodes:
|
|
*s = DropConnectionsRequestTargetNodes0TargetAllNodes
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Target specific nodes.
|
|
type DropConnectionsRequestTargetNodes1 struct {
|
|
Target DropConnectionsRequestTargetNodes1Target `json:"target"`
|
|
NodeUuids []uuid.UUID `json:"nodeUuids"`
|
|
}
|
|
|
|
// GetTarget returns the value of Target.
|
|
func (s *DropConnectionsRequestTargetNodes1) GetTarget() DropConnectionsRequestTargetNodes1Target {
|
|
return s.Target
|
|
}
|
|
|
|
// GetNodeUuids returns the value of NodeUuids.
|
|
func (s *DropConnectionsRequestTargetNodes1) GetNodeUuids() []uuid.UUID {
|
|
return s.NodeUuids
|
|
}
|
|
|
|
// SetTarget sets the value of Target.
|
|
func (s *DropConnectionsRequestTargetNodes1) SetTarget(val DropConnectionsRequestTargetNodes1Target) {
|
|
s.Target = val
|
|
}
|
|
|
|
// SetNodeUuids sets the value of NodeUuids.
|
|
func (s *DropConnectionsRequestTargetNodes1) SetNodeUuids(val []uuid.UUID) {
|
|
s.NodeUuids = val
|
|
}
|
|
|
|
type DropConnectionsRequestTargetNodes1Target string
|
|
|
|
const (
|
|
DropConnectionsRequestTargetNodes1TargetSpecificNodes DropConnectionsRequestTargetNodes1Target = "specificNodes"
|
|
)
|
|
|
|
// AllValues returns all DropConnectionsRequestTargetNodes1Target values.
|
|
func (DropConnectionsRequestTargetNodes1Target) AllValues() []DropConnectionsRequestTargetNodes1Target {
|
|
return []DropConnectionsRequestTargetNodes1Target{
|
|
DropConnectionsRequestTargetNodes1TargetSpecificNodes,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s DropConnectionsRequestTargetNodes1Target) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case DropConnectionsRequestTargetNodes1TargetSpecificNodes:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *DropConnectionsRequestTargetNodes1Target) UnmarshalText(data []byte) error {
|
|
switch DropConnectionsRequestTargetNodes1Target(data) {
|
|
case DropConnectionsRequestTargetNodes1TargetSpecificNodes:
|
|
*s = DropConnectionsRequestTargetNodes1TargetSpecificNodes
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// {"markdownDescription":"Encrypt response body with given parameters. Generate keypairs with Rescue
|
|
// CLI: `docker exec -it remnawave cli`, select \"Generate keypairs\"."}.
|
|
// Ref: #/components/schemas/EncryptionItem
|
|
type EncryptionItem struct {
|
|
Method EncryptionItemMethod `json:"method"`
|
|
Key string `json:"key"`
|
|
}
|
|
|
|
// GetMethod returns the value of Method.
|
|
func (s *EncryptionItem) GetMethod() EncryptionItemMethod {
|
|
return s.Method
|
|
}
|
|
|
|
// GetKey returns the value of Key.
|
|
func (s *EncryptionItem) GetKey() string {
|
|
return s.Key
|
|
}
|
|
|
|
// SetMethod sets the value of Method.
|
|
func (s *EncryptionItem) SetMethod(val EncryptionItemMethod) {
|
|
s.Method = val
|
|
}
|
|
|
|
// SetKey sets the value of Key.
|
|
func (s *EncryptionItem) SetKey(val string) {
|
|
s.Key = val
|
|
}
|
|
|
|
type EncryptionItemMethod string
|
|
|
|
const (
|
|
EncryptionItemMethodAge1 EncryptionItemMethod = "age1"
|
|
EncryptionItemMethodAge1pq1 EncryptionItemMethod = "age1pq1"
|
|
)
|
|
|
|
// AllValues returns all EncryptionItemMethod values.
|
|
func (EncryptionItemMethod) AllValues() []EncryptionItemMethod {
|
|
return []EncryptionItemMethod{
|
|
EncryptionItemMethodAge1,
|
|
EncryptionItemMethodAge1pq1,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s EncryptionItemMethod) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case EncryptionItemMethodAge1:
|
|
return []byte(s), nil
|
|
case EncryptionItemMethodAge1pq1:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *EncryptionItemMethod) UnmarshalText(data []byte) error {
|
|
switch EncryptionItemMethod(data) {
|
|
case EncryptionItemMethodAge1:
|
|
*s = EncryptionItemMethodAge1
|
|
return nil
|
|
case EncryptionItemMethodAge1pq1:
|
|
*s = EncryptionItemMethodAge1pq1
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/EventResponse
|
|
type EventResponse struct {
|
|
Response EventResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *EventResponse) GetResponse() EventResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *EventResponse) SetResponse(val EventResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*EventResponse) externalSquadAddUsersToExternalSquadRes() {}
|
|
func (*EventResponse) externalSquadRemoveUsersFromExternalSquadRes() {}
|
|
func (*EventResponse) internalSquadAddUsersToInternalSquadRes() {}
|
|
func (*EventResponse) internalSquadRemoveUsersFromInternalSquadRes() {}
|
|
func (*EventResponse) ipControlDropConnectionsRes() {}
|
|
func (*EventResponse) nodePluginPluginExecutorRes() {}
|
|
func (*EventResponse) nodesBulkNodesActionsRes() {}
|
|
func (*EventResponse) nodesBulkNodesUpdateRes() {}
|
|
func (*EventResponse) nodesProfileModificationRes() {}
|
|
func (*EventResponse) nodesResetNodeTrafficRes() {}
|
|
func (*EventResponse) nodesRestartAllNodesRes() {}
|
|
func (*EventResponse) nodesRestartNodeRes() {}
|
|
func (*EventResponse) usersBulkActionsBulkAllExtendExpirationDateRes() {}
|
|
func (*EventResponse) usersBulkActionsBulkAllResetUserTrafficRes() {}
|
|
func (*EventResponse) usersBulkActionsBulkUpdateAllUsersRes() {}
|
|
|
|
type EventResponseResponse struct {
|
|
EventSent bool `json:"eventSent"`
|
|
}
|
|
|
|
// GetEventSent returns the value of EventSent.
|
|
func (s *EventResponseResponse) GetEventSent() bool {
|
|
return s.EventSent
|
|
}
|
|
|
|
// SetEventSent sets the value of EventSent.
|
|
func (s *EventResponseResponse) SetEventSent(val bool) {
|
|
s.EventSent = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ExternalSquad
|
|
type ExternalSquad struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
Info ExternalSquadsResponInfoItem `json:"info"`
|
|
Templates []TemplateRef `json:"templates"`
|
|
SubscriptionSettings NilSubscriptionSettings `json:"subscriptionSettings"`
|
|
HostOverrides NilHostOverride `json:"hostOverrides"`
|
|
ResponseHeaders NilExternalSquadResponseHeaders `json:"responseHeaders"`
|
|
HwidSettings NilHwidSettings `json:"hwidSettings"`
|
|
CustomRemarks NilCustomRemark `json:"customRemarks"`
|
|
SubpageConfigUuid NilUUID `json:"subpageConfigUuid"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ExternalSquad) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *ExternalSquad) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *ExternalSquad) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetInfo returns the value of Info.
|
|
func (s *ExternalSquad) GetInfo() ExternalSquadsResponInfoItem {
|
|
return s.Info
|
|
}
|
|
|
|
// GetTemplates returns the value of Templates.
|
|
func (s *ExternalSquad) GetTemplates() []TemplateRef {
|
|
return s.Templates
|
|
}
|
|
|
|
// GetSubscriptionSettings returns the value of SubscriptionSettings.
|
|
func (s *ExternalSquad) GetSubscriptionSettings() NilSubscriptionSettings {
|
|
return s.SubscriptionSettings
|
|
}
|
|
|
|
// GetHostOverrides returns the value of HostOverrides.
|
|
func (s *ExternalSquad) GetHostOverrides() NilHostOverride {
|
|
return s.HostOverrides
|
|
}
|
|
|
|
// GetResponseHeaders returns the value of ResponseHeaders.
|
|
func (s *ExternalSquad) GetResponseHeaders() NilExternalSquadResponseHeaders {
|
|
return s.ResponseHeaders
|
|
}
|
|
|
|
// GetHwidSettings returns the value of HwidSettings.
|
|
func (s *ExternalSquad) GetHwidSettings() NilHwidSettings {
|
|
return s.HwidSettings
|
|
}
|
|
|
|
// GetCustomRemarks returns the value of CustomRemarks.
|
|
func (s *ExternalSquad) GetCustomRemarks() NilCustomRemark {
|
|
return s.CustomRemarks
|
|
}
|
|
|
|
// GetSubpageConfigUuid returns the value of SubpageConfigUuid.
|
|
func (s *ExternalSquad) GetSubpageConfigUuid() NilUUID {
|
|
return s.SubpageConfigUuid
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *ExternalSquad) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *ExternalSquad) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ExternalSquad) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *ExternalSquad) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *ExternalSquad) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetInfo sets the value of Info.
|
|
func (s *ExternalSquad) SetInfo(val ExternalSquadsResponInfoItem) {
|
|
s.Info = val
|
|
}
|
|
|
|
// SetTemplates sets the value of Templates.
|
|
func (s *ExternalSquad) SetTemplates(val []TemplateRef) {
|
|
s.Templates = val
|
|
}
|
|
|
|
// SetSubscriptionSettings sets the value of SubscriptionSettings.
|
|
func (s *ExternalSquad) SetSubscriptionSettings(val NilSubscriptionSettings) {
|
|
s.SubscriptionSettings = val
|
|
}
|
|
|
|
// SetHostOverrides sets the value of HostOverrides.
|
|
func (s *ExternalSquad) SetHostOverrides(val NilHostOverride) {
|
|
s.HostOverrides = val
|
|
}
|
|
|
|
// SetResponseHeaders sets the value of ResponseHeaders.
|
|
func (s *ExternalSquad) SetResponseHeaders(val NilExternalSquadResponseHeaders) {
|
|
s.ResponseHeaders = val
|
|
}
|
|
|
|
// SetHwidSettings sets the value of HwidSettings.
|
|
func (s *ExternalSquad) SetHwidSettings(val NilHwidSettings) {
|
|
s.HwidSettings = val
|
|
}
|
|
|
|
// SetCustomRemarks sets the value of CustomRemarks.
|
|
func (s *ExternalSquad) SetCustomRemarks(val NilCustomRemark) {
|
|
s.CustomRemarks = val
|
|
}
|
|
|
|
// SetSubpageConfigUuid sets the value of SubpageConfigUuid.
|
|
func (s *ExternalSquad) SetSubpageConfigUuid(val NilUUID) {
|
|
s.SubpageConfigUuid = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *ExternalSquad) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *ExternalSquad) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// ExternalSquadCreateExternalSquadConflict is response for ExternalSquadCreateExternalSquad operation.
|
|
type ExternalSquadCreateExternalSquadConflict struct{}
|
|
|
|
func (*ExternalSquadCreateExternalSquadConflict) externalSquadCreateExternalSquadRes() {}
|
|
|
|
type ExternalSquadResponseHeaders map[string]string
|
|
|
|
func (s *ExternalSquadResponseHeaders) init() ExternalSquadResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/ExternalSquadResponseResponse
|
|
type ExternalSquadResponseResponse struct {
|
|
Response ExternalSquad `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ExternalSquadResponseResponse) GetResponse() ExternalSquad {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ExternalSquadResponseResponse) SetResponse(val ExternalSquad) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ExternalSquadResponseResponse) externalSquadCreateExternalSquadRes() {}
|
|
func (*ExternalSquadResponseResponse) externalSquadGetExternalSquadByUuidRes() {}
|
|
func (*ExternalSquadResponseResponse) externalSquadUpdateExternalSquadRes() {}
|
|
|
|
// ExternalSquadUpdateExternalSquadConflict is response for ExternalSquadUpdateExternalSquad operation.
|
|
type ExternalSquadUpdateExternalSquadConflict struct{}
|
|
|
|
func (*ExternalSquadUpdateExternalSquadConflict) externalSquadUpdateExternalSquadRes() {}
|
|
|
|
// Ref: #/components/schemas/ExternalSquadsResponInfoItem
|
|
type ExternalSquadsResponInfoItem struct {
|
|
MembersCount float64 `json:"membersCount"`
|
|
}
|
|
|
|
// GetMembersCount returns the value of MembersCount.
|
|
func (s *ExternalSquadsResponInfoItem) GetMembersCount() float64 {
|
|
return s.MembersCount
|
|
}
|
|
|
|
// SetMembersCount sets the value of MembersCount.
|
|
func (s *ExternalSquadsResponInfoItem) SetMembersCount(val float64) {
|
|
s.MembersCount = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ExternalSquadsResponse
|
|
type ExternalSquadsResponse struct {
|
|
Response ExternalSquadsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ExternalSquadsResponse) GetResponse() ExternalSquadsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ExternalSquadsResponse) SetResponse(val ExternalSquadsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ExternalSquadsResponse) externalSquadGetExternalSquadsRes() {}
|
|
func (*ExternalSquadsResponse) externalSquadReorderExternalSquadsRes() {}
|
|
|
|
type ExternalSquadsResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
ExternalSquads []ExternalSquad `json:"externalSquads"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *ExternalSquadsResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetExternalSquads returns the value of ExternalSquads.
|
|
func (s *ExternalSquadsResponseResponse) GetExternalSquads() []ExternalSquad {
|
|
return s.ExternalSquads
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *ExternalSquadsResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetExternalSquads sets the value of ExternalSquads.
|
|
func (s *ExternalSquadsResponseResponse) SetExternalSquads(val []ExternalSquad) {
|
|
s.ExternalSquads = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/FetchIpsResultResponse
|
|
type FetchIpsResultResponse struct {
|
|
Response FetchIpsResultResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *FetchIpsResultResponse) GetResponse() FetchIpsResultResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *FetchIpsResultResponse) SetResponse(val FetchIpsResultResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*FetchIpsResultResponse) ipControlGetFetchIpsResultRes() {}
|
|
|
|
type FetchIpsResultResponseResponse struct {
|
|
IsCompleted bool `json:"isCompleted"`
|
|
IsFailed bool `json:"isFailed"`
|
|
Progress FetchIpsResultResponseResponseProgress `json:"progress"`
|
|
Result NilFetchIpsResultResponseResponseResult `json:"result"`
|
|
}
|
|
|
|
// GetIsCompleted returns the value of IsCompleted.
|
|
func (s *FetchIpsResultResponseResponse) GetIsCompleted() bool {
|
|
return s.IsCompleted
|
|
}
|
|
|
|
// GetIsFailed returns the value of IsFailed.
|
|
func (s *FetchIpsResultResponseResponse) GetIsFailed() bool {
|
|
return s.IsFailed
|
|
}
|
|
|
|
// GetProgress returns the value of Progress.
|
|
func (s *FetchIpsResultResponseResponse) GetProgress() FetchIpsResultResponseResponseProgress {
|
|
return s.Progress
|
|
}
|
|
|
|
// GetResult returns the value of Result.
|
|
func (s *FetchIpsResultResponseResponse) GetResult() NilFetchIpsResultResponseResponseResult {
|
|
return s.Result
|
|
}
|
|
|
|
// SetIsCompleted sets the value of IsCompleted.
|
|
func (s *FetchIpsResultResponseResponse) SetIsCompleted(val bool) {
|
|
s.IsCompleted = val
|
|
}
|
|
|
|
// SetIsFailed sets the value of IsFailed.
|
|
func (s *FetchIpsResultResponseResponse) SetIsFailed(val bool) {
|
|
s.IsFailed = val
|
|
}
|
|
|
|
// SetProgress sets the value of Progress.
|
|
func (s *FetchIpsResultResponseResponse) SetProgress(val FetchIpsResultResponseResponseProgress) {
|
|
s.Progress = val
|
|
}
|
|
|
|
// SetResult sets the value of Result.
|
|
func (s *FetchIpsResultResponseResponse) SetResult(val NilFetchIpsResultResponseResponseResult) {
|
|
s.Result = val
|
|
}
|
|
|
|
type FetchIpsResultResponseResponseProgress struct {
|
|
Total float64 `json:"total"`
|
|
Completed float64 `json:"completed"`
|
|
Percent float64 `json:"percent"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *FetchIpsResultResponseResponseProgress) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetCompleted returns the value of Completed.
|
|
func (s *FetchIpsResultResponseResponseProgress) GetCompleted() float64 {
|
|
return s.Completed
|
|
}
|
|
|
|
// GetPercent returns the value of Percent.
|
|
func (s *FetchIpsResultResponseResponseProgress) GetPercent() float64 {
|
|
return s.Percent
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *FetchIpsResultResponseResponseProgress) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetCompleted sets the value of Completed.
|
|
func (s *FetchIpsResultResponseResponseProgress) SetCompleted(val float64) {
|
|
s.Completed = val
|
|
}
|
|
|
|
// SetPercent sets the value of Percent.
|
|
func (s *FetchIpsResultResponseResponseProgress) SetPercent(val float64) {
|
|
s.Percent = val
|
|
}
|
|
|
|
type FetchIpsResultResponseResponseResult struct {
|
|
Success bool `json:"success"`
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
UserId string `json:"userId"`
|
|
Nodes []FetchIpsResultResponseResponseResultNodesItem `json:"nodes"`
|
|
}
|
|
|
|
// GetSuccess returns the value of Success.
|
|
func (s *FetchIpsResultResponseResponseResult) GetSuccess() bool {
|
|
return s.Success
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *FetchIpsResultResponseResponseResult) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *FetchIpsResultResponseResponseResult) GetUserId() string {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *FetchIpsResultResponseResponseResult) GetNodes() []FetchIpsResultResponseResponseResultNodesItem {
|
|
return s.Nodes
|
|
}
|
|
|
|
// SetSuccess sets the value of Success.
|
|
func (s *FetchIpsResultResponseResponseResult) SetSuccess(val bool) {
|
|
s.Success = val
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *FetchIpsResultResponseResponseResult) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *FetchIpsResultResponseResponseResult) SetUserId(val string) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *FetchIpsResultResponseResponseResult) SetNodes(val []FetchIpsResultResponseResponseResultNodesItem) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
type FetchIpsResultResponseResponseResultNodesItem struct {
|
|
NodeUuid uuid.UUID `json:"nodeUuid"`
|
|
NodeName string `json:"nodeName"`
|
|
CountryCode string `json:"countryCode"`
|
|
Ips []Ips `json:"ips"`
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) GetNodeUuid() uuid.UUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetIps returns the value of Ips.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) GetIps() []Ips {
|
|
return s.Ips
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) SetNodeUuid(val uuid.UUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetIps sets the value of Ips.
|
|
func (s *FetchIpsResultResponseResponseResultNodesItem) SetIps(val []Ips) {
|
|
s.Ips = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/FetchUsersIpsResultResponse
|
|
type FetchUsersIpsResultResponse struct {
|
|
Response FetchUsersIpsResultResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *FetchUsersIpsResultResponse) GetResponse() FetchUsersIpsResultResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *FetchUsersIpsResultResponse) SetResponse(val FetchUsersIpsResultResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*FetchUsersIpsResultResponse) ipControlGetFetchUsersIpsResultRes() {}
|
|
|
|
type FetchUsersIpsResultResponseResponse struct {
|
|
IsCompleted bool `json:"isCompleted"`
|
|
IsFailed bool `json:"isFailed"`
|
|
Result NilFetchUsersIpsResultResponseResponseResult `json:"result"`
|
|
}
|
|
|
|
// GetIsCompleted returns the value of IsCompleted.
|
|
func (s *FetchUsersIpsResultResponseResponse) GetIsCompleted() bool {
|
|
return s.IsCompleted
|
|
}
|
|
|
|
// GetIsFailed returns the value of IsFailed.
|
|
func (s *FetchUsersIpsResultResponseResponse) GetIsFailed() bool {
|
|
return s.IsFailed
|
|
}
|
|
|
|
// GetResult returns the value of Result.
|
|
func (s *FetchUsersIpsResultResponseResponse) GetResult() NilFetchUsersIpsResultResponseResponseResult {
|
|
return s.Result
|
|
}
|
|
|
|
// SetIsCompleted sets the value of IsCompleted.
|
|
func (s *FetchUsersIpsResultResponseResponse) SetIsCompleted(val bool) {
|
|
s.IsCompleted = val
|
|
}
|
|
|
|
// SetIsFailed sets the value of IsFailed.
|
|
func (s *FetchUsersIpsResultResponseResponse) SetIsFailed(val bool) {
|
|
s.IsFailed = val
|
|
}
|
|
|
|
// SetResult sets the value of Result.
|
|
func (s *FetchUsersIpsResultResponseResponse) SetResult(val NilFetchUsersIpsResultResponseResponseResult) {
|
|
s.Result = val
|
|
}
|
|
|
|
type FetchUsersIpsResultResponseResponseResult struct {
|
|
Success bool `json:"success"`
|
|
NodeUuid uuid.UUID `json:"nodeUuid"`
|
|
Users []FetchUsersIpsResultResponseResponseResultUsersItem `json:"users"`
|
|
}
|
|
|
|
// GetSuccess returns the value of Success.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) GetSuccess() bool {
|
|
return s.Success
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) GetNodeUuid() uuid.UUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) GetUsers() []FetchUsersIpsResultResponseResponseResultUsersItem {
|
|
return s.Users
|
|
}
|
|
|
|
// SetSuccess sets the value of Success.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) SetSuccess(val bool) {
|
|
s.Success = val
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) SetNodeUuid(val uuid.UUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *FetchUsersIpsResultResponseResponseResult) SetUsers(val []FetchUsersIpsResultResponseResponseResultUsersItem) {
|
|
s.Users = val
|
|
}
|
|
|
|
type FetchUsersIpsResultResponseResponseResultUsersItem struct {
|
|
UserId string `json:"userId"`
|
|
Ips []Ips `json:"ips"`
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *FetchUsersIpsResultResponseResponseResultUsersItem) GetUserId() string {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetIps returns the value of Ips.
|
|
func (s *FetchUsersIpsResultResponseResponseResultUsersItem) GetIps() []Ips {
|
|
return s.Ips
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *FetchUsersIpsResultResponseResponseResultUsersItem) SetUserId(val string) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetIps sets the value of Ips.
|
|
func (s *FetchUsersIpsResultResponseResponseResultUsersItem) SetIps(val []Ips) {
|
|
s.Ips = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/FindAllApiTokensResponse
|
|
type FindAllApiTokensResponse struct {
|
|
Response FindAllApiTokensResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *FindAllApiTokensResponse) GetResponse() FindAllApiTokensResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *FindAllApiTokensResponse) SetResponse(val FindAllApiTokensResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*FindAllApiTokensResponse) apiTokensFindAllRes() {}
|
|
|
|
type FindAllApiTokensResponseResponse struct {
|
|
Tokens []FindAllApiTokensResponseResponseTokensItem `json:"tokens"`
|
|
Docs FindAllApiTokensResponseResponseDocs `json:"docs"`
|
|
}
|
|
|
|
// GetTokens returns the value of Tokens.
|
|
func (s *FindAllApiTokensResponseResponse) GetTokens() []FindAllApiTokensResponseResponseTokensItem {
|
|
return s.Tokens
|
|
}
|
|
|
|
// GetDocs returns the value of Docs.
|
|
func (s *FindAllApiTokensResponseResponse) GetDocs() FindAllApiTokensResponseResponseDocs {
|
|
return s.Docs
|
|
}
|
|
|
|
// SetTokens sets the value of Tokens.
|
|
func (s *FindAllApiTokensResponseResponse) SetTokens(val []FindAllApiTokensResponseResponseTokensItem) {
|
|
s.Tokens = val
|
|
}
|
|
|
|
// SetDocs sets the value of Docs.
|
|
func (s *FindAllApiTokensResponseResponse) SetDocs(val FindAllApiTokensResponseResponseDocs) {
|
|
s.Docs = val
|
|
}
|
|
|
|
type FindAllApiTokensResponseResponseDocs struct {
|
|
Enabled bool `json:"enabled"`
|
|
ScalarPath NilString `json:"scalarPath"`
|
|
SwaggerPath NilString `json:"swaggerPath"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *FindAllApiTokensResponseResponseDocs) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetScalarPath returns the value of ScalarPath.
|
|
func (s *FindAllApiTokensResponseResponseDocs) GetScalarPath() NilString {
|
|
return s.ScalarPath
|
|
}
|
|
|
|
// GetSwaggerPath returns the value of SwaggerPath.
|
|
func (s *FindAllApiTokensResponseResponseDocs) GetSwaggerPath() NilString {
|
|
return s.SwaggerPath
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *FindAllApiTokensResponseResponseDocs) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetScalarPath sets the value of ScalarPath.
|
|
func (s *FindAllApiTokensResponseResponseDocs) SetScalarPath(val NilString) {
|
|
s.ScalarPath = val
|
|
}
|
|
|
|
// SetSwaggerPath sets the value of SwaggerPath.
|
|
func (s *FindAllApiTokensResponseResponseDocs) SetSwaggerPath(val NilString) {
|
|
s.SwaggerPath = val
|
|
}
|
|
|
|
type FindAllApiTokensResponseResponseTokensItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
ExpireAt time.Time `json:"expireAt"`
|
|
Scopes []string `json:"scopes"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetExpireAt() time.Time {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetScopes returns the value of Scopes.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetScopes() []string {
|
|
return s.Scopes
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetExpireAt(val time.Time) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetScopes sets the value of Scopes.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetScopes(val []string) {
|
|
s.Scopes = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *FindAllApiTokensResponseResponseTokensItem) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ForbiddenError
|
|
type ForbiddenError struct {
|
|
Message string `json:"message"`
|
|
StatusCode float64 `json:"statusCode"`
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *ForbiddenError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *ForbiddenError) GetStatusCode() float64 {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *ForbiddenError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *ForbiddenError) SetStatusCode(val float64) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
func (*ForbiddenError) authRegisterRes() {}
|
|
|
|
// Ref: #/components/schemas/GenerateX25519Response
|
|
type GenerateX25519Response struct {
|
|
Response GenerateX25519ResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GenerateX25519Response) GetResponse() GenerateX25519ResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GenerateX25519Response) SetResponse(val GenerateX25519ResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GenerateX25519Response) systemGetX25519KeypairsRes() {}
|
|
|
|
type GenerateX25519ResponseResponse struct {
|
|
Keypairs []GenerateX25519ResponseResponseKeypairsItem `json:"keypairs"`
|
|
}
|
|
|
|
// GetKeypairs returns the value of Keypairs.
|
|
func (s *GenerateX25519ResponseResponse) GetKeypairs() []GenerateX25519ResponseResponseKeypairsItem {
|
|
return s.Keypairs
|
|
}
|
|
|
|
// SetKeypairs sets the value of Keypairs.
|
|
func (s *GenerateX25519ResponseResponse) SetKeypairs(val []GenerateX25519ResponseResponseKeypairsItem) {
|
|
s.Keypairs = val
|
|
}
|
|
|
|
type GenerateX25519ResponseResponseKeypairsItem struct {
|
|
PublicKey string `json:"publicKey"`
|
|
PrivateKey string `json:"privateKey"`
|
|
}
|
|
|
|
// GetPublicKey returns the value of PublicKey.
|
|
func (s *GenerateX25519ResponseResponseKeypairsItem) GetPublicKey() string {
|
|
return s.PublicKey
|
|
}
|
|
|
|
// GetPrivateKey returns the value of PrivateKey.
|
|
func (s *GenerateX25519ResponseResponseKeypairsItem) GetPrivateKey() string {
|
|
return s.PrivateKey
|
|
}
|
|
|
|
// SetPublicKey sets the value of PublicKey.
|
|
func (s *GenerateX25519ResponseResponseKeypairsItem) SetPublicKey(val string) {
|
|
s.PublicKey = val
|
|
}
|
|
|
|
// SetPrivateKey sets the value of PrivateKey.
|
|
func (s *GenerateX25519ResponseResponseKeypairsItem) SetPrivateKey(val string) {
|
|
s.PrivateKey = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Generic
|
|
type Generic struct {
|
|
Enabled bool `json:"enabled"`
|
|
ClientId NilString `json:"clientId"`
|
|
ClientSecret NilString `json:"clientSecret"`
|
|
WithPkce bool `json:"withPkce"`
|
|
AuthorizationUrl NilString `json:"authorizationUrl"`
|
|
TokenUrl NilString `json:"tokenUrl"`
|
|
FrontendDomain NilString `json:"frontendDomain"`
|
|
AllowedEmails []string `json:"allowedEmails"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Generic) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetClientId returns the value of ClientId.
|
|
func (s *Generic) GetClientId() NilString {
|
|
return s.ClientId
|
|
}
|
|
|
|
// GetClientSecret returns the value of ClientSecret.
|
|
func (s *Generic) GetClientSecret() NilString {
|
|
return s.ClientSecret
|
|
}
|
|
|
|
// GetWithPkce returns the value of WithPkce.
|
|
func (s *Generic) GetWithPkce() bool {
|
|
return s.WithPkce
|
|
}
|
|
|
|
// GetAuthorizationUrl returns the value of AuthorizationUrl.
|
|
func (s *Generic) GetAuthorizationUrl() NilString {
|
|
return s.AuthorizationUrl
|
|
}
|
|
|
|
// GetTokenUrl returns the value of TokenUrl.
|
|
func (s *Generic) GetTokenUrl() NilString {
|
|
return s.TokenUrl
|
|
}
|
|
|
|
// GetFrontendDomain returns the value of FrontendDomain.
|
|
func (s *Generic) GetFrontendDomain() NilString {
|
|
return s.FrontendDomain
|
|
}
|
|
|
|
// GetAllowedEmails returns the value of AllowedEmails.
|
|
func (s *Generic) GetAllowedEmails() []string {
|
|
return s.AllowedEmails
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Generic) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetClientId sets the value of ClientId.
|
|
func (s *Generic) SetClientId(val NilString) {
|
|
s.ClientId = val
|
|
}
|
|
|
|
// SetClientSecret sets the value of ClientSecret.
|
|
func (s *Generic) SetClientSecret(val NilString) {
|
|
s.ClientSecret = val
|
|
}
|
|
|
|
// SetWithPkce sets the value of WithPkce.
|
|
func (s *Generic) SetWithPkce(val bool) {
|
|
s.WithPkce = val
|
|
}
|
|
|
|
// SetAuthorizationUrl sets the value of AuthorizationUrl.
|
|
func (s *Generic) SetAuthorizationUrl(val NilString) {
|
|
s.AuthorizationUrl = val
|
|
}
|
|
|
|
// SetTokenUrl sets the value of TokenUrl.
|
|
func (s *Generic) SetTokenUrl(val NilString) {
|
|
s.TokenUrl = val
|
|
}
|
|
|
|
// SetFrontendDomain sets the value of FrontendDomain.
|
|
func (s *Generic) SetFrontendDomain(val NilString) {
|
|
s.FrontendDomain = val
|
|
}
|
|
|
|
// SetAllowedEmails sets the value of AllowedEmails.
|
|
func (s *Generic) SetAllowedEmails(val []string) {
|
|
s.AllowedEmails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetAllHwidDevicesResponse
|
|
type GetAllHwidDevicesResponse struct {
|
|
Response AllHwidDevices `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetAllHwidDevicesResponse) GetResponse() AllHwidDevices {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetAllHwidDevicesResponse) SetResponse(val AllHwidDevices) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetAllHwidDevicesResponse) hwidUserDevicesGetAllUsersRes() {}
|
|
|
|
// Ref: #/components/schemas/GetAllSubscriptionsResponse
|
|
type GetAllSubscriptionsResponse struct {
|
|
Response GetAllSubscriptionsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetAllSubscriptionsResponse) GetResponse() GetAllSubscriptionsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetAllSubscriptionsResponse) SetResponse(val GetAllSubscriptionsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetAllSubscriptionsResponse) subscriptionsGetAllSubscriptionsRes() {}
|
|
|
|
type GetAllSubscriptionsResponseResponse struct {
|
|
Subscriptions []Subscription `json:"subscriptions"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetSubscriptions returns the value of Subscriptions.
|
|
func (s *GetAllSubscriptionsResponseResponse) GetSubscriptions() []Subscription {
|
|
return s.Subscriptions
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetAllSubscriptionsResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetSubscriptions sets the value of Subscriptions.
|
|
func (s *GetAllSubscriptionsResponseResponse) SetSubscriptions(val []Subscription) {
|
|
s.Subscriptions = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetAllSubscriptionsResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetAllUsersResponse
|
|
type GetAllUsersResponse struct {
|
|
Response GetAllUsersResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetAllUsersResponse) GetResponse() GetAllUsersResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetAllUsersResponse) SetResponse(val GetAllUsersResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetAllUsersResponse) usersGetAllUsersRes() {}
|
|
|
|
type GetAllUsersResponseResponse struct {
|
|
Users []UserItemInfo `json:"users"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetAllUsersResponseResponse) GetUsers() []UserItemInfo {
|
|
return s.Users
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetAllUsersResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetAllUsersResponseResponse) SetUsers(val []UserItemInfo) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetAllUsersResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetApiTokenScopesResponse
|
|
type GetApiTokenScopesResponse struct {
|
|
Response GetApiTokenScopesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetApiTokenScopesResponse) GetResponse() GetApiTokenScopesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetApiTokenScopesResponse) SetResponse(val GetApiTokenScopesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetApiTokenScopesResponse) apiTokensGetScopesRes() {}
|
|
|
|
type GetApiTokenScopesResponseResponse struct {
|
|
Wildcard string `json:"wildcard"`
|
|
Resources []GetApiTokenScopesResponseResponseResourcesItem `json:"resources"`
|
|
}
|
|
|
|
// GetWildcard returns the value of Wildcard.
|
|
func (s *GetApiTokenScopesResponseResponse) GetWildcard() string {
|
|
return s.Wildcard
|
|
}
|
|
|
|
// GetResources returns the value of Resources.
|
|
func (s *GetApiTokenScopesResponseResponse) GetResources() []GetApiTokenScopesResponseResponseResourcesItem {
|
|
return s.Resources
|
|
}
|
|
|
|
// SetWildcard sets the value of Wildcard.
|
|
func (s *GetApiTokenScopesResponseResponse) SetWildcard(val string) {
|
|
s.Wildcard = val
|
|
}
|
|
|
|
// SetResources sets the value of Resources.
|
|
func (s *GetApiTokenScopesResponseResponse) SetResources(val []GetApiTokenScopesResponseResponseResourcesItem) {
|
|
s.Resources = val
|
|
}
|
|
|
|
type GetApiTokenScopesResponseResponseResourcesItem struct {
|
|
Resource string `json:"resource"`
|
|
ResourceScopes []string `json:"resourceScopes"`
|
|
Endpoints []GetApiTokenScopesResponseResponseResourcesItemEndpointsItem `json:"endpoints"`
|
|
}
|
|
|
|
// GetResource returns the value of Resource.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) GetResource() string {
|
|
return s.Resource
|
|
}
|
|
|
|
// GetResourceScopes returns the value of ResourceScopes.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) GetResourceScopes() []string {
|
|
return s.ResourceScopes
|
|
}
|
|
|
|
// GetEndpoints returns the value of Endpoints.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) GetEndpoints() []GetApiTokenScopesResponseResponseResourcesItemEndpointsItem {
|
|
return s.Endpoints
|
|
}
|
|
|
|
// SetResource sets the value of Resource.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) SetResource(val string) {
|
|
s.Resource = val
|
|
}
|
|
|
|
// SetResourceScopes sets the value of ResourceScopes.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) SetResourceScopes(val []string) {
|
|
s.ResourceScopes = val
|
|
}
|
|
|
|
// SetEndpoints sets the value of Endpoints.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItem) SetEndpoints(val []GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) {
|
|
s.Endpoints = val
|
|
}
|
|
|
|
type GetApiTokenScopesResponseResponseResourcesItemEndpointsItem struct {
|
|
Key string `json:"key"`
|
|
Kind GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind `json:"kind"`
|
|
Method string `json:"method"`
|
|
Path string `json:"path"`
|
|
Description string `json:"description"`
|
|
}
|
|
|
|
// GetKey returns the value of Key.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) GetKey() string {
|
|
return s.Key
|
|
}
|
|
|
|
// GetKind returns the value of Kind.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) GetKind() GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind {
|
|
return s.Kind
|
|
}
|
|
|
|
// GetMethod returns the value of Method.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) GetMethod() string {
|
|
return s.Method
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) GetPath() string {
|
|
return s.Path
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) GetDescription() string {
|
|
return s.Description
|
|
}
|
|
|
|
// SetKey sets the value of Key.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) SetKey(val string) {
|
|
s.Key = val
|
|
}
|
|
|
|
// SetKind sets the value of Kind.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) SetKind(val GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind) {
|
|
s.Kind = val
|
|
}
|
|
|
|
// SetMethod sets the value of Method.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) SetMethod(val string) {
|
|
s.Method = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) SetPath(val string) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItem) SetDescription(val string) {
|
|
s.Description = val
|
|
}
|
|
|
|
type GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind string
|
|
|
|
const (
|
|
GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindRead GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind = "read"
|
|
GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindWrite GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind = "write"
|
|
)
|
|
|
|
// AllValues returns all GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind values.
|
|
func (GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind) AllValues() []GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind {
|
|
return []GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind{
|
|
GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindRead,
|
|
GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindWrite,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindRead:
|
|
return []byte(s), nil
|
|
case GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindWrite:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind) UnmarshalText(data []byte) error {
|
|
switch GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKind(data) {
|
|
case GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindRead:
|
|
*s = GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindRead
|
|
return nil
|
|
case GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindWrite:
|
|
*s = GetApiTokenScopesResponseResponseResourcesItemEndpointsItemKindWrite
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetBandwidthStatsResponse
|
|
type GetBandwidthStatsResponse struct {
|
|
Response GetBandwidthStatsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetBandwidthStatsResponse) GetResponse() GetBandwidthStatsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetBandwidthStatsResponse) SetResponse(val GetBandwidthStatsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetBandwidthStatsResponse) systemGetBandwidthStatsRes() {}
|
|
|
|
type GetBandwidthStatsResponseResponse struct {
|
|
BandwidthLastTwoDays BandwidthLastTwoDays `json:"bandwidthLastTwoDays"`
|
|
BandwidthLastSevenDays BandwidthLastTwoDays `json:"bandwidthLastSevenDays"`
|
|
BandwidthLast30Days BandwidthLastTwoDays `json:"bandwidthLast30Days"`
|
|
BandwidthCalendarMonth BandwidthLastTwoDays `json:"bandwidthCalendarMonth"`
|
|
BandwidthCurrentYear BandwidthLastTwoDays `json:"bandwidthCurrentYear"`
|
|
}
|
|
|
|
// GetBandwidthLastTwoDays returns the value of BandwidthLastTwoDays.
|
|
func (s *GetBandwidthStatsResponseResponse) GetBandwidthLastTwoDays() BandwidthLastTwoDays {
|
|
return s.BandwidthLastTwoDays
|
|
}
|
|
|
|
// GetBandwidthLastSevenDays returns the value of BandwidthLastSevenDays.
|
|
func (s *GetBandwidthStatsResponseResponse) GetBandwidthLastSevenDays() BandwidthLastTwoDays {
|
|
return s.BandwidthLastSevenDays
|
|
}
|
|
|
|
// GetBandwidthLast30Days returns the value of BandwidthLast30Days.
|
|
func (s *GetBandwidthStatsResponseResponse) GetBandwidthLast30Days() BandwidthLastTwoDays {
|
|
return s.BandwidthLast30Days
|
|
}
|
|
|
|
// GetBandwidthCalendarMonth returns the value of BandwidthCalendarMonth.
|
|
func (s *GetBandwidthStatsResponseResponse) GetBandwidthCalendarMonth() BandwidthLastTwoDays {
|
|
return s.BandwidthCalendarMonth
|
|
}
|
|
|
|
// GetBandwidthCurrentYear returns the value of BandwidthCurrentYear.
|
|
func (s *GetBandwidthStatsResponseResponse) GetBandwidthCurrentYear() BandwidthLastTwoDays {
|
|
return s.BandwidthCurrentYear
|
|
}
|
|
|
|
// SetBandwidthLastTwoDays sets the value of BandwidthLastTwoDays.
|
|
func (s *GetBandwidthStatsResponseResponse) SetBandwidthLastTwoDays(val BandwidthLastTwoDays) {
|
|
s.BandwidthLastTwoDays = val
|
|
}
|
|
|
|
// SetBandwidthLastSevenDays sets the value of BandwidthLastSevenDays.
|
|
func (s *GetBandwidthStatsResponseResponse) SetBandwidthLastSevenDays(val BandwidthLastTwoDays) {
|
|
s.BandwidthLastSevenDays = val
|
|
}
|
|
|
|
// SetBandwidthLast30Days sets the value of BandwidthLast30Days.
|
|
func (s *GetBandwidthStatsResponseResponse) SetBandwidthLast30Days(val BandwidthLastTwoDays) {
|
|
s.BandwidthLast30Days = val
|
|
}
|
|
|
|
// SetBandwidthCalendarMonth sets the value of BandwidthCalendarMonth.
|
|
func (s *GetBandwidthStatsResponseResponse) SetBandwidthCalendarMonth(val BandwidthLastTwoDays) {
|
|
s.BandwidthCalendarMonth = val
|
|
}
|
|
|
|
// SetBandwidthCurrentYear sets the value of BandwidthCurrentYear.
|
|
func (s *GetBandwidthStatsResponseResponse) SetBandwidthCurrentYear(val BandwidthLastTwoDays) {
|
|
s.BandwidthCurrentYear = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetConnectionKeysByUuidResponse
|
|
type GetConnectionKeysByUuidResponse struct {
|
|
Response GetConnectionKeysByUuidResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetConnectionKeysByUuidResponse) GetResponse() GetConnectionKeysByUuidResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetConnectionKeysByUuidResponse) SetResponse(val GetConnectionKeysByUuidResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetConnectionKeysByUuidResponse) subscriptionsGetConnectionKeysByUuidRes() {}
|
|
|
|
type GetConnectionKeysByUuidResponseResponse struct {
|
|
EnabledKeys []string `json:"enabledKeys"`
|
|
HiddenKeys []string `json:"hiddenKeys"`
|
|
DisabledKeys []string `json:"disabledKeys"`
|
|
}
|
|
|
|
// GetEnabledKeys returns the value of EnabledKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) GetEnabledKeys() []string {
|
|
return s.EnabledKeys
|
|
}
|
|
|
|
// GetHiddenKeys returns the value of HiddenKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) GetHiddenKeys() []string {
|
|
return s.HiddenKeys
|
|
}
|
|
|
|
// GetDisabledKeys returns the value of DisabledKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) GetDisabledKeys() []string {
|
|
return s.DisabledKeys
|
|
}
|
|
|
|
// SetEnabledKeys sets the value of EnabledKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) SetEnabledKeys(val []string) {
|
|
s.EnabledKeys = val
|
|
}
|
|
|
|
// SetHiddenKeys sets the value of HiddenKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) SetHiddenKeys(val []string) {
|
|
s.HiddenKeys = val
|
|
}
|
|
|
|
// SetDisabledKeys sets the value of DisabledKeys.
|
|
func (s *GetConnectionKeysByUuidResponseResponse) SetDisabledKeys(val []string) {
|
|
s.DisabledKeys = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetHwidDevicesStatsResponse
|
|
type GetHwidDevicesStatsResponse struct {
|
|
Response GetHwidDevicesStatsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetHwidDevicesStatsResponse) GetResponse() GetHwidDevicesStatsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetHwidDevicesStatsResponse) SetResponse(val GetHwidDevicesStatsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetHwidDevicesStatsResponse) hwidUserDevicesGetHwidDevicesStatsRes() {}
|
|
|
|
type GetHwidDevicesStatsResponseResponse struct {
|
|
ByPlatform []GetHwidDevicesStatsResponseResponseByPlatformItem `json:"byPlatform"`
|
|
Stats GetHwidDevicesStatsResponseResponseStats `json:"stats"`
|
|
}
|
|
|
|
// GetByPlatform returns the value of ByPlatform.
|
|
func (s *GetHwidDevicesStatsResponseResponse) GetByPlatform() []GetHwidDevicesStatsResponseResponseByPlatformItem {
|
|
return s.ByPlatform
|
|
}
|
|
|
|
// GetStats returns the value of Stats.
|
|
func (s *GetHwidDevicesStatsResponseResponse) GetStats() GetHwidDevicesStatsResponseResponseStats {
|
|
return s.Stats
|
|
}
|
|
|
|
// SetByPlatform sets the value of ByPlatform.
|
|
func (s *GetHwidDevicesStatsResponseResponse) SetByPlatform(val []GetHwidDevicesStatsResponseResponseByPlatformItem) {
|
|
s.ByPlatform = val
|
|
}
|
|
|
|
// SetStats sets the value of Stats.
|
|
func (s *GetHwidDevicesStatsResponseResponse) SetStats(val GetHwidDevicesStatsResponseResponseStats) {
|
|
s.Stats = val
|
|
}
|
|
|
|
type GetHwidDevicesStatsResponseResponseByPlatformItem struct {
|
|
Platform string `json:"platform"`
|
|
Count float64 `json:"count"`
|
|
ByApp []ByAppItem `json:"byApp"`
|
|
}
|
|
|
|
// GetPlatform returns the value of Platform.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) GetPlatform() string {
|
|
return s.Platform
|
|
}
|
|
|
|
// GetCount returns the value of Count.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) GetCount() float64 {
|
|
return s.Count
|
|
}
|
|
|
|
// GetByApp returns the value of ByApp.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) GetByApp() []ByAppItem {
|
|
return s.ByApp
|
|
}
|
|
|
|
// SetPlatform sets the value of Platform.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) SetPlatform(val string) {
|
|
s.Platform = val
|
|
}
|
|
|
|
// SetCount sets the value of Count.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) SetCount(val float64) {
|
|
s.Count = val
|
|
}
|
|
|
|
// SetByApp sets the value of ByApp.
|
|
func (s *GetHwidDevicesStatsResponseResponseByPlatformItem) SetByApp(val []ByAppItem) {
|
|
s.ByApp = val
|
|
}
|
|
|
|
type GetHwidDevicesStatsResponseResponseStats struct {
|
|
TotalUniqueDevices float64 `json:"totalUniqueDevices"`
|
|
TotalHwidDevices float64 `json:"totalHwidDevices"`
|
|
AverageHwidDevicesPerUser float64 `json:"averageHwidDevicesPerUser"`
|
|
}
|
|
|
|
// GetTotalUniqueDevices returns the value of TotalUniqueDevices.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) GetTotalUniqueDevices() float64 {
|
|
return s.TotalUniqueDevices
|
|
}
|
|
|
|
// GetTotalHwidDevices returns the value of TotalHwidDevices.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) GetTotalHwidDevices() float64 {
|
|
return s.TotalHwidDevices
|
|
}
|
|
|
|
// GetAverageHwidDevicesPerUser returns the value of AverageHwidDevicesPerUser.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) GetAverageHwidDevicesPerUser() float64 {
|
|
return s.AverageHwidDevicesPerUser
|
|
}
|
|
|
|
// SetTotalUniqueDevices sets the value of TotalUniqueDevices.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) SetTotalUniqueDevices(val float64) {
|
|
s.TotalUniqueDevices = val
|
|
}
|
|
|
|
// SetTotalHwidDevices sets the value of TotalHwidDevices.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) SetTotalHwidDevices(val float64) {
|
|
s.TotalHwidDevices = val
|
|
}
|
|
|
|
// SetAverageHwidDevicesPerUser sets the value of AverageHwidDevicesPerUser.
|
|
func (s *GetHwidDevicesStatsResponseResponseStats) SetAverageHwidDevicesPerUser(val float64) {
|
|
s.AverageHwidDevicesPerUser = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetInfraProvidersResponse
|
|
type GetInfraProvidersResponse struct {
|
|
Response GetInfraProvidersResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetInfraProvidersResponse) GetResponse() GetInfraProvidersResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetInfraProvidersResponse) SetResponse(val GetInfraProvidersResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetInfraProvidersResponse) infraBillingGetInfraProvidersRes() {}
|
|
|
|
type GetInfraProvidersResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
Providers []Provider `json:"providers"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetInfraProvidersResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetProviders returns the value of Providers.
|
|
func (s *GetInfraProvidersResponseResponse) GetProviders() []Provider {
|
|
return s.Providers
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetInfraProvidersResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetProviders sets the value of Providers.
|
|
func (s *GetInfraProvidersResponseResponse) SetProviders(val []Provider) {
|
|
s.Providers = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetInternalSquadAccessibleNodesResponse
|
|
type GetInternalSquadAccessibleNodesResponse struct {
|
|
Response GetInternalSquadAccessibleNodesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetInternalSquadAccessibleNodesResponse) GetResponse() GetInternalSquadAccessibleNodesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetInternalSquadAccessibleNodesResponse) SetResponse(val GetInternalSquadAccessibleNodesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetInternalSquadAccessibleNodesResponse) internalSquadGetInternalSquadAccessibleNodesRes() {}
|
|
|
|
type GetInternalSquadAccessibleNodesResponseResponse struct {
|
|
SquadUuid uuid.UUID `json:"squadUuid"`
|
|
AccessibleNodes []GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem `json:"accessibleNodes"`
|
|
}
|
|
|
|
// GetSquadUuid returns the value of SquadUuid.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponse) GetSquadUuid() uuid.UUID {
|
|
return s.SquadUuid
|
|
}
|
|
|
|
// GetAccessibleNodes returns the value of AccessibleNodes.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponse) GetAccessibleNodes() []GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem {
|
|
return s.AccessibleNodes
|
|
}
|
|
|
|
// SetSquadUuid sets the value of SquadUuid.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponse) SetSquadUuid(val uuid.UUID) {
|
|
s.SquadUuid = val
|
|
}
|
|
|
|
// SetAccessibleNodes sets the value of AccessibleNodes.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponse) SetAccessibleNodes(val []GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) {
|
|
s.AccessibleNodes = val
|
|
}
|
|
|
|
type GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
NodeName string `json:"nodeName"`
|
|
CountryCode string `json:"countryCode"`
|
|
ConfigProfileUuid uuid.UUID `json:"configProfileUuid"`
|
|
ConfigProfileName string `json:"configProfileName"`
|
|
ActiveInbounds []string `json:"activeInbounds"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConfigProfileUuid returns the value of ConfigProfileUuid.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetConfigProfileUuid() uuid.UUID {
|
|
return s.ConfigProfileUuid
|
|
}
|
|
|
|
// GetConfigProfileName returns the value of ConfigProfileName.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetConfigProfileName() string {
|
|
return s.ConfigProfileName
|
|
}
|
|
|
|
// GetActiveInbounds returns the value of ActiveInbounds.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) GetActiveInbounds() []string {
|
|
return s.ActiveInbounds
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConfigProfileUuid sets the value of ConfigProfileUuid.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetConfigProfileUuid(val uuid.UUID) {
|
|
s.ConfigProfileUuid = val
|
|
}
|
|
|
|
// SetConfigProfileName sets the value of ConfigProfileName.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetConfigProfileName(val string) {
|
|
s.ConfigProfileName = val
|
|
}
|
|
|
|
// SetActiveInbounds sets the value of ActiveInbounds.
|
|
func (s *GetInternalSquadAccessibleNodesResponseResponseAccessibleNodesItem) SetActiveInbounds(val []string) {
|
|
s.ActiveInbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetLegacyStatsNodesUsersUsageResponse
|
|
type GetLegacyStatsNodesUsersUsageResponse struct {
|
|
Response []GetLegacyStatsNodesUsersUsageResponseResponseItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponse) GetResponse() []GetLegacyStatsNodesUsersUsageResponseResponseItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponse) SetResponse(val []GetLegacyStatsNodesUsersUsageResponseResponseItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetLegacyStatsNodesUsersUsageResponse) bandwidthStatsNodesGetNodeUserUsageRes() {}
|
|
|
|
type GetLegacyStatsNodesUsersUsageResponseResponseItem struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
Username string `json:"username"`
|
|
NodeUuid uuid.UUID `json:"nodeUuid"`
|
|
Total float64 `json:"total"`
|
|
Date string `json:"date"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) GetNodeUuid() uuid.UUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) GetDate() string {
|
|
return s.Date
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) SetNodeUuid(val uuid.UUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *GetLegacyStatsNodesUsersUsageResponseResponseItem) SetDate(val string) {
|
|
s.Date = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetLegacyStatsUserUsageResponse
|
|
type GetLegacyStatsUserUsageResponse struct {
|
|
Response []GetLegacyStatsUserUsageResponseResponseItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetLegacyStatsUserUsageResponse) GetResponse() []GetLegacyStatsUserUsageResponseResponseItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetLegacyStatsUserUsageResponse) SetResponse(val []GetLegacyStatsUserUsageResponseResponseItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetLegacyStatsUserUsageResponse) bandwidthStatsUsersGetUserUsageByRangeRes() {}
|
|
|
|
type GetLegacyStatsUserUsageResponseResponseItem struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
NodeUuid uuid.UUID `json:"nodeUuid"`
|
|
NodeName string `json:"nodeName"`
|
|
CountryCode string `json:"countryCode"`
|
|
Total float64 `json:"total"`
|
|
Date string `json:"date"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetNodeUuid() uuid.UUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) GetDate() string {
|
|
return s.Date
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetNodeUuid(val uuid.UUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *GetLegacyStatsUserUsageResponseResponseItem) SetDate(val string) {
|
|
s.Date = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetMetadataResponse
|
|
type GetMetadataResponse struct {
|
|
Response GetMetadataResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetMetadataResponse) GetResponse() GetMetadataResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetMetadataResponse) SetResponse(val GetMetadataResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetMetadataResponse) systemGetMetadataRes() {}
|
|
|
|
type GetMetadataResponseResponse struct {
|
|
Version string `json:"version"`
|
|
Build GetMetadataResponseResponseBuild `json:"build"`
|
|
Git GetMetadataResponseResponseGit `json:"git"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetMetadataResponseResponse) GetVersion() string {
|
|
return s.Version
|
|
}
|
|
|
|
// GetBuild returns the value of Build.
|
|
func (s *GetMetadataResponseResponse) GetBuild() GetMetadataResponseResponseBuild {
|
|
return s.Build
|
|
}
|
|
|
|
// GetGit returns the value of Git.
|
|
func (s *GetMetadataResponseResponse) GetGit() GetMetadataResponseResponseGit {
|
|
return s.Git
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetMetadataResponseResponse) SetVersion(val string) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetBuild sets the value of Build.
|
|
func (s *GetMetadataResponseResponse) SetBuild(val GetMetadataResponseResponseBuild) {
|
|
s.Build = val
|
|
}
|
|
|
|
// SetGit sets the value of Git.
|
|
func (s *GetMetadataResponseResponse) SetGit(val GetMetadataResponseResponseGit) {
|
|
s.Git = val
|
|
}
|
|
|
|
type GetMetadataResponseResponseBuild struct {
|
|
Time string `json:"time"`
|
|
Number string `json:"number"`
|
|
}
|
|
|
|
// GetTime returns the value of Time.
|
|
func (s *GetMetadataResponseResponseBuild) GetTime() string {
|
|
return s.Time
|
|
}
|
|
|
|
// GetNumber returns the value of Number.
|
|
func (s *GetMetadataResponseResponseBuild) GetNumber() string {
|
|
return s.Number
|
|
}
|
|
|
|
// SetTime sets the value of Time.
|
|
func (s *GetMetadataResponseResponseBuild) SetTime(val string) {
|
|
s.Time = val
|
|
}
|
|
|
|
// SetNumber sets the value of Number.
|
|
func (s *GetMetadataResponseResponseBuild) SetNumber(val string) {
|
|
s.Number = val
|
|
}
|
|
|
|
type GetMetadataResponseResponseGit struct {
|
|
Backend GetMetadataResponseResponseGitBackend `json:"backend"`
|
|
Frontend GetMetadataResponseResponseGitFrontend `json:"frontend"`
|
|
}
|
|
|
|
// GetBackend returns the value of Backend.
|
|
func (s *GetMetadataResponseResponseGit) GetBackend() GetMetadataResponseResponseGitBackend {
|
|
return s.Backend
|
|
}
|
|
|
|
// GetFrontend returns the value of Frontend.
|
|
func (s *GetMetadataResponseResponseGit) GetFrontend() GetMetadataResponseResponseGitFrontend {
|
|
return s.Frontend
|
|
}
|
|
|
|
// SetBackend sets the value of Backend.
|
|
func (s *GetMetadataResponseResponseGit) SetBackend(val GetMetadataResponseResponseGitBackend) {
|
|
s.Backend = val
|
|
}
|
|
|
|
// SetFrontend sets the value of Frontend.
|
|
func (s *GetMetadataResponseResponseGit) SetFrontend(val GetMetadataResponseResponseGitFrontend) {
|
|
s.Frontend = val
|
|
}
|
|
|
|
type GetMetadataResponseResponseGitBackend struct {
|
|
CommitSha string `json:"commitSha"`
|
|
Branch string `json:"branch"`
|
|
CommitUrl string `json:"commitUrl"`
|
|
}
|
|
|
|
// GetCommitSha returns the value of CommitSha.
|
|
func (s *GetMetadataResponseResponseGitBackend) GetCommitSha() string {
|
|
return s.CommitSha
|
|
}
|
|
|
|
// GetBranch returns the value of Branch.
|
|
func (s *GetMetadataResponseResponseGitBackend) GetBranch() string {
|
|
return s.Branch
|
|
}
|
|
|
|
// GetCommitUrl returns the value of CommitUrl.
|
|
func (s *GetMetadataResponseResponseGitBackend) GetCommitUrl() string {
|
|
return s.CommitUrl
|
|
}
|
|
|
|
// SetCommitSha sets the value of CommitSha.
|
|
func (s *GetMetadataResponseResponseGitBackend) SetCommitSha(val string) {
|
|
s.CommitSha = val
|
|
}
|
|
|
|
// SetBranch sets the value of Branch.
|
|
func (s *GetMetadataResponseResponseGitBackend) SetBranch(val string) {
|
|
s.Branch = val
|
|
}
|
|
|
|
// SetCommitUrl sets the value of CommitUrl.
|
|
func (s *GetMetadataResponseResponseGitBackend) SetCommitUrl(val string) {
|
|
s.CommitUrl = val
|
|
}
|
|
|
|
type GetMetadataResponseResponseGitFrontend struct {
|
|
CommitSha string `json:"commitSha"`
|
|
CommitUrl string `json:"commitUrl"`
|
|
}
|
|
|
|
// GetCommitSha returns the value of CommitSha.
|
|
func (s *GetMetadataResponseResponseGitFrontend) GetCommitSha() string {
|
|
return s.CommitSha
|
|
}
|
|
|
|
// GetCommitUrl returns the value of CommitUrl.
|
|
func (s *GetMetadataResponseResponseGitFrontend) GetCommitUrl() string {
|
|
return s.CommitUrl
|
|
}
|
|
|
|
// SetCommitSha sets the value of CommitSha.
|
|
func (s *GetMetadataResponseResponseGitFrontend) SetCommitSha(val string) {
|
|
s.CommitSha = val
|
|
}
|
|
|
|
// SetCommitUrl sets the value of CommitUrl.
|
|
func (s *GetMetadataResponseResponseGitFrontend) SetCommitUrl(val string) {
|
|
s.CommitUrl = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetNodesMetricsResponse
|
|
type GetNodesMetricsResponse struct {
|
|
Response GetNodesMetricsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetNodesMetricsResponse) GetResponse() GetNodesMetricsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetNodesMetricsResponse) SetResponse(val GetNodesMetricsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetNodesMetricsResponse) systemGetNodesMetricsRes() {}
|
|
|
|
type GetNodesMetricsResponseResponse struct {
|
|
Nodes []GetNodesMetricsResponseResponseNodesItem `json:"nodes"`
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *GetNodesMetricsResponseResponse) GetNodes() []GetNodesMetricsResponseResponseNodesItem {
|
|
return s.Nodes
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *GetNodesMetricsResponseResponse) SetNodes(val []GetNodesMetricsResponseResponseNodesItem) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
type GetNodesMetricsResponseResponseNodesItem struct {
|
|
NodeUuid string `json:"nodeUuid"`
|
|
NodeName string `json:"nodeName"`
|
|
CountryEmoji string `json:"countryEmoji"`
|
|
ProviderName string `json:"providerName"`
|
|
UsersOnline float64 `json:"usersOnline"`
|
|
InboundsStats []InboundsStat `json:"inboundsStats"`
|
|
OutboundsStats []InboundsStat `json:"outboundsStats"`
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetNodeUuid() string {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetCountryEmoji returns the value of CountryEmoji.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetCountryEmoji() string {
|
|
return s.CountryEmoji
|
|
}
|
|
|
|
// GetProviderName returns the value of ProviderName.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetProviderName() string {
|
|
return s.ProviderName
|
|
}
|
|
|
|
// GetUsersOnline returns the value of UsersOnline.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetUsersOnline() float64 {
|
|
return s.UsersOnline
|
|
}
|
|
|
|
// GetInboundsStats returns the value of InboundsStats.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetInboundsStats() []InboundsStat {
|
|
return s.InboundsStats
|
|
}
|
|
|
|
// GetOutboundsStats returns the value of OutboundsStats.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) GetOutboundsStats() []InboundsStat {
|
|
return s.OutboundsStats
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetNodeUuid(val string) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetCountryEmoji sets the value of CountryEmoji.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetCountryEmoji(val string) {
|
|
s.CountryEmoji = val
|
|
}
|
|
|
|
// SetProviderName sets the value of ProviderName.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetProviderName(val string) {
|
|
s.ProviderName = val
|
|
}
|
|
|
|
// SetUsersOnline sets the value of UsersOnline.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetUsersOnline(val float64) {
|
|
s.UsersOnline = val
|
|
}
|
|
|
|
// SetInboundsStats sets the value of InboundsStats.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetInboundsStats(val []InboundsStat) {
|
|
s.InboundsStats = val
|
|
}
|
|
|
|
// SetOutboundsStats sets the value of OutboundsStats.
|
|
func (s *GetNodesMetricsResponseResponseNodesItem) SetOutboundsStats(val []InboundsStat) {
|
|
s.OutboundsStats = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetNodesStatisticsResponse
|
|
type GetNodesStatisticsResponse struct {
|
|
Response GetNodesStatisticsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetNodesStatisticsResponse) GetResponse() GetNodesStatisticsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetNodesStatisticsResponse) SetResponse(val GetNodesStatisticsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetNodesStatisticsResponse) systemGetNodesStatisticsRes() {}
|
|
|
|
type GetNodesStatisticsResponseResponse struct {
|
|
LastSevenDays []GetNodesStatisticsResponseResponseLastSevenDaysItem `json:"lastSevenDays"`
|
|
}
|
|
|
|
// GetLastSevenDays returns the value of LastSevenDays.
|
|
func (s *GetNodesStatisticsResponseResponse) GetLastSevenDays() []GetNodesStatisticsResponseResponseLastSevenDaysItem {
|
|
return s.LastSevenDays
|
|
}
|
|
|
|
// SetLastSevenDays sets the value of LastSevenDays.
|
|
func (s *GetNodesStatisticsResponseResponse) SetLastSevenDays(val []GetNodesStatisticsResponseResponseLastSevenDaysItem) {
|
|
s.LastSevenDays = val
|
|
}
|
|
|
|
type GetNodesStatisticsResponseResponseLastSevenDaysItem struct {
|
|
NodeName string `json:"nodeName"`
|
|
Date string `json:"date"`
|
|
TotalBytes string `json:"totalBytes"`
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetDate returns the value of Date.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) GetDate() string {
|
|
return s.Date
|
|
}
|
|
|
|
// GetTotalBytes returns the value of TotalBytes.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) GetTotalBytes() string {
|
|
return s.TotalBytes
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetDate sets the value of Date.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) SetDate(val string) {
|
|
s.Date = val
|
|
}
|
|
|
|
// SetTotalBytes sets the value of TotalBytes.
|
|
func (s *GetNodesStatisticsResponseResponseLastSevenDaysItem) SetTotalBytes(val string) {
|
|
s.TotalBytes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetPubKeyResponse
|
|
type GetPubKeyResponse struct {
|
|
Response GetPubKeyResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetPubKeyResponse) GetResponse() GetPubKeyResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetPubKeyResponse) SetResponse(val GetPubKeyResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetPubKeyResponse) keygenGenerateKeyRes() {}
|
|
|
|
type GetPubKeyResponseResponse struct {
|
|
PubKey string `json:"pubKey"`
|
|
}
|
|
|
|
// GetPubKey returns the value of PubKey.
|
|
func (s *GetPubKeyResponseResponse) GetPubKey() string {
|
|
return s.PubKey
|
|
}
|
|
|
|
// SetPubKey sets the value of PubKey.
|
|
func (s *GetPubKeyResponseResponse) SetPubKey(val string) {
|
|
s.PubKey = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetRawSubscriptionByShortUuidResponse
|
|
type GetRawSubscriptionByShortUuidResponse struct {
|
|
Response GetRawSubscriptionByShortUuidResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetRawSubscriptionByShortUuidResponse) GetResponse() GetRawSubscriptionByShortUuidResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetRawSubscriptionByShortUuidResponse) SetResponse(val GetRawSubscriptionByShortUuidResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetRawSubscriptionByShortUuidResponse) subscriptionsGetRawSubscriptionByShortUuidRes() {}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponse struct {
|
|
User UserItemInfo `json:"user"`
|
|
ConvertedUserInfo GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo `json:"convertedUserInfo"`
|
|
Headers GetRawSubscriptionByShortUuidResponseResponseHeaders `json:"headers"`
|
|
ResolvedProxyConfigs []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem `json:"resolvedProxyConfigs"`
|
|
}
|
|
|
|
// GetUser returns the value of User.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) GetUser() UserItemInfo {
|
|
return s.User
|
|
}
|
|
|
|
// GetConvertedUserInfo returns the value of ConvertedUserInfo.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) GetConvertedUserInfo() GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo {
|
|
return s.ConvertedUserInfo
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) GetHeaders() GetRawSubscriptionByShortUuidResponseResponseHeaders {
|
|
return s.Headers
|
|
}
|
|
|
|
// GetResolvedProxyConfigs returns the value of ResolvedProxyConfigs.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) GetResolvedProxyConfigs() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem {
|
|
return s.ResolvedProxyConfigs
|
|
}
|
|
|
|
// SetUser sets the value of User.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) SetUser(val UserItemInfo) {
|
|
s.User = val
|
|
}
|
|
|
|
// SetConvertedUserInfo sets the value of ConvertedUserInfo.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) SetConvertedUserInfo(val GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) {
|
|
s.ConvertedUserInfo = val
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) SetHeaders(val GetRawSubscriptionByShortUuidResponseResponseHeaders) {
|
|
s.Headers = val
|
|
}
|
|
|
|
// SetResolvedProxyConfigs sets the value of ResolvedProxyConfigs.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponse) SetResolvedProxyConfigs(val []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) {
|
|
s.ResolvedProxyConfigs = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo struct {
|
|
DaysLeft float64 `json:"daysLeft"`
|
|
TrafficLimit string `json:"trafficLimit"`
|
|
TrafficUsed string `json:"trafficUsed"`
|
|
LifetimeTrafficUsed string `json:"lifetimeTrafficUsed"`
|
|
HwidCheckup NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup `json:"hwidCheckup"`
|
|
}
|
|
|
|
// GetDaysLeft returns the value of DaysLeft.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) GetDaysLeft() float64 {
|
|
return s.DaysLeft
|
|
}
|
|
|
|
// GetTrafficLimit returns the value of TrafficLimit.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) GetTrafficLimit() string {
|
|
return s.TrafficLimit
|
|
}
|
|
|
|
// GetTrafficUsed returns the value of TrafficUsed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) GetTrafficUsed() string {
|
|
return s.TrafficUsed
|
|
}
|
|
|
|
// GetLifetimeTrafficUsed returns the value of LifetimeTrafficUsed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) GetLifetimeTrafficUsed() string {
|
|
return s.LifetimeTrafficUsed
|
|
}
|
|
|
|
// GetHwidCheckup returns the value of HwidCheckup.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) GetHwidCheckup() NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup {
|
|
return s.HwidCheckup
|
|
}
|
|
|
|
// SetDaysLeft sets the value of DaysLeft.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) SetDaysLeft(val float64) {
|
|
s.DaysLeft = val
|
|
}
|
|
|
|
// SetTrafficLimit sets the value of TrafficLimit.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) SetTrafficLimit(val string) {
|
|
s.TrafficLimit = val
|
|
}
|
|
|
|
// SetTrafficUsed sets the value of TrafficUsed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) SetTrafficUsed(val string) {
|
|
s.TrafficUsed = val
|
|
}
|
|
|
|
// SetLifetimeTrafficUsed sets the value of LifetimeTrafficUsed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) SetLifetimeTrafficUsed(val string) {
|
|
s.LifetimeTrafficUsed = val
|
|
}
|
|
|
|
// SetHwidCheckup sets the value of HwidCheckup.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfo) SetHwidCheckup(val NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) {
|
|
s.HwidCheckup = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup struct {
|
|
SubscriptionAllowed bool `json:"subscriptionAllowed"`
|
|
MaxDeviceReached bool `json:"maxDeviceReached"`
|
|
HwidNotSupported bool `json:"hwidNotSupported"`
|
|
LimitBypassed bool `json:"limitBypassed"`
|
|
}
|
|
|
|
// GetSubscriptionAllowed returns the value of SubscriptionAllowed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) GetSubscriptionAllowed() bool {
|
|
return s.SubscriptionAllowed
|
|
}
|
|
|
|
// GetMaxDeviceReached returns the value of MaxDeviceReached.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) GetMaxDeviceReached() bool {
|
|
return s.MaxDeviceReached
|
|
}
|
|
|
|
// GetHwidNotSupported returns the value of HwidNotSupported.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) GetHwidNotSupported() bool {
|
|
return s.HwidNotSupported
|
|
}
|
|
|
|
// GetLimitBypassed returns the value of LimitBypassed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) GetLimitBypassed() bool {
|
|
return s.LimitBypassed
|
|
}
|
|
|
|
// SetSubscriptionAllowed sets the value of SubscriptionAllowed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetSubscriptionAllowed(val bool) {
|
|
s.SubscriptionAllowed = val
|
|
}
|
|
|
|
// SetMaxDeviceReached sets the value of MaxDeviceReached.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetMaxDeviceReached(val bool) {
|
|
s.MaxDeviceReached = val
|
|
}
|
|
|
|
// SetHwidNotSupported sets the value of HwidNotSupported.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetHwidNotSupported(val bool) {
|
|
s.HwidNotSupported = val
|
|
}
|
|
|
|
// SetLimitBypassed sets the value of LimitBypassed.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetLimitBypassed(val bool) {
|
|
s.LimitBypassed = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseHeaders map[string]string
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseHeaders) init() GetRawSubscriptionByShortUuidResponseResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem struct {
|
|
FinalRemark string `json:"finalRemark"`
|
|
Address string `json:"address"`
|
|
Port int `json:"port"`
|
|
Protocol GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol `json:"protocol"`
|
|
ProtocolOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions `json:"protocolOptions"`
|
|
Transport GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport `json:"transport"`
|
|
TransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions `json:"transportOptions"`
|
|
Security GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity `json:"security"`
|
|
SecurityOptions OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions `json:"securityOptions"`
|
|
StreamOverrides GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides `json:"streamOverrides"`
|
|
Mux jx.Raw `json:"mux"`
|
|
ClientOverrides GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides `json:"clientOverrides"`
|
|
Metadata GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata `json:"metadata"`
|
|
}
|
|
|
|
// GetFinalRemark returns the value of FinalRemark.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetFinalRemark() string {
|
|
return s.FinalRemark
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetAddress() string {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetPort() int {
|
|
return s.Port
|
|
}
|
|
|
|
// GetProtocol returns the value of Protocol.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetProtocol() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol {
|
|
return s.Protocol
|
|
}
|
|
|
|
// GetProtocolOptions returns the value of ProtocolOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetProtocolOptions() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions {
|
|
return s.ProtocolOptions
|
|
}
|
|
|
|
// GetTransport returns the value of Transport.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetTransport() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport {
|
|
return s.Transport
|
|
}
|
|
|
|
// GetTransportOptions returns the value of TransportOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetTransportOptions() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
return s.TransportOptions
|
|
}
|
|
|
|
// GetSecurity returns the value of Security.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetSecurity() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity {
|
|
return s.Security
|
|
}
|
|
|
|
// GetSecurityOptions returns the value of SecurityOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetSecurityOptions() OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions {
|
|
return s.SecurityOptions
|
|
}
|
|
|
|
// GetStreamOverrides returns the value of StreamOverrides.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetStreamOverrides() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides {
|
|
return s.StreamOverrides
|
|
}
|
|
|
|
// GetMux returns the value of Mux.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetMux() jx.Raw {
|
|
return s.Mux
|
|
}
|
|
|
|
// GetClientOverrides returns the value of ClientOverrides.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetClientOverrides() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides {
|
|
return s.ClientOverrides
|
|
}
|
|
|
|
// GetMetadata returns the value of Metadata.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) GetMetadata() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata {
|
|
return s.Metadata
|
|
}
|
|
|
|
// SetFinalRemark sets the value of FinalRemark.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetFinalRemark(val string) {
|
|
s.FinalRemark = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetAddress(val string) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetPort(val int) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetProtocol sets the value of Protocol.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetProtocol(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol) {
|
|
s.Protocol = val
|
|
}
|
|
|
|
// SetProtocolOptions sets the value of ProtocolOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetProtocolOptions(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) {
|
|
s.ProtocolOptions = val
|
|
}
|
|
|
|
// SetTransport sets the value of Transport.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetTransport(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport) {
|
|
s.Transport = val
|
|
}
|
|
|
|
// SetTransportOptions sets the value of TransportOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetTransportOptions(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) {
|
|
s.TransportOptions = val
|
|
}
|
|
|
|
// SetSecurity sets the value of Security.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetSecurity(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity) {
|
|
s.Security = val
|
|
}
|
|
|
|
// SetSecurityOptions sets the value of SecurityOptions.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetSecurityOptions(val OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) {
|
|
s.SecurityOptions = val
|
|
}
|
|
|
|
// SetStreamOverrides sets the value of StreamOverrides.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetStreamOverrides(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides) {
|
|
s.StreamOverrides = val
|
|
}
|
|
|
|
// SetMux sets the value of Mux.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetMux(val jx.Raw) {
|
|
s.Mux = val
|
|
}
|
|
|
|
// SetClientOverrides sets the value of ClientOverrides.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetClientOverrides(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) {
|
|
s.ClientOverrides = val
|
|
}
|
|
|
|
// SetMetadata sets the value of Metadata.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItem) SetMetadata(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) {
|
|
s.Metadata = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides struct {
|
|
ShuffleHost bool `json:"shuffleHost"`
|
|
MihomoX25519 bool `json:"mihomoX25519"`
|
|
MihomoIpVersion NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion `json:"mihomoIpVersion"`
|
|
ServerDescription NilString `json:"serverDescription"`
|
|
XrayJsonTemplate jx.Raw `json:"xrayJsonTemplate"`
|
|
}
|
|
|
|
// GetShuffleHost returns the value of ShuffleHost.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) GetShuffleHost() bool {
|
|
return s.ShuffleHost
|
|
}
|
|
|
|
// GetMihomoX25519 returns the value of MihomoX25519.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) GetMihomoX25519() bool {
|
|
return s.MihomoX25519
|
|
}
|
|
|
|
// GetMihomoIpVersion returns the value of MihomoIpVersion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) GetMihomoIpVersion() NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion {
|
|
return s.MihomoIpVersion
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) GetServerDescription() NilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetXrayJsonTemplate returns the value of XrayJsonTemplate.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) GetXrayJsonTemplate() jx.Raw {
|
|
return s.XrayJsonTemplate
|
|
}
|
|
|
|
// SetShuffleHost sets the value of ShuffleHost.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) SetShuffleHost(val bool) {
|
|
s.ShuffleHost = val
|
|
}
|
|
|
|
// SetMihomoX25519 sets the value of MihomoX25519.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) SetMihomoX25519(val bool) {
|
|
s.MihomoX25519 = val
|
|
}
|
|
|
|
// SetMihomoIpVersion sets the value of MihomoIpVersion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) SetMihomoIpVersion(val NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) {
|
|
s.MihomoIpVersion = val
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) SetServerDescription(val NilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetXrayJsonTemplate sets the value of XrayJsonTemplate.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverrides) SetXrayJsonTemplate(val jx.Raw) {
|
|
s.XrayJsonTemplate = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionDual GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion = "dual"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion = "ipv4"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion = "ipv6"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4Prefer GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion = "ipv4-prefer"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6Prefer GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion = "ipv6-prefer"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionDual,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4Prefer,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6Prefer,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionDual:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4Prefer:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6Prefer:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionDual:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionDual
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4Prefer:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv4Prefer
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6Prefer:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersionIpv6Prefer
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Tags []string `json:"tags"`
|
|
ExcludeFromSubscriptionTypes []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem `json:"excludeFromSubscriptionTypes"`
|
|
InboundTag string `json:"inboundTag"`
|
|
ConfigProfileUuid NilUUID `json:"configProfileUuid"`
|
|
ConfigProfileInboundUuid NilUUID `json:"configProfileInboundUuid"`
|
|
IsDisabled bool `json:"isDisabled"`
|
|
IsHidden bool `json:"isHidden"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Remark string `json:"remark"`
|
|
VlessRouteId NilInt `json:"vlessRouteId"`
|
|
RawInbound jx.Raw `json:"rawInbound"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetExcludeFromSubscriptionTypes returns the value of ExcludeFromSubscriptionTypes.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetExcludeFromSubscriptionTypes() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem {
|
|
return s.ExcludeFromSubscriptionTypes
|
|
}
|
|
|
|
// GetInboundTag returns the value of InboundTag.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetInboundTag() string {
|
|
return s.InboundTag
|
|
}
|
|
|
|
// GetConfigProfileUuid returns the value of ConfigProfileUuid.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetConfigProfileUuid() NilUUID {
|
|
return s.ConfigProfileUuid
|
|
}
|
|
|
|
// GetConfigProfileInboundUuid returns the value of ConfigProfileInboundUuid.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetConfigProfileInboundUuid() NilUUID {
|
|
return s.ConfigProfileInboundUuid
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetIsDisabled() bool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetIsHidden returns the value of IsHidden.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetIsHidden() bool {
|
|
return s.IsHidden
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetRemark returns the value of Remark.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetRemark() string {
|
|
return s.Remark
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetVlessRouteId() NilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// GetRawInbound returns the value of RawInbound.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) GetRawInbound() jx.Raw {
|
|
return s.RawInbound
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetExcludeFromSubscriptionTypes sets the value of ExcludeFromSubscriptionTypes.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetExcludeFromSubscriptionTypes(val []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem) {
|
|
s.ExcludeFromSubscriptionTypes = val
|
|
}
|
|
|
|
// SetInboundTag sets the value of InboundTag.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetInboundTag(val string) {
|
|
s.InboundTag = val
|
|
}
|
|
|
|
// SetConfigProfileUuid sets the value of ConfigProfileUuid.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetConfigProfileUuid(val NilUUID) {
|
|
s.ConfigProfileUuid = val
|
|
}
|
|
|
|
// SetConfigProfileInboundUuid sets the value of ConfigProfileInboundUuid.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetConfigProfileInboundUuid(val NilUUID) {
|
|
s.ConfigProfileInboundUuid = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetIsDisabled(val bool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetIsHidden sets the value of IsHidden.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetIsHidden(val bool) {
|
|
s.IsHidden = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetRemark sets the value of Remark.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetRemark(val string) {
|
|
s.Remark = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetVlessRouteId(val NilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// SetRawInbound sets the value of RawInbound.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadata) SetRawInbound(val jx.Raw) {
|
|
s.RawInbound = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYJSON GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "XRAY_JSON"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYBASE64 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "XRAY_BASE64"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemMIHOMO GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "MIHOMO"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSTASH GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "STASH"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemCLASH GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "CLASH"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSINGBOX GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYJSON,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYBASE64,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemMIHOMO,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSTASH,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemCLASH,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemMIHOMO:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSTASH:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemCLASH:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItem(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYJSON
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemXRAYBASE64
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemMIHOMO:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemMIHOMO
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSTASH:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSTASH
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemCLASH:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemCLASH
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSINGBOX:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemMetadataExcludeFromSubscriptionTypesItemSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolVless GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol = "vless"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolTrojan GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol = "trojan"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolShadowsocks GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol = "shadowsocks"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolHysteria GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol = "hysteria"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolVless,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolTrojan,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolShadowsocks,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolHysteria,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolVless:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolTrojan:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolShadowsocks:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolHysteria:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocol(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolVless:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolVless
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolTrojan:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolTrojan
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolShadowsocks:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolShadowsocks
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolHysteria:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolHysteria
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions represents sum type.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType // switch on this field
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType is oneOf type of GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType string
|
|
|
|
// Possible values for GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType.
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3"
|
|
)
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3(v)
|
|
return s
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0 struct {
|
|
Encryption string `json:"encryption"`
|
|
ID string `json:"id"`
|
|
Flow GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow `json:"flow"`
|
|
}
|
|
|
|
// GetEncryption returns the value of Encryption.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) GetEncryption() string {
|
|
return s.Encryption
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) GetID() string {
|
|
return s.ID
|
|
}
|
|
|
|
// GetFlow returns the value of Flow.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) GetFlow() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow {
|
|
return s.Flow
|
|
}
|
|
|
|
// SetEncryption sets the value of Encryption.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) SetEncryption(val string) {
|
|
s.Encryption = val
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) SetID(val string) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetFlow sets the value of Flow.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0) SetFlow(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow) {
|
|
s.Flow = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowEmpty GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow = ""
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVision GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow = "xtls-rprx-vision"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVisionUdp443 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow = "xtls-rprx-vision-udp443"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowEmpty,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVision,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVisionUdp443,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowEmpty:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVision:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVisionUdp443:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0Flow(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowEmpty:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowEmpty
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVision:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVision
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVisionUdp443:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions0FlowXtlsRprxVisionUdp443
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1 struct {
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// GetPassword returns the value of Password.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1) GetPassword() string {
|
|
return s.Password
|
|
}
|
|
|
|
// SetPassword sets the value of Password.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions1) SetPassword(val string) {
|
|
s.Password = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2 struct {
|
|
Method string `json:"method"`
|
|
Password string `json:"password"`
|
|
Uot bool `json:"uot"`
|
|
UotVersion int `json:"uotVersion"`
|
|
}
|
|
|
|
// GetMethod returns the value of Method.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) GetMethod() string {
|
|
return s.Method
|
|
}
|
|
|
|
// GetPassword returns the value of Password.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) GetPassword() string {
|
|
return s.Password
|
|
}
|
|
|
|
// GetUot returns the value of Uot.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) GetUot() bool {
|
|
return s.Uot
|
|
}
|
|
|
|
// GetUotVersion returns the value of UotVersion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) GetUotVersion() int {
|
|
return s.UotVersion
|
|
}
|
|
|
|
// SetMethod sets the value of Method.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) SetMethod(val string) {
|
|
s.Method = val
|
|
}
|
|
|
|
// SetPassword sets the value of Password.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) SetPassword(val string) {
|
|
s.Password = val
|
|
}
|
|
|
|
// SetUot sets the value of Uot.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) SetUot(val bool) {
|
|
s.Uot = val
|
|
}
|
|
|
|
// SetUotVersion sets the value of UotVersion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions2) SetUotVersion(val int) {
|
|
s.UotVersion = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3 struct {
|
|
Version int `json:"version"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3) GetVersion() int {
|
|
return s.Version
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemProtocolOptions3) SetVersion(val int) {
|
|
s.Version = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityTLS GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity = "tls"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityReality GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity = "reality"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityNone GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity = "none"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityTLS,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityReality,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityNone,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityTLS:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityReality:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityNone:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurity(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityTLS:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityTLS
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityReality:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityReality
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityNone:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityNone
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions represents sum type.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType // switch on this field
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType is oneOf type of GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType string
|
|
|
|
// Possible values for GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType.
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1"
|
|
)
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1(v)
|
|
return s
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0 struct {
|
|
PinnedPeerCertSha256 NilString `json:"pinnedPeerCertSha256"`
|
|
VerifyPeerCertByName NilString `json:"verifyPeerCertByName"`
|
|
Alpn NilString `json:"alpn"`
|
|
EnableSessionResumption bool `json:"enableSessionResumption"`
|
|
Fingerprint NilString `json:"fingerprint"`
|
|
ServerName NilString `json:"serverName"`
|
|
EchConfigList NilString `json:"echConfigList"`
|
|
EchForceQuery NilString `json:"echForceQuery"`
|
|
}
|
|
|
|
// GetPinnedPeerCertSha256 returns the value of PinnedPeerCertSha256.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetPinnedPeerCertSha256() NilString {
|
|
return s.PinnedPeerCertSha256
|
|
}
|
|
|
|
// GetVerifyPeerCertByName returns the value of VerifyPeerCertByName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetVerifyPeerCertByName() NilString {
|
|
return s.VerifyPeerCertByName
|
|
}
|
|
|
|
// GetAlpn returns the value of Alpn.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetAlpn() NilString {
|
|
return s.Alpn
|
|
}
|
|
|
|
// GetEnableSessionResumption returns the value of EnableSessionResumption.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetEnableSessionResumption() bool {
|
|
return s.EnableSessionResumption
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetFingerprint() NilString {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetServerName returns the value of ServerName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetServerName() NilString {
|
|
return s.ServerName
|
|
}
|
|
|
|
// GetEchConfigList returns the value of EchConfigList.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetEchConfigList() NilString {
|
|
return s.EchConfigList
|
|
}
|
|
|
|
// GetEchForceQuery returns the value of EchForceQuery.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) GetEchForceQuery() NilString {
|
|
return s.EchForceQuery
|
|
}
|
|
|
|
// SetPinnedPeerCertSha256 sets the value of PinnedPeerCertSha256.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetPinnedPeerCertSha256(val NilString) {
|
|
s.PinnedPeerCertSha256 = val
|
|
}
|
|
|
|
// SetVerifyPeerCertByName sets the value of VerifyPeerCertByName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetVerifyPeerCertByName(val NilString) {
|
|
s.VerifyPeerCertByName = val
|
|
}
|
|
|
|
// SetAlpn sets the value of Alpn.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetAlpn(val NilString) {
|
|
s.Alpn = val
|
|
}
|
|
|
|
// SetEnableSessionResumption sets the value of EnableSessionResumption.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetEnableSessionResumption(val bool) {
|
|
s.EnableSessionResumption = val
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetFingerprint(val NilString) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetServerName sets the value of ServerName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetServerName(val NilString) {
|
|
s.ServerName = val
|
|
}
|
|
|
|
// SetEchConfigList sets the value of EchConfigList.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetEchConfigList(val NilString) {
|
|
s.EchConfigList = val
|
|
}
|
|
|
|
// SetEchForceQuery sets the value of EchForceQuery.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions0) SetEchForceQuery(val NilString) {
|
|
s.EchForceQuery = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1 struct {
|
|
Fingerprint string `json:"fingerprint"`
|
|
PublicKey string `json:"publicKey"`
|
|
ShortId NilString `json:"shortId"`
|
|
ServerName string `json:"serverName"`
|
|
SpiderX NilString `json:"spiderX"`
|
|
Mldsa65Verify NilString `json:"mldsa65Verify"`
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetFingerprint() string {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetPublicKey returns the value of PublicKey.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetPublicKey() string {
|
|
return s.PublicKey
|
|
}
|
|
|
|
// GetShortId returns the value of ShortId.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetShortId() NilString {
|
|
return s.ShortId
|
|
}
|
|
|
|
// GetServerName returns the value of ServerName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetServerName() string {
|
|
return s.ServerName
|
|
}
|
|
|
|
// GetSpiderX returns the value of SpiderX.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetSpiderX() NilString {
|
|
return s.SpiderX
|
|
}
|
|
|
|
// GetMldsa65Verify returns the value of Mldsa65Verify.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) GetMldsa65Verify() NilString {
|
|
return s.Mldsa65Verify
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetFingerprint(val string) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetPublicKey sets the value of PublicKey.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetPublicKey(val string) {
|
|
s.PublicKey = val
|
|
}
|
|
|
|
// SetShortId sets the value of ShortId.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetShortId(val NilString) {
|
|
s.ShortId = val
|
|
}
|
|
|
|
// SetServerName sets the value of ServerName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetServerName(val string) {
|
|
s.ServerName = val
|
|
}
|
|
|
|
// SetSpiderX sets the value of SpiderX.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetSpiderX(val NilString) {
|
|
s.SpiderX = val
|
|
}
|
|
|
|
// SetMldsa65Verify sets the value of Mldsa65Verify.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions1) SetMldsa65Verify(val NilString) {
|
|
s.Mldsa65Verify = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides struct {
|
|
FinalMask jx.Raw `json:"finalMask"`
|
|
Sockopt jx.Raw `json:"sockopt"`
|
|
}
|
|
|
|
// GetFinalMask returns the value of FinalMask.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides) GetFinalMask() jx.Raw {
|
|
return s.FinalMask
|
|
}
|
|
|
|
// GetSockopt returns the value of Sockopt.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides) GetSockopt() jx.Raw {
|
|
return s.Sockopt
|
|
}
|
|
|
|
// SetFinalMask sets the value of FinalMask.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides) SetFinalMask(val jx.Raw) {
|
|
s.FinalMask = val
|
|
}
|
|
|
|
// SetSockopt sets the value of Sockopt.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemStreamOverrides) SetSockopt(val jx.Raw) {
|
|
s.Sockopt = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportTCP GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "tcp"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportXhttp GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "xhttp"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportWs GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "ws"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHttpupgrade GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "httpupgrade"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportGrpc GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "grpc"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportKcp GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "kcp"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHysteria GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport = "hysteria"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportTCP,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportXhttp,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportWs,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHttpupgrade,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportGrpc,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportKcp,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHysteria,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportTCP:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportXhttp:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportWs:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHttpupgrade:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportGrpc:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportKcp:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHysteria:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransport(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportTCP:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportTCP
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportXhttp:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportXhttp
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportWs:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportWs
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHttpupgrade:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHttpupgrade
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportGrpc:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportGrpc
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportKcp:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportKcp
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHysteria:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportHysteria
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions represents sum type.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType // switch on this field
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType is oneOf type of GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType string
|
|
|
|
// Possible values for GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType.
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptionsType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6"
|
|
)
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6(v)
|
|
return s
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0 struct {
|
|
Header NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header `json:"header"`
|
|
}
|
|
|
|
// GetHeader returns the value of Header.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0) GetHeader() NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header {
|
|
return s.Header
|
|
}
|
|
|
|
// SetHeader sets the value of Header.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0) SetHeader(val NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) {
|
|
s.Header = val
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header represents sum type.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType // switch on this field
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1
|
|
}
|
|
|
|
// GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType is oneOf type of GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header.
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType string
|
|
|
|
// Possible values for GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType.
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0HeaderType = "GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1"
|
|
)
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
}
|
|
|
|
// IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 reports whether GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1() bool {
|
|
return s.Type == GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0(v)
|
|
return s
|
|
}
|
|
|
|
// SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 sets GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header to GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) {
|
|
s.Type = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 = v
|
|
}
|
|
|
|
// GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 returns GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 and true boolean if GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header is GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) GetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1, ok bool) {
|
|
if !s.IsGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1() {
|
|
return v, false
|
|
}
|
|
return s.GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1, true
|
|
}
|
|
|
|
// NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header returns new GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header from GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1.
|
|
func NewGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header {
|
|
var s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
s.SetGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1(v)
|
|
return s
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0 struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type `json:"type"`
|
|
}
|
|
|
|
// GetType returns the value of Type.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0) GetType() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type {
|
|
return s.Type
|
|
}
|
|
|
|
// SetType sets the value of Type.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0) SetType(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type) {
|
|
s.Type = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0TypeNone GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type = "none"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0TypeNone,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0TypeNone:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0Type(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0TypeNone:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header0TypeNone
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1 struct {
|
|
Type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type `json:"type"`
|
|
Request OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request `json:"request"`
|
|
Response OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response `json:"response"`
|
|
}
|
|
|
|
// GetType returns the value of Type.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) GetType() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type {
|
|
return s.Type
|
|
}
|
|
|
|
// GetRequest returns the value of Request.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) GetRequest() OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request {
|
|
return s.Request
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) GetResponse() OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response {
|
|
return s.Response
|
|
}
|
|
|
|
// SetType sets the value of Type.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) SetType(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type) {
|
|
s.Type = val
|
|
}
|
|
|
|
// SetRequest sets the value of Request.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) SetRequest(val OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) {
|
|
s.Request = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1) SetResponse(val OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) {
|
|
s.Response = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request struct {
|
|
Version OptString `json:"version"`
|
|
Method OptString `json:"method"`
|
|
Path []string `json:"path"`
|
|
Headers OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders `json:"headers"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) GetVersion() OptString {
|
|
return s.Version
|
|
}
|
|
|
|
// GetMethod returns the value of Method.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) GetMethod() OptString {
|
|
return s.Method
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) GetPath() []string {
|
|
return s.Path
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) GetHeaders() OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders {
|
|
return s.Headers
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) SetVersion(val OptString) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetMethod sets the value of Method.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) SetMethod(val OptString) {
|
|
s.Method = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) SetPath(val []string) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) SetHeaders(val OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) {
|
|
s.Headers = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders map[string]jx.Raw
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) init() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]jx.Raw{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response struct {
|
|
Version OptString `json:"version"`
|
|
Status OptString `json:"status"`
|
|
Reason OptString `json:"reason"`
|
|
Headers OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders `json:"headers"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) GetVersion() OptString {
|
|
return s.Version
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) GetStatus() OptString {
|
|
return s.Status
|
|
}
|
|
|
|
// GetReason returns the value of Reason.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) GetReason() OptString {
|
|
return s.Reason
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) GetHeaders() OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders {
|
|
return s.Headers
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) SetVersion(val OptString) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) SetStatus(val OptString) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetReason sets the value of Reason.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) SetReason(val OptString) {
|
|
s.Reason = val
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) SetHeaders(val OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) {
|
|
s.Headers = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders map[string]jx.Raw
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) init() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]jx.Raw{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1TypeHTTP GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type = "http"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1TypeHTTP,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1TypeHTTP:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Type(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1TypeHTTP:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1TypeHTTP
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1 struct {
|
|
Path NilString `json:"path"`
|
|
Host NilString `json:"host"`
|
|
Mode GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode `json:"mode"`
|
|
Extra NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra `json:"extra"`
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) GetPath() NilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) GetHost() NilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetMode returns the value of Mode.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) GetMode() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode {
|
|
return s.Mode
|
|
}
|
|
|
|
// GetExtra returns the value of Extra.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) GetExtra() NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra {
|
|
return s.Extra
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) SetPath(val NilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) SetHost(val NilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetMode sets the value of Mode.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) SetMode(val GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode) {
|
|
s.Mode = val
|
|
}
|
|
|
|
// SetExtra sets the value of Extra.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1) SetExtra(val NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) {
|
|
s.Extra = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra map[string]jx.Raw
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) init() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]jx.Raw{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode string
|
|
|
|
const (
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeAuto GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode = "auto"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModePacketUp GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode = "packet-up"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamUp GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode = "stream-up"
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamOne GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode = "stream-one"
|
|
)
|
|
|
|
// AllValues returns all GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode values.
|
|
func (GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode) AllValues() []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode {
|
|
return []GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode{
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeAuto,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModePacketUp,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamUp,
|
|
GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamOne,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeAuto:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModePacketUp:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamUp:
|
|
return []byte(s), nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamOne:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode) UnmarshalText(data []byte) error {
|
|
switch GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Mode(data) {
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeAuto:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeAuto
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModePacketUp:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModePacketUp
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamUp:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamUp
|
|
return nil
|
|
case GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamOne:
|
|
*s = GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1ModeStreamOne
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2 struct {
|
|
Path NilString `json:"path"`
|
|
Host NilString `json:"host"`
|
|
Headers NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers `json:"headers"`
|
|
HeartbeatPeriod NilFloat64 `json:"heartbeatPeriod"`
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) GetPath() NilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) GetHost() NilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) GetHeaders() NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers {
|
|
return s.Headers
|
|
}
|
|
|
|
// GetHeartbeatPeriod returns the value of HeartbeatPeriod.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) GetHeartbeatPeriod() NilFloat64 {
|
|
return s.HeartbeatPeriod
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) SetPath(val NilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) SetHost(val NilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) SetHeaders(val NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) {
|
|
s.Headers = val
|
|
}
|
|
|
|
// SetHeartbeatPeriod sets the value of HeartbeatPeriod.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2) SetHeartbeatPeriod(val NilFloat64) {
|
|
s.HeartbeatPeriod = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers map[string]string
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) init() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3 struct {
|
|
Path NilString `json:"path"`
|
|
Host NilString `json:"host"`
|
|
Headers NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers `json:"headers"`
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) GetPath() NilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) GetHost() NilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) GetHeaders() NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers {
|
|
return s.Headers
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) SetPath(val NilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) SetHost(val NilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3) SetHeaders(val NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) {
|
|
s.Headers = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers map[string]string
|
|
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) init() GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4 struct {
|
|
Authority NilString `json:"authority"`
|
|
ServiceName NilString `json:"serviceName"`
|
|
MultiMode bool `json:"multiMode"`
|
|
}
|
|
|
|
// GetAuthority returns the value of Authority.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) GetAuthority() NilString {
|
|
return s.Authority
|
|
}
|
|
|
|
// GetServiceName returns the value of ServiceName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) GetServiceName() NilString {
|
|
return s.ServiceName
|
|
}
|
|
|
|
// GetMultiMode returns the value of MultiMode.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) GetMultiMode() bool {
|
|
return s.MultiMode
|
|
}
|
|
|
|
// SetAuthority sets the value of Authority.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) SetAuthority(val NilString) {
|
|
s.Authority = val
|
|
}
|
|
|
|
// SetServiceName sets the value of ServiceName.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) SetServiceName(val NilString) {
|
|
s.ServiceName = val
|
|
}
|
|
|
|
// SetMultiMode sets the value of MultiMode.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions4) SetMultiMode(val bool) {
|
|
s.MultiMode = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5 struct {
|
|
ClientMtu int `json:"clientMtu"`
|
|
ClientTti int `json:"clientTti"`
|
|
Congestion bool `json:"congestion"`
|
|
}
|
|
|
|
// GetClientMtu returns the value of ClientMtu.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) GetClientMtu() int {
|
|
return s.ClientMtu
|
|
}
|
|
|
|
// GetClientTti returns the value of ClientTti.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) GetClientTti() int {
|
|
return s.ClientTti
|
|
}
|
|
|
|
// GetCongestion returns the value of Congestion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) GetCongestion() bool {
|
|
return s.Congestion
|
|
}
|
|
|
|
// SetClientMtu sets the value of ClientMtu.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) SetClientMtu(val int) {
|
|
s.ClientMtu = val
|
|
}
|
|
|
|
// SetClientTti sets the value of ClientTti.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) SetClientTti(val int) {
|
|
s.ClientTti = val
|
|
}
|
|
|
|
// SetCongestion sets the value of Congestion.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions5) SetCongestion(val bool) {
|
|
s.Congestion = val
|
|
}
|
|
|
|
type GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6 struct {
|
|
Version int `json:"version"`
|
|
Auth string `json:"auth"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) GetVersion() int {
|
|
return s.Version
|
|
}
|
|
|
|
// GetAuth returns the value of Auth.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) GetAuth() string {
|
|
return s.Auth
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) SetVersion(val int) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetAuth sets the value of Auth.
|
|
func (s *GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions6) SetAuth(val string) {
|
|
s.Auth = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetRecapResponse
|
|
type GetRecapResponse struct {
|
|
Response GetRecapResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetRecapResponse) GetResponse() GetRecapResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetRecapResponse) SetResponse(val GetRecapResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetRecapResponse) systemGetRecapRes() {}
|
|
|
|
type GetRecapResponseResponse struct {
|
|
ThisMonth GetRecapResponseResponseThisMonth `json:"thisMonth"`
|
|
Total GetRecapResponseResponseTotal `json:"total"`
|
|
Version string `json:"version"`
|
|
InitDate time.Time `json:"initDate"`
|
|
}
|
|
|
|
// GetThisMonth returns the value of ThisMonth.
|
|
func (s *GetRecapResponseResponse) GetThisMonth() GetRecapResponseResponseThisMonth {
|
|
return s.ThisMonth
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetRecapResponseResponse) GetTotal() GetRecapResponseResponseTotal {
|
|
return s.Total
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *GetRecapResponseResponse) GetVersion() string {
|
|
return s.Version
|
|
}
|
|
|
|
// GetInitDate returns the value of InitDate.
|
|
func (s *GetRecapResponseResponse) GetInitDate() time.Time {
|
|
return s.InitDate
|
|
}
|
|
|
|
// SetThisMonth sets the value of ThisMonth.
|
|
func (s *GetRecapResponseResponse) SetThisMonth(val GetRecapResponseResponseThisMonth) {
|
|
s.ThisMonth = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetRecapResponseResponse) SetTotal(val GetRecapResponseResponseTotal) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *GetRecapResponseResponse) SetVersion(val string) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetInitDate sets the value of InitDate.
|
|
func (s *GetRecapResponseResponse) SetInitDate(val time.Time) {
|
|
s.InitDate = val
|
|
}
|
|
|
|
type GetRecapResponseResponseThisMonth struct {
|
|
Users float64 `json:"users"`
|
|
Traffic string `json:"traffic"`
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetRecapResponseResponseThisMonth) GetUsers() float64 {
|
|
return s.Users
|
|
}
|
|
|
|
// GetTraffic returns the value of Traffic.
|
|
func (s *GetRecapResponseResponseThisMonth) GetTraffic() string {
|
|
return s.Traffic
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetRecapResponseResponseThisMonth) SetUsers(val float64) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetTraffic sets the value of Traffic.
|
|
func (s *GetRecapResponseResponseThisMonth) SetTraffic(val string) {
|
|
s.Traffic = val
|
|
}
|
|
|
|
type GetRecapResponseResponseTotal struct {
|
|
Users float64 `json:"users"`
|
|
Nodes float64 `json:"nodes"`
|
|
Traffic string `json:"traffic"`
|
|
NodesRam string `json:"nodesRam"`
|
|
NodesCpuCores float64 `json:"nodesCpuCores"`
|
|
DistinctCountries float64 `json:"distinctCountries"`
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetRecapResponseResponseTotal) GetUsers() float64 {
|
|
return s.Users
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *GetRecapResponseResponseTotal) GetNodes() float64 {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetTraffic returns the value of Traffic.
|
|
func (s *GetRecapResponseResponseTotal) GetTraffic() string {
|
|
return s.Traffic
|
|
}
|
|
|
|
// GetNodesRam returns the value of NodesRam.
|
|
func (s *GetRecapResponseResponseTotal) GetNodesRam() string {
|
|
return s.NodesRam
|
|
}
|
|
|
|
// GetNodesCpuCores returns the value of NodesCpuCores.
|
|
func (s *GetRecapResponseResponseTotal) GetNodesCpuCores() float64 {
|
|
return s.NodesCpuCores
|
|
}
|
|
|
|
// GetDistinctCountries returns the value of DistinctCountries.
|
|
func (s *GetRecapResponseResponseTotal) GetDistinctCountries() float64 {
|
|
return s.DistinctCountries
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetRecapResponseResponseTotal) SetUsers(val float64) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *GetRecapResponseResponseTotal) SetNodes(val float64) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetTraffic sets the value of Traffic.
|
|
func (s *GetRecapResponseResponseTotal) SetTraffic(val string) {
|
|
s.Traffic = val
|
|
}
|
|
|
|
// SetNodesRam sets the value of NodesRam.
|
|
func (s *GetRecapResponseResponseTotal) SetNodesRam(val string) {
|
|
s.NodesRam = val
|
|
}
|
|
|
|
// SetNodesCpuCores sets the value of NodesCpuCores.
|
|
func (s *GetRecapResponseResponseTotal) SetNodesCpuCores(val float64) {
|
|
s.NodesCpuCores = val
|
|
}
|
|
|
|
// SetDistinctCountries sets the value of DistinctCountries.
|
|
func (s *GetRecapResponseResponseTotal) SetDistinctCountries(val float64) {
|
|
s.DistinctCountries = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetRemnawaveHealthResponse
|
|
type GetRemnawaveHealthResponse struct {
|
|
Response GetRemnawaveHealthResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetRemnawaveHealthResponse) GetResponse() GetRemnawaveHealthResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetRemnawaveHealthResponse) SetResponse(val GetRemnawaveHealthResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetRemnawaveHealthResponse) systemGetRemnawaveHealthRes() {}
|
|
|
|
type GetRemnawaveHealthResponseResponse struct {
|
|
RuntimeMetrics []GetRemnawaveHealthResponseResponseRuntimeMetricsItem `json:"runtimeMetrics"`
|
|
}
|
|
|
|
// GetRuntimeMetrics returns the value of RuntimeMetrics.
|
|
func (s *GetRemnawaveHealthResponseResponse) GetRuntimeMetrics() []GetRemnawaveHealthResponseResponseRuntimeMetricsItem {
|
|
return s.RuntimeMetrics
|
|
}
|
|
|
|
// SetRuntimeMetrics sets the value of RuntimeMetrics.
|
|
func (s *GetRemnawaveHealthResponseResponse) SetRuntimeMetrics(val []GetRemnawaveHealthResponseResponseRuntimeMetricsItem) {
|
|
s.RuntimeMetrics = val
|
|
}
|
|
|
|
type GetRemnawaveHealthResponseResponseRuntimeMetricsItem struct {
|
|
Rss float64 `json:"rss"`
|
|
HeapUsed float64 `json:"heapUsed"`
|
|
HeapTotal float64 `json:"heapTotal"`
|
|
External float64 `json:"external"`
|
|
ArrayBuffers float64 `json:"arrayBuffers"`
|
|
EventLoopDelayMs float64 `json:"eventLoopDelayMs"`
|
|
EventLoopP99Ms float64 `json:"eventLoopP99Ms"`
|
|
ActiveHandles float64 `json:"activeHandles"`
|
|
Uptime float64 `json:"uptime"`
|
|
Pid float64 `json:"pid"`
|
|
Timestamp float64 `json:"timestamp"`
|
|
InstanceId string `json:"instanceId"`
|
|
InstanceType string `json:"instanceType"`
|
|
}
|
|
|
|
// GetRss returns the value of Rss.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetRss() float64 {
|
|
return s.Rss
|
|
}
|
|
|
|
// GetHeapUsed returns the value of HeapUsed.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetHeapUsed() float64 {
|
|
return s.HeapUsed
|
|
}
|
|
|
|
// GetHeapTotal returns the value of HeapTotal.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetHeapTotal() float64 {
|
|
return s.HeapTotal
|
|
}
|
|
|
|
// GetExternal returns the value of External.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetExternal() float64 {
|
|
return s.External
|
|
}
|
|
|
|
// GetArrayBuffers returns the value of ArrayBuffers.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetArrayBuffers() float64 {
|
|
return s.ArrayBuffers
|
|
}
|
|
|
|
// GetEventLoopDelayMs returns the value of EventLoopDelayMs.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetEventLoopDelayMs() float64 {
|
|
return s.EventLoopDelayMs
|
|
}
|
|
|
|
// GetEventLoopP99Ms returns the value of EventLoopP99Ms.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetEventLoopP99Ms() float64 {
|
|
return s.EventLoopP99Ms
|
|
}
|
|
|
|
// GetActiveHandles returns the value of ActiveHandles.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetActiveHandles() float64 {
|
|
return s.ActiveHandles
|
|
}
|
|
|
|
// GetUptime returns the value of Uptime.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetUptime() float64 {
|
|
return s.Uptime
|
|
}
|
|
|
|
// GetPid returns the value of Pid.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetPid() float64 {
|
|
return s.Pid
|
|
}
|
|
|
|
// GetTimestamp returns the value of Timestamp.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetTimestamp() float64 {
|
|
return s.Timestamp
|
|
}
|
|
|
|
// GetInstanceId returns the value of InstanceId.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetInstanceId() string {
|
|
return s.InstanceId
|
|
}
|
|
|
|
// GetInstanceType returns the value of InstanceType.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) GetInstanceType() string {
|
|
return s.InstanceType
|
|
}
|
|
|
|
// SetRss sets the value of Rss.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetRss(val float64) {
|
|
s.Rss = val
|
|
}
|
|
|
|
// SetHeapUsed sets the value of HeapUsed.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetHeapUsed(val float64) {
|
|
s.HeapUsed = val
|
|
}
|
|
|
|
// SetHeapTotal sets the value of HeapTotal.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetHeapTotal(val float64) {
|
|
s.HeapTotal = val
|
|
}
|
|
|
|
// SetExternal sets the value of External.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetExternal(val float64) {
|
|
s.External = val
|
|
}
|
|
|
|
// SetArrayBuffers sets the value of ArrayBuffers.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetArrayBuffers(val float64) {
|
|
s.ArrayBuffers = val
|
|
}
|
|
|
|
// SetEventLoopDelayMs sets the value of EventLoopDelayMs.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetEventLoopDelayMs(val float64) {
|
|
s.EventLoopDelayMs = val
|
|
}
|
|
|
|
// SetEventLoopP99Ms sets the value of EventLoopP99Ms.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetEventLoopP99Ms(val float64) {
|
|
s.EventLoopP99Ms = val
|
|
}
|
|
|
|
// SetActiveHandles sets the value of ActiveHandles.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetActiveHandles(val float64) {
|
|
s.ActiveHandles = val
|
|
}
|
|
|
|
// SetUptime sets the value of Uptime.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetUptime(val float64) {
|
|
s.Uptime = val
|
|
}
|
|
|
|
// SetPid sets the value of Pid.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetPid(val float64) {
|
|
s.Pid = val
|
|
}
|
|
|
|
// SetTimestamp sets the value of Timestamp.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetTimestamp(val float64) {
|
|
s.Timestamp = val
|
|
}
|
|
|
|
// SetInstanceId sets the value of InstanceId.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetInstanceId(val string) {
|
|
s.InstanceId = val
|
|
}
|
|
|
|
// SetInstanceType sets the value of InstanceType.
|
|
func (s *GetRemnawaveHealthResponseResponseRuntimeMetricsItem) SetInstanceType(val string) {
|
|
s.InstanceType = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetStatsNodesUsersUsageRequest
|
|
type GetStatsNodesUsersUsageRequest struct {
|
|
NodesUuids []uuid.UUID `json:"nodesUuids"`
|
|
}
|
|
|
|
// GetNodesUuids returns the value of NodesUuids.
|
|
func (s *GetStatsNodesUsersUsageRequest) GetNodesUuids() []uuid.UUID {
|
|
return s.NodesUuids
|
|
}
|
|
|
|
// SetNodesUuids sets the value of NodesUuids.
|
|
func (s *GetStatsNodesUsersUsageRequest) SetNodesUuids(val []uuid.UUID) {
|
|
s.NodesUuids = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetStatsResponse
|
|
type GetStatsResponse struct {
|
|
Response GetStatsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetStatsResponse) GetResponse() GetStatsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetStatsResponse) SetResponse(val GetStatsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetStatsResponse) systemGetStatsRes() {}
|
|
|
|
type GetStatsResponseResponse struct {
|
|
CPU GetStatsResponseResponseCPU `json:"cpu"`
|
|
Memory GetStatsResponseResponseMemory `json:"memory"`
|
|
Uptime float64 `json:"uptime"`
|
|
Timestamp float64 `json:"timestamp"`
|
|
Users GetStatsResponseResponseUsers `json:"users"`
|
|
OnlineStats GetStatsResponseResponseOnlineStats `json:"onlineStats"`
|
|
Nodes GetStatsResponseResponseNodes `json:"nodes"`
|
|
}
|
|
|
|
// GetCPU returns the value of CPU.
|
|
func (s *GetStatsResponseResponse) GetCPU() GetStatsResponseResponseCPU {
|
|
return s.CPU
|
|
}
|
|
|
|
// GetMemory returns the value of Memory.
|
|
func (s *GetStatsResponseResponse) GetMemory() GetStatsResponseResponseMemory {
|
|
return s.Memory
|
|
}
|
|
|
|
// GetUptime returns the value of Uptime.
|
|
func (s *GetStatsResponseResponse) GetUptime() float64 {
|
|
return s.Uptime
|
|
}
|
|
|
|
// GetTimestamp returns the value of Timestamp.
|
|
func (s *GetStatsResponseResponse) GetTimestamp() float64 {
|
|
return s.Timestamp
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetStatsResponseResponse) GetUsers() GetStatsResponseResponseUsers {
|
|
return s.Users
|
|
}
|
|
|
|
// GetOnlineStats returns the value of OnlineStats.
|
|
func (s *GetStatsResponseResponse) GetOnlineStats() GetStatsResponseResponseOnlineStats {
|
|
return s.OnlineStats
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *GetStatsResponseResponse) GetNodes() GetStatsResponseResponseNodes {
|
|
return s.Nodes
|
|
}
|
|
|
|
// SetCPU sets the value of CPU.
|
|
func (s *GetStatsResponseResponse) SetCPU(val GetStatsResponseResponseCPU) {
|
|
s.CPU = val
|
|
}
|
|
|
|
// SetMemory sets the value of Memory.
|
|
func (s *GetStatsResponseResponse) SetMemory(val GetStatsResponseResponseMemory) {
|
|
s.Memory = val
|
|
}
|
|
|
|
// SetUptime sets the value of Uptime.
|
|
func (s *GetStatsResponseResponse) SetUptime(val float64) {
|
|
s.Uptime = val
|
|
}
|
|
|
|
// SetTimestamp sets the value of Timestamp.
|
|
func (s *GetStatsResponseResponse) SetTimestamp(val float64) {
|
|
s.Timestamp = val
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetStatsResponseResponse) SetUsers(val GetStatsResponseResponseUsers) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetOnlineStats sets the value of OnlineStats.
|
|
func (s *GetStatsResponseResponse) SetOnlineStats(val GetStatsResponseResponseOnlineStats) {
|
|
s.OnlineStats = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *GetStatsResponseResponse) SetNodes(val GetStatsResponseResponseNodes) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
type GetStatsResponseResponseCPU struct {
|
|
Cores float64 `json:"cores"`
|
|
}
|
|
|
|
// GetCores returns the value of Cores.
|
|
func (s *GetStatsResponseResponseCPU) GetCores() float64 {
|
|
return s.Cores
|
|
}
|
|
|
|
// SetCores sets the value of Cores.
|
|
func (s *GetStatsResponseResponseCPU) SetCores(val float64) {
|
|
s.Cores = val
|
|
}
|
|
|
|
type GetStatsResponseResponseMemory struct {
|
|
Total float64 `json:"total"`
|
|
Free float64 `json:"free"`
|
|
Used float64 `json:"used"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetStatsResponseResponseMemory) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetFree returns the value of Free.
|
|
func (s *GetStatsResponseResponseMemory) GetFree() float64 {
|
|
return s.Free
|
|
}
|
|
|
|
// GetUsed returns the value of Used.
|
|
func (s *GetStatsResponseResponseMemory) GetUsed() float64 {
|
|
return s.Used
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetStatsResponseResponseMemory) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetFree sets the value of Free.
|
|
func (s *GetStatsResponseResponseMemory) SetFree(val float64) {
|
|
s.Free = val
|
|
}
|
|
|
|
// SetUsed sets the value of Used.
|
|
func (s *GetStatsResponseResponseMemory) SetUsed(val float64) {
|
|
s.Used = val
|
|
}
|
|
|
|
type GetStatsResponseResponseNodes struct {
|
|
TotalOnline float64 `json:"totalOnline"`
|
|
TotalBytesLifetime string `json:"totalBytesLifetime"`
|
|
}
|
|
|
|
// GetTotalOnline returns the value of TotalOnline.
|
|
func (s *GetStatsResponseResponseNodes) GetTotalOnline() float64 {
|
|
return s.TotalOnline
|
|
}
|
|
|
|
// GetTotalBytesLifetime returns the value of TotalBytesLifetime.
|
|
func (s *GetStatsResponseResponseNodes) GetTotalBytesLifetime() string {
|
|
return s.TotalBytesLifetime
|
|
}
|
|
|
|
// SetTotalOnline sets the value of TotalOnline.
|
|
func (s *GetStatsResponseResponseNodes) SetTotalOnline(val float64) {
|
|
s.TotalOnline = val
|
|
}
|
|
|
|
// SetTotalBytesLifetime sets the value of TotalBytesLifetime.
|
|
func (s *GetStatsResponseResponseNodes) SetTotalBytesLifetime(val string) {
|
|
s.TotalBytesLifetime = val
|
|
}
|
|
|
|
type GetStatsResponseResponseOnlineStats struct {
|
|
LastDay float64 `json:"lastDay"`
|
|
LastWeek float64 `json:"lastWeek"`
|
|
NeverOnline float64 `json:"neverOnline"`
|
|
OnlineNow float64 `json:"onlineNow"`
|
|
}
|
|
|
|
// GetLastDay returns the value of LastDay.
|
|
func (s *GetStatsResponseResponseOnlineStats) GetLastDay() float64 {
|
|
return s.LastDay
|
|
}
|
|
|
|
// GetLastWeek returns the value of LastWeek.
|
|
func (s *GetStatsResponseResponseOnlineStats) GetLastWeek() float64 {
|
|
return s.LastWeek
|
|
}
|
|
|
|
// GetNeverOnline returns the value of NeverOnline.
|
|
func (s *GetStatsResponseResponseOnlineStats) GetNeverOnline() float64 {
|
|
return s.NeverOnline
|
|
}
|
|
|
|
// GetOnlineNow returns the value of OnlineNow.
|
|
func (s *GetStatsResponseResponseOnlineStats) GetOnlineNow() float64 {
|
|
return s.OnlineNow
|
|
}
|
|
|
|
// SetLastDay sets the value of LastDay.
|
|
func (s *GetStatsResponseResponseOnlineStats) SetLastDay(val float64) {
|
|
s.LastDay = val
|
|
}
|
|
|
|
// SetLastWeek sets the value of LastWeek.
|
|
func (s *GetStatsResponseResponseOnlineStats) SetLastWeek(val float64) {
|
|
s.LastWeek = val
|
|
}
|
|
|
|
// SetNeverOnline sets the value of NeverOnline.
|
|
func (s *GetStatsResponseResponseOnlineStats) SetNeverOnline(val float64) {
|
|
s.NeverOnline = val
|
|
}
|
|
|
|
// SetOnlineNow sets the value of OnlineNow.
|
|
func (s *GetStatsResponseResponseOnlineStats) SetOnlineNow(val float64) {
|
|
s.OnlineNow = val
|
|
}
|
|
|
|
type GetStatsResponseResponseUsers struct {
|
|
StatusCounts GetStatsResponseResponseUsersStatusCounts `json:"statusCounts"`
|
|
TotalUsers float64 `json:"totalUsers"`
|
|
}
|
|
|
|
// GetStatusCounts returns the value of StatusCounts.
|
|
func (s *GetStatsResponseResponseUsers) GetStatusCounts() GetStatsResponseResponseUsersStatusCounts {
|
|
return s.StatusCounts
|
|
}
|
|
|
|
// GetTotalUsers returns the value of TotalUsers.
|
|
func (s *GetStatsResponseResponseUsers) GetTotalUsers() float64 {
|
|
return s.TotalUsers
|
|
}
|
|
|
|
// SetStatusCounts sets the value of StatusCounts.
|
|
func (s *GetStatsResponseResponseUsers) SetStatusCounts(val GetStatsResponseResponseUsersStatusCounts) {
|
|
s.StatusCounts = val
|
|
}
|
|
|
|
// SetTotalUsers sets the value of TotalUsers.
|
|
func (s *GetStatsResponseResponseUsers) SetTotalUsers(val float64) {
|
|
s.TotalUsers = val
|
|
}
|
|
|
|
type GetStatsResponseResponseUsersStatusCounts map[string]float64
|
|
|
|
func (s *GetStatsResponseResponseUsersStatusCounts) init() GetStatsResponseResponseUsersStatusCounts {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]float64{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetStatusResponse
|
|
type GetStatusResponse struct {
|
|
Response GetStatusResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetStatusResponse) GetResponse() GetStatusResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetStatusResponse) SetResponse(val GetStatusResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
type GetStatusResponseResponse struct {
|
|
IsLoginAllowed bool `json:"isLoginAllowed"`
|
|
IsRegisterAllowed bool `json:"isRegisterAllowed"`
|
|
Authentication NilGetStatusResponseResponseAuthentication `json:"authentication"`
|
|
Branding GetStatusResponseResponseBranding `json:"branding"`
|
|
}
|
|
|
|
// GetIsLoginAllowed returns the value of IsLoginAllowed.
|
|
func (s *GetStatusResponseResponse) GetIsLoginAllowed() bool {
|
|
return s.IsLoginAllowed
|
|
}
|
|
|
|
// GetIsRegisterAllowed returns the value of IsRegisterAllowed.
|
|
func (s *GetStatusResponseResponse) GetIsRegisterAllowed() bool {
|
|
return s.IsRegisterAllowed
|
|
}
|
|
|
|
// GetAuthentication returns the value of Authentication.
|
|
func (s *GetStatusResponseResponse) GetAuthentication() NilGetStatusResponseResponseAuthentication {
|
|
return s.Authentication
|
|
}
|
|
|
|
// GetBranding returns the value of Branding.
|
|
func (s *GetStatusResponseResponse) GetBranding() GetStatusResponseResponseBranding {
|
|
return s.Branding
|
|
}
|
|
|
|
// SetIsLoginAllowed sets the value of IsLoginAllowed.
|
|
func (s *GetStatusResponseResponse) SetIsLoginAllowed(val bool) {
|
|
s.IsLoginAllowed = val
|
|
}
|
|
|
|
// SetIsRegisterAllowed sets the value of IsRegisterAllowed.
|
|
func (s *GetStatusResponseResponse) SetIsRegisterAllowed(val bool) {
|
|
s.IsRegisterAllowed = val
|
|
}
|
|
|
|
// SetAuthentication sets the value of Authentication.
|
|
func (s *GetStatusResponseResponse) SetAuthentication(val NilGetStatusResponseResponseAuthentication) {
|
|
s.Authentication = val
|
|
}
|
|
|
|
// SetBranding sets the value of Branding.
|
|
func (s *GetStatusResponseResponse) SetBranding(val GetStatusResponseResponseBranding) {
|
|
s.Branding = val
|
|
}
|
|
|
|
type GetStatusResponseResponseAuthentication struct {
|
|
Passkey NilPasswordSettings `json:"passkey"`
|
|
OAuth2 GetStatusResponseResponseAuthenticationOAuth2 `json:"oauth2"`
|
|
Password NilPasswordSettings `json:"password"`
|
|
}
|
|
|
|
// GetPasskey returns the value of Passkey.
|
|
func (s *GetStatusResponseResponseAuthentication) GetPasskey() NilPasswordSettings {
|
|
return s.Passkey
|
|
}
|
|
|
|
// GetOAuth2 returns the value of OAuth2.
|
|
func (s *GetStatusResponseResponseAuthentication) GetOAuth2() GetStatusResponseResponseAuthenticationOAuth2 {
|
|
return s.OAuth2
|
|
}
|
|
|
|
// GetPassword returns the value of Password.
|
|
func (s *GetStatusResponseResponseAuthentication) GetPassword() NilPasswordSettings {
|
|
return s.Password
|
|
}
|
|
|
|
// SetPasskey sets the value of Passkey.
|
|
func (s *GetStatusResponseResponseAuthentication) SetPasskey(val NilPasswordSettings) {
|
|
s.Passkey = val
|
|
}
|
|
|
|
// SetOAuth2 sets the value of OAuth2.
|
|
func (s *GetStatusResponseResponseAuthentication) SetOAuth2(val GetStatusResponseResponseAuthenticationOAuth2) {
|
|
s.OAuth2 = val
|
|
}
|
|
|
|
// SetPassword sets the value of Password.
|
|
func (s *GetStatusResponseResponseAuthentication) SetPassword(val NilPasswordSettings) {
|
|
s.Password = val
|
|
}
|
|
|
|
type GetStatusResponseResponseAuthenticationOAuth2 struct {
|
|
Providers GetStatusResponseResponseAuthenticationOAuth2Providers `json:"providers"`
|
|
}
|
|
|
|
// GetProviders returns the value of Providers.
|
|
func (s *GetStatusResponseResponseAuthenticationOAuth2) GetProviders() GetStatusResponseResponseAuthenticationOAuth2Providers {
|
|
return s.Providers
|
|
}
|
|
|
|
// SetProviders sets the value of Providers.
|
|
func (s *GetStatusResponseResponseAuthenticationOAuth2) SetProviders(val GetStatusResponseResponseAuthenticationOAuth2Providers) {
|
|
s.Providers = val
|
|
}
|
|
|
|
type GetStatusResponseResponseAuthenticationOAuth2Providers map[string]bool
|
|
|
|
func (s *GetStatusResponseResponseAuthenticationOAuth2Providers) init() GetStatusResponseResponseAuthenticationOAuth2Providers {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]bool{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type GetStatusResponseResponseBranding struct {
|
|
Title NilString `json:"title"`
|
|
LogoUrl NilString `json:"logoUrl"`
|
|
}
|
|
|
|
// GetTitle returns the value of Title.
|
|
func (s *GetStatusResponseResponseBranding) GetTitle() NilString {
|
|
return s.Title
|
|
}
|
|
|
|
// GetLogoUrl returns the value of LogoUrl.
|
|
func (s *GetStatusResponseResponseBranding) GetLogoUrl() NilString {
|
|
return s.LogoUrl
|
|
}
|
|
|
|
// SetTitle sets the value of Title.
|
|
func (s *GetStatusResponseResponseBranding) SetTitle(val NilString) {
|
|
s.Title = val
|
|
}
|
|
|
|
// SetLogoUrl sets the value of LogoUrl.
|
|
func (s *GetStatusResponseResponseBranding) SetLogoUrl(val NilString) {
|
|
s.LogoUrl = val
|
|
}
|
|
|
|
// GetStatusResponseStatusCode wraps GetStatusResponse with StatusCode.
|
|
type GetStatusResponseStatusCode struct {
|
|
StatusCode int
|
|
Response GetStatusResponse
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *GetStatusResponseStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetStatusResponseStatusCode) GetResponse() GetStatusResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *GetStatusResponseStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetStatusResponseStatusCode) SetResponse(val GetStatusResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetStatusResponseStatusCode) authGetStatusRes() {}
|
|
|
|
// Ref: #/components/schemas/GetSubpageConfigByShortUuidRequestBody
|
|
type GetSubpageConfigByShortUuidRequestBody struct {
|
|
RequestHeaders GetSubpageConfigByShortUuidRequestBodyRequestHeaders `json:"requestHeaders"`
|
|
}
|
|
|
|
// GetRequestHeaders returns the value of RequestHeaders.
|
|
func (s *GetSubpageConfigByShortUuidRequestBody) GetRequestHeaders() GetSubpageConfigByShortUuidRequestBodyRequestHeaders {
|
|
return s.RequestHeaders
|
|
}
|
|
|
|
// SetRequestHeaders sets the value of RequestHeaders.
|
|
func (s *GetSubpageConfigByShortUuidRequestBody) SetRequestHeaders(val GetSubpageConfigByShortUuidRequestBodyRequestHeaders) {
|
|
s.RequestHeaders = val
|
|
}
|
|
|
|
type GetSubpageConfigByShortUuidRequestBodyRequestHeaders map[string]string
|
|
|
|
func (s *GetSubpageConfigByShortUuidRequestBodyRequestHeaders) init() GetSubpageConfigByShortUuidRequestBodyRequestHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetSubpageConfigByShortUuidResponse
|
|
type GetSubpageConfigByShortUuidResponse struct {
|
|
Response GetSubpageConfigByShortUuidResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetSubpageConfigByShortUuidResponse) GetResponse() GetSubpageConfigByShortUuidResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetSubpageConfigByShortUuidResponse) SetResponse(val GetSubpageConfigByShortUuidResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetSubpageConfigByShortUuidResponse) subscriptionsGetSubpageConfigByShortUuidRes() {}
|
|
|
|
type GetSubpageConfigByShortUuidResponseResponse struct {
|
|
SubpageConfigUuid NilUUID `json:"subpageConfigUuid"`
|
|
WebpageAllowed bool `json:"webpageAllowed"`
|
|
}
|
|
|
|
// GetSubpageConfigUuid returns the value of SubpageConfigUuid.
|
|
func (s *GetSubpageConfigByShortUuidResponseResponse) GetSubpageConfigUuid() NilUUID {
|
|
return s.SubpageConfigUuid
|
|
}
|
|
|
|
// GetWebpageAllowed returns the value of WebpageAllowed.
|
|
func (s *GetSubpageConfigByShortUuidResponseResponse) GetWebpageAllowed() bool {
|
|
return s.WebpageAllowed
|
|
}
|
|
|
|
// SetSubpageConfigUuid sets the value of SubpageConfigUuid.
|
|
func (s *GetSubpageConfigByShortUuidResponseResponse) SetSubpageConfigUuid(val NilUUID) {
|
|
s.SubpageConfigUuid = val
|
|
}
|
|
|
|
// SetWebpageAllowed sets the value of WebpageAllowed.
|
|
func (s *GetSubpageConfigByShortUuidResponseResponse) SetWebpageAllowed(val bool) {
|
|
s.WebpageAllowed = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetSubscriptionRequestHistoryResponse
|
|
type GetSubscriptionRequestHistoryResponse struct {
|
|
Response UserSubscriptionHistory `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetSubscriptionRequestHistoryResponse) GetResponse() UserSubscriptionHistory {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetSubscriptionRequestHistoryResponse) SetResponse(val UserSubscriptionHistory) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetSubscriptionRequestHistoryResponse) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryRes() {
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetSubscriptionRequestHistoryStatsResponse
|
|
type GetSubscriptionRequestHistoryStatsResponse struct {
|
|
Response GetSubscriptionRequestHistoryStatsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponse) GetResponse() GetSubscriptionRequestHistoryStatsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponse) SetResponse(val GetSubscriptionRequestHistoryStatsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetSubscriptionRequestHistoryStatsResponse) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsRes() {
|
|
}
|
|
|
|
type GetSubscriptionRequestHistoryStatsResponseResponse struct {
|
|
ByParsedApp []ByAppItem `json:"byParsedApp"`
|
|
HourlyRequestStats []GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem `json:"hourlyRequestStats"`
|
|
}
|
|
|
|
// GetByParsedApp returns the value of ByParsedApp.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponse) GetByParsedApp() []ByAppItem {
|
|
return s.ByParsedApp
|
|
}
|
|
|
|
// GetHourlyRequestStats returns the value of HourlyRequestStats.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponse) GetHourlyRequestStats() []GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem {
|
|
return s.HourlyRequestStats
|
|
}
|
|
|
|
// SetByParsedApp sets the value of ByParsedApp.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponse) SetByParsedApp(val []ByAppItem) {
|
|
s.ByParsedApp = val
|
|
}
|
|
|
|
// SetHourlyRequestStats sets the value of HourlyRequestStats.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponse) SetHourlyRequestStats(val []GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem) {
|
|
s.HourlyRequestStats = val
|
|
}
|
|
|
|
type GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem struct {
|
|
DateTime time.Time `json:"dateTime"`
|
|
RequestCount float64 `json:"requestCount"`
|
|
}
|
|
|
|
// GetDateTime returns the value of DateTime.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem) GetDateTime() time.Time {
|
|
return s.DateTime
|
|
}
|
|
|
|
// GetRequestCount returns the value of RequestCount.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem) GetRequestCount() float64 {
|
|
return s.RequestCount
|
|
}
|
|
|
|
// SetDateTime sets the value of DateTime.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem) SetDateTime(val time.Time) {
|
|
s.DateTime = val
|
|
}
|
|
|
|
// SetRequestCount sets the value of RequestCount.
|
|
func (s *GetSubscriptionRequestHistoryStatsResponseResponseHourlyRequestStatsItem) SetRequestCount(val float64) {
|
|
s.RequestCount = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetTopUsersByHwidDevicesResponse
|
|
type GetTopUsersByHwidDevicesResponse struct {
|
|
Response GetTopUsersByHwidDevicesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetTopUsersByHwidDevicesResponse) GetResponse() GetTopUsersByHwidDevicesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetTopUsersByHwidDevicesResponse) SetResponse(val GetTopUsersByHwidDevicesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetTopUsersByHwidDevicesResponse) hwidUserDevicesGetTopUsersByHwidDevicesRes() {}
|
|
|
|
type GetTopUsersByHwidDevicesResponseResponse struct {
|
|
Users []GetTopUsersByHwidDevicesResponseResponseUsersItem `json:"users"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponse) GetUsers() []GetTopUsersByHwidDevicesResponseResponseUsersItem {
|
|
return s.Users
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponse) SetUsers(val []GetTopUsersByHwidDevicesResponseResponseUsersItem) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
type GetTopUsersByHwidDevicesResponseResponseUsersItem struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
ID float64 `json:"id"`
|
|
Username string `json:"username"`
|
|
DevicesCount float64 `json:"devicesCount"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) GetID() float64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetDevicesCount returns the value of DevicesCount.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) GetDevicesCount() float64 {
|
|
return s.DevicesCount
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) SetID(val float64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetDevicesCount sets the value of DevicesCount.
|
|
func (s *GetTopUsersByHwidDevicesResponseResponseUsersItem) SetDevicesCount(val float64) {
|
|
s.DevicesCount = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetTorrentBlockerReportsStatsResponse
|
|
type GetTorrentBlockerReportsStatsResponse struct {
|
|
Response GetTorrentBlockerReportsStatsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetTorrentBlockerReportsStatsResponse) GetResponse() GetTorrentBlockerReportsStatsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetTorrentBlockerReportsStatsResponse) SetResponse(val GetTorrentBlockerReportsStatsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetTorrentBlockerReportsStatsResponse) torrentBlockerReportsGetTorrentBlockerReportsStatsRes() {
|
|
}
|
|
|
|
type GetTorrentBlockerReportsStatsResponseResponse struct {
|
|
Stats GetTorrentBlockerReportsStatsResponseResponseStats `json:"stats"`
|
|
TopUsers []GetTorrentBlockerReportsStatsResponseResponseTopUsersItem `json:"topUsers"`
|
|
TopNodes []TopNode `json:"topNodes"`
|
|
}
|
|
|
|
// GetStats returns the value of Stats.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) GetStats() GetTorrentBlockerReportsStatsResponseResponseStats {
|
|
return s.Stats
|
|
}
|
|
|
|
// GetTopUsers returns the value of TopUsers.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) GetTopUsers() []GetTorrentBlockerReportsStatsResponseResponseTopUsersItem {
|
|
return s.TopUsers
|
|
}
|
|
|
|
// GetTopNodes returns the value of TopNodes.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) GetTopNodes() []TopNode {
|
|
return s.TopNodes
|
|
}
|
|
|
|
// SetStats sets the value of Stats.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) SetStats(val GetTorrentBlockerReportsStatsResponseResponseStats) {
|
|
s.Stats = val
|
|
}
|
|
|
|
// SetTopUsers sets the value of TopUsers.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) SetTopUsers(val []GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) {
|
|
s.TopUsers = val
|
|
}
|
|
|
|
// SetTopNodes sets the value of TopNodes.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponse) SetTopNodes(val []TopNode) {
|
|
s.TopNodes = val
|
|
}
|
|
|
|
type GetTorrentBlockerReportsStatsResponseResponseStats struct {
|
|
DistinctNodes float64 `json:"distinctNodes"`
|
|
DistinctUsers float64 `json:"distinctUsers"`
|
|
TotalReports float64 `json:"totalReports"`
|
|
ReportsLast24Hours float64 `json:"reportsLast24Hours"`
|
|
}
|
|
|
|
// GetDistinctNodes returns the value of DistinctNodes.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) GetDistinctNodes() float64 {
|
|
return s.DistinctNodes
|
|
}
|
|
|
|
// GetDistinctUsers returns the value of DistinctUsers.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) GetDistinctUsers() float64 {
|
|
return s.DistinctUsers
|
|
}
|
|
|
|
// GetTotalReports returns the value of TotalReports.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) GetTotalReports() float64 {
|
|
return s.TotalReports
|
|
}
|
|
|
|
// GetReportsLast24Hours returns the value of ReportsLast24Hours.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) GetReportsLast24Hours() float64 {
|
|
return s.ReportsLast24Hours
|
|
}
|
|
|
|
// SetDistinctNodes sets the value of DistinctNodes.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) SetDistinctNodes(val float64) {
|
|
s.DistinctNodes = val
|
|
}
|
|
|
|
// SetDistinctUsers sets the value of DistinctUsers.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) SetDistinctUsers(val float64) {
|
|
s.DistinctUsers = val
|
|
}
|
|
|
|
// SetTotalReports sets the value of TotalReports.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) SetTotalReports(val float64) {
|
|
s.TotalReports = val
|
|
}
|
|
|
|
// SetReportsLast24Hours sets the value of ReportsLast24Hours.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseStats) SetReportsLast24Hours(val float64) {
|
|
s.ReportsLast24Hours = val
|
|
}
|
|
|
|
type GetTorrentBlockerReportsStatsResponseResponseTopUsersItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Color string `json:"color"`
|
|
Username string `json:"username"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetColor returns the value of Color.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) GetColor() string {
|
|
return s.Color
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetColor sets the value of Color.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) SetColor(val string) {
|
|
s.Color = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *GetTorrentBlockerReportsStatsResponseResponseTopUsersItem) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetUserAccessibleNodesResponse
|
|
type GetUserAccessibleNodesResponse struct {
|
|
Response GetUserAccessibleNodesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetUserAccessibleNodesResponse) GetResponse() GetUserAccessibleNodesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetUserAccessibleNodesResponse) SetResponse(val GetUserAccessibleNodesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetUserAccessibleNodesResponse) usersGetUserAccessibleNodesRes() {}
|
|
|
|
type GetUserAccessibleNodesResponseResponse struct {
|
|
UserUuid uuid.UUID `json:"userUuid"`
|
|
ActiveNodes []GetUserAccessibleNodesResponseResponseActiveNodesItem `json:"activeNodes"`
|
|
}
|
|
|
|
// GetUserUuid returns the value of UserUuid.
|
|
func (s *GetUserAccessibleNodesResponseResponse) GetUserUuid() uuid.UUID {
|
|
return s.UserUuid
|
|
}
|
|
|
|
// GetActiveNodes returns the value of ActiveNodes.
|
|
func (s *GetUserAccessibleNodesResponseResponse) GetActiveNodes() []GetUserAccessibleNodesResponseResponseActiveNodesItem {
|
|
return s.ActiveNodes
|
|
}
|
|
|
|
// SetUserUuid sets the value of UserUuid.
|
|
func (s *GetUserAccessibleNodesResponseResponse) SetUserUuid(val uuid.UUID) {
|
|
s.UserUuid = val
|
|
}
|
|
|
|
// SetActiveNodes sets the value of ActiveNodes.
|
|
func (s *GetUserAccessibleNodesResponseResponse) SetActiveNodes(val []GetUserAccessibleNodesResponseResponseActiveNodesItem) {
|
|
s.ActiveNodes = val
|
|
}
|
|
|
|
type GetUserAccessibleNodesResponseResponseActiveNodesItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
NodeName string `json:"nodeName"`
|
|
CountryCode string `json:"countryCode"`
|
|
ConfigProfileUuid uuid.UUID `json:"configProfileUuid"`
|
|
ConfigProfileName string `json:"configProfileName"`
|
|
ActiveSquads []GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem `json:"activeSquads"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetNodeName returns the value of NodeName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetNodeName() string {
|
|
return s.NodeName
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConfigProfileUuid returns the value of ConfigProfileUuid.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetConfigProfileUuid() uuid.UUID {
|
|
return s.ConfigProfileUuid
|
|
}
|
|
|
|
// GetConfigProfileName returns the value of ConfigProfileName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetConfigProfileName() string {
|
|
return s.ConfigProfileName
|
|
}
|
|
|
|
// GetActiveSquads returns the value of ActiveSquads.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) GetActiveSquads() []GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem {
|
|
return s.ActiveSquads
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetNodeName sets the value of NodeName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetNodeName(val string) {
|
|
s.NodeName = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConfigProfileUuid sets the value of ConfigProfileUuid.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetConfigProfileUuid(val uuid.UUID) {
|
|
s.ConfigProfileUuid = val
|
|
}
|
|
|
|
// SetConfigProfileName sets the value of ConfigProfileName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetConfigProfileName(val string) {
|
|
s.ConfigProfileName = val
|
|
}
|
|
|
|
// SetActiveSquads sets the value of ActiveSquads.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItem) SetActiveSquads(val []GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem) {
|
|
s.ActiveSquads = val
|
|
}
|
|
|
|
type GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem struct {
|
|
SquadName string `json:"squadName"`
|
|
ActiveInbounds []string `json:"activeInbounds"`
|
|
}
|
|
|
|
// GetSquadName returns the value of SquadName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem) GetSquadName() string {
|
|
return s.SquadName
|
|
}
|
|
|
|
// GetActiveInbounds returns the value of ActiveInbounds.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem) GetActiveInbounds() []string {
|
|
return s.ActiveInbounds
|
|
}
|
|
|
|
// SetSquadName sets the value of SquadName.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem) SetSquadName(val string) {
|
|
s.SquadName = val
|
|
}
|
|
|
|
// SetActiveInbounds sets the value of ActiveInbounds.
|
|
func (s *GetUserAccessibleNodesResponseResponseActiveNodesItemActiveSquadsItem) SetActiveInbounds(val []string) {
|
|
s.ActiveInbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/GetUserSubscriptionRequestHistoryResponse
|
|
type GetUserSubscriptionRequestHistoryResponse struct {
|
|
Response UserSubscriptionHistory `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetUserSubscriptionRequestHistoryResponse) GetResponse() UserSubscriptionHistory {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetUserSubscriptionRequestHistoryResponse) SetResponse(val UserSubscriptionHistory) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetUserSubscriptionRequestHistoryResponse) usersGetUserSubscriptionRequestHistoryRes() {}
|
|
|
|
// Ref: #/components/schemas/GetUsersStreamResponse
|
|
type GetUsersStreamResponse struct {
|
|
Response GetUsersStreamResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *GetUsersStreamResponse) GetResponse() GetUsersStreamResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *GetUsersStreamResponse) SetResponse(val GetUsersStreamResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*GetUsersStreamResponse) usersGetUsersStreamRes() {}
|
|
|
|
type GetUsersStreamResponseResponse struct {
|
|
Users []UserItemInfo `json:"users"`
|
|
// Cursor to fetch the next page, or null if there are no more results.
|
|
NextCursor NilString `json:"nextCursor"`
|
|
// Whether there are more results to fetch.
|
|
HasMore bool `json:"hasMore"`
|
|
}
|
|
|
|
// GetUsers returns the value of Users.
|
|
func (s *GetUsersStreamResponseResponse) GetUsers() []UserItemInfo {
|
|
return s.Users
|
|
}
|
|
|
|
// GetNextCursor returns the value of NextCursor.
|
|
func (s *GetUsersStreamResponseResponse) GetNextCursor() NilString {
|
|
return s.NextCursor
|
|
}
|
|
|
|
// GetHasMore returns the value of HasMore.
|
|
func (s *GetUsersStreamResponseResponse) GetHasMore() bool {
|
|
return s.HasMore
|
|
}
|
|
|
|
// SetUsers sets the value of Users.
|
|
func (s *GetUsersStreamResponseResponse) SetUsers(val []UserItemInfo) {
|
|
s.Users = val
|
|
}
|
|
|
|
// SetNextCursor sets the value of NextCursor.
|
|
func (s *GetUsersStreamResponseResponse) SetNextCursor(val NilString) {
|
|
s.NextCursor = val
|
|
}
|
|
|
|
// SetHasMore sets the value of HasMore.
|
|
func (s *GetUsersStreamResponseResponse) SetHasMore(val bool) {
|
|
s.HasMore = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Github
|
|
type Github struct {
|
|
Enabled bool `json:"enabled"`
|
|
ClientId NilString `json:"clientId"`
|
|
ClientSecret NilString `json:"clientSecret"`
|
|
AllowedEmails []string `json:"allowedEmails"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Github) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetClientId returns the value of ClientId.
|
|
func (s *Github) GetClientId() NilString {
|
|
return s.ClientId
|
|
}
|
|
|
|
// GetClientSecret returns the value of ClientSecret.
|
|
func (s *Github) GetClientSecret() NilString {
|
|
return s.ClientSecret
|
|
}
|
|
|
|
// GetAllowedEmails returns the value of AllowedEmails.
|
|
func (s *Github) GetAllowedEmails() []string {
|
|
return s.AllowedEmails
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Github) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetClientId sets the value of ClientId.
|
|
func (s *Github) SetClientId(val NilString) {
|
|
s.ClientId = val
|
|
}
|
|
|
|
// SetClientSecret sets the value of ClientSecret.
|
|
func (s *Github) SetClientSecret(val NilString) {
|
|
s.ClientSecret = val
|
|
}
|
|
|
|
// SetAllowedEmails sets the value of AllowedEmails.
|
|
func (s *Github) SetAllowedEmails(val []string) {
|
|
s.AllowedEmails = val
|
|
}
|
|
|
|
// {"markdownDescription":"**Key** and **value** of the response header will be added to the response.
|
|
// "}.
|
|
// Ref: #/components/schemas/Header
|
|
type Header struct {
|
|
// {"markdownDescription":"Key of the response header. Must comply with RFC 7230."}.
|
|
Key string `json:"key"`
|
|
// {"markdownDescription":"Value of the response header. "}.
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
// GetKey returns the value of Key.
|
|
func (s *Header) GetKey() string {
|
|
return s.Key
|
|
}
|
|
|
|
// GetValue returns the value of Value.
|
|
func (s *Header) GetValue() string {
|
|
return s.Value
|
|
}
|
|
|
|
// SetKey sets the value of Key.
|
|
func (s *Header) SetKey(val string) {
|
|
s.Key = val
|
|
}
|
|
|
|
// SetValue sets the value of Value.
|
|
func (s *Header) SetValue(val string) {
|
|
s.Value = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/HostItem
|
|
type HostItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Remark string `json:"remark"`
|
|
Address string `json:"address"`
|
|
Port int `json:"port"`
|
|
Path NilString `json:"path"`
|
|
Sni NilString `json:"sni"`
|
|
Host NilString `json:"host"`
|
|
Alpn NilHostItemAlpn `json:"alpn"`
|
|
Fingerprint NilString `json:"fingerprint"`
|
|
IsDisabled bool `json:"isDisabled"`
|
|
SecurityLayer OptHostItemSecurityLayer `json:"securityLayer"`
|
|
XhttpExtraParams jx.Raw `json:"xhttpExtraParams"`
|
|
MuxParams jx.Raw `json:"muxParams"`
|
|
SockoptParams jx.Raw `json:"sockoptParams"`
|
|
FinalMask jx.Raw `json:"finalMask"`
|
|
Inbound InboundItem `json:"inbound"`
|
|
ServerDescription NilString `json:"serverDescription"`
|
|
Tags []string `json:"tags"`
|
|
IsHidden OptBool `json:"isHidden"`
|
|
OverrideSniFromAddress OptBool `json:"overrideSniFromAddress"`
|
|
KeepSniBlank OptBool `json:"keepSniBlank"`
|
|
VlessRouteId NilInt `json:"vlessRouteId"`
|
|
PinnedPeerCertSha256 NilString `json:"pinnedPeerCertSha256"`
|
|
VerifyPeerCertByName NilString `json:"verifyPeerCertByName"`
|
|
ShuffleHost bool `json:"shuffleHost"`
|
|
MihomoX25519 bool `json:"mihomoX25519"`
|
|
MihomoIpVersion NilHostItemMihomoIpVersion `json:"mihomoIpVersion"`
|
|
Nodes []uuid.UUID `json:"nodes"`
|
|
XrayJsonTemplateUuid NilUUID `json:"xrayJsonTemplateUuid"`
|
|
ExcludedInternalSquads []uuid.UUID `json:"excludedInternalSquads"`
|
|
ExcludeFromSubscriptionTypes []HostItemExcludeFromSubscriptionTypesItem `json:"excludeFromSubscriptionTypes"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *HostItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *HostItem) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetRemark returns the value of Remark.
|
|
func (s *HostItem) GetRemark() string {
|
|
return s.Remark
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *HostItem) GetAddress() string {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *HostItem) GetPort() int {
|
|
return s.Port
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *HostItem) GetPath() NilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetSni returns the value of Sni.
|
|
func (s *HostItem) GetSni() NilString {
|
|
return s.Sni
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *HostItem) GetHost() NilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetAlpn returns the value of Alpn.
|
|
func (s *HostItem) GetAlpn() NilHostItemAlpn {
|
|
return s.Alpn
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *HostItem) GetFingerprint() NilString {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *HostItem) GetIsDisabled() bool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetSecurityLayer returns the value of SecurityLayer.
|
|
func (s *HostItem) GetSecurityLayer() OptHostItemSecurityLayer {
|
|
return s.SecurityLayer
|
|
}
|
|
|
|
// GetXhttpExtraParams returns the value of XhttpExtraParams.
|
|
func (s *HostItem) GetXhttpExtraParams() jx.Raw {
|
|
return s.XhttpExtraParams
|
|
}
|
|
|
|
// GetMuxParams returns the value of MuxParams.
|
|
func (s *HostItem) GetMuxParams() jx.Raw {
|
|
return s.MuxParams
|
|
}
|
|
|
|
// GetSockoptParams returns the value of SockoptParams.
|
|
func (s *HostItem) GetSockoptParams() jx.Raw {
|
|
return s.SockoptParams
|
|
}
|
|
|
|
// GetFinalMask returns the value of FinalMask.
|
|
func (s *HostItem) GetFinalMask() jx.Raw {
|
|
return s.FinalMask
|
|
}
|
|
|
|
// GetInbound returns the value of Inbound.
|
|
func (s *HostItem) GetInbound() InboundItem {
|
|
return s.Inbound
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *HostItem) GetServerDescription() NilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *HostItem) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetIsHidden returns the value of IsHidden.
|
|
func (s *HostItem) GetIsHidden() OptBool {
|
|
return s.IsHidden
|
|
}
|
|
|
|
// GetOverrideSniFromAddress returns the value of OverrideSniFromAddress.
|
|
func (s *HostItem) GetOverrideSniFromAddress() OptBool {
|
|
return s.OverrideSniFromAddress
|
|
}
|
|
|
|
// GetKeepSniBlank returns the value of KeepSniBlank.
|
|
func (s *HostItem) GetKeepSniBlank() OptBool {
|
|
return s.KeepSniBlank
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *HostItem) GetVlessRouteId() NilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// GetPinnedPeerCertSha256 returns the value of PinnedPeerCertSha256.
|
|
func (s *HostItem) GetPinnedPeerCertSha256() NilString {
|
|
return s.PinnedPeerCertSha256
|
|
}
|
|
|
|
// GetVerifyPeerCertByName returns the value of VerifyPeerCertByName.
|
|
func (s *HostItem) GetVerifyPeerCertByName() NilString {
|
|
return s.VerifyPeerCertByName
|
|
}
|
|
|
|
// GetShuffleHost returns the value of ShuffleHost.
|
|
func (s *HostItem) GetShuffleHost() bool {
|
|
return s.ShuffleHost
|
|
}
|
|
|
|
// GetMihomoX25519 returns the value of MihomoX25519.
|
|
func (s *HostItem) GetMihomoX25519() bool {
|
|
return s.MihomoX25519
|
|
}
|
|
|
|
// GetMihomoIpVersion returns the value of MihomoIpVersion.
|
|
func (s *HostItem) GetMihomoIpVersion() NilHostItemMihomoIpVersion {
|
|
return s.MihomoIpVersion
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *HostItem) GetNodes() []uuid.UUID {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetXrayJsonTemplateUuid returns the value of XrayJsonTemplateUuid.
|
|
func (s *HostItem) GetXrayJsonTemplateUuid() NilUUID {
|
|
return s.XrayJsonTemplateUuid
|
|
}
|
|
|
|
// GetExcludedInternalSquads returns the value of ExcludedInternalSquads.
|
|
func (s *HostItem) GetExcludedInternalSquads() []uuid.UUID {
|
|
return s.ExcludedInternalSquads
|
|
}
|
|
|
|
// GetExcludeFromSubscriptionTypes returns the value of ExcludeFromSubscriptionTypes.
|
|
func (s *HostItem) GetExcludeFromSubscriptionTypes() []HostItemExcludeFromSubscriptionTypesItem {
|
|
return s.ExcludeFromSubscriptionTypes
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *HostItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *HostItem) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetRemark sets the value of Remark.
|
|
func (s *HostItem) SetRemark(val string) {
|
|
s.Remark = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *HostItem) SetAddress(val string) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *HostItem) SetPort(val int) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *HostItem) SetPath(val NilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetSni sets the value of Sni.
|
|
func (s *HostItem) SetSni(val NilString) {
|
|
s.Sni = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *HostItem) SetHost(val NilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetAlpn sets the value of Alpn.
|
|
func (s *HostItem) SetAlpn(val NilHostItemAlpn) {
|
|
s.Alpn = val
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *HostItem) SetFingerprint(val NilString) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *HostItem) SetIsDisabled(val bool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetSecurityLayer sets the value of SecurityLayer.
|
|
func (s *HostItem) SetSecurityLayer(val OptHostItemSecurityLayer) {
|
|
s.SecurityLayer = val
|
|
}
|
|
|
|
// SetXhttpExtraParams sets the value of XhttpExtraParams.
|
|
func (s *HostItem) SetXhttpExtraParams(val jx.Raw) {
|
|
s.XhttpExtraParams = val
|
|
}
|
|
|
|
// SetMuxParams sets the value of MuxParams.
|
|
func (s *HostItem) SetMuxParams(val jx.Raw) {
|
|
s.MuxParams = val
|
|
}
|
|
|
|
// SetSockoptParams sets the value of SockoptParams.
|
|
func (s *HostItem) SetSockoptParams(val jx.Raw) {
|
|
s.SockoptParams = val
|
|
}
|
|
|
|
// SetFinalMask sets the value of FinalMask.
|
|
func (s *HostItem) SetFinalMask(val jx.Raw) {
|
|
s.FinalMask = val
|
|
}
|
|
|
|
// SetInbound sets the value of Inbound.
|
|
func (s *HostItem) SetInbound(val InboundItem) {
|
|
s.Inbound = val
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *HostItem) SetServerDescription(val NilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *HostItem) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetIsHidden sets the value of IsHidden.
|
|
func (s *HostItem) SetIsHidden(val OptBool) {
|
|
s.IsHidden = val
|
|
}
|
|
|
|
// SetOverrideSniFromAddress sets the value of OverrideSniFromAddress.
|
|
func (s *HostItem) SetOverrideSniFromAddress(val OptBool) {
|
|
s.OverrideSniFromAddress = val
|
|
}
|
|
|
|
// SetKeepSniBlank sets the value of KeepSniBlank.
|
|
func (s *HostItem) SetKeepSniBlank(val OptBool) {
|
|
s.KeepSniBlank = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *HostItem) SetVlessRouteId(val NilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// SetPinnedPeerCertSha256 sets the value of PinnedPeerCertSha256.
|
|
func (s *HostItem) SetPinnedPeerCertSha256(val NilString) {
|
|
s.PinnedPeerCertSha256 = val
|
|
}
|
|
|
|
// SetVerifyPeerCertByName sets the value of VerifyPeerCertByName.
|
|
func (s *HostItem) SetVerifyPeerCertByName(val NilString) {
|
|
s.VerifyPeerCertByName = val
|
|
}
|
|
|
|
// SetShuffleHost sets the value of ShuffleHost.
|
|
func (s *HostItem) SetShuffleHost(val bool) {
|
|
s.ShuffleHost = val
|
|
}
|
|
|
|
// SetMihomoX25519 sets the value of MihomoX25519.
|
|
func (s *HostItem) SetMihomoX25519(val bool) {
|
|
s.MihomoX25519 = val
|
|
}
|
|
|
|
// SetMihomoIpVersion sets the value of MihomoIpVersion.
|
|
func (s *HostItem) SetMihomoIpVersion(val NilHostItemMihomoIpVersion) {
|
|
s.MihomoIpVersion = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *HostItem) SetNodes(val []uuid.UUID) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetXrayJsonTemplateUuid sets the value of XrayJsonTemplateUuid.
|
|
func (s *HostItem) SetXrayJsonTemplateUuid(val NilUUID) {
|
|
s.XrayJsonTemplateUuid = val
|
|
}
|
|
|
|
// SetExcludedInternalSquads sets the value of ExcludedInternalSquads.
|
|
func (s *HostItem) SetExcludedInternalSquads(val []uuid.UUID) {
|
|
s.ExcludedInternalSquads = val
|
|
}
|
|
|
|
// SetExcludeFromSubscriptionTypes sets the value of ExcludeFromSubscriptionTypes.
|
|
func (s *HostItem) SetExcludeFromSubscriptionTypes(val []HostItemExcludeFromSubscriptionTypesItem) {
|
|
s.ExcludeFromSubscriptionTypes = val
|
|
}
|
|
|
|
type HostItemAlpn string
|
|
|
|
const (
|
|
HostItemAlpnH3 HostItemAlpn = "h3"
|
|
HostItemAlpnH2 HostItemAlpn = "h2"
|
|
HostItemAlpnHTTP11 HostItemAlpn = "http/1.1"
|
|
HostItemAlpnH2HTTP11 HostItemAlpn = "h2,http/1.1"
|
|
HostItemAlpnH3H2HTTP11 HostItemAlpn = "h3,h2,http/1.1"
|
|
HostItemAlpnH3H2 HostItemAlpn = "h3,h2"
|
|
)
|
|
|
|
// AllValues returns all HostItemAlpn values.
|
|
func (HostItemAlpn) AllValues() []HostItemAlpn {
|
|
return []HostItemAlpn{
|
|
HostItemAlpnH3,
|
|
HostItemAlpnH2,
|
|
HostItemAlpnHTTP11,
|
|
HostItemAlpnH2HTTP11,
|
|
HostItemAlpnH3H2HTTP11,
|
|
HostItemAlpnH3H2,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s HostItemAlpn) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case HostItemAlpnH3:
|
|
return []byte(s), nil
|
|
case HostItemAlpnH2:
|
|
return []byte(s), nil
|
|
case HostItemAlpnHTTP11:
|
|
return []byte(s), nil
|
|
case HostItemAlpnH2HTTP11:
|
|
return []byte(s), nil
|
|
case HostItemAlpnH3H2HTTP11:
|
|
return []byte(s), nil
|
|
case HostItemAlpnH3H2:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *HostItemAlpn) UnmarshalText(data []byte) error {
|
|
switch HostItemAlpn(data) {
|
|
case HostItemAlpnH3:
|
|
*s = HostItemAlpnH3
|
|
return nil
|
|
case HostItemAlpnH2:
|
|
*s = HostItemAlpnH2
|
|
return nil
|
|
case HostItemAlpnHTTP11:
|
|
*s = HostItemAlpnHTTP11
|
|
return nil
|
|
case HostItemAlpnH2HTTP11:
|
|
*s = HostItemAlpnH2HTTP11
|
|
return nil
|
|
case HostItemAlpnH3H2HTTP11:
|
|
*s = HostItemAlpnH3H2HTTP11
|
|
return nil
|
|
case HostItemAlpnH3H2:
|
|
*s = HostItemAlpnH3H2
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type HostItemExcludeFromSubscriptionTypesItem string
|
|
|
|
const (
|
|
HostItemExcludeFromSubscriptionTypesItemXRAYJSON HostItemExcludeFromSubscriptionTypesItem = "XRAY_JSON"
|
|
HostItemExcludeFromSubscriptionTypesItemXRAYBASE64 HostItemExcludeFromSubscriptionTypesItem = "XRAY_BASE64"
|
|
HostItemExcludeFromSubscriptionTypesItemMIHOMO HostItemExcludeFromSubscriptionTypesItem = "MIHOMO"
|
|
HostItemExcludeFromSubscriptionTypesItemSTASH HostItemExcludeFromSubscriptionTypesItem = "STASH"
|
|
HostItemExcludeFromSubscriptionTypesItemCLASH HostItemExcludeFromSubscriptionTypesItem = "CLASH"
|
|
HostItemExcludeFromSubscriptionTypesItemSINGBOX HostItemExcludeFromSubscriptionTypesItem = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all HostItemExcludeFromSubscriptionTypesItem values.
|
|
func (HostItemExcludeFromSubscriptionTypesItem) AllValues() []HostItemExcludeFromSubscriptionTypesItem {
|
|
return []HostItemExcludeFromSubscriptionTypesItem{
|
|
HostItemExcludeFromSubscriptionTypesItemXRAYJSON,
|
|
HostItemExcludeFromSubscriptionTypesItemXRAYBASE64,
|
|
HostItemExcludeFromSubscriptionTypesItemMIHOMO,
|
|
HostItemExcludeFromSubscriptionTypesItemSTASH,
|
|
HostItemExcludeFromSubscriptionTypesItemCLASH,
|
|
HostItemExcludeFromSubscriptionTypesItemSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s HostItemExcludeFromSubscriptionTypesItem) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case HostItemExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
return []byte(s), nil
|
|
case HostItemExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
return []byte(s), nil
|
|
case HostItemExcludeFromSubscriptionTypesItemMIHOMO:
|
|
return []byte(s), nil
|
|
case HostItemExcludeFromSubscriptionTypesItemSTASH:
|
|
return []byte(s), nil
|
|
case HostItemExcludeFromSubscriptionTypesItemCLASH:
|
|
return []byte(s), nil
|
|
case HostItemExcludeFromSubscriptionTypesItemSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *HostItemExcludeFromSubscriptionTypesItem) UnmarshalText(data []byte) error {
|
|
switch HostItemExcludeFromSubscriptionTypesItem(data) {
|
|
case HostItemExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemXRAYJSON
|
|
return nil
|
|
case HostItemExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemXRAYBASE64
|
|
return nil
|
|
case HostItemExcludeFromSubscriptionTypesItemMIHOMO:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemMIHOMO
|
|
return nil
|
|
case HostItemExcludeFromSubscriptionTypesItemSTASH:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemSTASH
|
|
return nil
|
|
case HostItemExcludeFromSubscriptionTypesItemCLASH:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemCLASH
|
|
return nil
|
|
case HostItemExcludeFromSubscriptionTypesItemSINGBOX:
|
|
*s = HostItemExcludeFromSubscriptionTypesItemSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type HostItemMihomoIpVersion string
|
|
|
|
const (
|
|
HostItemMihomoIpVersionDual HostItemMihomoIpVersion = "dual"
|
|
HostItemMihomoIpVersionIpv4 HostItemMihomoIpVersion = "ipv4"
|
|
HostItemMihomoIpVersionIpv6 HostItemMihomoIpVersion = "ipv6"
|
|
HostItemMihomoIpVersionIpv4Prefer HostItemMihomoIpVersion = "ipv4-prefer"
|
|
HostItemMihomoIpVersionIpv6Prefer HostItemMihomoIpVersion = "ipv6-prefer"
|
|
)
|
|
|
|
// AllValues returns all HostItemMihomoIpVersion values.
|
|
func (HostItemMihomoIpVersion) AllValues() []HostItemMihomoIpVersion {
|
|
return []HostItemMihomoIpVersion{
|
|
HostItemMihomoIpVersionDual,
|
|
HostItemMihomoIpVersionIpv4,
|
|
HostItemMihomoIpVersionIpv6,
|
|
HostItemMihomoIpVersionIpv4Prefer,
|
|
HostItemMihomoIpVersionIpv6Prefer,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s HostItemMihomoIpVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case HostItemMihomoIpVersionDual:
|
|
return []byte(s), nil
|
|
case HostItemMihomoIpVersionIpv4:
|
|
return []byte(s), nil
|
|
case HostItemMihomoIpVersionIpv6:
|
|
return []byte(s), nil
|
|
case HostItemMihomoIpVersionIpv4Prefer:
|
|
return []byte(s), nil
|
|
case HostItemMihomoIpVersionIpv6Prefer:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *HostItemMihomoIpVersion) UnmarshalText(data []byte) error {
|
|
switch HostItemMihomoIpVersion(data) {
|
|
case HostItemMihomoIpVersionDual:
|
|
*s = HostItemMihomoIpVersionDual
|
|
return nil
|
|
case HostItemMihomoIpVersionIpv4:
|
|
*s = HostItemMihomoIpVersionIpv4
|
|
return nil
|
|
case HostItemMihomoIpVersionIpv6:
|
|
*s = HostItemMihomoIpVersionIpv6
|
|
return nil
|
|
case HostItemMihomoIpVersionIpv4Prefer:
|
|
*s = HostItemMihomoIpVersionIpv4Prefer
|
|
return nil
|
|
case HostItemMihomoIpVersionIpv6Prefer:
|
|
*s = HostItemMihomoIpVersionIpv6Prefer
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type HostItemSecurityLayer string
|
|
|
|
const (
|
|
HostItemSecurityLayerDEFAULT HostItemSecurityLayer = "DEFAULT"
|
|
HostItemSecurityLayerTLS HostItemSecurityLayer = "TLS"
|
|
HostItemSecurityLayerNONE HostItemSecurityLayer = "NONE"
|
|
)
|
|
|
|
// AllValues returns all HostItemSecurityLayer values.
|
|
func (HostItemSecurityLayer) AllValues() []HostItemSecurityLayer {
|
|
return []HostItemSecurityLayer{
|
|
HostItemSecurityLayerDEFAULT,
|
|
HostItemSecurityLayerTLS,
|
|
HostItemSecurityLayerNONE,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s HostItemSecurityLayer) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case HostItemSecurityLayerDEFAULT:
|
|
return []byte(s), nil
|
|
case HostItemSecurityLayerTLS:
|
|
return []byte(s), nil
|
|
case HostItemSecurityLayerNONE:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *HostItemSecurityLayer) UnmarshalText(data []byte) error {
|
|
switch HostItemSecurityLayer(data) {
|
|
case HostItemSecurityLayerDEFAULT:
|
|
*s = HostItemSecurityLayerDEFAULT
|
|
return nil
|
|
case HostItemSecurityLayerTLS:
|
|
*s = HostItemSecurityLayerTLS
|
|
return nil
|
|
case HostItemSecurityLayerNONE:
|
|
*s = HostItemSecurityLayerNONE
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/HostListResponse
|
|
type HostListResponse struct {
|
|
Response []HostItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *HostListResponse) GetResponse() []HostItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *HostListResponse) SetResponse(val []HostItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*HostListResponse) hostsBulkActionsDeleteHostsRes() {}
|
|
func (*HostListResponse) hostsBulkActionsDisableHostsRes() {}
|
|
func (*HostListResponse) hostsBulkActionsEnableHostsRes() {}
|
|
func (*HostListResponse) hostsBulkActionsSetPortToHostsRes() {}
|
|
func (*HostListResponse) hostsGetAllHostsRes() {}
|
|
|
|
// Ref: #/components/schemas/HostOverride
|
|
type HostOverride struct {
|
|
ServerDescription OptNilString `json:"serverDescription"`
|
|
VlessRouteId OptNilInt `json:"vlessRouteId"`
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *HostOverride) GetServerDescription() OptNilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *HostOverride) GetVlessRouteId() OptNilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *HostOverride) SetServerDescription(val OptNilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *HostOverride) SetVlessRouteId(val OptNilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/HostResponse
|
|
type HostResponse struct {
|
|
Response HostItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *HostResponse) GetResponse() HostItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *HostResponse) SetResponse(val HostItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*HostResponse) hostsCreateHostRes() {}
|
|
func (*HostResponse) hostsGetOneHostRes() {}
|
|
func (*HostResponse) hostsUpdateHostRes() {}
|
|
|
|
// Ref: #/components/schemas/HwidDevicesResponse
|
|
type HwidDevicesResponse struct {
|
|
Response AllHwidDevices `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *HwidDevicesResponse) GetResponse() AllHwidDevices {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *HwidDevicesResponse) SetResponse(val AllHwidDevices) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*HwidDevicesResponse) hwidUserDevicesCreateUserHwidDeviceRes() {}
|
|
func (*HwidDevicesResponse) hwidUserDevicesDeleteAllUserHwidDevicesRes() {}
|
|
func (*HwidDevicesResponse) hwidUserDevicesDeleteUserHwidDeviceRes() {}
|
|
func (*HwidDevicesResponse) hwidUserDevicesGetUserHwidDevicesRes() {}
|
|
|
|
// Ref: #/components/schemas/HwidSettings
|
|
type HwidSettings struct {
|
|
Enabled bool `json:"enabled"`
|
|
FallbackDeviceLimit float64 `json:"fallbackDeviceLimit"`
|
|
MaxDevicesAnnounce NilString `json:"maxDevicesAnnounce"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *HwidSettings) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetFallbackDeviceLimit returns the value of FallbackDeviceLimit.
|
|
func (s *HwidSettings) GetFallbackDeviceLimit() float64 {
|
|
return s.FallbackDeviceLimit
|
|
}
|
|
|
|
// GetMaxDevicesAnnounce returns the value of MaxDevicesAnnounce.
|
|
func (s *HwidSettings) GetMaxDevicesAnnounce() NilString {
|
|
return s.MaxDevicesAnnounce
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *HwidSettings) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetFallbackDeviceLimit sets the value of FallbackDeviceLimit.
|
|
func (s *HwidSettings) SetFallbackDeviceLimit(val float64) {
|
|
s.FallbackDeviceLimit = val
|
|
}
|
|
|
|
// SetMaxDevicesAnnounce sets the value of MaxDevicesAnnounce.
|
|
func (s *HwidSettings) SetMaxDevicesAnnounce(val NilString) {
|
|
s.MaxDevicesAnnounce = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Inbound
|
|
type Inbound struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ProfileUuid uuid.UUID `json:"profileUuid"`
|
|
Tag string `json:"tag"`
|
|
Type string `json:"type"`
|
|
Network NilString `json:"network"`
|
|
Security NilString `json:"security"`
|
|
Port NilFloat64 `json:"port"`
|
|
RawInbound jx.Raw `json:"rawInbound"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *Inbound) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetProfileUuid returns the value of ProfileUuid.
|
|
func (s *Inbound) GetProfileUuid() uuid.UUID {
|
|
return s.ProfileUuid
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *Inbound) GetTag() string {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetType returns the value of Type.
|
|
func (s *Inbound) GetType() string {
|
|
return s.Type
|
|
}
|
|
|
|
// GetNetwork returns the value of Network.
|
|
func (s *Inbound) GetNetwork() NilString {
|
|
return s.Network
|
|
}
|
|
|
|
// GetSecurity returns the value of Security.
|
|
func (s *Inbound) GetSecurity() NilString {
|
|
return s.Security
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *Inbound) GetPort() NilFloat64 {
|
|
return s.Port
|
|
}
|
|
|
|
// GetRawInbound returns the value of RawInbound.
|
|
func (s *Inbound) GetRawInbound() jx.Raw {
|
|
return s.RawInbound
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *Inbound) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetProfileUuid sets the value of ProfileUuid.
|
|
func (s *Inbound) SetProfileUuid(val uuid.UUID) {
|
|
s.ProfileUuid = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *Inbound) SetTag(val string) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetType sets the value of Type.
|
|
func (s *Inbound) SetType(val string) {
|
|
s.Type = val
|
|
}
|
|
|
|
// SetNetwork sets the value of Network.
|
|
func (s *Inbound) SetNetwork(val NilString) {
|
|
s.Network = val
|
|
}
|
|
|
|
// SetSecurity sets the value of Security.
|
|
func (s *Inbound) SetSecurity(val NilString) {
|
|
s.Security = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *Inbound) SetPort(val NilFloat64) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetRawInbound sets the value of RawInbound.
|
|
func (s *Inbound) SetRawInbound(val jx.Raw) {
|
|
s.RawInbound = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InboundItem
|
|
type InboundItem struct {
|
|
ConfigProfileUuid NilUUID `json:"configProfileUuid"`
|
|
ConfigProfileInboundUuid NilUUID `json:"configProfileInboundUuid"`
|
|
}
|
|
|
|
// GetConfigProfileUuid returns the value of ConfigProfileUuid.
|
|
func (s *InboundItem) GetConfigProfileUuid() NilUUID {
|
|
return s.ConfigProfileUuid
|
|
}
|
|
|
|
// GetConfigProfileInboundUuid returns the value of ConfigProfileInboundUuid.
|
|
func (s *InboundItem) GetConfigProfileInboundUuid() NilUUID {
|
|
return s.ConfigProfileInboundUuid
|
|
}
|
|
|
|
// SetConfigProfileUuid sets the value of ConfigProfileUuid.
|
|
func (s *InboundItem) SetConfigProfileUuid(val NilUUID) {
|
|
s.ConfigProfileUuid = val
|
|
}
|
|
|
|
// SetConfigProfileInboundUuid sets the value of ConfigProfileInboundUuid.
|
|
func (s *InboundItem) SetConfigProfileInboundUuid(val NilUUID) {
|
|
s.ConfigProfileInboundUuid = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InboundRef
|
|
type InboundRef struct {
|
|
ConfigProfileUuid uuid.UUID `json:"configProfileUuid"`
|
|
ConfigProfileInboundUuid uuid.UUID `json:"configProfileInboundUuid"`
|
|
}
|
|
|
|
// GetConfigProfileUuid returns the value of ConfigProfileUuid.
|
|
func (s *InboundRef) GetConfigProfileUuid() uuid.UUID {
|
|
return s.ConfigProfileUuid
|
|
}
|
|
|
|
// GetConfigProfileInboundUuid returns the value of ConfigProfileInboundUuid.
|
|
func (s *InboundRef) GetConfigProfileInboundUuid() uuid.UUID {
|
|
return s.ConfigProfileInboundUuid
|
|
}
|
|
|
|
// SetConfigProfileUuid sets the value of ConfigProfileUuid.
|
|
func (s *InboundRef) SetConfigProfileUuid(val uuid.UUID) {
|
|
s.ConfigProfileUuid = val
|
|
}
|
|
|
|
// SetConfigProfileInboundUuid sets the value of ConfigProfileInboundUuid.
|
|
func (s *InboundRef) SetConfigProfileInboundUuid(val uuid.UUID) {
|
|
s.ConfigProfileInboundUuid = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InboundsResponse
|
|
type InboundsResponse struct {
|
|
Response InboundsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *InboundsResponse) GetResponse() InboundsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *InboundsResponse) SetResponse(val InboundsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*InboundsResponse) configProfileGetAllInboundsRes() {}
|
|
func (*InboundsResponse) configProfileGetInboundsByProfileUuidRes() {}
|
|
|
|
type InboundsResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
Inbounds []InboundsResponseResponseInboundsItem `json:"inbounds"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *InboundsResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetInbounds returns the value of Inbounds.
|
|
func (s *InboundsResponseResponse) GetInbounds() []InboundsResponseResponseInboundsItem {
|
|
return s.Inbounds
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *InboundsResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetInbounds sets the value of Inbounds.
|
|
func (s *InboundsResponseResponse) SetInbounds(val []InboundsResponseResponseInboundsItem) {
|
|
s.Inbounds = val
|
|
}
|
|
|
|
type InboundsResponseResponseInboundsItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ProfileUuid uuid.UUID `json:"profileUuid"`
|
|
Tag string `json:"tag"`
|
|
Type string `json:"type"`
|
|
Network NilString `json:"network"`
|
|
Security NilString `json:"security"`
|
|
Port NilFloat64 `json:"port"`
|
|
RawInbound jx.Raw `json:"rawInbound"`
|
|
ActiveSquads []uuid.UUID `json:"activeSquads"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *InboundsResponseResponseInboundsItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetProfileUuid returns the value of ProfileUuid.
|
|
func (s *InboundsResponseResponseInboundsItem) GetProfileUuid() uuid.UUID {
|
|
return s.ProfileUuid
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *InboundsResponseResponseInboundsItem) GetTag() string {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetType returns the value of Type.
|
|
func (s *InboundsResponseResponseInboundsItem) GetType() string {
|
|
return s.Type
|
|
}
|
|
|
|
// GetNetwork returns the value of Network.
|
|
func (s *InboundsResponseResponseInboundsItem) GetNetwork() NilString {
|
|
return s.Network
|
|
}
|
|
|
|
// GetSecurity returns the value of Security.
|
|
func (s *InboundsResponseResponseInboundsItem) GetSecurity() NilString {
|
|
return s.Security
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *InboundsResponseResponseInboundsItem) GetPort() NilFloat64 {
|
|
return s.Port
|
|
}
|
|
|
|
// GetRawInbound returns the value of RawInbound.
|
|
func (s *InboundsResponseResponseInboundsItem) GetRawInbound() jx.Raw {
|
|
return s.RawInbound
|
|
}
|
|
|
|
// GetActiveSquads returns the value of ActiveSquads.
|
|
func (s *InboundsResponseResponseInboundsItem) GetActiveSquads() []uuid.UUID {
|
|
return s.ActiveSquads
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *InboundsResponseResponseInboundsItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetProfileUuid sets the value of ProfileUuid.
|
|
func (s *InboundsResponseResponseInboundsItem) SetProfileUuid(val uuid.UUID) {
|
|
s.ProfileUuid = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *InboundsResponseResponseInboundsItem) SetTag(val string) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetType sets the value of Type.
|
|
func (s *InboundsResponseResponseInboundsItem) SetType(val string) {
|
|
s.Type = val
|
|
}
|
|
|
|
// SetNetwork sets the value of Network.
|
|
func (s *InboundsResponseResponseInboundsItem) SetNetwork(val NilString) {
|
|
s.Network = val
|
|
}
|
|
|
|
// SetSecurity sets the value of Security.
|
|
func (s *InboundsResponseResponseInboundsItem) SetSecurity(val NilString) {
|
|
s.Security = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *InboundsResponseResponseInboundsItem) SetPort(val NilFloat64) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetRawInbound sets the value of RawInbound.
|
|
func (s *InboundsResponseResponseInboundsItem) SetRawInbound(val jx.Raw) {
|
|
s.RawInbound = val
|
|
}
|
|
|
|
// SetActiveSquads sets the value of ActiveSquads.
|
|
func (s *InboundsResponseResponseInboundsItem) SetActiveSquads(val []uuid.UUID) {
|
|
s.ActiveSquads = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InboundsStat
|
|
type InboundsStat struct {
|
|
Tag string `json:"tag"`
|
|
Upload string `json:"upload"`
|
|
Download string `json:"download"`
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *InboundsStat) GetTag() string {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetUpload returns the value of Upload.
|
|
func (s *InboundsStat) GetUpload() string {
|
|
return s.Upload
|
|
}
|
|
|
|
// GetDownload returns the value of Download.
|
|
func (s *InboundsStat) GetDownload() string {
|
|
return s.Download
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *InboundsStat) SetTag(val string) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetUpload sets the value of Upload.
|
|
func (s *InboundsStat) SetUpload(val string) {
|
|
s.Upload = val
|
|
}
|
|
|
|
// SetDownload sets the value of Download.
|
|
func (s *InboundsStat) SetDownload(val string) {
|
|
s.Download = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InfraProviderResponseResponse
|
|
type InfraProviderResponseResponse struct {
|
|
Response Provider `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *InfraProviderResponseResponse) GetResponse() Provider {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *InfraProviderResponseResponse) SetResponse(val Provider) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*InfraProviderResponseResponse) infraBillingCreateInfraProviderRes() {}
|
|
func (*InfraProviderResponseResponse) infraBillingGetInfraProviderByUuidRes() {}
|
|
func (*InfraProviderResponseResponse) infraBillingUpdateInfraProviderRes() {}
|
|
|
|
// Ref: #/components/schemas/InfraProvidersDetail
|
|
type InfraProvidersDetail struct {
|
|
NodeUuid uuid.UUID `json:"nodeUuid"`
|
|
CountryCode string `json:"countryCode"`
|
|
}
|
|
|
|
// GetNodeUuid returns the value of NodeUuid.
|
|
func (s *InfraProvidersDetail) GetNodeUuid() uuid.UUID {
|
|
return s.NodeUuid
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *InfraProvidersDetail) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// SetNodeUuid sets the value of NodeUuid.
|
|
func (s *InfraProvidersDetail) SetNodeUuid(val uuid.UUID) {
|
|
s.NodeUuid = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *InfraProvidersDetail) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InterfaceItem
|
|
type InterfaceItem struct {
|
|
Interface string `json:"interface"`
|
|
RxBytesPerSec float64 `json:"rxBytesPerSec"`
|
|
TxBytesPerSec float64 `json:"txBytesPerSec"`
|
|
RxTotal float64 `json:"rxTotal"`
|
|
TxTotal float64 `json:"txTotal"`
|
|
}
|
|
|
|
// GetInterface returns the value of Interface.
|
|
func (s *InterfaceItem) GetInterface() string {
|
|
return s.Interface
|
|
}
|
|
|
|
// GetRxBytesPerSec returns the value of RxBytesPerSec.
|
|
func (s *InterfaceItem) GetRxBytesPerSec() float64 {
|
|
return s.RxBytesPerSec
|
|
}
|
|
|
|
// GetTxBytesPerSec returns the value of TxBytesPerSec.
|
|
func (s *InterfaceItem) GetTxBytesPerSec() float64 {
|
|
return s.TxBytesPerSec
|
|
}
|
|
|
|
// GetRxTotal returns the value of RxTotal.
|
|
func (s *InterfaceItem) GetRxTotal() float64 {
|
|
return s.RxTotal
|
|
}
|
|
|
|
// GetTxTotal returns the value of TxTotal.
|
|
func (s *InterfaceItem) GetTxTotal() float64 {
|
|
return s.TxTotal
|
|
}
|
|
|
|
// SetInterface sets the value of Interface.
|
|
func (s *InterfaceItem) SetInterface(val string) {
|
|
s.Interface = val
|
|
}
|
|
|
|
// SetRxBytesPerSec sets the value of RxBytesPerSec.
|
|
func (s *InterfaceItem) SetRxBytesPerSec(val float64) {
|
|
s.RxBytesPerSec = val
|
|
}
|
|
|
|
// SetTxBytesPerSec sets the value of TxBytesPerSec.
|
|
func (s *InterfaceItem) SetTxBytesPerSec(val float64) {
|
|
s.TxBytesPerSec = val
|
|
}
|
|
|
|
// SetRxTotal sets the value of RxTotal.
|
|
func (s *InterfaceItem) SetRxTotal(val float64) {
|
|
s.RxTotal = val
|
|
}
|
|
|
|
// SetTxTotal sets the value of TxTotal.
|
|
func (s *InterfaceItem) SetTxTotal(val float64) {
|
|
s.TxTotal = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InternalServerError
|
|
type InternalServerError struct {
|
|
Timestamp OptString `json:"timestamp"`
|
|
Path OptString `json:"path"`
|
|
Message OptString `json:"message"`
|
|
ErrorCode OptString `json:"errorCode"`
|
|
}
|
|
|
|
// GetTimestamp returns the value of Timestamp.
|
|
func (s *InternalServerError) GetTimestamp() OptString {
|
|
return s.Timestamp
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *InternalServerError) GetPath() OptString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *InternalServerError) GetMessage() OptString {
|
|
return s.Message
|
|
}
|
|
|
|
// GetErrorCode returns the value of ErrorCode.
|
|
func (s *InternalServerError) GetErrorCode() OptString {
|
|
return s.ErrorCode
|
|
}
|
|
|
|
// SetTimestamp sets the value of Timestamp.
|
|
func (s *InternalServerError) SetTimestamp(val OptString) {
|
|
s.Timestamp = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *InternalServerError) SetPath(val OptString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *InternalServerError) SetMessage(val OptString) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetErrorCode sets the value of ErrorCode.
|
|
func (s *InternalServerError) SetErrorCode(val OptString) {
|
|
s.ErrorCode = val
|
|
}
|
|
|
|
func (*InternalServerError) apiTokensCreateRes() {}
|
|
func (*InternalServerError) apiTokensDeleteRes() {}
|
|
func (*InternalServerError) apiTokensFindAllRes() {}
|
|
func (*InternalServerError) apiTokensGetScopesRes() {}
|
|
func (*InternalServerError) authGetStatusRes() {}
|
|
func (*InternalServerError) authLoginRes() {}
|
|
func (*InternalServerError) authOauth2AuthorizeRes() {}
|
|
func (*InternalServerError) authOauth2CallbackRes() {}
|
|
func (*InternalServerError) authPasskeyAuthenticationOptionsRes() {}
|
|
func (*InternalServerError) authPasskeyAuthenticationVerifyRes() {}
|
|
func (*InternalServerError) authRegisterRes() {}
|
|
func (*InternalServerError) bandwidthStatsNodesGetNodeUserUsageRes() {}
|
|
func (*InternalServerError) bandwidthStatsNodesGetStatsNodeUsersUsageRes() {}
|
|
func (*InternalServerError) bandwidthStatsNodesGetStatsNodesUsersUsageRes() {}
|
|
func (*InternalServerError) bandwidthStatsUsersGetStatsNodesUsageRes() {}
|
|
func (*InternalServerError) bandwidthStatsUsersGetUserUsageByRangeRes() {}
|
|
func (*InternalServerError) configProfileCreateConfigProfileRes() {}
|
|
func (*InternalServerError) configProfileDeleteConfigProfileByUuidRes() {}
|
|
func (*InternalServerError) configProfileGetAllInboundsRes() {}
|
|
func (*InternalServerError) configProfileGetComputedConfigProfileByUuidRes() {}
|
|
func (*InternalServerError) configProfileGetConfigProfileByUuidRes() {}
|
|
func (*InternalServerError) configProfileGetConfigProfilesRes() {}
|
|
func (*InternalServerError) configProfileGetInboundsByProfileUuidRes() {}
|
|
func (*InternalServerError) configProfileReorderConfigProfilesRes() {}
|
|
func (*InternalServerError) configProfileUpdateConfigProfileRes() {}
|
|
func (*InternalServerError) externalSquadAddUsersToExternalSquadRes() {}
|
|
func (*InternalServerError) externalSquadCreateExternalSquadRes() {}
|
|
func (*InternalServerError) externalSquadDeleteExternalSquadRes() {}
|
|
func (*InternalServerError) externalSquadGetExternalSquadByUuidRes() {}
|
|
func (*InternalServerError) externalSquadGetExternalSquadsRes() {}
|
|
func (*InternalServerError) externalSquadRemoveUsersFromExternalSquadRes() {}
|
|
func (*InternalServerError) externalSquadReorderExternalSquadsRes() {}
|
|
func (*InternalServerError) externalSquadUpdateExternalSquadRes() {}
|
|
func (*InternalServerError) hostsBulkActionsDeleteHostsRes() {}
|
|
func (*InternalServerError) hostsBulkActionsDisableHostsRes() {}
|
|
func (*InternalServerError) hostsBulkActionsEnableHostsRes() {}
|
|
func (*InternalServerError) hostsBulkActionsSetPortToHostsRes() {}
|
|
func (*InternalServerError) hostsCreateHostRes() {}
|
|
func (*InternalServerError) hostsDeleteHostRes() {}
|
|
func (*InternalServerError) hostsGetAllHostTagsRes() {}
|
|
func (*InternalServerError) hostsGetAllHostsRes() {}
|
|
func (*InternalServerError) hostsGetOneHostRes() {}
|
|
func (*InternalServerError) hostsReorderHostsRes() {}
|
|
func (*InternalServerError) hostsUpdateHostRes() {}
|
|
func (*InternalServerError) hwidUserDevicesCreateUserHwidDeviceRes() {}
|
|
func (*InternalServerError) hwidUserDevicesDeleteAllUserHwidDevicesRes() {}
|
|
func (*InternalServerError) hwidUserDevicesDeleteUserHwidDeviceRes() {}
|
|
func (*InternalServerError) hwidUserDevicesGetAllUsersRes() {}
|
|
func (*InternalServerError) hwidUserDevicesGetHwidDevicesStatsRes() {}
|
|
func (*InternalServerError) hwidUserDevicesGetTopUsersByHwidDevicesRes() {}
|
|
func (*InternalServerError) hwidUserDevicesGetUserHwidDevicesRes() {}
|
|
func (*InternalServerError) infraBillingCreateInfraBillingHistoryRecordRes() {}
|
|
func (*InternalServerError) infraBillingCreateInfraBillingNodeRes() {}
|
|
func (*InternalServerError) infraBillingCreateInfraProviderRes() {}
|
|
func (*InternalServerError) infraBillingDeleteInfraBillingHistoryRecordByUuidRes() {}
|
|
func (*InternalServerError) infraBillingDeleteInfraBillingNodeByUuidRes() {}
|
|
func (*InternalServerError) infraBillingDeleteInfraProviderByUuidRes() {}
|
|
func (*InternalServerError) infraBillingGetBillingNodesRes() {}
|
|
func (*InternalServerError) infraBillingGetInfraBillingHistoryRecordsRes() {}
|
|
func (*InternalServerError) infraBillingGetInfraProviderByUuidRes() {}
|
|
func (*InternalServerError) infraBillingGetInfraProvidersRes() {}
|
|
func (*InternalServerError) infraBillingUpdateInfraBillingNodeRes() {}
|
|
func (*InternalServerError) infraBillingUpdateInfraProviderRes() {}
|
|
func (*InternalServerError) internalSquadAddUsersToInternalSquadRes() {}
|
|
func (*InternalServerError) internalSquadCreateInternalSquadRes() {}
|
|
func (*InternalServerError) internalSquadDeleteInternalSquadRes() {}
|
|
func (*InternalServerError) internalSquadGetInternalSquadAccessibleNodesRes() {}
|
|
func (*InternalServerError) internalSquadGetInternalSquadByUuidRes() {}
|
|
func (*InternalServerError) internalSquadGetInternalSquadsRes() {}
|
|
func (*InternalServerError) internalSquadRemoveUsersFromInternalSquadRes() {}
|
|
func (*InternalServerError) internalSquadReorderInternalSquadsRes() {}
|
|
func (*InternalServerError) internalSquadUpdateInternalSquadRes() {}
|
|
func (*InternalServerError) ipControlDropConnectionsRes() {}
|
|
func (*InternalServerError) ipControlFetchUserIpsRes() {}
|
|
func (*InternalServerError) ipControlFetchUsersIpsRes() {}
|
|
func (*InternalServerError) ipControlGetFetchIpsResultRes() {}
|
|
func (*InternalServerError) ipControlGetFetchUsersIpsResultRes() {}
|
|
func (*InternalServerError) keygenGenerateKeyRes() {}
|
|
func (*InternalServerError) metadataGetNodeMetadataRes() {}
|
|
func (*InternalServerError) metadataGetUserMetadataRes() {}
|
|
func (*InternalServerError) metadataUpsertNodeMetadataRes() {}
|
|
func (*InternalServerError) metadataUpsertUserMetadataRes() {}
|
|
func (*InternalServerError) nodePluginCloneNodePluginRes() {}
|
|
func (*InternalServerError) nodePluginCreateConfigRes() {}
|
|
func (*InternalServerError) nodePluginDeleteConfigRes() {}
|
|
func (*InternalServerError) nodePluginGetAllConfigsRes() {}
|
|
func (*InternalServerError) nodePluginGetConfigByUuidRes() {}
|
|
func (*InternalServerError) nodePluginPluginExecutorRes() {}
|
|
func (*InternalServerError) nodePluginReorderNodePluginsRes() {}
|
|
func (*InternalServerError) nodePluginUpdateConfigRes() {}
|
|
func (*InternalServerError) nodesBulkNodesActionsRes() {}
|
|
func (*InternalServerError) nodesBulkNodesUpdateRes() {}
|
|
func (*InternalServerError) nodesCreateNodeRes() {}
|
|
func (*InternalServerError) nodesDeleteNodeRes() {}
|
|
func (*InternalServerError) nodesDisableNodeRes() {}
|
|
func (*InternalServerError) nodesEnableNodeRes() {}
|
|
func (*InternalServerError) nodesGetAllNodesRes() {}
|
|
func (*InternalServerError) nodesGetAllNodesTagsRes() {}
|
|
func (*InternalServerError) nodesGetOneNodeRes() {}
|
|
func (*InternalServerError) nodesProfileModificationRes() {}
|
|
func (*InternalServerError) nodesReorderNodesRes() {}
|
|
func (*InternalServerError) nodesResetNodeTrafficRes() {}
|
|
func (*InternalServerError) nodesRestartAllNodesRes() {}
|
|
func (*InternalServerError) nodesRestartNodeRes() {}
|
|
func (*InternalServerError) nodesUpdateNodeRes() {}
|
|
func (*InternalServerError) nodesUsageHistoryGetStatsNodesUsageRes() {}
|
|
func (*InternalServerError) passkeyDeletePasskeyRes() {}
|
|
func (*InternalServerError) passkeyGetActivePasskeysRes() {}
|
|
func (*InternalServerError) passkeyPasskeyRegistrationOptionsRes() {}
|
|
func (*InternalServerError) passkeyPasskeyRegistrationVerifyRes() {}
|
|
func (*InternalServerError) passkeyUpdatePasskeyRes() {}
|
|
func (*InternalServerError) remnawaveSettingsGetSettingsRes() {}
|
|
func (*InternalServerError) remnawaveSettingsUpdateSettingsRes() {}
|
|
func (*InternalServerError) snippetsCreateSnippetRes() {}
|
|
func (*InternalServerError) snippetsDeleteSnippetByNameRes() {}
|
|
func (*InternalServerError) snippetsGetSnippetsRes() {}
|
|
func (*InternalServerError) snippetsUpdateSnippetRes() {}
|
|
func (*InternalServerError) subscriptionGetSubscriptionInfoByShortUuidRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigCloneSubscriptionPageConfigRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigCreateConfigRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigDeleteConfigRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigGetAllConfigsRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigGetConfigByUuidRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigReorderSubscriptionPageConfigsRes() {}
|
|
func (*InternalServerError) subscriptionPageConfigUpdateConfigRes() {}
|
|
func (*InternalServerError) subscriptionSettingsGetSettingsRes() {}
|
|
func (*InternalServerError) subscriptionSettingsUpdateSettingsRes() {}
|
|
func (*InternalServerError) subscriptionTemplateCreateTemplateRes() {}
|
|
func (*InternalServerError) subscriptionTemplateDeleteTemplateRes() {}
|
|
func (*InternalServerError) subscriptionTemplateGetAllTemplatesRes() {}
|
|
func (*InternalServerError) subscriptionTemplateGetTemplateByUuidRes() {}
|
|
func (*InternalServerError) subscriptionTemplateReorderSubscriptionTemplatesRes() {}
|
|
func (*InternalServerError) subscriptionTemplateUpdateTemplateRes() {}
|
|
func (*InternalServerError) subscriptionsGetAllSubscriptionsRes() {}
|
|
func (*InternalServerError) subscriptionsGetConnectionKeysByUuidRes() {}
|
|
func (*InternalServerError) subscriptionsGetRawSubscriptionByShortUuidRes() {}
|
|
func (*InternalServerError) subscriptionsGetSubpageConfigByShortUuidRes() {}
|
|
func (*InternalServerError) subscriptionsGetSubscriptionByShortUuidProtectedRes() {}
|
|
func (*InternalServerError) subscriptionsGetSubscriptionByUsernameRes() {}
|
|
func (*InternalServerError) subscriptionsGetSubscriptionByUuidRes() {}
|
|
func (*InternalServerError) systemDebugSrrMatcherRes() {}
|
|
func (*InternalServerError) systemGetBandwidthStatsRes() {}
|
|
func (*InternalServerError) systemGetMetadataRes() {}
|
|
func (*InternalServerError) systemGetNodesMetricsRes() {}
|
|
func (*InternalServerError) systemGetNodesStatisticsRes() {}
|
|
func (*InternalServerError) systemGetRecapRes() {}
|
|
func (*InternalServerError) systemGetRemnawaveHealthRes() {}
|
|
func (*InternalServerError) systemGetStatsRes() {}
|
|
func (*InternalServerError) systemGetX25519KeypairsRes() {}
|
|
func (*InternalServerError) torrentBlockerReportsGetTorrentBlockerReportsRes() {}
|
|
func (*InternalServerError) torrentBlockerReportsGetTorrentBlockerReportsStatsRes() {}
|
|
func (*InternalServerError) torrentBlockerReportsTruncateTorrentBlockerReportsRes() {}
|
|
func (*InternalServerError) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryRes() {}
|
|
func (*InternalServerError) userSubscriptionRequestHistoryGetSubscriptionRequestHistoryStatsRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkAllExtendExpirationDateRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkAllResetUserTrafficRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkDeleteUsersByStatusRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkDeleteUsersRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkExtendExpirationDateRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkResetUserTrafficRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkRevokeUsersSubscriptionRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkUpdateAllUsersRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkUpdateUsersInternalSquadsRes() {}
|
|
func (*InternalServerError) usersBulkActionsBulkUpdateUsersRes() {}
|
|
func (*InternalServerError) usersCreateUserRes() {}
|
|
func (*InternalServerError) usersDeleteUserRes() {}
|
|
func (*InternalServerError) usersDisableUserRes() {}
|
|
func (*InternalServerError) usersEnableUserRes() {}
|
|
func (*InternalServerError) usersGetAllTagsRes() {}
|
|
func (*InternalServerError) usersGetAllUsersRes() {}
|
|
func (*InternalServerError) usersGetUserAccessibleNodesRes() {}
|
|
func (*InternalServerError) usersGetUserByIdRes() {}
|
|
func (*InternalServerError) usersGetUserByShortUuidRes() {}
|
|
func (*InternalServerError) usersGetUserByTelegramIdRes() {}
|
|
func (*InternalServerError) usersGetUserByUsernameRes() {}
|
|
func (*InternalServerError) usersGetUserByUuidRes() {}
|
|
func (*InternalServerError) usersGetUserSubscriptionRequestHistoryRes() {}
|
|
func (*InternalServerError) usersGetUsersByEmailRes() {}
|
|
func (*InternalServerError) usersGetUsersByTagRes() {}
|
|
func (*InternalServerError) usersGetUsersStreamRes() {}
|
|
func (*InternalServerError) usersResetUserTrafficRes() {}
|
|
func (*InternalServerError) usersResolveUserRes() {}
|
|
func (*InternalServerError) usersRevokeUserSubscriptionRes() {}
|
|
func (*InternalServerError) usersUpdateUserRes() {}
|
|
|
|
// Ref: #/components/schemas/InternalSquad
|
|
type InternalSquad struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
Info InternalSquadsResponInfoItem `json:"info"`
|
|
Inbounds []Inbound `json:"inbounds"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *InternalSquad) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *InternalSquad) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *InternalSquad) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetInfo returns the value of Info.
|
|
func (s *InternalSquad) GetInfo() InternalSquadsResponInfoItem {
|
|
return s.Info
|
|
}
|
|
|
|
// GetInbounds returns the value of Inbounds.
|
|
func (s *InternalSquad) GetInbounds() []Inbound {
|
|
return s.Inbounds
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *InternalSquad) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *InternalSquad) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *InternalSquad) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *InternalSquad) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *InternalSquad) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetInfo sets the value of Info.
|
|
func (s *InternalSquad) SetInfo(val InternalSquadsResponInfoItem) {
|
|
s.Info = val
|
|
}
|
|
|
|
// SetInbounds sets the value of Inbounds.
|
|
func (s *InternalSquad) SetInbounds(val []Inbound) {
|
|
s.Inbounds = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *InternalSquad) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *InternalSquad) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// InternalSquadCreateInternalSquadConflict is response for InternalSquadCreateInternalSquad operation.
|
|
type InternalSquadCreateInternalSquadConflict struct{}
|
|
|
|
func (*InternalSquadCreateInternalSquadConflict) internalSquadCreateInternalSquadRes() {}
|
|
|
|
// Ref: #/components/schemas/InternalSquadResponseResponse
|
|
type InternalSquadResponseResponse struct {
|
|
Response InternalSquad `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *InternalSquadResponseResponse) GetResponse() InternalSquad {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *InternalSquadResponseResponse) SetResponse(val InternalSquad) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*InternalSquadResponseResponse) internalSquadCreateInternalSquadRes() {}
|
|
func (*InternalSquadResponseResponse) internalSquadGetInternalSquadByUuidRes() {}
|
|
func (*InternalSquadResponseResponse) internalSquadUpdateInternalSquadRes() {}
|
|
|
|
// InternalSquadUpdateInternalSquadConflict is response for InternalSquadUpdateInternalSquad operation.
|
|
type InternalSquadUpdateInternalSquadConflict struct{}
|
|
|
|
func (*InternalSquadUpdateInternalSquadConflict) internalSquadUpdateInternalSquadRes() {}
|
|
|
|
// Ref: #/components/schemas/InternalSquadsResponInfoItem
|
|
type InternalSquadsResponInfoItem struct {
|
|
MembersCount float64 `json:"membersCount"`
|
|
InboundsCount float64 `json:"inboundsCount"`
|
|
}
|
|
|
|
// GetMembersCount returns the value of MembersCount.
|
|
func (s *InternalSquadsResponInfoItem) GetMembersCount() float64 {
|
|
return s.MembersCount
|
|
}
|
|
|
|
// GetInboundsCount returns the value of InboundsCount.
|
|
func (s *InternalSquadsResponInfoItem) GetInboundsCount() float64 {
|
|
return s.InboundsCount
|
|
}
|
|
|
|
// SetMembersCount sets the value of MembersCount.
|
|
func (s *InternalSquadsResponInfoItem) SetMembersCount(val float64) {
|
|
s.MembersCount = val
|
|
}
|
|
|
|
// SetInboundsCount sets the value of InboundsCount.
|
|
func (s *InternalSquadsResponInfoItem) SetInboundsCount(val float64) {
|
|
s.InboundsCount = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/InternalSquadsResponse
|
|
type InternalSquadsResponse struct {
|
|
Response InternalSquadsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *InternalSquadsResponse) GetResponse() InternalSquadsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *InternalSquadsResponse) SetResponse(val InternalSquadsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*InternalSquadsResponse) internalSquadGetInternalSquadsRes() {}
|
|
func (*InternalSquadsResponse) internalSquadReorderInternalSquadsRes() {}
|
|
|
|
type InternalSquadsResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
InternalSquads []InternalSquad `json:"internalSquads"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *InternalSquadsResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetInternalSquads returns the value of InternalSquads.
|
|
func (s *InternalSquadsResponseResponse) GetInternalSquads() []InternalSquad {
|
|
return s.InternalSquads
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *InternalSquadsResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetInternalSquads sets the value of InternalSquads.
|
|
func (s *InternalSquadsResponseResponse) SetInternalSquads(val []InternalSquad) {
|
|
s.InternalSquads = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Ips
|
|
type Ips struct {
|
|
IP string `json:"ip"`
|
|
LastSeen time.Time `json:"lastSeen"`
|
|
}
|
|
|
|
// GetIP returns the value of IP.
|
|
func (s *Ips) GetIP() string {
|
|
return s.IP
|
|
}
|
|
|
|
// GetLastSeen returns the value of LastSeen.
|
|
func (s *Ips) GetLastSeen() time.Time {
|
|
return s.LastSeen
|
|
}
|
|
|
|
// SetIP sets the value of IP.
|
|
func (s *Ips) SetIP(val string) {
|
|
s.IP = val
|
|
}
|
|
|
|
// SetLastSeen sets the value of LastSeen.
|
|
func (s *Ips) SetLastSeen(val time.Time) {
|
|
s.LastSeen = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/IpsResponseResponse
|
|
type IpsResponseResponse struct {
|
|
Response IpsResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *IpsResponseResponse) GetResponse() IpsResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *IpsResponseResponse) SetResponse(val IpsResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*IpsResponseResponse) ipControlFetchUserIpsRes() {}
|
|
func (*IpsResponseResponse) ipControlFetchUsersIpsRes() {}
|
|
|
|
type IpsResponseResponseResponse struct {
|
|
JobId string `json:"jobId"`
|
|
}
|
|
|
|
// GetJobId returns the value of JobId.
|
|
func (s *IpsResponseResponseResponse) GetJobId() string {
|
|
return s.JobId
|
|
}
|
|
|
|
// SetJobId sets the value of JobId.
|
|
func (s *IpsResponseResponseResponse) SetJobId(val string) {
|
|
s.JobId = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Keycloak
|
|
type Keycloak struct {
|
|
Enabled bool `json:"enabled"`
|
|
Realm NilString `json:"realm"`
|
|
ClientId NilString `json:"clientId"`
|
|
ClientSecret NilString `json:"clientSecret"`
|
|
FrontendDomain NilString `json:"frontendDomain"`
|
|
KeycloakDomain NilString `json:"keycloakDomain"`
|
|
AllowedEmails []string `json:"allowedEmails"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Keycloak) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetRealm returns the value of Realm.
|
|
func (s *Keycloak) GetRealm() NilString {
|
|
return s.Realm
|
|
}
|
|
|
|
// GetClientId returns the value of ClientId.
|
|
func (s *Keycloak) GetClientId() NilString {
|
|
return s.ClientId
|
|
}
|
|
|
|
// GetClientSecret returns the value of ClientSecret.
|
|
func (s *Keycloak) GetClientSecret() NilString {
|
|
return s.ClientSecret
|
|
}
|
|
|
|
// GetFrontendDomain returns the value of FrontendDomain.
|
|
func (s *Keycloak) GetFrontendDomain() NilString {
|
|
return s.FrontendDomain
|
|
}
|
|
|
|
// GetKeycloakDomain returns the value of KeycloakDomain.
|
|
func (s *Keycloak) GetKeycloakDomain() NilString {
|
|
return s.KeycloakDomain
|
|
}
|
|
|
|
// GetAllowedEmails returns the value of AllowedEmails.
|
|
func (s *Keycloak) GetAllowedEmails() []string {
|
|
return s.AllowedEmails
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Keycloak) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetRealm sets the value of Realm.
|
|
func (s *Keycloak) SetRealm(val NilString) {
|
|
s.Realm = val
|
|
}
|
|
|
|
// SetClientId sets the value of ClientId.
|
|
func (s *Keycloak) SetClientId(val NilString) {
|
|
s.ClientId = val
|
|
}
|
|
|
|
// SetClientSecret sets the value of ClientSecret.
|
|
func (s *Keycloak) SetClientSecret(val NilString) {
|
|
s.ClientSecret = val
|
|
}
|
|
|
|
// SetFrontendDomain sets the value of FrontendDomain.
|
|
func (s *Keycloak) SetFrontendDomain(val NilString) {
|
|
s.FrontendDomain = val
|
|
}
|
|
|
|
// SetKeycloakDomain sets the value of KeycloakDomain.
|
|
func (s *Keycloak) SetKeycloakDomain(val NilString) {
|
|
s.KeycloakDomain = val
|
|
}
|
|
|
|
// SetAllowedEmails sets the value of AllowedEmails.
|
|
func (s *Keycloak) SetAllowedEmails(val []string) {
|
|
s.AllowedEmails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/LoginRequest
|
|
type LoginRequest struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *LoginRequest) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetPassword returns the value of Password.
|
|
func (s *LoginRequest) GetPassword() string {
|
|
return s.Password
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *LoginRequest) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetPassword sets the value of Password.
|
|
func (s *LoginRequest) SetPassword(val string) {
|
|
s.Password = val
|
|
}
|
|
|
|
// NewNilBrandingSettings returns new NilBrandingSettings with value set to v.
|
|
func NewNilBrandingSettings(v BrandingSettings) NilBrandingSettings {
|
|
return NilBrandingSettings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilBrandingSettings is nullable BrandingSettings.
|
|
type NilBrandingSettings struct {
|
|
Value BrandingSettings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilBrandingSettings) SetTo(v BrandingSettings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilBrandingSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilBrandingSettings) SetToNull() {
|
|
o.Null = true
|
|
var v BrandingSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilBrandingSettings) Get() (v BrandingSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilBrandingSettings) Or(d BrandingSettings) BrandingSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilCustomRemark returns new NilCustomRemark with value set to v.
|
|
func NewNilCustomRemark(v CustomRemark) NilCustomRemark {
|
|
return NilCustomRemark{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilCustomRemark is nullable CustomRemark.
|
|
type NilCustomRemark struct {
|
|
Value CustomRemark
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilCustomRemark) SetTo(v CustomRemark) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilCustomRemark) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilCustomRemark) SetToNull() {
|
|
o.Null = true
|
|
var v CustomRemark
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilCustomRemark) Get() (v CustomRemark, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilCustomRemark) Or(d CustomRemark) CustomRemark {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilDateTime returns new NilDateTime with value set to v.
|
|
func NewNilDateTime(v time.Time) NilDateTime {
|
|
return NilDateTime{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilDateTime is nullable time.Time.
|
|
type NilDateTime struct {
|
|
Value time.Time
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilDateTime) SetTo(v time.Time) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilDateTime) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilDateTime) SetToNull() {
|
|
o.Null = true
|
|
var v time.Time
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilDateTime) Get() (v time.Time, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilDateTime) Or(d time.Time) time.Time {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilExternalSquadResponseHeaders returns new NilExternalSquadResponseHeaders with value set to v.
|
|
func NewNilExternalSquadResponseHeaders(v ExternalSquadResponseHeaders) NilExternalSquadResponseHeaders {
|
|
return NilExternalSquadResponseHeaders{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilExternalSquadResponseHeaders is nullable ExternalSquadResponseHeaders.
|
|
type NilExternalSquadResponseHeaders struct {
|
|
Value ExternalSquadResponseHeaders
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilExternalSquadResponseHeaders) SetTo(v ExternalSquadResponseHeaders) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilExternalSquadResponseHeaders) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilExternalSquadResponseHeaders) SetToNull() {
|
|
o.Null = true
|
|
var v ExternalSquadResponseHeaders
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilExternalSquadResponseHeaders) Get() (v ExternalSquadResponseHeaders, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilExternalSquadResponseHeaders) Or(d ExternalSquadResponseHeaders) ExternalSquadResponseHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilFetchIpsResultResponseResponseResult returns new NilFetchIpsResultResponseResponseResult with value set to v.
|
|
func NewNilFetchIpsResultResponseResponseResult(v FetchIpsResultResponseResponseResult) NilFetchIpsResultResponseResponseResult {
|
|
return NilFetchIpsResultResponseResponseResult{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilFetchIpsResultResponseResponseResult is nullable FetchIpsResultResponseResponseResult.
|
|
type NilFetchIpsResultResponseResponseResult struct {
|
|
Value FetchIpsResultResponseResponseResult
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilFetchIpsResultResponseResponseResult) SetTo(v FetchIpsResultResponseResponseResult) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilFetchIpsResultResponseResponseResult) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilFetchIpsResultResponseResponseResult) SetToNull() {
|
|
o.Null = true
|
|
var v FetchIpsResultResponseResponseResult
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilFetchIpsResultResponseResponseResult) Get() (v FetchIpsResultResponseResponseResult, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilFetchIpsResultResponseResponseResult) Or(d FetchIpsResultResponseResponseResult) FetchIpsResultResponseResponseResult {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilFetchUsersIpsResultResponseResponseResult returns new NilFetchUsersIpsResultResponseResponseResult with value set to v.
|
|
func NewNilFetchUsersIpsResultResponseResponseResult(v FetchUsersIpsResultResponseResponseResult) NilFetchUsersIpsResultResponseResponseResult {
|
|
return NilFetchUsersIpsResultResponseResponseResult{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilFetchUsersIpsResultResponseResponseResult is nullable FetchUsersIpsResultResponseResponseResult.
|
|
type NilFetchUsersIpsResultResponseResponseResult struct {
|
|
Value FetchUsersIpsResultResponseResponseResult
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilFetchUsersIpsResultResponseResponseResult) SetTo(v FetchUsersIpsResultResponseResponseResult) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilFetchUsersIpsResultResponseResponseResult) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilFetchUsersIpsResultResponseResponseResult) SetToNull() {
|
|
o.Null = true
|
|
var v FetchUsersIpsResultResponseResponseResult
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilFetchUsersIpsResultResponseResponseResult) Get() (v FetchUsersIpsResultResponseResponseResult, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilFetchUsersIpsResultResponseResponseResult) Or(d FetchUsersIpsResultResponseResponseResult) FetchUsersIpsResultResponseResponseResult {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilFloat64 returns new NilFloat64 with value set to v.
|
|
func NewNilFloat64(v float64) NilFloat64 {
|
|
return NilFloat64{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilFloat64 is nullable float64.
|
|
type NilFloat64 struct {
|
|
Value float64
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilFloat64) SetTo(v float64) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilFloat64) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilFloat64) SetToNull() {
|
|
o.Null = true
|
|
var v float64
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilFloat64) Get() (v float64, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilFloat64) Or(d float64) float64 {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup returns new NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup(v GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup is nullable GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetTo(v GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) Get() (v GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) Or(d GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup) GetRawSubscriptionByShortUuidResponseResponseConvertedUserInfoHwidCheckup {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion returns new NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion is nullable GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemClientOverridesMihomoIpVersion {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header returns new NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header is nullable GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra returns new NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra is nullable GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions1Extra {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers returns new NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers is nullable GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions2Headers {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers returns new NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers with value set to v.
|
|
func NewNilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers {
|
|
return NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers is nullable GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers.
|
|
type NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) IsNull() bool {
|
|
return o.Null
|
|
}
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) SetToNull() {
|
|
o.Null = true
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions3Headers {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilGetStatusResponseResponseAuthentication returns new NilGetStatusResponseResponseAuthentication with value set to v.
|
|
func NewNilGetStatusResponseResponseAuthentication(v GetStatusResponseResponseAuthentication) NilGetStatusResponseResponseAuthentication {
|
|
return NilGetStatusResponseResponseAuthentication{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilGetStatusResponseResponseAuthentication is nullable GetStatusResponseResponseAuthentication.
|
|
type NilGetStatusResponseResponseAuthentication struct {
|
|
Value GetStatusResponseResponseAuthentication
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilGetStatusResponseResponseAuthentication) SetTo(v GetStatusResponseResponseAuthentication) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilGetStatusResponseResponseAuthentication) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilGetStatusResponseResponseAuthentication) SetToNull() {
|
|
o.Null = true
|
|
var v GetStatusResponseResponseAuthentication
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilGetStatusResponseResponseAuthentication) Get() (v GetStatusResponseResponseAuthentication, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilGetStatusResponseResponseAuthentication) Or(d GetStatusResponseResponseAuthentication) GetStatusResponseResponseAuthentication {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilHostItemAlpn returns new NilHostItemAlpn with value set to v.
|
|
func NewNilHostItemAlpn(v HostItemAlpn) NilHostItemAlpn {
|
|
return NilHostItemAlpn{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilHostItemAlpn is nullable HostItemAlpn.
|
|
type NilHostItemAlpn struct {
|
|
Value HostItemAlpn
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilHostItemAlpn) SetTo(v HostItemAlpn) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilHostItemAlpn) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilHostItemAlpn) SetToNull() {
|
|
o.Null = true
|
|
var v HostItemAlpn
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilHostItemAlpn) Get() (v HostItemAlpn, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilHostItemAlpn) Or(d HostItemAlpn) HostItemAlpn {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilHostItemMihomoIpVersion returns new NilHostItemMihomoIpVersion with value set to v.
|
|
func NewNilHostItemMihomoIpVersion(v HostItemMihomoIpVersion) NilHostItemMihomoIpVersion {
|
|
return NilHostItemMihomoIpVersion{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilHostItemMihomoIpVersion is nullable HostItemMihomoIpVersion.
|
|
type NilHostItemMihomoIpVersion struct {
|
|
Value HostItemMihomoIpVersion
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilHostItemMihomoIpVersion) SetTo(v HostItemMihomoIpVersion) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilHostItemMihomoIpVersion) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilHostItemMihomoIpVersion) SetToNull() {
|
|
o.Null = true
|
|
var v HostItemMihomoIpVersion
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilHostItemMihomoIpVersion) Get() (v HostItemMihomoIpVersion, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilHostItemMihomoIpVersion) Or(d HostItemMihomoIpVersion) HostItemMihomoIpVersion {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilHostOverride returns new NilHostOverride with value set to v.
|
|
func NewNilHostOverride(v HostOverride) NilHostOverride {
|
|
return NilHostOverride{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilHostOverride is nullable HostOverride.
|
|
type NilHostOverride struct {
|
|
Value HostOverride
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilHostOverride) SetTo(v HostOverride) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilHostOverride) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilHostOverride) SetToNull() {
|
|
o.Null = true
|
|
var v HostOverride
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilHostOverride) Get() (v HostOverride, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilHostOverride) Or(d HostOverride) HostOverride {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilHwidSettings returns new NilHwidSettings with value set to v.
|
|
func NewNilHwidSettings(v HwidSettings) NilHwidSettings {
|
|
return NilHwidSettings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilHwidSettings is nullable HwidSettings.
|
|
type NilHwidSettings struct {
|
|
Value HwidSettings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilHwidSettings) SetTo(v HwidSettings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilHwidSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilHwidSettings) SetToNull() {
|
|
o.Null = true
|
|
var v HwidSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilHwidSettings) Get() (v HwidSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilHwidSettings) Or(d HwidSettings) HwidSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilInfraProvidersDetail returns new NilInfraProvidersDetail with value set to v.
|
|
func NewNilInfraProvidersDetail(v InfraProvidersDetail) NilInfraProvidersDetail {
|
|
return NilInfraProvidersDetail{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilInfraProvidersDetail is nullable InfraProvidersDetail.
|
|
type NilInfraProvidersDetail struct {
|
|
Value InfraProvidersDetail
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilInfraProvidersDetail) SetTo(v InfraProvidersDetail) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilInfraProvidersDetail) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilInfraProvidersDetail) SetToNull() {
|
|
o.Null = true
|
|
var v InfraProvidersDetail
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilInfraProvidersDetail) Get() (v InfraProvidersDetail, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilInfraProvidersDetail) Or(d InfraProvidersDetail) InfraProvidersDetail {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilInt returns new NilInt with value set to v.
|
|
func NewNilInt(v int) NilInt {
|
|
return NilInt{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilInt is nullable int.
|
|
type NilInt struct {
|
|
Value int
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilInt) SetTo(v int) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilInt) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilInt) SetToNull() {
|
|
o.Null = true
|
|
var v int
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilInt) Get() (v int, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilInt) Or(d int) int {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilInterfaceItem returns new NilInterfaceItem with value set to v.
|
|
func NewNilInterfaceItem(v InterfaceItem) NilInterfaceItem {
|
|
return NilInterfaceItem{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilInterfaceItem is nullable InterfaceItem.
|
|
type NilInterfaceItem struct {
|
|
Value InterfaceItem
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilInterfaceItem) SetTo(v InterfaceItem) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilInterfaceItem) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilInterfaceItem) SetToNull() {
|
|
o.Null = true
|
|
var v InterfaceItem
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilInterfaceItem) Get() (v InterfaceItem, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilInterfaceItem) Or(d InterfaceItem) InterfaceItem {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilOauth2Settings returns new NilOauth2Settings with value set to v.
|
|
func NewNilOauth2Settings(v Oauth2Settings) NilOauth2Settings {
|
|
return NilOauth2Settings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilOauth2Settings is nullable Oauth2Settings.
|
|
type NilOauth2Settings struct {
|
|
Value Oauth2Settings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilOauth2Settings) SetTo(v Oauth2Settings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilOauth2Settings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilOauth2Settings) SetToNull() {
|
|
o.Null = true
|
|
var v Oauth2Settings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilOauth2Settings) Get() (v Oauth2Settings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilOauth2Settings) Or(d Oauth2Settings) Oauth2Settings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilPasskeySettings returns new NilPasskeySettings with value set to v.
|
|
func NewNilPasskeySettings(v PasskeySettings) NilPasskeySettings {
|
|
return NilPasskeySettings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilPasskeySettings is nullable PasskeySettings.
|
|
type NilPasskeySettings struct {
|
|
Value PasskeySettings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilPasskeySettings) SetTo(v PasskeySettings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilPasskeySettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilPasskeySettings) SetToNull() {
|
|
o.Null = true
|
|
var v PasskeySettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilPasskeySettings) Get() (v PasskeySettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilPasskeySettings) Or(d PasskeySettings) PasskeySettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilPasswordSettings returns new NilPasswordSettings with value set to v.
|
|
func NewNilPasswordSettings(v PasswordSettings) NilPasswordSettings {
|
|
return NilPasswordSettings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilPasswordSettings is nullable PasswordSettings.
|
|
type NilPasswordSettings struct {
|
|
Value PasswordSettings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilPasswordSettings) SetTo(v PasswordSettings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilPasswordSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilPasswordSettings) SetToNull() {
|
|
o.Null = true
|
|
var v PasswordSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilPasswordSettings) Get() (v PasswordSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilPasswordSettings) Or(d PasswordSettings) PasswordSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilProviderItem returns new NilProviderItem with value set to v.
|
|
func NewNilProviderItem(v ProviderItem) NilProviderItem {
|
|
return NilProviderItem{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilProviderItem is nullable ProviderItem.
|
|
type NilProviderItem struct {
|
|
Value ProviderItem
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilProviderItem) SetTo(v ProviderItem) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilProviderItem) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilProviderItem) SetToNull() {
|
|
o.Null = true
|
|
var v ProviderItem
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilProviderItem) Get() (v ProviderItem, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilProviderItem) Or(d ProviderItem) ProviderItem {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilString returns new NilString with value set to v.
|
|
func NewNilString(v string) NilString {
|
|
return NilString{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilString is nullable string.
|
|
type NilString struct {
|
|
Value string
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilString) SetTo(v string) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilString) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilString) SetToNull() {
|
|
o.Null = true
|
|
var v string
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilString) Get() (v string, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilString) Or(d string) string {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilSubscriptionSettings returns new NilSubscriptionSettings with value set to v.
|
|
func NewNilSubscriptionSettings(v SubscriptionSettings) NilSubscriptionSettings {
|
|
return NilSubscriptionSettings{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilSubscriptionSettings is nullable SubscriptionSettings.
|
|
type NilSubscriptionSettings struct {
|
|
Value SubscriptionSettings
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilSubscriptionSettings) SetTo(v SubscriptionSettings) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilSubscriptionSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilSubscriptionSettings) SetToNull() {
|
|
o.Null = true
|
|
var v SubscriptionSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilSubscriptionSettings) Get() (v SubscriptionSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilSubscriptionSettings) Or(d SubscriptionSettings) SubscriptionSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilSubscriptionSettingsResponseResponseCustomResponseHeaders returns new NilSubscriptionSettingsResponseResponseCustomResponseHeaders with value set to v.
|
|
func NewNilSubscriptionSettingsResponseResponseCustomResponseHeaders(v SubscriptionSettingsResponseResponseCustomResponseHeaders) NilSubscriptionSettingsResponseResponseCustomResponseHeaders {
|
|
return NilSubscriptionSettingsResponseResponseCustomResponseHeaders{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilSubscriptionSettingsResponseResponseCustomResponseHeaders is nullable SubscriptionSettingsResponseResponseCustomResponseHeaders.
|
|
type NilSubscriptionSettingsResponseResponseCustomResponseHeaders struct {
|
|
Value SubscriptionSettingsResponseResponseCustomResponseHeaders
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilSubscriptionSettingsResponseResponseCustomResponseHeaders) SetTo(v SubscriptionSettingsResponseResponseCustomResponseHeaders) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilSubscriptionSettingsResponseResponseCustomResponseHeaders) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilSubscriptionSettingsResponseResponseCustomResponseHeaders) SetToNull() {
|
|
o.Null = true
|
|
var v SubscriptionSettingsResponseResponseCustomResponseHeaders
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilSubscriptionSettingsResponseResponseCustomResponseHeaders) Get() (v SubscriptionSettingsResponseResponseCustomResponseHeaders, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilSubscriptionSettingsResponseResponseCustomResponseHeaders) Or(d SubscriptionSettingsResponseResponseCustomResponseHeaders) SubscriptionSettingsResponseResponseCustomResponseHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilSystemItem returns new NilSystemItem with value set to v.
|
|
func NewNilSystemItem(v SystemItem) NilSystemItem {
|
|
return NilSystemItem{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilSystemItem is nullable SystemItem.
|
|
type NilSystemItem struct {
|
|
Value SystemItem
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilSystemItem) SetTo(v SystemItem) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilSystemItem) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilSystemItem) SetToNull() {
|
|
o.Null = true
|
|
var v SystemItem
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilSystemItem) Get() (v SystemItem, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilSystemItem) Or(d SystemItem) SystemItem {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilURI returns new NilURI with value set to v.
|
|
func NewNilURI(v url.URL) NilURI {
|
|
return NilURI{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilURI is nullable url.URL.
|
|
type NilURI struct {
|
|
Value url.URL
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilURI) SetTo(v url.URL) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilURI) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilURI) SetToNull() {
|
|
o.Null = true
|
|
var v url.URL
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilURI) Get() (v url.URL, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilURI) Or(d url.URL) url.URL {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilUUID returns new NilUUID with value set to v.
|
|
func NewNilUUID(v uuid.UUID) NilUUID {
|
|
return NilUUID{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilUUID is nullable uuid.UUID.
|
|
type NilUUID struct {
|
|
Value uuid.UUID
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilUUID) SetTo(v uuid.UUID) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilUUID) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilUUID) SetToNull() {
|
|
o.Null = true
|
|
var v uuid.UUID
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilUUID) Get() (v uuid.UUID, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilUUID) Or(d uuid.UUID) uuid.UUID {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewNilVersion returns new NilVersion with value set to v.
|
|
func NewNilVersion(v Version) NilVersion {
|
|
return NilVersion{
|
|
Value: v,
|
|
}
|
|
}
|
|
|
|
// NilVersion is nullable Version.
|
|
type NilVersion struct {
|
|
Value Version
|
|
Null bool
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *NilVersion) SetTo(v Version) {
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o NilVersion) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *NilVersion) SetToNull() {
|
|
o.Null = true
|
|
var v Version
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o NilVersion) Get() (v Version, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o NilVersion) Or(d Version) Version {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// Ref: #/components/schemas/Node
|
|
type Node struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
CountryCode string `json:"countryCode"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *Node) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *Node) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *Node) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *Node) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *Node) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *Node) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodePlugin
|
|
type NodePlugin struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
PluginConfig jx.Raw `json:"pluginConfig"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *NodePlugin) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *NodePlugin) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *NodePlugin) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetPluginConfig returns the value of PluginConfig.
|
|
func (s *NodePlugin) GetPluginConfig() jx.Raw {
|
|
return s.PluginConfig
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *NodePlugin) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *NodePlugin) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *NodePlugin) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetPluginConfig sets the value of PluginConfig.
|
|
func (s *NodePlugin) SetPluginConfig(val jx.Raw) {
|
|
s.PluginConfig = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodePluginResponseResponse
|
|
type NodePluginResponseResponse struct {
|
|
Response NodePluginResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *NodePluginResponseResponse) GetResponse() NodePluginResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *NodePluginResponseResponse) SetResponse(val NodePluginResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*NodePluginResponseResponse) nodePluginCloneNodePluginRes() {}
|
|
func (*NodePluginResponseResponse) nodePluginGetConfigByUuidRes() {}
|
|
func (*NodePluginResponseResponse) nodePluginUpdateConfigRes() {}
|
|
|
|
type NodePluginResponseResponseResponse struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
PluginConfig jx.Raw `json:"pluginConfig"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *NodePluginResponseResponseResponse) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *NodePluginResponseResponseResponse) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *NodePluginResponseResponseResponse) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetPluginConfig returns the value of PluginConfig.
|
|
func (s *NodePluginResponseResponseResponse) GetPluginConfig() jx.Raw {
|
|
return s.PluginConfig
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *NodePluginResponseResponseResponse) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *NodePluginResponseResponseResponse) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *NodePluginResponseResponseResponse) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetPluginConfig sets the value of PluginConfig.
|
|
func (s *NodePluginResponseResponseResponse) SetPluginConfig(val jx.Raw) {
|
|
s.PluginConfig = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodePluginsResponseResponse
|
|
type NodePluginsResponseResponse struct {
|
|
Response NodePluginsResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *NodePluginsResponseResponse) GetResponse() NodePluginsResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *NodePluginsResponseResponse) SetResponse(val NodePluginsResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*NodePluginsResponseResponse) nodePluginGetAllConfigsRes() {}
|
|
func (*NodePluginsResponseResponse) nodePluginReorderNodePluginsRes() {}
|
|
|
|
type NodePluginsResponseResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
NodePlugins []NodePlugin `json:"nodePlugins"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *NodePluginsResponseResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetNodePlugins returns the value of NodePlugins.
|
|
func (s *NodePluginsResponseResponseResponse) GetNodePlugins() []NodePlugin {
|
|
return s.NodePlugins
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *NodePluginsResponseResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetNodePlugins sets the value of NodePlugins.
|
|
func (s *NodePluginsResponseResponseResponse) SetNodePlugins(val []NodePlugin) {
|
|
s.NodePlugins = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodeRequestBodyRequest
|
|
type NodeRequestBodyRequest struct {
|
|
ForceRestart bool `json:"forceRestart"`
|
|
}
|
|
|
|
// GetForceRestart returns the value of ForceRestart.
|
|
func (s *NodeRequestBodyRequest) GetForceRestart() bool {
|
|
return s.ForceRestart
|
|
}
|
|
|
|
// SetForceRestart sets the value of ForceRestart.
|
|
func (s *NodeRequestBodyRequest) SetForceRestart(val bool) {
|
|
s.ForceRestart = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodeResponse
|
|
type NodeResponse struct {
|
|
Response NodeResponseDataItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *NodeResponse) GetResponse() NodeResponseDataItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *NodeResponse) SetResponse(val NodeResponseDataItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*NodeResponse) nodesCreateNodeRes() {}
|
|
func (*NodeResponse) nodesDisableNodeRes() {}
|
|
func (*NodeResponse) nodesEnableNodeRes() {}
|
|
func (*NodeResponse) nodesGetOneNodeRes() {}
|
|
func (*NodeResponse) nodesUpdateNodeRes() {}
|
|
|
|
// Ref: #/components/schemas/NodeResponseDataItem
|
|
type NodeResponseDataItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
Address string `json:"address"`
|
|
Port NilInt `json:"port"`
|
|
ProxyUrl NilString `json:"proxyUrl"`
|
|
IsConnected bool `json:"isConnected"`
|
|
IsDisabled bool `json:"isDisabled"`
|
|
IsConnecting bool `json:"isConnecting"`
|
|
LastStatusChange NilDateTime `json:"lastStatusChange"`
|
|
LastStatusMessage NilString `json:"lastStatusMessage"`
|
|
IsTrafficTrackingActive bool `json:"isTrafficTrackingActive"`
|
|
TrafficResetDay NilInt `json:"trafficResetDay"`
|
|
TrafficLimitBytes NilFloat64 `json:"trafficLimitBytes"`
|
|
TrafficUsedBytes NilFloat64 `json:"trafficUsedBytes"`
|
|
NotifyPercent NilInt `json:"notifyPercent"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
CountryCode string `json:"countryCode"`
|
|
ConsumptionMultiplier float64 `json:"consumptionMultiplier"`
|
|
NodeConsumptionMultiplier float64 `json:"nodeConsumptionMultiplier"`
|
|
Tags []string `json:"tags"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
ConfigProfile ConfigProfileItem `json:"configProfile"`
|
|
ProviderUuid NilUUID `json:"providerUuid"`
|
|
Provider NilProviderItem `json:"provider"`
|
|
ActivePluginUuid NilUUID `json:"activePluginUuid"`
|
|
System NilSystemItem `json:"system"`
|
|
Versions NilVersion `json:"versions"`
|
|
XrayUptime float64 `json:"xrayUptime"`
|
|
UsersOnline float64 `json:"usersOnline"`
|
|
Note NilString `json:"note"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *NodeResponseDataItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *NodeResponseDataItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *NodeResponseDataItem) GetAddress() string {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *NodeResponseDataItem) GetPort() NilInt {
|
|
return s.Port
|
|
}
|
|
|
|
// GetProxyUrl returns the value of ProxyUrl.
|
|
func (s *NodeResponseDataItem) GetProxyUrl() NilString {
|
|
return s.ProxyUrl
|
|
}
|
|
|
|
// GetIsConnected returns the value of IsConnected.
|
|
func (s *NodeResponseDataItem) GetIsConnected() bool {
|
|
return s.IsConnected
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *NodeResponseDataItem) GetIsDisabled() bool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetIsConnecting returns the value of IsConnecting.
|
|
func (s *NodeResponseDataItem) GetIsConnecting() bool {
|
|
return s.IsConnecting
|
|
}
|
|
|
|
// GetLastStatusChange returns the value of LastStatusChange.
|
|
func (s *NodeResponseDataItem) GetLastStatusChange() NilDateTime {
|
|
return s.LastStatusChange
|
|
}
|
|
|
|
// GetLastStatusMessage returns the value of LastStatusMessage.
|
|
func (s *NodeResponseDataItem) GetLastStatusMessage() NilString {
|
|
return s.LastStatusMessage
|
|
}
|
|
|
|
// GetIsTrafficTrackingActive returns the value of IsTrafficTrackingActive.
|
|
func (s *NodeResponseDataItem) GetIsTrafficTrackingActive() bool {
|
|
return s.IsTrafficTrackingActive
|
|
}
|
|
|
|
// GetTrafficResetDay returns the value of TrafficResetDay.
|
|
func (s *NodeResponseDataItem) GetTrafficResetDay() NilInt {
|
|
return s.TrafficResetDay
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *NodeResponseDataItem) GetTrafficLimitBytes() NilFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficUsedBytes returns the value of TrafficUsedBytes.
|
|
func (s *NodeResponseDataItem) GetTrafficUsedBytes() NilFloat64 {
|
|
return s.TrafficUsedBytes
|
|
}
|
|
|
|
// GetNotifyPercent returns the value of NotifyPercent.
|
|
func (s *NodeResponseDataItem) GetNotifyPercent() NilInt {
|
|
return s.NotifyPercent
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *NodeResponseDataItem) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *NodeResponseDataItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConsumptionMultiplier returns the value of ConsumptionMultiplier.
|
|
func (s *NodeResponseDataItem) GetConsumptionMultiplier() float64 {
|
|
return s.ConsumptionMultiplier
|
|
}
|
|
|
|
// GetNodeConsumptionMultiplier returns the value of NodeConsumptionMultiplier.
|
|
func (s *NodeResponseDataItem) GetNodeConsumptionMultiplier() float64 {
|
|
return s.NodeConsumptionMultiplier
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *NodeResponseDataItem) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *NodeResponseDataItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *NodeResponseDataItem) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetConfigProfile returns the value of ConfigProfile.
|
|
func (s *NodeResponseDataItem) GetConfigProfile() ConfigProfileItem {
|
|
return s.ConfigProfile
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *NodeResponseDataItem) GetProviderUuid() NilUUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetProvider returns the value of Provider.
|
|
func (s *NodeResponseDataItem) GetProvider() NilProviderItem {
|
|
return s.Provider
|
|
}
|
|
|
|
// GetActivePluginUuid returns the value of ActivePluginUuid.
|
|
func (s *NodeResponseDataItem) GetActivePluginUuid() NilUUID {
|
|
return s.ActivePluginUuid
|
|
}
|
|
|
|
// GetSystem returns the value of System.
|
|
func (s *NodeResponseDataItem) GetSystem() NilSystemItem {
|
|
return s.System
|
|
}
|
|
|
|
// GetVersions returns the value of Versions.
|
|
func (s *NodeResponseDataItem) GetVersions() NilVersion {
|
|
return s.Versions
|
|
}
|
|
|
|
// GetXrayUptime returns the value of XrayUptime.
|
|
func (s *NodeResponseDataItem) GetXrayUptime() float64 {
|
|
return s.XrayUptime
|
|
}
|
|
|
|
// GetUsersOnline returns the value of UsersOnline.
|
|
func (s *NodeResponseDataItem) GetUsersOnline() float64 {
|
|
return s.UsersOnline
|
|
}
|
|
|
|
// GetNote returns the value of Note.
|
|
func (s *NodeResponseDataItem) GetNote() NilString {
|
|
return s.Note
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *NodeResponseDataItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *NodeResponseDataItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *NodeResponseDataItem) SetAddress(val string) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *NodeResponseDataItem) SetPort(val NilInt) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetProxyUrl sets the value of ProxyUrl.
|
|
func (s *NodeResponseDataItem) SetProxyUrl(val NilString) {
|
|
s.ProxyUrl = val
|
|
}
|
|
|
|
// SetIsConnected sets the value of IsConnected.
|
|
func (s *NodeResponseDataItem) SetIsConnected(val bool) {
|
|
s.IsConnected = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *NodeResponseDataItem) SetIsDisabled(val bool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetIsConnecting sets the value of IsConnecting.
|
|
func (s *NodeResponseDataItem) SetIsConnecting(val bool) {
|
|
s.IsConnecting = val
|
|
}
|
|
|
|
// SetLastStatusChange sets the value of LastStatusChange.
|
|
func (s *NodeResponseDataItem) SetLastStatusChange(val NilDateTime) {
|
|
s.LastStatusChange = val
|
|
}
|
|
|
|
// SetLastStatusMessage sets the value of LastStatusMessage.
|
|
func (s *NodeResponseDataItem) SetLastStatusMessage(val NilString) {
|
|
s.LastStatusMessage = val
|
|
}
|
|
|
|
// SetIsTrafficTrackingActive sets the value of IsTrafficTrackingActive.
|
|
func (s *NodeResponseDataItem) SetIsTrafficTrackingActive(val bool) {
|
|
s.IsTrafficTrackingActive = val
|
|
}
|
|
|
|
// SetTrafficResetDay sets the value of TrafficResetDay.
|
|
func (s *NodeResponseDataItem) SetTrafficResetDay(val NilInt) {
|
|
s.TrafficResetDay = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *NodeResponseDataItem) SetTrafficLimitBytes(val NilFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficUsedBytes sets the value of TrafficUsedBytes.
|
|
func (s *NodeResponseDataItem) SetTrafficUsedBytes(val NilFloat64) {
|
|
s.TrafficUsedBytes = val
|
|
}
|
|
|
|
// SetNotifyPercent sets the value of NotifyPercent.
|
|
func (s *NodeResponseDataItem) SetNotifyPercent(val NilInt) {
|
|
s.NotifyPercent = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *NodeResponseDataItem) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *NodeResponseDataItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConsumptionMultiplier sets the value of ConsumptionMultiplier.
|
|
func (s *NodeResponseDataItem) SetConsumptionMultiplier(val float64) {
|
|
s.ConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetNodeConsumptionMultiplier sets the value of NodeConsumptionMultiplier.
|
|
func (s *NodeResponseDataItem) SetNodeConsumptionMultiplier(val float64) {
|
|
s.NodeConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *NodeResponseDataItem) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *NodeResponseDataItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *NodeResponseDataItem) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetConfigProfile sets the value of ConfigProfile.
|
|
func (s *NodeResponseDataItem) SetConfigProfile(val ConfigProfileItem) {
|
|
s.ConfigProfile = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *NodeResponseDataItem) SetProviderUuid(val NilUUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetProvider sets the value of Provider.
|
|
func (s *NodeResponseDataItem) SetProvider(val NilProviderItem) {
|
|
s.Provider = val
|
|
}
|
|
|
|
// SetActivePluginUuid sets the value of ActivePluginUuid.
|
|
func (s *NodeResponseDataItem) SetActivePluginUuid(val NilUUID) {
|
|
s.ActivePluginUuid = val
|
|
}
|
|
|
|
// SetSystem sets the value of System.
|
|
func (s *NodeResponseDataItem) SetSystem(val NilSystemItem) {
|
|
s.System = val
|
|
}
|
|
|
|
// SetVersions sets the value of Versions.
|
|
func (s *NodeResponseDataItem) SetVersions(val NilVersion) {
|
|
s.Versions = val
|
|
}
|
|
|
|
// SetXrayUptime sets the value of XrayUptime.
|
|
func (s *NodeResponseDataItem) SetXrayUptime(val float64) {
|
|
s.XrayUptime = val
|
|
}
|
|
|
|
// SetUsersOnline sets the value of UsersOnline.
|
|
func (s *NodeResponseDataItem) SetUsersOnline(val float64) {
|
|
s.UsersOnline = val
|
|
}
|
|
|
|
// SetNote sets the value of Note.
|
|
func (s *NodeResponseDataItem) SetNote(val NilString) {
|
|
s.Note = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodeResponseInfoItem
|
|
type NodeResponseInfoItem struct {
|
|
Arch string `json:"arch"`
|
|
Cpus int `json:"cpus"`
|
|
CpuModel string `json:"cpuModel"`
|
|
MemoryTotal float64 `json:"memoryTotal"`
|
|
Hostname string `json:"hostname"`
|
|
Platform string `json:"platform"`
|
|
Release string `json:"release"`
|
|
Type string `json:"type"`
|
|
Version string `json:"version"`
|
|
NetworkInterfaces []string `json:"networkInterfaces"`
|
|
}
|
|
|
|
// GetArch returns the value of Arch.
|
|
func (s *NodeResponseInfoItem) GetArch() string {
|
|
return s.Arch
|
|
}
|
|
|
|
// GetCpus returns the value of Cpus.
|
|
func (s *NodeResponseInfoItem) GetCpus() int {
|
|
return s.Cpus
|
|
}
|
|
|
|
// GetCpuModel returns the value of CpuModel.
|
|
func (s *NodeResponseInfoItem) GetCpuModel() string {
|
|
return s.CpuModel
|
|
}
|
|
|
|
// GetMemoryTotal returns the value of MemoryTotal.
|
|
func (s *NodeResponseInfoItem) GetMemoryTotal() float64 {
|
|
return s.MemoryTotal
|
|
}
|
|
|
|
// GetHostname returns the value of Hostname.
|
|
func (s *NodeResponseInfoItem) GetHostname() string {
|
|
return s.Hostname
|
|
}
|
|
|
|
// GetPlatform returns the value of Platform.
|
|
func (s *NodeResponseInfoItem) GetPlatform() string {
|
|
return s.Platform
|
|
}
|
|
|
|
// GetRelease returns the value of Release.
|
|
func (s *NodeResponseInfoItem) GetRelease() string {
|
|
return s.Release
|
|
}
|
|
|
|
// GetType returns the value of Type.
|
|
func (s *NodeResponseInfoItem) GetType() string {
|
|
return s.Type
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *NodeResponseInfoItem) GetVersion() string {
|
|
return s.Version
|
|
}
|
|
|
|
// GetNetworkInterfaces returns the value of NetworkInterfaces.
|
|
func (s *NodeResponseInfoItem) GetNetworkInterfaces() []string {
|
|
return s.NetworkInterfaces
|
|
}
|
|
|
|
// SetArch sets the value of Arch.
|
|
func (s *NodeResponseInfoItem) SetArch(val string) {
|
|
s.Arch = val
|
|
}
|
|
|
|
// SetCpus sets the value of Cpus.
|
|
func (s *NodeResponseInfoItem) SetCpus(val int) {
|
|
s.Cpus = val
|
|
}
|
|
|
|
// SetCpuModel sets the value of CpuModel.
|
|
func (s *NodeResponseInfoItem) SetCpuModel(val string) {
|
|
s.CpuModel = val
|
|
}
|
|
|
|
// SetMemoryTotal sets the value of MemoryTotal.
|
|
func (s *NodeResponseInfoItem) SetMemoryTotal(val float64) {
|
|
s.MemoryTotal = val
|
|
}
|
|
|
|
// SetHostname sets the value of Hostname.
|
|
func (s *NodeResponseInfoItem) SetHostname(val string) {
|
|
s.Hostname = val
|
|
}
|
|
|
|
// SetPlatform sets the value of Platform.
|
|
func (s *NodeResponseInfoItem) SetPlatform(val string) {
|
|
s.Platform = val
|
|
}
|
|
|
|
// SetRelease sets the value of Release.
|
|
func (s *NodeResponseInfoItem) SetRelease(val string) {
|
|
s.Release = val
|
|
}
|
|
|
|
// SetType sets the value of Type.
|
|
func (s *NodeResponseInfoItem) SetType(val string) {
|
|
s.Type = val
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *NodeResponseInfoItem) SetVersion(val string) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetNetworkInterfaces sets the value of NetworkInterfaces.
|
|
func (s *NodeResponseInfoItem) SetNetworkInterfaces(val []string) {
|
|
s.NetworkInterfaces = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/NodesResponse
|
|
type NodesResponse struct {
|
|
Response []NodeResponseDataItem `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *NodesResponse) GetResponse() []NodeResponseDataItem {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *NodesResponse) SetResponse(val []NodeResponseDataItem) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*NodesResponse) nodesGetAllNodesRes() {}
|
|
func (*NodesResponse) nodesReorderNodesRes() {}
|
|
|
|
// Ref: #/components/schemas/NotFoundError
|
|
type NotFoundError struct {
|
|
Message string `json:"message"`
|
|
StatusCode float64 `json:"statusCode"`
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *NotFoundError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *NotFoundError) GetStatusCode() float64 {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *NotFoundError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *NotFoundError) SetStatusCode(val float64) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
func (*NotFoundError) bandwidthStatsUsersGetUserUsageByRangeRes() {}
|
|
func (*NotFoundError) configProfileDeleteConfigProfileByUuidRes() {}
|
|
func (*NotFoundError) configProfileGetComputedConfigProfileByUuidRes() {}
|
|
func (*NotFoundError) configProfileGetConfigProfileByUuidRes() {}
|
|
func (*NotFoundError) configProfileGetInboundsByProfileUuidRes() {}
|
|
func (*NotFoundError) configProfileUpdateConfigProfileRes() {}
|
|
func (*NotFoundError) externalSquadAddUsersToExternalSquadRes() {}
|
|
func (*NotFoundError) externalSquadDeleteExternalSquadRes() {}
|
|
func (*NotFoundError) externalSquadRemoveUsersFromExternalSquadRes() {}
|
|
func (*NotFoundError) externalSquadUpdateExternalSquadRes() {}
|
|
func (*NotFoundError) hostsDeleteHostRes() {}
|
|
func (*NotFoundError) hwidUserDevicesCreateUserHwidDeviceRes() {}
|
|
func (*NotFoundError) hwidUserDevicesDeleteAllUserHwidDevicesRes() {}
|
|
func (*NotFoundError) hwidUserDevicesDeleteUserHwidDeviceRes() {}
|
|
func (*NotFoundError) hwidUserDevicesGetUserHwidDevicesRes() {}
|
|
func (*NotFoundError) infraBillingGetInfraProviderByUuidRes() {}
|
|
func (*NotFoundError) internalSquadAddUsersToInternalSquadRes() {}
|
|
func (*NotFoundError) internalSquadDeleteInternalSquadRes() {}
|
|
func (*NotFoundError) internalSquadGetInternalSquadAccessibleNodesRes() {}
|
|
func (*NotFoundError) internalSquadRemoveUsersFromInternalSquadRes() {}
|
|
func (*NotFoundError) internalSquadUpdateInternalSquadRes() {}
|
|
func (*NotFoundError) ipControlDropConnectionsRes() {}
|
|
func (*NotFoundError) ipControlFetchUserIpsRes() {}
|
|
func (*NotFoundError) ipControlFetchUsersIpsRes() {}
|
|
func (*NotFoundError) ipControlGetFetchIpsResultRes() {}
|
|
func (*NotFoundError) ipControlGetFetchUsersIpsResultRes() {}
|
|
func (*NotFoundError) metadataGetNodeMetadataRes() {}
|
|
func (*NotFoundError) metadataGetUserMetadataRes() {}
|
|
func (*NotFoundError) metadataUpsertNodeMetadataRes() {}
|
|
func (*NotFoundError) metadataUpsertUserMetadataRes() {}
|
|
func (*NotFoundError) snippetsDeleteSnippetByNameRes() {}
|
|
func (*NotFoundError) snippetsUpdateSnippetRes() {}
|
|
func (*NotFoundError) subscriptionsGetSubscriptionByShortUuidProtectedRes() {}
|
|
func (*NotFoundError) subscriptionsGetSubscriptionByUsernameRes() {}
|
|
func (*NotFoundError) subscriptionsGetSubscriptionByUuidRes() {}
|
|
func (*NotFoundError) usersDeleteUserRes() {}
|
|
func (*NotFoundError) usersDisableUserRes() {}
|
|
func (*NotFoundError) usersEnableUserRes() {}
|
|
func (*NotFoundError) usersGetUserAccessibleNodesRes() {}
|
|
func (*NotFoundError) usersGetUserByIdRes() {}
|
|
func (*NotFoundError) usersGetUserByShortUuidRes() {}
|
|
func (*NotFoundError) usersGetUserByUsernameRes() {}
|
|
func (*NotFoundError) usersGetUserByUuidRes() {}
|
|
func (*NotFoundError) usersGetUserSubscriptionRequestHistoryRes() {}
|
|
func (*NotFoundError) usersResetUserTrafficRes() {}
|
|
func (*NotFoundError) usersResolveUserRes() {}
|
|
func (*NotFoundError) usersRevokeUserSubscriptionRes() {}
|
|
|
|
// Ref: #/components/schemas/OAuth2AuthorizeRequest
|
|
type OAuth2AuthorizeRequest struct {
|
|
Provider OAuth2AuthorizeRequestProvider `json:"provider"`
|
|
}
|
|
|
|
// GetProvider returns the value of Provider.
|
|
func (s *OAuth2AuthorizeRequest) GetProvider() OAuth2AuthorizeRequestProvider {
|
|
return s.Provider
|
|
}
|
|
|
|
// SetProvider sets the value of Provider.
|
|
func (s *OAuth2AuthorizeRequest) SetProvider(val OAuth2AuthorizeRequestProvider) {
|
|
s.Provider = val
|
|
}
|
|
|
|
type OAuth2AuthorizeRequestProvider string
|
|
|
|
const (
|
|
OAuth2AuthorizeRequestProviderTelegram OAuth2AuthorizeRequestProvider = "telegram"
|
|
OAuth2AuthorizeRequestProviderGithub OAuth2AuthorizeRequestProvider = "github"
|
|
OAuth2AuthorizeRequestProviderPocketid OAuth2AuthorizeRequestProvider = "pocketid"
|
|
OAuth2AuthorizeRequestProviderYandex OAuth2AuthorizeRequestProvider = "yandex"
|
|
OAuth2AuthorizeRequestProviderKeycloak OAuth2AuthorizeRequestProvider = "keycloak"
|
|
OAuth2AuthorizeRequestProviderGeneric OAuth2AuthorizeRequestProvider = "generic"
|
|
)
|
|
|
|
// AllValues returns all OAuth2AuthorizeRequestProvider values.
|
|
func (OAuth2AuthorizeRequestProvider) AllValues() []OAuth2AuthorizeRequestProvider {
|
|
return []OAuth2AuthorizeRequestProvider{
|
|
OAuth2AuthorizeRequestProviderTelegram,
|
|
OAuth2AuthorizeRequestProviderGithub,
|
|
OAuth2AuthorizeRequestProviderPocketid,
|
|
OAuth2AuthorizeRequestProviderYandex,
|
|
OAuth2AuthorizeRequestProviderKeycloak,
|
|
OAuth2AuthorizeRequestProviderGeneric,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s OAuth2AuthorizeRequestProvider) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case OAuth2AuthorizeRequestProviderTelegram:
|
|
return []byte(s), nil
|
|
case OAuth2AuthorizeRequestProviderGithub:
|
|
return []byte(s), nil
|
|
case OAuth2AuthorizeRequestProviderPocketid:
|
|
return []byte(s), nil
|
|
case OAuth2AuthorizeRequestProviderYandex:
|
|
return []byte(s), nil
|
|
case OAuth2AuthorizeRequestProviderKeycloak:
|
|
return []byte(s), nil
|
|
case OAuth2AuthorizeRequestProviderGeneric:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *OAuth2AuthorizeRequestProvider) UnmarshalText(data []byte) error {
|
|
switch OAuth2AuthorizeRequestProvider(data) {
|
|
case OAuth2AuthorizeRequestProviderTelegram:
|
|
*s = OAuth2AuthorizeRequestProviderTelegram
|
|
return nil
|
|
case OAuth2AuthorizeRequestProviderGithub:
|
|
*s = OAuth2AuthorizeRequestProviderGithub
|
|
return nil
|
|
case OAuth2AuthorizeRequestProviderPocketid:
|
|
*s = OAuth2AuthorizeRequestProviderPocketid
|
|
return nil
|
|
case OAuth2AuthorizeRequestProviderYandex:
|
|
*s = OAuth2AuthorizeRequestProviderYandex
|
|
return nil
|
|
case OAuth2AuthorizeRequestProviderKeycloak:
|
|
*s = OAuth2AuthorizeRequestProviderKeycloak
|
|
return nil
|
|
case OAuth2AuthorizeRequestProviderGeneric:
|
|
*s = OAuth2AuthorizeRequestProviderGeneric
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/OAuth2AuthorizeResponse
|
|
type OAuth2AuthorizeResponse struct {
|
|
Response OAuth2AuthorizeResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *OAuth2AuthorizeResponse) GetResponse() OAuth2AuthorizeResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *OAuth2AuthorizeResponse) SetResponse(val OAuth2AuthorizeResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
type OAuth2AuthorizeResponseResponse struct {
|
|
AuthorizationUrl NilURI `json:"authorizationUrl"`
|
|
}
|
|
|
|
// GetAuthorizationUrl returns the value of AuthorizationUrl.
|
|
func (s *OAuth2AuthorizeResponseResponse) GetAuthorizationUrl() NilURI {
|
|
return s.AuthorizationUrl
|
|
}
|
|
|
|
// SetAuthorizationUrl sets the value of AuthorizationUrl.
|
|
func (s *OAuth2AuthorizeResponseResponse) SetAuthorizationUrl(val NilURI) {
|
|
s.AuthorizationUrl = val
|
|
}
|
|
|
|
// OAuth2AuthorizeResponseStatusCode wraps OAuth2AuthorizeResponse with StatusCode.
|
|
type OAuth2AuthorizeResponseStatusCode struct {
|
|
StatusCode int
|
|
Response OAuth2AuthorizeResponse
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *OAuth2AuthorizeResponseStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *OAuth2AuthorizeResponseStatusCode) GetResponse() OAuth2AuthorizeResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *OAuth2AuthorizeResponseStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *OAuth2AuthorizeResponseStatusCode) SetResponse(val OAuth2AuthorizeResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*OAuth2AuthorizeResponseStatusCode) authOauth2AuthorizeRes() {}
|
|
|
|
// Ref: #/components/schemas/OAuth2CallbackRequest
|
|
type OAuth2CallbackRequest struct {
|
|
Provider OAuth2CallbackRequestProvider `json:"provider"`
|
|
Code string `json:"code"`
|
|
State string `json:"state"`
|
|
}
|
|
|
|
// GetProvider returns the value of Provider.
|
|
func (s *OAuth2CallbackRequest) GetProvider() OAuth2CallbackRequestProvider {
|
|
return s.Provider
|
|
}
|
|
|
|
// GetCode returns the value of Code.
|
|
func (s *OAuth2CallbackRequest) GetCode() string {
|
|
return s.Code
|
|
}
|
|
|
|
// GetState returns the value of State.
|
|
func (s *OAuth2CallbackRequest) GetState() string {
|
|
return s.State
|
|
}
|
|
|
|
// SetProvider sets the value of Provider.
|
|
func (s *OAuth2CallbackRequest) SetProvider(val OAuth2CallbackRequestProvider) {
|
|
s.Provider = val
|
|
}
|
|
|
|
// SetCode sets the value of Code.
|
|
func (s *OAuth2CallbackRequest) SetCode(val string) {
|
|
s.Code = val
|
|
}
|
|
|
|
// SetState sets the value of State.
|
|
func (s *OAuth2CallbackRequest) SetState(val string) {
|
|
s.State = val
|
|
}
|
|
|
|
type OAuth2CallbackRequestProvider string
|
|
|
|
const (
|
|
OAuth2CallbackRequestProviderTelegram OAuth2CallbackRequestProvider = "telegram"
|
|
OAuth2CallbackRequestProviderGithub OAuth2CallbackRequestProvider = "github"
|
|
OAuth2CallbackRequestProviderPocketid OAuth2CallbackRequestProvider = "pocketid"
|
|
OAuth2CallbackRequestProviderYandex OAuth2CallbackRequestProvider = "yandex"
|
|
OAuth2CallbackRequestProviderKeycloak OAuth2CallbackRequestProvider = "keycloak"
|
|
OAuth2CallbackRequestProviderGeneric OAuth2CallbackRequestProvider = "generic"
|
|
)
|
|
|
|
// AllValues returns all OAuth2CallbackRequestProvider values.
|
|
func (OAuth2CallbackRequestProvider) AllValues() []OAuth2CallbackRequestProvider {
|
|
return []OAuth2CallbackRequestProvider{
|
|
OAuth2CallbackRequestProviderTelegram,
|
|
OAuth2CallbackRequestProviderGithub,
|
|
OAuth2CallbackRequestProviderPocketid,
|
|
OAuth2CallbackRequestProviderYandex,
|
|
OAuth2CallbackRequestProviderKeycloak,
|
|
OAuth2CallbackRequestProviderGeneric,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s OAuth2CallbackRequestProvider) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case OAuth2CallbackRequestProviderTelegram:
|
|
return []byte(s), nil
|
|
case OAuth2CallbackRequestProviderGithub:
|
|
return []byte(s), nil
|
|
case OAuth2CallbackRequestProviderPocketid:
|
|
return []byte(s), nil
|
|
case OAuth2CallbackRequestProviderYandex:
|
|
return []byte(s), nil
|
|
case OAuth2CallbackRequestProviderKeycloak:
|
|
return []byte(s), nil
|
|
case OAuth2CallbackRequestProviderGeneric:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *OAuth2CallbackRequestProvider) UnmarshalText(data []byte) error {
|
|
switch OAuth2CallbackRequestProvider(data) {
|
|
case OAuth2CallbackRequestProviderTelegram:
|
|
*s = OAuth2CallbackRequestProviderTelegram
|
|
return nil
|
|
case OAuth2CallbackRequestProviderGithub:
|
|
*s = OAuth2CallbackRequestProviderGithub
|
|
return nil
|
|
case OAuth2CallbackRequestProviderPocketid:
|
|
*s = OAuth2CallbackRequestProviderPocketid
|
|
return nil
|
|
case OAuth2CallbackRequestProviderYandex:
|
|
*s = OAuth2CallbackRequestProviderYandex
|
|
return nil
|
|
case OAuth2CallbackRequestProviderKeycloak:
|
|
*s = OAuth2CallbackRequestProviderKeycloak
|
|
return nil
|
|
case OAuth2CallbackRequestProviderGeneric:
|
|
*s = OAuth2CallbackRequestProviderGeneric
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/Oauth2Settings
|
|
type Oauth2Settings struct {
|
|
Github Github `json:"github"`
|
|
Pocketid Pocketid `json:"pocketid"`
|
|
Yandex Github `json:"yandex"`
|
|
Keycloak OptKeycloak `json:"keycloak"`
|
|
Generic OptGeneric `json:"generic"`
|
|
Telegram OptTelegram `json:"telegram"`
|
|
}
|
|
|
|
// GetGithub returns the value of Github.
|
|
func (s *Oauth2Settings) GetGithub() Github {
|
|
return s.Github
|
|
}
|
|
|
|
// GetPocketid returns the value of Pocketid.
|
|
func (s *Oauth2Settings) GetPocketid() Pocketid {
|
|
return s.Pocketid
|
|
}
|
|
|
|
// GetYandex returns the value of Yandex.
|
|
func (s *Oauth2Settings) GetYandex() Github {
|
|
return s.Yandex
|
|
}
|
|
|
|
// GetKeycloak returns the value of Keycloak.
|
|
func (s *Oauth2Settings) GetKeycloak() OptKeycloak {
|
|
return s.Keycloak
|
|
}
|
|
|
|
// GetGeneric returns the value of Generic.
|
|
func (s *Oauth2Settings) GetGeneric() OptGeneric {
|
|
return s.Generic
|
|
}
|
|
|
|
// GetTelegram returns the value of Telegram.
|
|
func (s *Oauth2Settings) GetTelegram() OptTelegram {
|
|
return s.Telegram
|
|
}
|
|
|
|
// SetGithub sets the value of Github.
|
|
func (s *Oauth2Settings) SetGithub(val Github) {
|
|
s.Github = val
|
|
}
|
|
|
|
// SetPocketid sets the value of Pocketid.
|
|
func (s *Oauth2Settings) SetPocketid(val Pocketid) {
|
|
s.Pocketid = val
|
|
}
|
|
|
|
// SetYandex sets the value of Yandex.
|
|
func (s *Oauth2Settings) SetYandex(val Github) {
|
|
s.Yandex = val
|
|
}
|
|
|
|
// SetKeycloak sets the value of Keycloak.
|
|
func (s *Oauth2Settings) SetKeycloak(val OptKeycloak) {
|
|
s.Keycloak = val
|
|
}
|
|
|
|
// SetGeneric sets the value of Generic.
|
|
func (s *Oauth2Settings) SetGeneric(val OptGeneric) {
|
|
s.Generic = val
|
|
}
|
|
|
|
// SetTelegram sets the value of Telegram.
|
|
func (s *Oauth2Settings) SetTelegram(val OptTelegram) {
|
|
s.Telegram = val
|
|
}
|
|
|
|
// NewOptBool returns new OptBool with value set to v.
|
|
func NewOptBool(v bool) OptBool {
|
|
return OptBool{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBool is optional bool.
|
|
type OptBool struct {
|
|
Value bool
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBool was set.
|
|
func (o OptBool) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBool) Reset() {
|
|
var v bool
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBool) SetTo(v bool) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBool) Get() (v bool, 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 OptBool) Or(d bool) bool {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBulkAllUpdateUsersRequestStatus returns new OptBulkAllUpdateUsersRequestStatus with value set to v.
|
|
func NewOptBulkAllUpdateUsersRequestStatus(v BulkAllUpdateUsersRequestStatus) OptBulkAllUpdateUsersRequestStatus {
|
|
return OptBulkAllUpdateUsersRequestStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBulkAllUpdateUsersRequestStatus is optional BulkAllUpdateUsersRequestStatus.
|
|
type OptBulkAllUpdateUsersRequestStatus struct {
|
|
Value BulkAllUpdateUsersRequestStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBulkAllUpdateUsersRequestStatus was set.
|
|
func (o OptBulkAllUpdateUsersRequestStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBulkAllUpdateUsersRequestStatus) Reset() {
|
|
var v BulkAllUpdateUsersRequestStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBulkAllUpdateUsersRequestStatus) SetTo(v BulkAllUpdateUsersRequestStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBulkAllUpdateUsersRequestStatus) Get() (v BulkAllUpdateUsersRequestStatus, 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 OptBulkAllUpdateUsersRequestStatus) Or(d BulkAllUpdateUsersRequestStatus) BulkAllUpdateUsersRequestStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBulkAllUpdateUsersRequestTrafficLimitStrategy returns new OptBulkAllUpdateUsersRequestTrafficLimitStrategy with value set to v.
|
|
func NewOptBulkAllUpdateUsersRequestTrafficLimitStrategy(v BulkAllUpdateUsersRequestTrafficLimitStrategy) OptBulkAllUpdateUsersRequestTrafficLimitStrategy {
|
|
return OptBulkAllUpdateUsersRequestTrafficLimitStrategy{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBulkAllUpdateUsersRequestTrafficLimitStrategy is optional BulkAllUpdateUsersRequestTrafficLimitStrategy.
|
|
type OptBulkAllUpdateUsersRequestTrafficLimitStrategy struct {
|
|
Value BulkAllUpdateUsersRequestTrafficLimitStrategy
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBulkAllUpdateUsersRequestTrafficLimitStrategy was set.
|
|
func (o OptBulkAllUpdateUsersRequestTrafficLimitStrategy) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBulkAllUpdateUsersRequestTrafficLimitStrategy) Reset() {
|
|
var v BulkAllUpdateUsersRequestTrafficLimitStrategy
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBulkAllUpdateUsersRequestTrafficLimitStrategy) SetTo(v BulkAllUpdateUsersRequestTrafficLimitStrategy) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBulkAllUpdateUsersRequestTrafficLimitStrategy) Get() (v BulkAllUpdateUsersRequestTrafficLimitStrategy, 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 OptBulkAllUpdateUsersRequestTrafficLimitStrategy) Or(d BulkAllUpdateUsersRequestTrafficLimitStrategy) BulkAllUpdateUsersRequestTrafficLimitStrategy {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBulkDeleteUsersByStatusRequestStatus returns new OptBulkDeleteUsersByStatusRequestStatus with value set to v.
|
|
func NewOptBulkDeleteUsersByStatusRequestStatus(v BulkDeleteUsersByStatusRequestStatus) OptBulkDeleteUsersByStatusRequestStatus {
|
|
return OptBulkDeleteUsersByStatusRequestStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBulkDeleteUsersByStatusRequestStatus is optional BulkDeleteUsersByStatusRequestStatus.
|
|
type OptBulkDeleteUsersByStatusRequestStatus struct {
|
|
Value BulkDeleteUsersByStatusRequestStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBulkDeleteUsersByStatusRequestStatus was set.
|
|
func (o OptBulkDeleteUsersByStatusRequestStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBulkDeleteUsersByStatusRequestStatus) Reset() {
|
|
var v BulkDeleteUsersByStatusRequestStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBulkDeleteUsersByStatusRequestStatus) SetTo(v BulkDeleteUsersByStatusRequestStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBulkDeleteUsersByStatusRequestStatus) Get() (v BulkDeleteUsersByStatusRequestStatus, 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 OptBulkDeleteUsersByStatusRequestStatus) Or(d BulkDeleteUsersByStatusRequestStatus) BulkDeleteUsersByStatusRequestStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBulkUpdateUsersRequestFieldsStatus returns new OptBulkUpdateUsersRequestFieldsStatus with value set to v.
|
|
func NewOptBulkUpdateUsersRequestFieldsStatus(v BulkUpdateUsersRequestFieldsStatus) OptBulkUpdateUsersRequestFieldsStatus {
|
|
return OptBulkUpdateUsersRequestFieldsStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBulkUpdateUsersRequestFieldsStatus is optional BulkUpdateUsersRequestFieldsStatus.
|
|
type OptBulkUpdateUsersRequestFieldsStatus struct {
|
|
Value BulkUpdateUsersRequestFieldsStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBulkUpdateUsersRequestFieldsStatus was set.
|
|
func (o OptBulkUpdateUsersRequestFieldsStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBulkUpdateUsersRequestFieldsStatus) Reset() {
|
|
var v BulkUpdateUsersRequestFieldsStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBulkUpdateUsersRequestFieldsStatus) SetTo(v BulkUpdateUsersRequestFieldsStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBulkUpdateUsersRequestFieldsStatus) Get() (v BulkUpdateUsersRequestFieldsStatus, 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 OptBulkUpdateUsersRequestFieldsStatus) Or(d BulkUpdateUsersRequestFieldsStatus) BulkUpdateUsersRequestFieldsStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptBulkUpdateUsersRequestFieldsTrafficLimitStrategy returns new OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy with value set to v.
|
|
func NewOptBulkUpdateUsersRequestFieldsTrafficLimitStrategy(v BulkUpdateUsersRequestFieldsTrafficLimitStrategy) OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy {
|
|
return OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy is optional BulkUpdateUsersRequestFieldsTrafficLimitStrategy.
|
|
type OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy struct {
|
|
Value BulkUpdateUsersRequestFieldsTrafficLimitStrategy
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy was set.
|
|
func (o OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) Reset() {
|
|
var v BulkUpdateUsersRequestFieldsTrafficLimitStrategy
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) SetTo(v BulkUpdateUsersRequestFieldsTrafficLimitStrategy) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) Get() (v BulkUpdateUsersRequestFieldsTrafficLimitStrategy, 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 OptBulkUpdateUsersRequestFieldsTrafficLimitStrategy) Or(d BulkUpdateUsersRequestFieldsTrafficLimitStrategy) BulkUpdateUsersRequestFieldsTrafficLimitStrategy {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptConfigProfileRef returns new OptConfigProfileRef with value set to v.
|
|
func NewOptConfigProfileRef(v ConfigProfileRef) OptConfigProfileRef {
|
|
return OptConfigProfileRef{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptConfigProfileRef is optional ConfigProfileRef.
|
|
type OptConfigProfileRef struct {
|
|
Value ConfigProfileRef
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptConfigProfileRef was set.
|
|
func (o OptConfigProfileRef) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptConfigProfileRef) Reset() {
|
|
var v ConfigProfileRef
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptConfigProfileRef) SetTo(v ConfigProfileRef) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptConfigProfileRef) Get() (v ConfigProfileRef, 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 OptConfigProfileRef) Or(d ConfigProfileRef) ConfigProfileRef {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCreateHostRequestSecurityLayer returns new OptCreateHostRequestSecurityLayer with value set to v.
|
|
func NewOptCreateHostRequestSecurityLayer(v CreateHostRequestSecurityLayer) OptCreateHostRequestSecurityLayer {
|
|
return OptCreateHostRequestSecurityLayer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCreateHostRequestSecurityLayer is optional CreateHostRequestSecurityLayer.
|
|
type OptCreateHostRequestSecurityLayer struct {
|
|
Value CreateHostRequestSecurityLayer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCreateHostRequestSecurityLayer was set.
|
|
func (o OptCreateHostRequestSecurityLayer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCreateHostRequestSecurityLayer) Reset() {
|
|
var v CreateHostRequestSecurityLayer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCreateHostRequestSecurityLayer) SetTo(v CreateHostRequestSecurityLayer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCreateHostRequestSecurityLayer) Get() (v CreateHostRequestSecurityLayer, 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 OptCreateHostRequestSecurityLayer) Or(d CreateHostRequestSecurityLayer) CreateHostRequestSecurityLayer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCreateUserRequestStatus returns new OptCreateUserRequestStatus with value set to v.
|
|
func NewOptCreateUserRequestStatus(v CreateUserRequestStatus) OptCreateUserRequestStatus {
|
|
return OptCreateUserRequestStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCreateUserRequestStatus is optional CreateUserRequestStatus.
|
|
type OptCreateUserRequestStatus struct {
|
|
Value CreateUserRequestStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCreateUserRequestStatus was set.
|
|
func (o OptCreateUserRequestStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCreateUserRequestStatus) Reset() {
|
|
var v CreateUserRequestStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCreateUserRequestStatus) SetTo(v CreateUserRequestStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCreateUserRequestStatus) Get() (v CreateUserRequestStatus, 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 OptCreateUserRequestStatus) Or(d CreateUserRequestStatus) CreateUserRequestStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptCreateUserRequestTrafficLimitStrategy returns new OptCreateUserRequestTrafficLimitStrategy with value set to v.
|
|
func NewOptCreateUserRequestTrafficLimitStrategy(v CreateUserRequestTrafficLimitStrategy) OptCreateUserRequestTrafficLimitStrategy {
|
|
return OptCreateUserRequestTrafficLimitStrategy{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptCreateUserRequestTrafficLimitStrategy is optional CreateUserRequestTrafficLimitStrategy.
|
|
type OptCreateUserRequestTrafficLimitStrategy struct {
|
|
Value CreateUserRequestTrafficLimitStrategy
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptCreateUserRequestTrafficLimitStrategy was set.
|
|
func (o OptCreateUserRequestTrafficLimitStrategy) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptCreateUserRequestTrafficLimitStrategy) Reset() {
|
|
var v CreateUserRequestTrafficLimitStrategy
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptCreateUserRequestTrafficLimitStrategy) SetTo(v CreateUserRequestTrafficLimitStrategy) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptCreateUserRequestTrafficLimitStrategy) Get() (v CreateUserRequestTrafficLimitStrategy, 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 OptCreateUserRequestTrafficLimitStrategy) Or(d CreateUserRequestTrafficLimitStrategy) CreateUserRequestTrafficLimitStrategy {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptDateTime returns new OptDateTime with value set to v.
|
|
func NewOptDateTime(v time.Time) OptDateTime {
|
|
return OptDateTime{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptDateTime is optional time.Time.
|
|
type OptDateTime struct {
|
|
Value time.Time
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptDateTime was set.
|
|
func (o OptDateTime) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptDateTime) Reset() {
|
|
var v time.Time
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptDateTime) SetTo(v time.Time) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptDateTime) Get() (v time.Time, 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 OptDateTime) Or(d time.Time) time.Time {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptDebugSrrMatcherSettings returns new OptDebugSrrMatcherSettings with value set to v.
|
|
func NewOptDebugSrrMatcherSettings(v DebugSrrMatcherSettings) OptDebugSrrMatcherSettings {
|
|
return OptDebugSrrMatcherSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptDebugSrrMatcherSettings is optional DebugSrrMatcherSettings.
|
|
type OptDebugSrrMatcherSettings struct {
|
|
Value DebugSrrMatcherSettings
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptDebugSrrMatcherSettings was set.
|
|
func (o OptDebugSrrMatcherSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptDebugSrrMatcherSettings) Reset() {
|
|
var v DebugSrrMatcherSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptDebugSrrMatcherSettings) SetTo(v DebugSrrMatcherSettings) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptDebugSrrMatcherSettings) Get() (v DebugSrrMatcherSettings, 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 OptDebugSrrMatcherSettings) Or(d DebugSrrMatcherSettings) DebugSrrMatcherSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptEncryptionItem returns new OptEncryptionItem with value set to v.
|
|
func NewOptEncryptionItem(v EncryptionItem) OptEncryptionItem {
|
|
return OptEncryptionItem{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptEncryptionItem is optional EncryptionItem.
|
|
type OptEncryptionItem struct {
|
|
Value EncryptionItem
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptEncryptionItem was set.
|
|
func (o OptEncryptionItem) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptEncryptionItem) Reset() {
|
|
var v EncryptionItem
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptEncryptionItem) SetTo(v EncryptionItem) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptEncryptionItem) Get() (v EncryptionItem, 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 OptEncryptionItem) Or(d EncryptionItem) EncryptionItem {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptFloat64 returns new OptFloat64 with value set to v.
|
|
func NewOptFloat64(v float64) OptFloat64 {
|
|
return OptFloat64{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptFloat64 is optional float64.
|
|
type OptFloat64 struct {
|
|
Value float64
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptFloat64 was set.
|
|
func (o OptFloat64) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptFloat64) Reset() {
|
|
var v float64
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptFloat64) SetTo(v float64) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptFloat64) Get() (v float64, 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 OptFloat64) Or(d float64) float64 {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGeneric returns new OptGeneric with value set to v.
|
|
func NewOptGeneric(v Generic) OptGeneric {
|
|
return OptGeneric{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGeneric is optional Generic.
|
|
type OptGeneric struct {
|
|
Value Generic
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGeneric was set.
|
|
func (o OptGeneric) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGeneric) Reset() {
|
|
var v Generic
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGeneric) SetTo(v Generic) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGeneric) Get() (v Generic, 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 OptGeneric) Or(d Generic) Generic {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions returns new OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions with value set to v.
|
|
func NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions {
|
|
return OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions is optional GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions.
|
|
type OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) IsSet() bool {
|
|
return o.Set
|
|
}
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) Reset() {
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions, 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 OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemSecurityOptions {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request returns new OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request with value set to v.
|
|
func NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request {
|
|
return OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request is optional GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request.
|
|
type OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) IsSet() bool {
|
|
return o.Set
|
|
}
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) Reset() {
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request, 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 OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Request {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders returns new OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders with value set to v.
|
|
func NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders {
|
|
return OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders is optional GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders.
|
|
type OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) IsSet() bool {
|
|
return o.Set
|
|
}
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) Reset() {
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders, 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 OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1RequestHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response returns new OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response with value set to v.
|
|
func NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response {
|
|
return OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response is optional GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response.
|
|
type OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) IsSet() bool {
|
|
return o.Set
|
|
}
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) Reset() {
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response, 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 OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1Response {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders returns new OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders with value set to v.
|
|
func NewOptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders {
|
|
return OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders is optional GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders.
|
|
type OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders struct {
|
|
Value GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) IsSet() bool {
|
|
return o.Set
|
|
}
|
|
|
|
// Reset unsets value.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) Reset() {
|
|
var v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) SetTo(v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) Get() (v GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders, 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 OptGetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) Or(d GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders) GetRawSubscriptionByShortUuidResponseResponseResolvedProxyConfigsItemTransportOptions0Header1ResponseHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptHostItemSecurityLayer returns new OptHostItemSecurityLayer with value set to v.
|
|
func NewOptHostItemSecurityLayer(v HostItemSecurityLayer) OptHostItemSecurityLayer {
|
|
return OptHostItemSecurityLayer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptHostItemSecurityLayer is optional HostItemSecurityLayer.
|
|
type OptHostItemSecurityLayer struct {
|
|
Value HostItemSecurityLayer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptHostItemSecurityLayer was set.
|
|
func (o OptHostItemSecurityLayer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptHostItemSecurityLayer) Reset() {
|
|
var v HostItemSecurityLayer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptHostItemSecurityLayer) SetTo(v HostItemSecurityLayer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptHostItemSecurityLayer) Get() (v HostItemSecurityLayer, 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 OptHostItemSecurityLayer) Or(d HostItemSecurityLayer) HostItemSecurityLayer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptInboundRef returns new OptInboundRef with value set to v.
|
|
func NewOptInboundRef(v InboundRef) OptInboundRef {
|
|
return OptInboundRef{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptInboundRef is optional InboundRef.
|
|
type OptInboundRef struct {
|
|
Value InboundRef
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptInboundRef was set.
|
|
func (o OptInboundRef) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptInboundRef) Reset() {
|
|
var v InboundRef
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptInboundRef) SetTo(v InboundRef) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptInboundRef) Get() (v InboundRef, 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 OptInboundRef) Or(d InboundRef) InboundRef {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptInt returns new OptInt with value set to v.
|
|
func NewOptInt(v int) OptInt {
|
|
return OptInt{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptInt is optional int.
|
|
type OptInt struct {
|
|
Value int
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptInt was set.
|
|
func (o OptInt) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptInt) Reset() {
|
|
var v int
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptInt) SetTo(v int) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptInt) Get() (v int, 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 OptInt) Or(d int) int {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptKeycloak returns new OptKeycloak with value set to v.
|
|
func NewOptKeycloak(v Keycloak) OptKeycloak {
|
|
return OptKeycloak{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptKeycloak is optional Keycloak.
|
|
type OptKeycloak struct {
|
|
Value Keycloak
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptKeycloak was set.
|
|
func (o OptKeycloak) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptKeycloak) Reset() {
|
|
var v Keycloak
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptKeycloak) SetTo(v Keycloak) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptKeycloak) Get() (v Keycloak, 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 OptKeycloak) Or(d Keycloak) Keycloak {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilBrandingSettings returns new OptNilBrandingSettings with value set to v.
|
|
func NewOptNilBrandingSettings(v BrandingSettings) OptNilBrandingSettings {
|
|
return OptNilBrandingSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilBrandingSettings is optional nullable BrandingSettings.
|
|
type OptNilBrandingSettings struct {
|
|
Value BrandingSettings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilBrandingSettings was set.
|
|
func (o OptNilBrandingSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilBrandingSettings) Reset() {
|
|
var v BrandingSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilBrandingSettings) SetTo(v BrandingSettings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilBrandingSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilBrandingSettings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v BrandingSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilBrandingSettings) Get() (v BrandingSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilBrandingSettings) Or(d BrandingSettings) BrandingSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilCreateHostRequestAlpn returns new OptNilCreateHostRequestAlpn with value set to v.
|
|
func NewOptNilCreateHostRequestAlpn(v CreateHostRequestAlpn) OptNilCreateHostRequestAlpn {
|
|
return OptNilCreateHostRequestAlpn{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilCreateHostRequestAlpn is optional nullable CreateHostRequestAlpn.
|
|
type OptNilCreateHostRequestAlpn struct {
|
|
Value CreateHostRequestAlpn
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilCreateHostRequestAlpn was set.
|
|
func (o OptNilCreateHostRequestAlpn) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilCreateHostRequestAlpn) Reset() {
|
|
var v CreateHostRequestAlpn
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilCreateHostRequestAlpn) SetTo(v CreateHostRequestAlpn) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilCreateHostRequestAlpn) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilCreateHostRequestAlpn) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v CreateHostRequestAlpn
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilCreateHostRequestAlpn) Get() (v CreateHostRequestAlpn, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilCreateHostRequestAlpn) Or(d CreateHostRequestAlpn) CreateHostRequestAlpn {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilCreateHostRequestMihomoIpVersion returns new OptNilCreateHostRequestMihomoIpVersion with value set to v.
|
|
func NewOptNilCreateHostRequestMihomoIpVersion(v CreateHostRequestMihomoIpVersion) OptNilCreateHostRequestMihomoIpVersion {
|
|
return OptNilCreateHostRequestMihomoIpVersion{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilCreateHostRequestMihomoIpVersion is optional nullable CreateHostRequestMihomoIpVersion.
|
|
type OptNilCreateHostRequestMihomoIpVersion struct {
|
|
Value CreateHostRequestMihomoIpVersion
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilCreateHostRequestMihomoIpVersion was set.
|
|
func (o OptNilCreateHostRequestMihomoIpVersion) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilCreateHostRequestMihomoIpVersion) Reset() {
|
|
var v CreateHostRequestMihomoIpVersion
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilCreateHostRequestMihomoIpVersion) SetTo(v CreateHostRequestMihomoIpVersion) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilCreateHostRequestMihomoIpVersion) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilCreateHostRequestMihomoIpVersion) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v CreateHostRequestMihomoIpVersion
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilCreateHostRequestMihomoIpVersion) Get() (v CreateHostRequestMihomoIpVersion, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilCreateHostRequestMihomoIpVersion) Or(d CreateHostRequestMihomoIpVersion) CreateHostRequestMihomoIpVersion {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilCustomRemark returns new OptNilCustomRemark with value set to v.
|
|
func NewOptNilCustomRemark(v CustomRemark) OptNilCustomRemark {
|
|
return OptNilCustomRemark{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilCustomRemark is optional nullable CustomRemark.
|
|
type OptNilCustomRemark struct {
|
|
Value CustomRemark
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilCustomRemark was set.
|
|
func (o OptNilCustomRemark) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilCustomRemark) Reset() {
|
|
var v CustomRemark
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilCustomRemark) SetTo(v CustomRemark) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilCustomRemark) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilCustomRemark) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v CustomRemark
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilCustomRemark) Get() (v CustomRemark, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilCustomRemark) Or(d CustomRemark) CustomRemark {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilHostOverride returns new OptNilHostOverride with value set to v.
|
|
func NewOptNilHostOverride(v HostOverride) OptNilHostOverride {
|
|
return OptNilHostOverride{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilHostOverride is optional nullable HostOverride.
|
|
type OptNilHostOverride struct {
|
|
Value HostOverride
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilHostOverride was set.
|
|
func (o OptNilHostOverride) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilHostOverride) Reset() {
|
|
var v HostOverride
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilHostOverride) SetTo(v HostOverride) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilHostOverride) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilHostOverride) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v HostOverride
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilHostOverride) Get() (v HostOverride, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilHostOverride) Or(d HostOverride) HostOverride {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilHwidSettings returns new OptNilHwidSettings with value set to v.
|
|
func NewOptNilHwidSettings(v HwidSettings) OptNilHwidSettings {
|
|
return OptNilHwidSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilHwidSettings is optional nullable HwidSettings.
|
|
type OptNilHwidSettings struct {
|
|
Value HwidSettings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilHwidSettings was set.
|
|
func (o OptNilHwidSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilHwidSettings) Reset() {
|
|
var v HwidSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilHwidSettings) SetTo(v HwidSettings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilHwidSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilHwidSettings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v HwidSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilHwidSettings) Get() (v HwidSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilHwidSettings) Or(d HwidSettings) HwidSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilInt returns new OptNilInt with value set to v.
|
|
func NewOptNilInt(v int) OptNilInt {
|
|
return OptNilInt{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilInt is optional nullable int.
|
|
type OptNilInt struct {
|
|
Value int
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilInt was set.
|
|
func (o OptNilInt) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilInt) Reset() {
|
|
var v int
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilInt) SetTo(v int) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilInt) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilInt) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v int
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilInt) Get() (v int, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilInt) Or(d int) int {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilOauth2Settings returns new OptNilOauth2Settings with value set to v.
|
|
func NewOptNilOauth2Settings(v Oauth2Settings) OptNilOauth2Settings {
|
|
return OptNilOauth2Settings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilOauth2Settings is optional nullable Oauth2Settings.
|
|
type OptNilOauth2Settings struct {
|
|
Value Oauth2Settings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilOauth2Settings was set.
|
|
func (o OptNilOauth2Settings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilOauth2Settings) Reset() {
|
|
var v Oauth2Settings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilOauth2Settings) SetTo(v Oauth2Settings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilOauth2Settings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilOauth2Settings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v Oauth2Settings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilOauth2Settings) Get() (v Oauth2Settings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilOauth2Settings) Or(d Oauth2Settings) Oauth2Settings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilPasskeySettings returns new OptNilPasskeySettings with value set to v.
|
|
func NewOptNilPasskeySettings(v PasskeySettings) OptNilPasskeySettings {
|
|
return OptNilPasskeySettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilPasskeySettings is optional nullable PasskeySettings.
|
|
type OptNilPasskeySettings struct {
|
|
Value PasskeySettings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilPasskeySettings was set.
|
|
func (o OptNilPasskeySettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilPasskeySettings) Reset() {
|
|
var v PasskeySettings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilPasskeySettings) SetTo(v PasskeySettings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilPasskeySettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilPasskeySettings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v PasskeySettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilPasskeySettings) Get() (v PasskeySettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilPasskeySettings) Or(d PasskeySettings) PasskeySettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilPasswordSettings returns new OptNilPasswordSettings with value set to v.
|
|
func NewOptNilPasswordSettings(v PasswordSettings) OptNilPasswordSettings {
|
|
return OptNilPasswordSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilPasswordSettings is optional nullable PasswordSettings.
|
|
type OptNilPasswordSettings struct {
|
|
Value PasswordSettings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilPasswordSettings was set.
|
|
func (o OptNilPasswordSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilPasswordSettings) Reset() {
|
|
var v PasswordSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilPasswordSettings) SetTo(v PasswordSettings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilPasswordSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilPasswordSettings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v PasswordSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilPasswordSettings) Get() (v PasswordSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilPasswordSettings) Or(d PasswordSettings) PasswordSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilString returns new OptNilString with value set to v.
|
|
func NewOptNilString(v string) OptNilString {
|
|
return OptNilString{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilString is optional nullable string.
|
|
type OptNilString struct {
|
|
Value string
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilString was set.
|
|
func (o OptNilString) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilString) Reset() {
|
|
var v string
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilString) SetTo(v string) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilString) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilString) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v string
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilString) Get() (v string, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilString) Or(d string) string {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilSubscriptionSettings returns new OptNilSubscriptionSettings with value set to v.
|
|
func NewOptNilSubscriptionSettings(v SubscriptionSettings) OptNilSubscriptionSettings {
|
|
return OptNilSubscriptionSettings{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilSubscriptionSettings is optional nullable SubscriptionSettings.
|
|
type OptNilSubscriptionSettings struct {
|
|
Value SubscriptionSettings
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilSubscriptionSettings was set.
|
|
func (o OptNilSubscriptionSettings) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilSubscriptionSettings) Reset() {
|
|
var v SubscriptionSettings
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilSubscriptionSettings) SetTo(v SubscriptionSettings) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilSubscriptionSettings) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilSubscriptionSettings) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v SubscriptionSettings
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilSubscriptionSettings) Get() (v SubscriptionSettings, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilSubscriptionSettings) Or(d SubscriptionSettings) SubscriptionSettings {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilURI returns new OptNilURI with value set to v.
|
|
func NewOptNilURI(v url.URL) OptNilURI {
|
|
return OptNilURI{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilURI is optional nullable url.URL.
|
|
type OptNilURI struct {
|
|
Value url.URL
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilURI was set.
|
|
func (o OptNilURI) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilURI) Reset() {
|
|
var v url.URL
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilURI) SetTo(v url.URL) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilURI) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilURI) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v url.URL
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilURI) Get() (v url.URL, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilURI) Or(d url.URL) url.URL {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUUID returns new OptNilUUID with value set to v.
|
|
func NewOptNilUUID(v uuid.UUID) OptNilUUID {
|
|
return OptNilUUID{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUUID is optional nullable uuid.UUID.
|
|
type OptNilUUID struct {
|
|
Value uuid.UUID
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUUID was set.
|
|
func (o OptNilUUID) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUUID) Reset() {
|
|
var v uuid.UUID
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUUID) SetTo(v uuid.UUID) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUUID) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUUID) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v uuid.UUID
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUUID) Get() (v uuid.UUID, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUUID) Or(d uuid.UUID) uuid.UUID {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUpdateExternalSquadRequestResponseHeaders returns new OptNilUpdateExternalSquadRequestResponseHeaders with value set to v.
|
|
func NewOptNilUpdateExternalSquadRequestResponseHeaders(v UpdateExternalSquadRequestResponseHeaders) OptNilUpdateExternalSquadRequestResponseHeaders {
|
|
return OptNilUpdateExternalSquadRequestResponseHeaders{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUpdateExternalSquadRequestResponseHeaders is optional nullable UpdateExternalSquadRequestResponseHeaders.
|
|
type OptNilUpdateExternalSquadRequestResponseHeaders struct {
|
|
Value UpdateExternalSquadRequestResponseHeaders
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUpdateExternalSquadRequestResponseHeaders was set.
|
|
func (o OptNilUpdateExternalSquadRequestResponseHeaders) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUpdateExternalSquadRequestResponseHeaders) Reset() {
|
|
var v UpdateExternalSquadRequestResponseHeaders
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUpdateExternalSquadRequestResponseHeaders) SetTo(v UpdateExternalSquadRequestResponseHeaders) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUpdateExternalSquadRequestResponseHeaders) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUpdateExternalSquadRequestResponseHeaders) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v UpdateExternalSquadRequestResponseHeaders
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUpdateExternalSquadRequestResponseHeaders) Get() (v UpdateExternalSquadRequestResponseHeaders, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUpdateExternalSquadRequestResponseHeaders) Or(d UpdateExternalSquadRequestResponseHeaders) UpdateExternalSquadRequestResponseHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUpdateHostRequestAlpn returns new OptNilUpdateHostRequestAlpn with value set to v.
|
|
func NewOptNilUpdateHostRequestAlpn(v UpdateHostRequestAlpn) OptNilUpdateHostRequestAlpn {
|
|
return OptNilUpdateHostRequestAlpn{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUpdateHostRequestAlpn is optional nullable UpdateHostRequestAlpn.
|
|
type OptNilUpdateHostRequestAlpn struct {
|
|
Value UpdateHostRequestAlpn
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUpdateHostRequestAlpn was set.
|
|
func (o OptNilUpdateHostRequestAlpn) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUpdateHostRequestAlpn) Reset() {
|
|
var v UpdateHostRequestAlpn
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUpdateHostRequestAlpn) SetTo(v UpdateHostRequestAlpn) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUpdateHostRequestAlpn) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUpdateHostRequestAlpn) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v UpdateHostRequestAlpn
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUpdateHostRequestAlpn) Get() (v UpdateHostRequestAlpn, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUpdateHostRequestAlpn) Or(d UpdateHostRequestAlpn) UpdateHostRequestAlpn {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUpdateHostRequestMihomoIpVersion returns new OptNilUpdateHostRequestMihomoIpVersion with value set to v.
|
|
func NewOptNilUpdateHostRequestMihomoIpVersion(v UpdateHostRequestMihomoIpVersion) OptNilUpdateHostRequestMihomoIpVersion {
|
|
return OptNilUpdateHostRequestMihomoIpVersion{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUpdateHostRequestMihomoIpVersion is optional nullable UpdateHostRequestMihomoIpVersion.
|
|
type OptNilUpdateHostRequestMihomoIpVersion struct {
|
|
Value UpdateHostRequestMihomoIpVersion
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUpdateHostRequestMihomoIpVersion was set.
|
|
func (o OptNilUpdateHostRequestMihomoIpVersion) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUpdateHostRequestMihomoIpVersion) Reset() {
|
|
var v UpdateHostRequestMihomoIpVersion
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUpdateHostRequestMihomoIpVersion) SetTo(v UpdateHostRequestMihomoIpVersion) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUpdateHostRequestMihomoIpVersion) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUpdateHostRequestMihomoIpVersion) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v UpdateHostRequestMihomoIpVersion
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUpdateHostRequestMihomoIpVersion) Get() (v UpdateHostRequestMihomoIpVersion, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUpdateHostRequestMihomoIpVersion) Or(d UpdateHostRequestMihomoIpVersion) UpdateHostRequestMihomoIpVersion {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUpdateManyHostsRequestAlpn returns new OptNilUpdateManyHostsRequestAlpn with value set to v.
|
|
func NewOptNilUpdateManyHostsRequestAlpn(v UpdateManyHostsRequestAlpn) OptNilUpdateManyHostsRequestAlpn {
|
|
return OptNilUpdateManyHostsRequestAlpn{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUpdateManyHostsRequestAlpn is optional nullable UpdateManyHostsRequestAlpn.
|
|
type OptNilUpdateManyHostsRequestAlpn struct {
|
|
Value UpdateManyHostsRequestAlpn
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUpdateManyHostsRequestAlpn was set.
|
|
func (o OptNilUpdateManyHostsRequestAlpn) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUpdateManyHostsRequestAlpn) Reset() {
|
|
var v UpdateManyHostsRequestAlpn
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUpdateManyHostsRequestAlpn) SetTo(v UpdateManyHostsRequestAlpn) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUpdateManyHostsRequestAlpn) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUpdateManyHostsRequestAlpn) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v UpdateManyHostsRequestAlpn
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUpdateManyHostsRequestAlpn) Get() (v UpdateManyHostsRequestAlpn, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUpdateManyHostsRequestAlpn) Or(d UpdateManyHostsRequestAlpn) UpdateManyHostsRequestAlpn {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptNilUpdateManyHostsRequestMihomoIpVersion returns new OptNilUpdateManyHostsRequestMihomoIpVersion with value set to v.
|
|
func NewOptNilUpdateManyHostsRequestMihomoIpVersion(v UpdateManyHostsRequestMihomoIpVersion) OptNilUpdateManyHostsRequestMihomoIpVersion {
|
|
return OptNilUpdateManyHostsRequestMihomoIpVersion{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptNilUpdateManyHostsRequestMihomoIpVersion is optional nullable UpdateManyHostsRequestMihomoIpVersion.
|
|
type OptNilUpdateManyHostsRequestMihomoIpVersion struct {
|
|
Value UpdateManyHostsRequestMihomoIpVersion
|
|
Set bool
|
|
Null bool
|
|
}
|
|
|
|
// IsSet returns true if OptNilUpdateManyHostsRequestMihomoIpVersion was set.
|
|
func (o OptNilUpdateManyHostsRequestMihomoIpVersion) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptNilUpdateManyHostsRequestMihomoIpVersion) Reset() {
|
|
var v UpdateManyHostsRequestMihomoIpVersion
|
|
o.Value = v
|
|
o.Set = false
|
|
o.Null = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptNilUpdateManyHostsRequestMihomoIpVersion) SetTo(v UpdateManyHostsRequestMihomoIpVersion) {
|
|
o.Set = true
|
|
o.Null = false
|
|
o.Value = v
|
|
}
|
|
|
|
// IsNull returns true if value is Null.
|
|
func (o OptNilUpdateManyHostsRequestMihomoIpVersion) IsNull() bool { return o.Null }
|
|
|
|
// SetToNull sets value to null.
|
|
func (o *OptNilUpdateManyHostsRequestMihomoIpVersion) SetToNull() {
|
|
o.Set = true
|
|
o.Null = true
|
|
var v UpdateManyHostsRequestMihomoIpVersion
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptNilUpdateManyHostsRequestMihomoIpVersion) Get() (v UpdateManyHostsRequestMihomoIpVersion, ok bool) {
|
|
if o.Null {
|
|
return v, false
|
|
}
|
|
if !o.Set {
|
|
return v, false
|
|
}
|
|
return o.Value, true
|
|
}
|
|
|
|
// Or returns value if set, or given parameter if does not.
|
|
func (o OptNilUpdateManyHostsRequestMihomoIpVersion) Or(d UpdateManyHostsRequestMihomoIpVersion) UpdateManyHostsRequestMihomoIpVersion {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptResponseModification returns new OptResponseModification with value set to v.
|
|
func NewOptResponseModification(v ResponseModification) OptResponseModification {
|
|
return OptResponseModification{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptResponseModification is optional ResponseModification.
|
|
type OptResponseModification struct {
|
|
Value ResponseModification
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptResponseModification was set.
|
|
func (o OptResponseModification) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptResponseModification) Reset() {
|
|
var v ResponseModification
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptResponseModification) SetTo(v ResponseModification) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptResponseModification) Get() (v ResponseModification, 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 OptResponseModification) Or(d ResponseModification) ResponseModification {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptResponseRules returns new OptResponseRules with value set to v.
|
|
func NewOptResponseRules(v ResponseRules) OptResponseRules {
|
|
return OptResponseRules{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptResponseRules is optional ResponseRules.
|
|
type OptResponseRules struct {
|
|
Value ResponseRules
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptResponseRules was set.
|
|
func (o OptResponseRules) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptResponseRules) Reset() {
|
|
var v ResponseRules
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptResponseRules) SetTo(v ResponseRules) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptResponseRules) Get() (v ResponseRules, 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 OptResponseRules) Or(d ResponseRules) ResponseRules {
|
|
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
|
|
}
|
|
|
|
// NewOptTelegram returns new OptTelegram with value set to v.
|
|
func NewOptTelegram(v Telegram) OptTelegram {
|
|
return OptTelegram{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptTelegram is optional Telegram.
|
|
type OptTelegram struct {
|
|
Value Telegram
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptTelegram was set.
|
|
func (o OptTelegram) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptTelegram) Reset() {
|
|
var v Telegram
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptTelegram) SetTo(v Telegram) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptTelegram) Get() (v Telegram, 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 OptTelegram) Or(d Telegram) Telegram {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptURI returns new OptURI with value set to v.
|
|
func NewOptURI(v url.URL) OptURI {
|
|
return OptURI{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptURI is optional url.URL.
|
|
type OptURI struct {
|
|
Value url.URL
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptURI was set.
|
|
func (o OptURI) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptURI) Reset() {
|
|
var v url.URL
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptURI) SetTo(v url.URL) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptURI) Get() (v url.URL, 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 OptURI) Or(d url.URL) url.URL {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUUID returns new OptUUID with value set to v.
|
|
func NewOptUUID(v uuid.UUID) OptUUID {
|
|
return OptUUID{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUUID is optional uuid.UUID.
|
|
type OptUUID struct {
|
|
Value uuid.UUID
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUUID was set.
|
|
func (o OptUUID) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUUID) Reset() {
|
|
var v uuid.UUID
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUUID) SetTo(v uuid.UUID) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUUID) Get() (v uuid.UUID, 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 OptUUID) Or(d uuid.UUID) uuid.UUID {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUpdateHostRequestSecurityLayer returns new OptUpdateHostRequestSecurityLayer with value set to v.
|
|
func NewOptUpdateHostRequestSecurityLayer(v UpdateHostRequestSecurityLayer) OptUpdateHostRequestSecurityLayer {
|
|
return OptUpdateHostRequestSecurityLayer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUpdateHostRequestSecurityLayer is optional UpdateHostRequestSecurityLayer.
|
|
type OptUpdateHostRequestSecurityLayer struct {
|
|
Value UpdateHostRequestSecurityLayer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUpdateHostRequestSecurityLayer was set.
|
|
func (o OptUpdateHostRequestSecurityLayer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUpdateHostRequestSecurityLayer) Reset() {
|
|
var v UpdateHostRequestSecurityLayer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUpdateHostRequestSecurityLayer) SetTo(v UpdateHostRequestSecurityLayer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUpdateHostRequestSecurityLayer) Get() (v UpdateHostRequestSecurityLayer, 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 OptUpdateHostRequestSecurityLayer) Or(d UpdateHostRequestSecurityLayer) UpdateHostRequestSecurityLayer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUpdateManyHostsRequestSecurityLayer returns new OptUpdateManyHostsRequestSecurityLayer with value set to v.
|
|
func NewOptUpdateManyHostsRequestSecurityLayer(v UpdateManyHostsRequestSecurityLayer) OptUpdateManyHostsRequestSecurityLayer {
|
|
return OptUpdateManyHostsRequestSecurityLayer{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUpdateManyHostsRequestSecurityLayer is optional UpdateManyHostsRequestSecurityLayer.
|
|
type OptUpdateManyHostsRequestSecurityLayer struct {
|
|
Value UpdateManyHostsRequestSecurityLayer
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUpdateManyHostsRequestSecurityLayer was set.
|
|
func (o OptUpdateManyHostsRequestSecurityLayer) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUpdateManyHostsRequestSecurityLayer) Reset() {
|
|
var v UpdateManyHostsRequestSecurityLayer
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUpdateManyHostsRequestSecurityLayer) SetTo(v UpdateManyHostsRequestSecurityLayer) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUpdateManyHostsRequestSecurityLayer) Get() (v UpdateManyHostsRequestSecurityLayer, 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 OptUpdateManyHostsRequestSecurityLayer) Or(d UpdateManyHostsRequestSecurityLayer) UpdateManyHostsRequestSecurityLayer {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUpdateSubscriptionSettingsRequestCustomResponseHeaders returns new OptUpdateSubscriptionSettingsRequestCustomResponseHeaders with value set to v.
|
|
func NewOptUpdateSubscriptionSettingsRequestCustomResponseHeaders(v UpdateSubscriptionSettingsRequestCustomResponseHeaders) OptUpdateSubscriptionSettingsRequestCustomResponseHeaders {
|
|
return OptUpdateSubscriptionSettingsRequestCustomResponseHeaders{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUpdateSubscriptionSettingsRequestCustomResponseHeaders is optional UpdateSubscriptionSettingsRequestCustomResponseHeaders.
|
|
type OptUpdateSubscriptionSettingsRequestCustomResponseHeaders struct {
|
|
Value UpdateSubscriptionSettingsRequestCustomResponseHeaders
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUpdateSubscriptionSettingsRequestCustomResponseHeaders was set.
|
|
func (o OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) Reset() {
|
|
var v UpdateSubscriptionSettingsRequestCustomResponseHeaders
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) SetTo(v UpdateSubscriptionSettingsRequestCustomResponseHeaders) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) Get() (v UpdateSubscriptionSettingsRequestCustomResponseHeaders, 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 OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) Or(d UpdateSubscriptionSettingsRequestCustomResponseHeaders) UpdateSubscriptionSettingsRequestCustomResponseHeaders {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUpdateUserRequestStatus returns new OptUpdateUserRequestStatus with value set to v.
|
|
func NewOptUpdateUserRequestStatus(v UpdateUserRequestStatus) OptUpdateUserRequestStatus {
|
|
return OptUpdateUserRequestStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUpdateUserRequestStatus is optional UpdateUserRequestStatus.
|
|
type OptUpdateUserRequestStatus struct {
|
|
Value UpdateUserRequestStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUpdateUserRequestStatus was set.
|
|
func (o OptUpdateUserRequestStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUpdateUserRequestStatus) Reset() {
|
|
var v UpdateUserRequestStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUpdateUserRequestStatus) SetTo(v UpdateUserRequestStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUpdateUserRequestStatus) Get() (v UpdateUserRequestStatus, 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 OptUpdateUserRequestStatus) Or(d UpdateUserRequestStatus) UpdateUserRequestStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUpdateUserRequestTrafficLimitStrategy returns new OptUpdateUserRequestTrafficLimitStrategy with value set to v.
|
|
func NewOptUpdateUserRequestTrafficLimitStrategy(v UpdateUserRequestTrafficLimitStrategy) OptUpdateUserRequestTrafficLimitStrategy {
|
|
return OptUpdateUserRequestTrafficLimitStrategy{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUpdateUserRequestTrafficLimitStrategy is optional UpdateUserRequestTrafficLimitStrategy.
|
|
type OptUpdateUserRequestTrafficLimitStrategy struct {
|
|
Value UpdateUserRequestTrafficLimitStrategy
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUpdateUserRequestTrafficLimitStrategy was set.
|
|
func (o OptUpdateUserRequestTrafficLimitStrategy) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUpdateUserRequestTrafficLimitStrategy) Reset() {
|
|
var v UpdateUserRequestTrafficLimitStrategy
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUpdateUserRequestTrafficLimitStrategy) SetTo(v UpdateUserRequestTrafficLimitStrategy) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUpdateUserRequestTrafficLimitStrategy) Get() (v UpdateUserRequestTrafficLimitStrategy, 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 OptUpdateUserRequestTrafficLimitStrategy) Or(d UpdateUserRequestTrafficLimitStrategy) UpdateUserRequestTrafficLimitStrategy {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUserItemInfoStatus returns new OptUserItemInfoStatus with value set to v.
|
|
func NewOptUserItemInfoStatus(v UserItemInfoStatus) OptUserItemInfoStatus {
|
|
return OptUserItemInfoStatus{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUserItemInfoStatus is optional UserItemInfoStatus.
|
|
type OptUserItemInfoStatus struct {
|
|
Value UserItemInfoStatus
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUserItemInfoStatus was set.
|
|
func (o OptUserItemInfoStatus) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUserItemInfoStatus) Reset() {
|
|
var v UserItemInfoStatus
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUserItemInfoStatus) SetTo(v UserItemInfoStatus) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUserItemInfoStatus) Get() (v UserItemInfoStatus, 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 OptUserItemInfoStatus) Or(d UserItemInfoStatus) UserItemInfoStatus {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// NewOptUserItemInfoTrafficLimitStrategy returns new OptUserItemInfoTrafficLimitStrategy with value set to v.
|
|
func NewOptUserItemInfoTrafficLimitStrategy(v UserItemInfoTrafficLimitStrategy) OptUserItemInfoTrafficLimitStrategy {
|
|
return OptUserItemInfoTrafficLimitStrategy{
|
|
Value: v,
|
|
Set: true,
|
|
}
|
|
}
|
|
|
|
// OptUserItemInfoTrafficLimitStrategy is optional UserItemInfoTrafficLimitStrategy.
|
|
type OptUserItemInfoTrafficLimitStrategy struct {
|
|
Value UserItemInfoTrafficLimitStrategy
|
|
Set bool
|
|
}
|
|
|
|
// IsSet returns true if OptUserItemInfoTrafficLimitStrategy was set.
|
|
func (o OptUserItemInfoTrafficLimitStrategy) IsSet() bool { return o.Set }
|
|
|
|
// Reset unsets value.
|
|
func (o *OptUserItemInfoTrafficLimitStrategy) Reset() {
|
|
var v UserItemInfoTrafficLimitStrategy
|
|
o.Value = v
|
|
o.Set = false
|
|
}
|
|
|
|
// SetTo sets value to v.
|
|
func (o *OptUserItemInfoTrafficLimitStrategy) SetTo(v UserItemInfoTrafficLimitStrategy) {
|
|
o.Set = true
|
|
o.Value = v
|
|
}
|
|
|
|
// Get returns value and boolean that denotes whether value was set.
|
|
func (o OptUserItemInfoTrafficLimitStrategy) Get() (v UserItemInfoTrafficLimitStrategy, 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 OptUserItemInfoTrafficLimitStrategy) Or(d UserItemInfoTrafficLimitStrategy) UserItemInfoTrafficLimitStrategy {
|
|
if v, ok := o.Get(); ok {
|
|
return v
|
|
}
|
|
return d
|
|
}
|
|
|
|
// Ref: #/components/schemas/PasskeyOptions
|
|
type PasskeyOptions struct {
|
|
Response jx.Raw `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *PasskeyOptions) GetResponse() jx.Raw {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *PasskeyOptions) SetResponse(val jx.Raw) {
|
|
s.Response = val
|
|
}
|
|
|
|
// PasskeyOptionsStatusCode wraps PasskeyOptions with StatusCode.
|
|
type PasskeyOptionsStatusCode struct {
|
|
StatusCode int
|
|
Response PasskeyOptions
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *PasskeyOptionsStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *PasskeyOptionsStatusCode) GetResponse() PasskeyOptions {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *PasskeyOptionsStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *PasskeyOptionsStatusCode) SetResponse(val PasskeyOptions) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*PasskeyOptionsStatusCode) authPasskeyAuthenticationOptionsRes() {}
|
|
func (*PasskeyOptionsStatusCode) passkeyPasskeyRegistrationOptionsRes() {}
|
|
|
|
// Ref: #/components/schemas/PasskeySettings
|
|
type PasskeySettings struct {
|
|
Enabled bool `json:"enabled"`
|
|
RpId NilString `json:"rpId"`
|
|
Origin NilString `json:"origin"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *PasskeySettings) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetRpId returns the value of RpId.
|
|
func (s *PasskeySettings) GetRpId() NilString {
|
|
return s.RpId
|
|
}
|
|
|
|
// GetOrigin returns the value of Origin.
|
|
func (s *PasskeySettings) GetOrigin() NilString {
|
|
return s.Origin
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *PasskeySettings) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetRpId sets the value of RpId.
|
|
func (s *PasskeySettings) SetRpId(val NilString) {
|
|
s.RpId = val
|
|
}
|
|
|
|
// SetOrigin sets the value of Origin.
|
|
func (s *PasskeySettings) SetOrigin(val NilString) {
|
|
s.Origin = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/PasskeysResponse
|
|
type PasskeysResponse struct {
|
|
Response PasskeysResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *PasskeysResponse) GetResponse() PasskeysResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *PasskeysResponse) SetResponse(val PasskeysResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
type PasskeysResponseResponse struct {
|
|
Passkeys []PasskeysResponseResponsePasskeysItem `json:"passkeys"`
|
|
}
|
|
|
|
// GetPasskeys returns the value of Passkeys.
|
|
func (s *PasskeysResponseResponse) GetPasskeys() []PasskeysResponseResponsePasskeysItem {
|
|
return s.Passkeys
|
|
}
|
|
|
|
// SetPasskeys sets the value of Passkeys.
|
|
func (s *PasskeysResponseResponse) SetPasskeys(val []PasskeysResponseResponsePasskeysItem) {
|
|
s.Passkeys = val
|
|
}
|
|
|
|
type PasskeysResponseResponsePasskeysItem struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
// Created date. Format: 2025-01-17T15:38:45.065Z.
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
// Last used date. Format: 2025-01-17T15:38:45.065Z.
|
|
LastUsedAt time.Time `json:"lastUsedAt"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *PasskeysResponseResponsePasskeysItem) GetID() string {
|
|
return s.ID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *PasskeysResponseResponsePasskeysItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *PasskeysResponseResponsePasskeysItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetLastUsedAt returns the value of LastUsedAt.
|
|
func (s *PasskeysResponseResponsePasskeysItem) GetLastUsedAt() time.Time {
|
|
return s.LastUsedAt
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *PasskeysResponseResponsePasskeysItem) SetID(val string) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *PasskeysResponseResponsePasskeysItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *PasskeysResponseResponsePasskeysItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetLastUsedAt sets the value of LastUsedAt.
|
|
func (s *PasskeysResponseResponsePasskeysItem) SetLastUsedAt(val time.Time) {
|
|
s.LastUsedAt = val
|
|
}
|
|
|
|
// PasskeysResponseStatusCode wraps PasskeysResponse with StatusCode.
|
|
type PasskeysResponseStatusCode struct {
|
|
StatusCode int
|
|
Response PasskeysResponse
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *PasskeysResponseStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *PasskeysResponseStatusCode) GetResponse() PasskeysResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *PasskeysResponseStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *PasskeysResponseStatusCode) SetResponse(val PasskeysResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*PasskeysResponseStatusCode) passkeyDeletePasskeyRes() {}
|
|
func (*PasskeysResponseStatusCode) passkeyGetActivePasskeysRes() {}
|
|
func (*PasskeysResponseStatusCode) passkeyUpdatePasskeyRes() {}
|
|
|
|
// Ref: #/components/schemas/PasswordSettings
|
|
type PasswordSettings struct {
|
|
Enabled bool `json:"enabled"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *PasswordSettings) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *PasswordSettings) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/PluginExecutorRequest
|
|
type PluginExecutorRequest struct {
|
|
Command PluginExecutorRequestCommand `json:"command"`
|
|
TargetNodes PluginExecutorRequestTargetNodes `json:"targetNodes"`
|
|
}
|
|
|
|
// GetCommand returns the value of Command.
|
|
func (s *PluginExecutorRequest) GetCommand() PluginExecutorRequestCommand {
|
|
return s.Command
|
|
}
|
|
|
|
// GetTargetNodes returns the value of TargetNodes.
|
|
func (s *PluginExecutorRequest) GetTargetNodes() PluginExecutorRequestTargetNodes {
|
|
return s.TargetNodes
|
|
}
|
|
|
|
// SetCommand sets the value of Command.
|
|
func (s *PluginExecutorRequest) SetCommand(val PluginExecutorRequestCommand) {
|
|
s.Command = val
|
|
}
|
|
|
|
// SetTargetNodes sets the value of TargetNodes.
|
|
func (s *PluginExecutorRequest) SetTargetNodes(val PluginExecutorRequestTargetNodes) {
|
|
s.TargetNodes = val
|
|
}
|
|
|
|
// PluginExecutorRequestCommand represents sum type.
|
|
type PluginExecutorRequestCommand struct {
|
|
Type PluginExecutorRequestCommandType // switch on this field
|
|
PluginExecutorRequestCommand0 PluginExecutorRequestCommand0
|
|
PluginExecutorRequestCommand1 PluginExecutorRequestCommand1
|
|
PluginExecutorRequestCommand2 PluginExecutorRequestCommand2
|
|
}
|
|
|
|
// PluginExecutorRequestCommandType is oneOf type of PluginExecutorRequestCommand.
|
|
type PluginExecutorRequestCommandType string
|
|
|
|
// Possible values for PluginExecutorRequestCommandType.
|
|
const (
|
|
PluginExecutorRequestCommand0PluginExecutorRequestCommand PluginExecutorRequestCommandType = "PluginExecutorRequestCommand0"
|
|
PluginExecutorRequestCommand1PluginExecutorRequestCommand PluginExecutorRequestCommandType = "PluginExecutorRequestCommand1"
|
|
PluginExecutorRequestCommand2PluginExecutorRequestCommand PluginExecutorRequestCommandType = "PluginExecutorRequestCommand2"
|
|
)
|
|
|
|
// IsPluginExecutorRequestCommand0 reports whether PluginExecutorRequestCommand is PluginExecutorRequestCommand0.
|
|
func (s PluginExecutorRequestCommand) IsPluginExecutorRequestCommand0() bool {
|
|
return s.Type == PluginExecutorRequestCommand0PluginExecutorRequestCommand
|
|
}
|
|
|
|
// IsPluginExecutorRequestCommand1 reports whether PluginExecutorRequestCommand is PluginExecutorRequestCommand1.
|
|
func (s PluginExecutorRequestCommand) IsPluginExecutorRequestCommand1() bool {
|
|
return s.Type == PluginExecutorRequestCommand1PluginExecutorRequestCommand
|
|
}
|
|
|
|
// IsPluginExecutorRequestCommand2 reports whether PluginExecutorRequestCommand is PluginExecutorRequestCommand2.
|
|
func (s PluginExecutorRequestCommand) IsPluginExecutorRequestCommand2() bool {
|
|
return s.Type == PluginExecutorRequestCommand2PluginExecutorRequestCommand
|
|
}
|
|
|
|
// SetPluginExecutorRequestCommand0 sets PluginExecutorRequestCommand to PluginExecutorRequestCommand0.
|
|
func (s *PluginExecutorRequestCommand) SetPluginExecutorRequestCommand0(v PluginExecutorRequestCommand0) {
|
|
s.Type = PluginExecutorRequestCommand0PluginExecutorRequestCommand
|
|
s.PluginExecutorRequestCommand0 = v
|
|
}
|
|
|
|
// GetPluginExecutorRequestCommand0 returns PluginExecutorRequestCommand0 and true boolean if PluginExecutorRequestCommand is PluginExecutorRequestCommand0.
|
|
func (s PluginExecutorRequestCommand) GetPluginExecutorRequestCommand0() (v PluginExecutorRequestCommand0, ok bool) {
|
|
if !s.IsPluginExecutorRequestCommand0() {
|
|
return v, false
|
|
}
|
|
return s.PluginExecutorRequestCommand0, true
|
|
}
|
|
|
|
// NewPluginExecutorRequestCommand0PluginExecutorRequestCommand returns new PluginExecutorRequestCommand from PluginExecutorRequestCommand0.
|
|
func NewPluginExecutorRequestCommand0PluginExecutorRequestCommand(v PluginExecutorRequestCommand0) PluginExecutorRequestCommand {
|
|
var s PluginExecutorRequestCommand
|
|
s.SetPluginExecutorRequestCommand0(v)
|
|
return s
|
|
}
|
|
|
|
// SetPluginExecutorRequestCommand1 sets PluginExecutorRequestCommand to PluginExecutorRequestCommand1.
|
|
func (s *PluginExecutorRequestCommand) SetPluginExecutorRequestCommand1(v PluginExecutorRequestCommand1) {
|
|
s.Type = PluginExecutorRequestCommand1PluginExecutorRequestCommand
|
|
s.PluginExecutorRequestCommand1 = v
|
|
}
|
|
|
|
// GetPluginExecutorRequestCommand1 returns PluginExecutorRequestCommand1 and true boolean if PluginExecutorRequestCommand is PluginExecutorRequestCommand1.
|
|
func (s PluginExecutorRequestCommand) GetPluginExecutorRequestCommand1() (v PluginExecutorRequestCommand1, ok bool) {
|
|
if !s.IsPluginExecutorRequestCommand1() {
|
|
return v, false
|
|
}
|
|
return s.PluginExecutorRequestCommand1, true
|
|
}
|
|
|
|
// NewPluginExecutorRequestCommand1PluginExecutorRequestCommand returns new PluginExecutorRequestCommand from PluginExecutorRequestCommand1.
|
|
func NewPluginExecutorRequestCommand1PluginExecutorRequestCommand(v PluginExecutorRequestCommand1) PluginExecutorRequestCommand {
|
|
var s PluginExecutorRequestCommand
|
|
s.SetPluginExecutorRequestCommand1(v)
|
|
return s
|
|
}
|
|
|
|
// SetPluginExecutorRequestCommand2 sets PluginExecutorRequestCommand to PluginExecutorRequestCommand2.
|
|
func (s *PluginExecutorRequestCommand) SetPluginExecutorRequestCommand2(v PluginExecutorRequestCommand2) {
|
|
s.Type = PluginExecutorRequestCommand2PluginExecutorRequestCommand
|
|
s.PluginExecutorRequestCommand2 = v
|
|
}
|
|
|
|
// GetPluginExecutorRequestCommand2 returns PluginExecutorRequestCommand2 and true boolean if PluginExecutorRequestCommand is PluginExecutorRequestCommand2.
|
|
func (s PluginExecutorRequestCommand) GetPluginExecutorRequestCommand2() (v PluginExecutorRequestCommand2, ok bool) {
|
|
if !s.IsPluginExecutorRequestCommand2() {
|
|
return v, false
|
|
}
|
|
return s.PluginExecutorRequestCommand2, true
|
|
}
|
|
|
|
// NewPluginExecutorRequestCommand2PluginExecutorRequestCommand returns new PluginExecutorRequestCommand from PluginExecutorRequestCommand2.
|
|
func NewPluginExecutorRequestCommand2PluginExecutorRequestCommand(v PluginExecutorRequestCommand2) PluginExecutorRequestCommand {
|
|
var s PluginExecutorRequestCommand
|
|
s.SetPluginExecutorRequestCommand2(v)
|
|
return s
|
|
}
|
|
|
|
// Block IPs.
|
|
type PluginExecutorRequestCommand0 struct {
|
|
Command PluginExecutorRequestCommand0Command `json:"command"`
|
|
Ips []PluginExecutorRequestCommand0IpsItem `json:"ips"`
|
|
}
|
|
|
|
// GetCommand returns the value of Command.
|
|
func (s *PluginExecutorRequestCommand0) GetCommand() PluginExecutorRequestCommand0Command {
|
|
return s.Command
|
|
}
|
|
|
|
// GetIps returns the value of Ips.
|
|
func (s *PluginExecutorRequestCommand0) GetIps() []PluginExecutorRequestCommand0IpsItem {
|
|
return s.Ips
|
|
}
|
|
|
|
// SetCommand sets the value of Command.
|
|
func (s *PluginExecutorRequestCommand0) SetCommand(val PluginExecutorRequestCommand0Command) {
|
|
s.Command = val
|
|
}
|
|
|
|
// SetIps sets the value of Ips.
|
|
func (s *PluginExecutorRequestCommand0) SetIps(val []PluginExecutorRequestCommand0IpsItem) {
|
|
s.Ips = val
|
|
}
|
|
|
|
type PluginExecutorRequestCommand0Command string
|
|
|
|
const (
|
|
PluginExecutorRequestCommand0CommandBlockIps PluginExecutorRequestCommand0Command = "blockIps"
|
|
)
|
|
|
|
// AllValues returns all PluginExecutorRequestCommand0Command values.
|
|
func (PluginExecutorRequestCommand0Command) AllValues() []PluginExecutorRequestCommand0Command {
|
|
return []PluginExecutorRequestCommand0Command{
|
|
PluginExecutorRequestCommand0CommandBlockIps,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s PluginExecutorRequestCommand0Command) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case PluginExecutorRequestCommand0CommandBlockIps:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *PluginExecutorRequestCommand0Command) UnmarshalText(data []byte) error {
|
|
switch PluginExecutorRequestCommand0Command(data) {
|
|
case PluginExecutorRequestCommand0CommandBlockIps:
|
|
*s = PluginExecutorRequestCommand0CommandBlockIps
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type PluginExecutorRequestCommand0IpsItem struct {
|
|
IP string `json:"ip"`
|
|
Timeout float64 `json:"timeout"`
|
|
}
|
|
|
|
// GetIP returns the value of IP.
|
|
func (s *PluginExecutorRequestCommand0IpsItem) GetIP() string {
|
|
return s.IP
|
|
}
|
|
|
|
// GetTimeout returns the value of Timeout.
|
|
func (s *PluginExecutorRequestCommand0IpsItem) GetTimeout() float64 {
|
|
return s.Timeout
|
|
}
|
|
|
|
// SetIP sets the value of IP.
|
|
func (s *PluginExecutorRequestCommand0IpsItem) SetIP(val string) {
|
|
s.IP = val
|
|
}
|
|
|
|
// SetTimeout sets the value of Timeout.
|
|
func (s *PluginExecutorRequestCommand0IpsItem) SetTimeout(val float64) {
|
|
s.Timeout = val
|
|
}
|
|
|
|
// Unblock IPs.
|
|
type PluginExecutorRequestCommand1 struct {
|
|
Command PluginExecutorRequestCommand1Command `json:"command"`
|
|
Ips []string `json:"ips"`
|
|
}
|
|
|
|
// GetCommand returns the value of Command.
|
|
func (s *PluginExecutorRequestCommand1) GetCommand() PluginExecutorRequestCommand1Command {
|
|
return s.Command
|
|
}
|
|
|
|
// GetIps returns the value of Ips.
|
|
func (s *PluginExecutorRequestCommand1) GetIps() []string {
|
|
return s.Ips
|
|
}
|
|
|
|
// SetCommand sets the value of Command.
|
|
func (s *PluginExecutorRequestCommand1) SetCommand(val PluginExecutorRequestCommand1Command) {
|
|
s.Command = val
|
|
}
|
|
|
|
// SetIps sets the value of Ips.
|
|
func (s *PluginExecutorRequestCommand1) SetIps(val []string) {
|
|
s.Ips = val
|
|
}
|
|
|
|
type PluginExecutorRequestCommand1Command string
|
|
|
|
const (
|
|
PluginExecutorRequestCommand1CommandUnblockIps PluginExecutorRequestCommand1Command = "unblockIps"
|
|
)
|
|
|
|
// AllValues returns all PluginExecutorRequestCommand1Command values.
|
|
func (PluginExecutorRequestCommand1Command) AllValues() []PluginExecutorRequestCommand1Command {
|
|
return []PluginExecutorRequestCommand1Command{
|
|
PluginExecutorRequestCommand1CommandUnblockIps,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s PluginExecutorRequestCommand1Command) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case PluginExecutorRequestCommand1CommandUnblockIps:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *PluginExecutorRequestCommand1Command) UnmarshalText(data []byte) error {
|
|
switch PluginExecutorRequestCommand1Command(data) {
|
|
case PluginExecutorRequestCommand1CommandUnblockIps:
|
|
*s = PluginExecutorRequestCommand1CommandUnblockIps
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Recreate tables.
|
|
type PluginExecutorRequestCommand2 struct {
|
|
Command PluginExecutorRequestCommand2Command `json:"command"`
|
|
}
|
|
|
|
// GetCommand returns the value of Command.
|
|
func (s *PluginExecutorRequestCommand2) GetCommand() PluginExecutorRequestCommand2Command {
|
|
return s.Command
|
|
}
|
|
|
|
// SetCommand sets the value of Command.
|
|
func (s *PluginExecutorRequestCommand2) SetCommand(val PluginExecutorRequestCommand2Command) {
|
|
s.Command = val
|
|
}
|
|
|
|
type PluginExecutorRequestCommand2Command string
|
|
|
|
const (
|
|
PluginExecutorRequestCommand2CommandRecreateTables PluginExecutorRequestCommand2Command = "recreateTables"
|
|
)
|
|
|
|
// AllValues returns all PluginExecutorRequestCommand2Command values.
|
|
func (PluginExecutorRequestCommand2Command) AllValues() []PluginExecutorRequestCommand2Command {
|
|
return []PluginExecutorRequestCommand2Command{
|
|
PluginExecutorRequestCommand2CommandRecreateTables,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s PluginExecutorRequestCommand2Command) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case PluginExecutorRequestCommand2CommandRecreateTables:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *PluginExecutorRequestCommand2Command) UnmarshalText(data []byte) error {
|
|
switch PluginExecutorRequestCommand2Command(data) {
|
|
case PluginExecutorRequestCommand2CommandRecreateTables:
|
|
*s = PluginExecutorRequestCommand2CommandRecreateTables
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// PluginExecutorRequestTargetNodes represents sum type.
|
|
type PluginExecutorRequestTargetNodes struct {
|
|
Type PluginExecutorRequestTargetNodesType // switch on this field
|
|
PluginExecutorRequestTargetNodes0 PluginExecutorRequestTargetNodes0
|
|
PluginExecutorRequestTargetNodes1 PluginExecutorRequestTargetNodes1
|
|
}
|
|
|
|
// PluginExecutorRequestTargetNodesType is oneOf type of PluginExecutorRequestTargetNodes.
|
|
type PluginExecutorRequestTargetNodesType string
|
|
|
|
// Possible values for PluginExecutorRequestTargetNodesType.
|
|
const (
|
|
PluginExecutorRequestTargetNodes0PluginExecutorRequestTargetNodes PluginExecutorRequestTargetNodesType = "PluginExecutorRequestTargetNodes0"
|
|
PluginExecutorRequestTargetNodes1PluginExecutorRequestTargetNodes PluginExecutorRequestTargetNodesType = "PluginExecutorRequestTargetNodes1"
|
|
)
|
|
|
|
// IsPluginExecutorRequestTargetNodes0 reports whether PluginExecutorRequestTargetNodes is PluginExecutorRequestTargetNodes0.
|
|
func (s PluginExecutorRequestTargetNodes) IsPluginExecutorRequestTargetNodes0() bool {
|
|
return s.Type == PluginExecutorRequestTargetNodes0PluginExecutorRequestTargetNodes
|
|
}
|
|
|
|
// IsPluginExecutorRequestTargetNodes1 reports whether PluginExecutorRequestTargetNodes is PluginExecutorRequestTargetNodes1.
|
|
func (s PluginExecutorRequestTargetNodes) IsPluginExecutorRequestTargetNodes1() bool {
|
|
return s.Type == PluginExecutorRequestTargetNodes1PluginExecutorRequestTargetNodes
|
|
}
|
|
|
|
// SetPluginExecutorRequestTargetNodes0 sets PluginExecutorRequestTargetNodes to PluginExecutorRequestTargetNodes0.
|
|
func (s *PluginExecutorRequestTargetNodes) SetPluginExecutorRequestTargetNodes0(v PluginExecutorRequestTargetNodes0) {
|
|
s.Type = PluginExecutorRequestTargetNodes0PluginExecutorRequestTargetNodes
|
|
s.PluginExecutorRequestTargetNodes0 = v
|
|
}
|
|
|
|
// GetPluginExecutorRequestTargetNodes0 returns PluginExecutorRequestTargetNodes0 and true boolean if PluginExecutorRequestTargetNodes is PluginExecutorRequestTargetNodes0.
|
|
func (s PluginExecutorRequestTargetNodes) GetPluginExecutorRequestTargetNodes0() (v PluginExecutorRequestTargetNodes0, ok bool) {
|
|
if !s.IsPluginExecutorRequestTargetNodes0() {
|
|
return v, false
|
|
}
|
|
return s.PluginExecutorRequestTargetNodes0, true
|
|
}
|
|
|
|
// NewPluginExecutorRequestTargetNodes0PluginExecutorRequestTargetNodes returns new PluginExecutorRequestTargetNodes from PluginExecutorRequestTargetNodes0.
|
|
func NewPluginExecutorRequestTargetNodes0PluginExecutorRequestTargetNodes(v PluginExecutorRequestTargetNodes0) PluginExecutorRequestTargetNodes {
|
|
var s PluginExecutorRequestTargetNodes
|
|
s.SetPluginExecutorRequestTargetNodes0(v)
|
|
return s
|
|
}
|
|
|
|
// SetPluginExecutorRequestTargetNodes1 sets PluginExecutorRequestTargetNodes to PluginExecutorRequestTargetNodes1.
|
|
func (s *PluginExecutorRequestTargetNodes) SetPluginExecutorRequestTargetNodes1(v PluginExecutorRequestTargetNodes1) {
|
|
s.Type = PluginExecutorRequestTargetNodes1PluginExecutorRequestTargetNodes
|
|
s.PluginExecutorRequestTargetNodes1 = v
|
|
}
|
|
|
|
// GetPluginExecutorRequestTargetNodes1 returns PluginExecutorRequestTargetNodes1 and true boolean if PluginExecutorRequestTargetNodes is PluginExecutorRequestTargetNodes1.
|
|
func (s PluginExecutorRequestTargetNodes) GetPluginExecutorRequestTargetNodes1() (v PluginExecutorRequestTargetNodes1, ok bool) {
|
|
if !s.IsPluginExecutorRequestTargetNodes1() {
|
|
return v, false
|
|
}
|
|
return s.PluginExecutorRequestTargetNodes1, true
|
|
}
|
|
|
|
// NewPluginExecutorRequestTargetNodes1PluginExecutorRequestTargetNodes returns new PluginExecutorRequestTargetNodes from PluginExecutorRequestTargetNodes1.
|
|
func NewPluginExecutorRequestTargetNodes1PluginExecutorRequestTargetNodes(v PluginExecutorRequestTargetNodes1) PluginExecutorRequestTargetNodes {
|
|
var s PluginExecutorRequestTargetNodes
|
|
s.SetPluginExecutorRequestTargetNodes1(v)
|
|
return s
|
|
}
|
|
|
|
// Target all connected nodes.
|
|
type PluginExecutorRequestTargetNodes0 struct {
|
|
Target PluginExecutorRequestTargetNodes0Target `json:"target"`
|
|
}
|
|
|
|
// GetTarget returns the value of Target.
|
|
func (s *PluginExecutorRequestTargetNodes0) GetTarget() PluginExecutorRequestTargetNodes0Target {
|
|
return s.Target
|
|
}
|
|
|
|
// SetTarget sets the value of Target.
|
|
func (s *PluginExecutorRequestTargetNodes0) SetTarget(val PluginExecutorRequestTargetNodes0Target) {
|
|
s.Target = val
|
|
}
|
|
|
|
type PluginExecutorRequestTargetNodes0Target string
|
|
|
|
const (
|
|
PluginExecutorRequestTargetNodes0TargetAllNodes PluginExecutorRequestTargetNodes0Target = "allNodes"
|
|
)
|
|
|
|
// AllValues returns all PluginExecutorRequestTargetNodes0Target values.
|
|
func (PluginExecutorRequestTargetNodes0Target) AllValues() []PluginExecutorRequestTargetNodes0Target {
|
|
return []PluginExecutorRequestTargetNodes0Target{
|
|
PluginExecutorRequestTargetNodes0TargetAllNodes,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s PluginExecutorRequestTargetNodes0Target) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case PluginExecutorRequestTargetNodes0TargetAllNodes:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *PluginExecutorRequestTargetNodes0Target) UnmarshalText(data []byte) error {
|
|
switch PluginExecutorRequestTargetNodes0Target(data) {
|
|
case PluginExecutorRequestTargetNodes0TargetAllNodes:
|
|
*s = PluginExecutorRequestTargetNodes0TargetAllNodes
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Target specific nodes.
|
|
type PluginExecutorRequestTargetNodes1 struct {
|
|
Target PluginExecutorRequestTargetNodes1Target `json:"target"`
|
|
NodeUuids []uuid.UUID `json:"nodeUuids"`
|
|
}
|
|
|
|
// GetTarget returns the value of Target.
|
|
func (s *PluginExecutorRequestTargetNodes1) GetTarget() PluginExecutorRequestTargetNodes1Target {
|
|
return s.Target
|
|
}
|
|
|
|
// GetNodeUuids returns the value of NodeUuids.
|
|
func (s *PluginExecutorRequestTargetNodes1) GetNodeUuids() []uuid.UUID {
|
|
return s.NodeUuids
|
|
}
|
|
|
|
// SetTarget sets the value of Target.
|
|
func (s *PluginExecutorRequestTargetNodes1) SetTarget(val PluginExecutorRequestTargetNodes1Target) {
|
|
s.Target = val
|
|
}
|
|
|
|
// SetNodeUuids sets the value of NodeUuids.
|
|
func (s *PluginExecutorRequestTargetNodes1) SetNodeUuids(val []uuid.UUID) {
|
|
s.NodeUuids = val
|
|
}
|
|
|
|
type PluginExecutorRequestTargetNodes1Target string
|
|
|
|
const (
|
|
PluginExecutorRequestTargetNodes1TargetSpecificNodes PluginExecutorRequestTargetNodes1Target = "specificNodes"
|
|
)
|
|
|
|
// AllValues returns all PluginExecutorRequestTargetNodes1Target values.
|
|
func (PluginExecutorRequestTargetNodes1Target) AllValues() []PluginExecutorRequestTargetNodes1Target {
|
|
return []PluginExecutorRequestTargetNodes1Target{
|
|
PluginExecutorRequestTargetNodes1TargetSpecificNodes,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s PluginExecutorRequestTargetNodes1Target) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case PluginExecutorRequestTargetNodes1TargetSpecificNodes:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *PluginExecutorRequestTargetNodes1Target) UnmarshalText(data []byte) error {
|
|
switch PluginExecutorRequestTargetNodes1Target(data) {
|
|
case PluginExecutorRequestTargetNodes1TargetSpecificNodes:
|
|
*s = PluginExecutorRequestTargetNodes1TargetSpecificNodes
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/Pocketid
|
|
type Pocketid struct {
|
|
Enabled bool `json:"enabled"`
|
|
ClientId NilString `json:"clientId"`
|
|
ClientSecret NilString `json:"clientSecret"`
|
|
PlainDomain NilString `json:"plainDomain"`
|
|
AllowedEmails []string `json:"allowedEmails"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Pocketid) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetClientId returns the value of ClientId.
|
|
func (s *Pocketid) GetClientId() NilString {
|
|
return s.ClientId
|
|
}
|
|
|
|
// GetClientSecret returns the value of ClientSecret.
|
|
func (s *Pocketid) GetClientSecret() NilString {
|
|
return s.ClientSecret
|
|
}
|
|
|
|
// GetPlainDomain returns the value of PlainDomain.
|
|
func (s *Pocketid) GetPlainDomain() NilString {
|
|
return s.PlainDomain
|
|
}
|
|
|
|
// GetAllowedEmails returns the value of AllowedEmails.
|
|
func (s *Pocketid) GetAllowedEmails() []string {
|
|
return s.AllowedEmails
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Pocketid) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetClientId sets the value of ClientId.
|
|
func (s *Pocketid) SetClientId(val NilString) {
|
|
s.ClientId = val
|
|
}
|
|
|
|
// SetClientSecret sets the value of ClientSecret.
|
|
func (s *Pocketid) SetClientSecret(val NilString) {
|
|
s.ClientSecret = val
|
|
}
|
|
|
|
// SetPlainDomain sets the value of PlainDomain.
|
|
func (s *Pocketid) SetPlainDomain(val NilString) {
|
|
s.PlainDomain = val
|
|
}
|
|
|
|
// SetAllowedEmails sets the value of AllowedEmails.
|
|
func (s *Pocketid) SetAllowedEmails(val []string) {
|
|
s.AllowedEmails = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ProfileModificationRequest
|
|
type ProfileModificationRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
ConfigProfile ProfileModificationRequestConfigProfile `json:"configProfile"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *ProfileModificationRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetConfigProfile returns the value of ConfigProfile.
|
|
func (s *ProfileModificationRequest) GetConfigProfile() ProfileModificationRequestConfigProfile {
|
|
return s.ConfigProfile
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *ProfileModificationRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetConfigProfile sets the value of ConfigProfile.
|
|
func (s *ProfileModificationRequest) SetConfigProfile(val ProfileModificationRequestConfigProfile) {
|
|
s.ConfigProfile = val
|
|
}
|
|
|
|
type ProfileModificationRequestConfigProfile struct {
|
|
ActiveConfigProfileUuid uuid.UUID `json:"activeConfigProfileUuid"`
|
|
ActiveInbounds []uuid.UUID `json:"activeInbounds"`
|
|
}
|
|
|
|
// GetActiveConfigProfileUuid returns the value of ActiveConfigProfileUuid.
|
|
func (s *ProfileModificationRequestConfigProfile) GetActiveConfigProfileUuid() uuid.UUID {
|
|
return s.ActiveConfigProfileUuid
|
|
}
|
|
|
|
// GetActiveInbounds returns the value of ActiveInbounds.
|
|
func (s *ProfileModificationRequestConfigProfile) GetActiveInbounds() []uuid.UUID {
|
|
return s.ActiveInbounds
|
|
}
|
|
|
|
// SetActiveConfigProfileUuid sets the value of ActiveConfigProfileUuid.
|
|
func (s *ProfileModificationRequestConfigProfile) SetActiveConfigProfileUuid(val uuid.UUID) {
|
|
s.ActiveConfigProfileUuid = val
|
|
}
|
|
|
|
// SetActiveInbounds sets the value of ActiveInbounds.
|
|
func (s *ProfileModificationRequestConfigProfile) SetActiveInbounds(val []uuid.UUID) {
|
|
s.ActiveInbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Provider
|
|
type Provider struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
FaviconLink NilString `json:"faviconLink"`
|
|
LoginUrl NilString `json:"loginUrl"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
BillingHistory BillingHistoryItem `json:"billingHistory"`
|
|
BillingNodes []BillingNode `json:"billingNodes"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *Provider) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *Provider) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *Provider) GetFaviconLink() NilString {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// GetLoginUrl returns the value of LoginUrl.
|
|
func (s *Provider) GetLoginUrl() NilString {
|
|
return s.LoginUrl
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *Provider) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *Provider) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetBillingHistory returns the value of BillingHistory.
|
|
func (s *Provider) GetBillingHistory() BillingHistoryItem {
|
|
return s.BillingHistory
|
|
}
|
|
|
|
// GetBillingNodes returns the value of BillingNodes.
|
|
func (s *Provider) GetBillingNodes() []BillingNode {
|
|
return s.BillingNodes
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *Provider) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *Provider) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *Provider) SetFaviconLink(val NilString) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
// SetLoginUrl sets the value of LoginUrl.
|
|
func (s *Provider) SetLoginUrl(val NilString) {
|
|
s.LoginUrl = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *Provider) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *Provider) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetBillingHistory sets the value of BillingHistory.
|
|
func (s *Provider) SetBillingHistory(val BillingHistoryItem) {
|
|
s.BillingHistory = val
|
|
}
|
|
|
|
// SetBillingNodes sets the value of BillingNodes.
|
|
func (s *Provider) SetBillingNodes(val []BillingNode) {
|
|
s.BillingNodes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ProviderItem
|
|
type ProviderItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
FaviconLink NilString `json:"faviconLink"`
|
|
LoginUrl NilString `json:"loginUrl"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ProviderItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *ProviderItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *ProviderItem) GetFaviconLink() NilString {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// GetLoginUrl returns the value of LoginUrl.
|
|
func (s *ProviderItem) GetLoginUrl() NilString {
|
|
return s.LoginUrl
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *ProviderItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *ProviderItem) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ProviderItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *ProviderItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *ProviderItem) SetFaviconLink(val NilString) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
// SetLoginUrl sets the value of LoginUrl.
|
|
func (s *ProviderItem) SetLoginUrl(val NilString) {
|
|
s.LoginUrl = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *ProviderItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *ProviderItem) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Record
|
|
type Record struct {
|
|
ID float64 `json:"id"`
|
|
UserId float64 `json:"userId"`
|
|
RequestAt time.Time `json:"requestAt"`
|
|
RequestIp NilString `json:"requestIp"`
|
|
UserAgent NilString `json:"userAgent"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *Record) GetID() float64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *Record) GetUserId() float64 {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetRequestAt returns the value of RequestAt.
|
|
func (s *Record) GetRequestAt() time.Time {
|
|
return s.RequestAt
|
|
}
|
|
|
|
// GetRequestIp returns the value of RequestIp.
|
|
func (s *Record) GetRequestIp() NilString {
|
|
return s.RequestIp
|
|
}
|
|
|
|
// GetUserAgent returns the value of UserAgent.
|
|
func (s *Record) GetUserAgent() NilString {
|
|
return s.UserAgent
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *Record) SetID(val float64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *Record) SetUserId(val float64) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetRequestAt sets the value of RequestAt.
|
|
func (s *Record) SetRequestAt(val time.Time) {
|
|
s.RequestAt = val
|
|
}
|
|
|
|
// SetRequestIp sets the value of RequestIp.
|
|
func (s *Record) SetRequestIp(val NilString) {
|
|
s.RequestIp = val
|
|
}
|
|
|
|
// SetUserAgent sets the value of UserAgent.
|
|
func (s *Record) SetUserAgent(val NilString) {
|
|
s.UserAgent = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/RegisterRequest
|
|
type RegisterRequest struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *RegisterRequest) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetPassword returns the value of Password.
|
|
func (s *RegisterRequest) GetPassword() string {
|
|
return s.Password
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *RegisterRequest) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetPassword sets the value of Password.
|
|
func (s *RegisterRequest) SetPassword(val string) {
|
|
s.Password = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReorderHostRequest
|
|
type ReorderHostRequest struct {
|
|
Hosts []ReorderRequestItem `json:"hosts"`
|
|
}
|
|
|
|
// GetHosts returns the value of Hosts.
|
|
func (s *ReorderHostRequest) GetHosts() []ReorderRequestItem {
|
|
return s.Hosts
|
|
}
|
|
|
|
// SetHosts sets the value of Hosts.
|
|
func (s *ReorderHostRequest) SetHosts(val []ReorderRequestItem) {
|
|
s.Hosts = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReorderHostResponse
|
|
type ReorderHostResponse struct {
|
|
Response ReorderHostResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ReorderHostResponse) GetResponse() ReorderHostResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ReorderHostResponse) SetResponse(val ReorderHostResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ReorderHostResponse) hostsReorderHostsRes() {}
|
|
|
|
type ReorderHostResponseResponse struct {
|
|
IsUpdated bool `json:"isUpdated"`
|
|
}
|
|
|
|
// GetIsUpdated returns the value of IsUpdated.
|
|
func (s *ReorderHostResponseResponse) GetIsUpdated() bool {
|
|
return s.IsUpdated
|
|
}
|
|
|
|
// SetIsUpdated sets the value of IsUpdated.
|
|
func (s *ReorderHostResponseResponse) SetIsUpdated(val bool) {
|
|
s.IsUpdated = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReorderNodeRequest
|
|
type ReorderNodeRequest struct {
|
|
Nodes []ReorderRequestItem `json:"nodes"`
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *ReorderNodeRequest) GetNodes() []ReorderRequestItem {
|
|
return s.Nodes
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *ReorderNodeRequest) SetNodes(val []ReorderRequestItem) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReorderRequest
|
|
type ReorderRequest struct {
|
|
Items []ReorderRequestItem `json:"items"`
|
|
}
|
|
|
|
// GetItems returns the value of Items.
|
|
func (s *ReorderRequest) GetItems() []ReorderRequestItem {
|
|
return s.Items
|
|
}
|
|
|
|
// SetItems sets the value of Items.
|
|
func (s *ReorderRequest) SetItems(val []ReorderRequestItem) {
|
|
s.Items = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReorderRequestItem
|
|
type ReorderRequestItem struct {
|
|
ViewPosition int `json:"viewPosition"`
|
|
UUID uuid.UUID `json:"uuid"`
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *ReorderRequestItem) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ReorderRequestItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *ReorderRequestItem) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ReorderRequestItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ReportItem
|
|
type ReportItem struct {
|
|
ActionReport ActionReportItem `json:"actionReport"`
|
|
XrayReport XrayReportItem `json:"xrayReport"`
|
|
}
|
|
|
|
// GetActionReport returns the value of ActionReport.
|
|
func (s *ReportItem) GetActionReport() ActionReportItem {
|
|
return s.ActionReport
|
|
}
|
|
|
|
// GetXrayReport returns the value of XrayReport.
|
|
func (s *ReportItem) GetXrayReport() XrayReportItem {
|
|
return s.XrayReport
|
|
}
|
|
|
|
// SetActionReport sets the value of ActionReport.
|
|
func (s *ReportItem) SetActionReport(val ActionReportItem) {
|
|
s.ActionReport = val
|
|
}
|
|
|
|
// SetXrayReport sets the value of XrayReport.
|
|
func (s *ReportItem) SetXrayReport(val XrayReportItem) {
|
|
s.XrayReport = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ResolveUserRequestBody
|
|
type ResolveUserRequestBody struct {
|
|
UUID OptUUID `json:"uuid"`
|
|
ID OptFloat64 `json:"id"`
|
|
ShortUuid OptString `json:"shortUuid"`
|
|
Username OptString `json:"username"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ResolveUserRequestBody) GetUUID() OptUUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *ResolveUserRequestBody) GetID() OptFloat64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *ResolveUserRequestBody) GetShortUuid() OptString {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *ResolveUserRequestBody) GetUsername() OptString {
|
|
return s.Username
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ResolveUserRequestBody) SetUUID(val OptUUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *ResolveUserRequestBody) SetID(val OptFloat64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *ResolveUserRequestBody) SetShortUuid(val OptString) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *ResolveUserRequestBody) SetUsername(val OptString) {
|
|
s.Username = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ResolveUserResponse
|
|
type ResolveUserResponse struct {
|
|
Response ResolveUserResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *ResolveUserResponse) GetResponse() ResolveUserResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *ResolveUserResponse) SetResponse(val ResolveUserResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*ResolveUserResponse) usersResolveUserRes() {}
|
|
|
|
type ResolveUserResponseResponse struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Username string `json:"username"`
|
|
ID float64 `json:"id"`
|
|
ShortUuid string `json:"shortUuid"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *ResolveUserResponseResponse) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *ResolveUserResponseResponse) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *ResolveUserResponseResponse) GetID() float64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *ResolveUserResponseResponse) GetShortUuid() string {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *ResolveUserResponseResponse) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *ResolveUserResponseResponse) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *ResolveUserResponseResponse) SetID(val float64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *ResolveUserResponseResponse) SetShortUuid(val string) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// {"examples":[{"headers":[{"key":"X-Custom-Header","value":"CustomValue"}]}],
|
|
// "markdownDescription":"Response modifications to be applied when the rule is matched. Optional."}.
|
|
// Ref: #/components/schemas/ResponseModification
|
|
type ResponseModification struct {
|
|
// {"defaultSnippets":[{"label":"Examples: Add custom header","markdownDescription":"Add a custom
|
|
// header to the response","body":[{"key":"X-Custom-Header","value":"CustomValue"}]}],
|
|
// "markdownDescription":"Array of headers to be added when the rule is matched."}.
|
|
Headers []Header `json:"headers"`
|
|
// {"markdownDescription":"By default, headers are added when forming the response. In some cases,
|
|
// headers set in SRR may be overridden by headers from other parts of the system. If you set this
|
|
// flag to **true**, headers from SRR will be added at the very end, just before the response is sent.
|
|
// In this case, SRR headers may override headers from other sections."}.
|
|
ApplyHeadersToEnd OptBool `json:"applyHeadersToEnd"`
|
|
// {"markdownDescription":"Override the subscription template with the given name. If not provided,
|
|
// the default subscription template will be used. If the template name is not found, the default
|
|
// subscription template for this type will be used. **This modification have higher priority than
|
|
// settings from External Squads.**"}.
|
|
SubscriptionTemplate OptString `json:"subscriptionTemplate"`
|
|
// {"markdownDescription":"Each Host may have its own Xray Json Template. If you set this flag to
|
|
// **true**, the Xray Json Template defined by the SRR will be used. **The Host's Xray Json Template
|
|
// will be ignored.**"}.
|
|
IgnoreHostXrayJsonTemplate OptBool `json:"ignoreHostXrayJsonTemplate"`
|
|
// {"markdownDescription":"If you set this flag to **true**, the **Serve JSON at Base Subscription**
|
|
// setting will be ignored (set to **false**)."}.
|
|
IgnoreServeJsonAtBaseSubscription OptBool `json:"ignoreServeJsonAtBaseSubscription"`
|
|
// {"markdownDescription":"Additional regex patterns to match extended clients. Matched clients will
|
|
// receive `serverDescription` in the subscription response.\n\n**Default Mihomo extended
|
|
// clients:**\n- `^FlClash ?X/`\n- `^Flowvy/`\n- `^prizrak-box/`\n- `^koala-clash/`\n\n**Default Xray
|
|
// extended clients:**\n- `^Happ/`\n- `^INCY/`\n\n**Example:** `[\"^MyClient/\",
|
|
// \"^CustomApp\\\\/v2\"]`"}.
|
|
AdditionalExtendedClientsRegex []string `json:"additionalExtendedClientsRegex"`
|
|
// {"markdownDescription":"If you set this flag to **true**, the HWID check will be disabled. **This
|
|
// modification have higher priority than settings from Subscription Settings.**"}.
|
|
DisableHwidCheck OptBool `json:"disableHwidCheck"`
|
|
Encryption OptEncryptionItem `json:"encryption"`
|
|
// {"markdownDescription":"Excludes hosts from the subscription output if at least one tag in the
|
|
// host matches the given tags."}.
|
|
ExcludeHostsByTags []string `json:"excludeHostsByTags"`
|
|
}
|
|
|
|
// GetHeaders returns the value of Headers.
|
|
func (s *ResponseModification) GetHeaders() []Header {
|
|
return s.Headers
|
|
}
|
|
|
|
// GetApplyHeadersToEnd returns the value of ApplyHeadersToEnd.
|
|
func (s *ResponseModification) GetApplyHeadersToEnd() OptBool {
|
|
return s.ApplyHeadersToEnd
|
|
}
|
|
|
|
// GetSubscriptionTemplate returns the value of SubscriptionTemplate.
|
|
func (s *ResponseModification) GetSubscriptionTemplate() OptString {
|
|
return s.SubscriptionTemplate
|
|
}
|
|
|
|
// GetIgnoreHostXrayJsonTemplate returns the value of IgnoreHostXrayJsonTemplate.
|
|
func (s *ResponseModification) GetIgnoreHostXrayJsonTemplate() OptBool {
|
|
return s.IgnoreHostXrayJsonTemplate
|
|
}
|
|
|
|
// GetIgnoreServeJsonAtBaseSubscription returns the value of IgnoreServeJsonAtBaseSubscription.
|
|
func (s *ResponseModification) GetIgnoreServeJsonAtBaseSubscription() OptBool {
|
|
return s.IgnoreServeJsonAtBaseSubscription
|
|
}
|
|
|
|
// GetAdditionalExtendedClientsRegex returns the value of AdditionalExtendedClientsRegex.
|
|
func (s *ResponseModification) GetAdditionalExtendedClientsRegex() []string {
|
|
return s.AdditionalExtendedClientsRegex
|
|
}
|
|
|
|
// GetDisableHwidCheck returns the value of DisableHwidCheck.
|
|
func (s *ResponseModification) GetDisableHwidCheck() OptBool {
|
|
return s.DisableHwidCheck
|
|
}
|
|
|
|
// GetEncryption returns the value of Encryption.
|
|
func (s *ResponseModification) GetEncryption() OptEncryptionItem {
|
|
return s.Encryption
|
|
}
|
|
|
|
// GetExcludeHostsByTags returns the value of ExcludeHostsByTags.
|
|
func (s *ResponseModification) GetExcludeHostsByTags() []string {
|
|
return s.ExcludeHostsByTags
|
|
}
|
|
|
|
// SetHeaders sets the value of Headers.
|
|
func (s *ResponseModification) SetHeaders(val []Header) {
|
|
s.Headers = val
|
|
}
|
|
|
|
// SetApplyHeadersToEnd sets the value of ApplyHeadersToEnd.
|
|
func (s *ResponseModification) SetApplyHeadersToEnd(val OptBool) {
|
|
s.ApplyHeadersToEnd = val
|
|
}
|
|
|
|
// SetSubscriptionTemplate sets the value of SubscriptionTemplate.
|
|
func (s *ResponseModification) SetSubscriptionTemplate(val OptString) {
|
|
s.SubscriptionTemplate = val
|
|
}
|
|
|
|
// SetIgnoreHostXrayJsonTemplate sets the value of IgnoreHostXrayJsonTemplate.
|
|
func (s *ResponseModification) SetIgnoreHostXrayJsonTemplate(val OptBool) {
|
|
s.IgnoreHostXrayJsonTemplate = val
|
|
}
|
|
|
|
// SetIgnoreServeJsonAtBaseSubscription sets the value of IgnoreServeJsonAtBaseSubscription.
|
|
func (s *ResponseModification) SetIgnoreServeJsonAtBaseSubscription(val OptBool) {
|
|
s.IgnoreServeJsonAtBaseSubscription = val
|
|
}
|
|
|
|
// SetAdditionalExtendedClientsRegex sets the value of AdditionalExtendedClientsRegex.
|
|
func (s *ResponseModification) SetAdditionalExtendedClientsRegex(val []string) {
|
|
s.AdditionalExtendedClientsRegex = val
|
|
}
|
|
|
|
// SetDisableHwidCheck sets the value of DisableHwidCheck.
|
|
func (s *ResponseModification) SetDisableHwidCheck(val OptBool) {
|
|
s.DisableHwidCheck = val
|
|
}
|
|
|
|
// SetEncryption sets the value of Encryption.
|
|
func (s *ResponseModification) SetEncryption(val OptEncryptionItem) {
|
|
s.Encryption = val
|
|
}
|
|
|
|
// SetExcludeHostsByTags sets the value of ExcludeHostsByTags.
|
|
func (s *ResponseModification) SetExcludeHostsByTags(val []string) {
|
|
s.ExcludeHostsByTags = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/ResponseRules
|
|
type ResponseRules struct {
|
|
// {"title":"Response Rules Config Version","markdownDescription":"Version of the **response rules**
|
|
// config. Currently supported version is **1**."}.
|
|
Version ResponseRulesVersion `json:"version"`
|
|
Settings OptDebugSrrMatcherSettings `json:"settings"`
|
|
// {"title":"Response Rules","markdownDescription":"Array of **response rules**. Rules are evaluated
|
|
// in order and the first rule that matches is applied. If no rule matches, request will be blocked
|
|
// by default.\n\n**Example:**\n```json\n[\n {\n \"name\": \"Blank rule\",\n \"description\":
|
|
// \"Blank rule\",\n \"operator\": \"AND\",\n \"enabled\": true,\n \"conditions\": [],\n
|
|
// \"responseType\": \"BLOCK\",\n \"responseModifications\": {\n \"headers\": []\n }\n
|
|
// }\n]\n```","defaultSnippets":[]}.
|
|
Rules []Rule `json:"rules"`
|
|
}
|
|
|
|
// GetVersion returns the value of Version.
|
|
func (s *ResponseRules) GetVersion() ResponseRulesVersion {
|
|
return s.Version
|
|
}
|
|
|
|
// GetSettings returns the value of Settings.
|
|
func (s *ResponseRules) GetSettings() OptDebugSrrMatcherSettings {
|
|
return s.Settings
|
|
}
|
|
|
|
// GetRules returns the value of Rules.
|
|
func (s *ResponseRules) GetRules() []Rule {
|
|
return s.Rules
|
|
}
|
|
|
|
// SetVersion sets the value of Version.
|
|
func (s *ResponseRules) SetVersion(val ResponseRulesVersion) {
|
|
s.Version = val
|
|
}
|
|
|
|
// SetSettings sets the value of Settings.
|
|
func (s *ResponseRules) SetSettings(val OptDebugSrrMatcherSettings) {
|
|
s.Settings = val
|
|
}
|
|
|
|
// SetRules sets the value of Rules.
|
|
func (s *ResponseRules) SetRules(val []Rule) {
|
|
s.Rules = val
|
|
}
|
|
|
|
// {"title":"Response Rules Config Version","markdownDescription":"Version of the **response rules**
|
|
// config. Currently supported version is **1**."}.
|
|
type ResponseRulesVersion string
|
|
|
|
const (
|
|
ResponseRulesVersion1 ResponseRulesVersion = "1"
|
|
)
|
|
|
|
// AllValues returns all ResponseRulesVersion values.
|
|
func (ResponseRulesVersion) AllValues() []ResponseRulesVersion {
|
|
return []ResponseRulesVersion{
|
|
ResponseRulesVersion1,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s ResponseRulesVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case ResponseRulesVersion1:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *ResponseRulesVersion) UnmarshalText(data []byte) error {
|
|
switch ResponseRulesVersion(data) {
|
|
case ResponseRulesVersion1:
|
|
*s = ResponseRulesVersion1
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/RevokeUserSubscriptionBody
|
|
type RevokeUserSubscriptionBody struct {
|
|
// Optional. If true, only passwords will be revoked, without changing the short UUID (Subscription
|
|
// URL).
|
|
RevokeOnlyPasswords OptBool `json:"revokeOnlyPasswords"`
|
|
// Optional. If not provided, a new short UUID will be generated by Remnawave. Please note that it is
|
|
// strongly recommended to allow Remnawave to generate the short UUID.
|
|
ShortUuid OptString `json:"shortUuid"`
|
|
}
|
|
|
|
// GetRevokeOnlyPasswords returns the value of RevokeOnlyPasswords.
|
|
func (s *RevokeUserSubscriptionBody) GetRevokeOnlyPasswords() OptBool {
|
|
return s.RevokeOnlyPasswords
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *RevokeUserSubscriptionBody) GetShortUuid() OptString {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// SetRevokeOnlyPasswords sets the value of RevokeOnlyPasswords.
|
|
func (s *RevokeUserSubscriptionBody) SetRevokeOnlyPasswords(val OptBool) {
|
|
s.RevokeOnlyPasswords = val
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *RevokeUserSubscriptionBody) SetShortUuid(val OptString) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// {"defaultSnippets":[{"label":"Examples: Blank rule","markdownDescription":"Simple blank rule with
|
|
// no conditions or modifications.\n```json\n{\n \"name\": \"Blank rule\",\n \"description\":
|
|
// \"Blank rule\",\n \"operator\": \"AND\",\n \"enabled\": true,\n \"conditions\": [],\n
|
|
// \"responseType\": \"BLOCK\",\n \"responseModifications\": {\n \"headers\": []\n }\n}\n```",
|
|
// "body":{"name":"Blank rule","description":"Blank rule","operator":"AND","enabled":true,
|
|
// "conditions":[],"responseType":"BLOCK","responseModifications":{"headers":[]}}},
|
|
// {"label":"Examples: Block Legacy Clients","markdownDescription":"Block requests from legacy
|
|
// clients\n```json\n{\n \"name\": \"Block Legacy Clients\",\n \"description\": \"Block requests
|
|
// from legacy clients\",\n \"enabled\": true,\n \"operator\": \"OR\",\n \"conditions\": [\n
|
|
// {\n \"headerName\": \"user-agent\",\n \"operator\": \"CONTAINS\",\n \"value\":
|
|
// \"Hiddify\",\n \"caseSensitive\": true\n },\n {\n \"headerName\": \"user-agent\",
|
|
// \n \"operator\": \"CONTAINS\",\n \"value\": \"FoxRay\",\n \"caseSensitive\": true\n
|
|
//
|
|
// }\n ],\n \"responseType\": \"BLOCK\"\n}\n```","body":{"name":"Block Legacy Clients",
|
|
//
|
|
// "description":"Block requests from legacy clients","enabled":true,"operator":"OR",
|
|
// "conditions":[{"headerName":"user-agent","operator":"CONTAINS","value":"Hiddify",
|
|
// "caseSensitive":true},{"headerName":"user-agent","operator":"CONTAINS","value":"FoxRay",
|
|
// "caseSensitive":true}],"responseType":"BLOCK"}}],"title":"Response Rule",
|
|
// "markdownDescription":"Response rule configuration.\n\n**Fields:**\n- **name**: Name of the
|
|
// response rule.\n- **description**: Description of the response rule. Optional.\n- **enabled**:
|
|
// Control whether the response rule is enabled or disabled. \n\n - `true` the rule will be applied.
|
|
// \n\n - `false` the rule will be always ignored.\n- **operator**: Operator to use for combining
|
|
// conditions in the rule.\n- **conditions**: Array of conditions to check against the request
|
|
// headers. Conditions are applied with **operator**. If conditions are empty, the rule will be
|
|
// matched.\n- **responseType**: Type of the response. Determines the type of **response** to be
|
|
// returned when the rule is matched.\n- **responseModifications**: Response modifications to be
|
|
// applied when the rule is matched. Optional.\n\n**Example:**\n```json\n{\n \"name\": \"Block
|
|
// Legacy Clients\",\n \"description\": \"Block requests from legacy clients\",\n \"enabled\": true,
|
|
// \n \"operator\": \"OR\",\n \"conditions\": [\n {\n \"headerName\": \"user-agent\",\n
|
|
//
|
|
// \"operator\": \"CONTAINS\",\n \"value\": \"Hiddify\",\n \"caseSensitive\": true\n },
|
|
//
|
|
// \n {\n \"headerName\": \"user-agent\",\n \"operator\": \"CONTAINS\",\n
|
|
// \"value\": \"FoxRay\",\n \"caseSensitive\": true\n }\n ],\n \"responseType\":
|
|
// \"BLOCK\"\n}\n```"}.
|
|
// Ref: #/components/schemas/Rule
|
|
type Rule struct {
|
|
// {"markdownDescription":"Name of the response rule."}.
|
|
Name string `json:"name"`
|
|
// {"markdownDescription":"Description of the response rule. Optional."}.
|
|
Description OptString `json:"description"`
|
|
// {"markdownDescription":"Control whether the response rule is enabled or disabled. \n\n - `true`
|
|
// the rule will be applied. \n\n - `false` the rule will be always ignored."}.
|
|
Enabled bool `json:"enabled"`
|
|
// {"markdownDescription":"Operator to use for combining conditions in the rule."}.
|
|
Operator RuleOperator `json:"operator"`
|
|
// {"markdownDescription":"Array of conditions to check against the request headers. Conditions are
|
|
// applied with **operator**. If conditions are empty, the rule will be matched."}.
|
|
Conditions []Condition `json:"conditions"`
|
|
// {"errorMessage":"Invalid response type. Please select a valid response type.",
|
|
// "markdownDescription":"Type of the response. Determines the type of **response** to be returned
|
|
// when the rule is matched.","markdownEnumDescriptions":["Return **subscription** in XRAY-JSON
|
|
// format. (Using `Xray Json` template)","Return **subscription** in BASE64 encoded string.
|
|
// Compatible with most client application with Xray core.","Return **subscription** in Mihomo format.
|
|
// (Using `Mihomo` template)","Return **subscription** in Stash format. (Using `Stash` template)",
|
|
// "Return **subscription** in Clash format. (Using `Clash` template) Useful for client application
|
|
// that use Legacy Clash core.","Return **subscription** in Singbox format. (Using `Singbox`
|
|
// template) Format which is used by Singbox client application.","Return **subscription** as browser
|
|
// format. The same as on `/info` route.","**Drop** request and return `403` status code.","**Drop**
|
|
// request and return `404` status code.","**Drop** request and return `451` status code.","**Drop**
|
|
// the socket connection."]}.
|
|
ResponseType RuleResponseType `json:"responseType"`
|
|
ResponseModifications OptResponseModification `json:"responseModifications"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *Rule) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *Rule) GetDescription() OptString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Rule) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetOperator returns the value of Operator.
|
|
func (s *Rule) GetOperator() RuleOperator {
|
|
return s.Operator
|
|
}
|
|
|
|
// GetConditions returns the value of Conditions.
|
|
func (s *Rule) GetConditions() []Condition {
|
|
return s.Conditions
|
|
}
|
|
|
|
// GetResponseType returns the value of ResponseType.
|
|
func (s *Rule) GetResponseType() RuleResponseType {
|
|
return s.ResponseType
|
|
}
|
|
|
|
// GetResponseModifications returns the value of ResponseModifications.
|
|
func (s *Rule) GetResponseModifications() OptResponseModification {
|
|
return s.ResponseModifications
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *Rule) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *Rule) SetDescription(val OptString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Rule) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetOperator sets the value of Operator.
|
|
func (s *Rule) SetOperator(val RuleOperator) {
|
|
s.Operator = val
|
|
}
|
|
|
|
// SetConditions sets the value of Conditions.
|
|
func (s *Rule) SetConditions(val []Condition) {
|
|
s.Conditions = val
|
|
}
|
|
|
|
// SetResponseType sets the value of ResponseType.
|
|
func (s *Rule) SetResponseType(val RuleResponseType) {
|
|
s.ResponseType = val
|
|
}
|
|
|
|
// SetResponseModifications sets the value of ResponseModifications.
|
|
func (s *Rule) SetResponseModifications(val OptResponseModification) {
|
|
s.ResponseModifications = val
|
|
}
|
|
|
|
// {"markdownDescription":"Operator to use for combining conditions in the rule."}.
|
|
type RuleOperator string
|
|
|
|
const (
|
|
RuleOperatorAND RuleOperator = "AND"
|
|
RuleOperatorOR RuleOperator = "OR"
|
|
)
|
|
|
|
// AllValues returns all RuleOperator values.
|
|
func (RuleOperator) AllValues() []RuleOperator {
|
|
return []RuleOperator{
|
|
RuleOperatorAND,
|
|
RuleOperatorOR,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s RuleOperator) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case RuleOperatorAND:
|
|
return []byte(s), nil
|
|
case RuleOperatorOR:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *RuleOperator) UnmarshalText(data []byte) error {
|
|
switch RuleOperator(data) {
|
|
case RuleOperatorAND:
|
|
*s = RuleOperatorAND
|
|
return nil
|
|
case RuleOperatorOR:
|
|
*s = RuleOperatorOR
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// {"errorMessage":"Invalid response type. Please select a valid response type.",
|
|
// "markdownDescription":"Type of the response. Determines the type of **response** to be returned
|
|
// when the rule is matched.","markdownEnumDescriptions":["Return **subscription** in XRAY-JSON
|
|
// format. (Using `Xray Json` template)","Return **subscription** in BASE64 encoded string.
|
|
// Compatible with most client application with Xray core.","Return **subscription** in Mihomo format.
|
|
//
|
|
// (Using `Mihomo` template)","Return **subscription** in Stash format. (Using `Stash` template)",
|
|
//
|
|
// "Return **subscription** in Clash format. (Using `Clash` template) Useful for client application
|
|
// that use Legacy Clash core.","Return **subscription** in Singbox format. (Using `Singbox`
|
|
// template) Format which is used by Singbox client application.","Return **subscription** as browser
|
|
// format. The same as on `/info` route.","**Drop** request and return `403` status code.","**Drop**
|
|
// request and return `404` status code.","**Drop** request and return `451` status code.","**Drop**
|
|
// the socket connection."]}.
|
|
type RuleResponseType string
|
|
|
|
const (
|
|
RuleResponseTypeXRAYJSON RuleResponseType = "XRAY_JSON"
|
|
RuleResponseTypeXRAYBASE64 RuleResponseType = "XRAY_BASE64"
|
|
RuleResponseTypeMIHOMO RuleResponseType = "MIHOMO"
|
|
RuleResponseTypeSTASH RuleResponseType = "STASH"
|
|
RuleResponseTypeCLASH RuleResponseType = "CLASH"
|
|
RuleResponseTypeSINGBOX RuleResponseType = "SINGBOX"
|
|
RuleResponseTypeBROWSER RuleResponseType = "BROWSER"
|
|
RuleResponseTypeBLOCK RuleResponseType = "BLOCK"
|
|
RuleResponseTypeSTATUSCODE404 RuleResponseType = "STATUS_CODE_404"
|
|
RuleResponseTypeSTATUSCODE451 RuleResponseType = "STATUS_CODE_451"
|
|
RuleResponseTypeSOCKETDROP RuleResponseType = "SOCKET_DROP"
|
|
)
|
|
|
|
// AllValues returns all RuleResponseType values.
|
|
func (RuleResponseType) AllValues() []RuleResponseType {
|
|
return []RuleResponseType{
|
|
RuleResponseTypeXRAYJSON,
|
|
RuleResponseTypeXRAYBASE64,
|
|
RuleResponseTypeMIHOMO,
|
|
RuleResponseTypeSTASH,
|
|
RuleResponseTypeCLASH,
|
|
RuleResponseTypeSINGBOX,
|
|
RuleResponseTypeBROWSER,
|
|
RuleResponseTypeBLOCK,
|
|
RuleResponseTypeSTATUSCODE404,
|
|
RuleResponseTypeSTATUSCODE451,
|
|
RuleResponseTypeSOCKETDROP,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s RuleResponseType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case RuleResponseTypeXRAYJSON:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeXRAYBASE64:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeMIHOMO:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeSTASH:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeCLASH:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeSINGBOX:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeBROWSER:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeBLOCK:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeSTATUSCODE404:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeSTATUSCODE451:
|
|
return []byte(s), nil
|
|
case RuleResponseTypeSOCKETDROP:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *RuleResponseType) UnmarshalText(data []byte) error {
|
|
switch RuleResponseType(data) {
|
|
case RuleResponseTypeXRAYJSON:
|
|
*s = RuleResponseTypeXRAYJSON
|
|
return nil
|
|
case RuleResponseTypeXRAYBASE64:
|
|
*s = RuleResponseTypeXRAYBASE64
|
|
return nil
|
|
case RuleResponseTypeMIHOMO:
|
|
*s = RuleResponseTypeMIHOMO
|
|
return nil
|
|
case RuleResponseTypeSTASH:
|
|
*s = RuleResponseTypeSTASH
|
|
return nil
|
|
case RuleResponseTypeCLASH:
|
|
*s = RuleResponseTypeCLASH
|
|
return nil
|
|
case RuleResponseTypeSINGBOX:
|
|
*s = RuleResponseTypeSINGBOX
|
|
return nil
|
|
case RuleResponseTypeBROWSER:
|
|
*s = RuleResponseTypeBROWSER
|
|
return nil
|
|
case RuleResponseTypeBLOCK:
|
|
*s = RuleResponseTypeBLOCK
|
|
return nil
|
|
case RuleResponseTypeSTATUSCODE404:
|
|
*s = RuleResponseTypeSTATUSCODE404
|
|
return nil
|
|
case RuleResponseTypeSTATUSCODE451:
|
|
*s = RuleResponseTypeSTATUSCODE451
|
|
return nil
|
|
case RuleResponseTypeSOCKETDROP:
|
|
*s = RuleResponseTypeSOCKETDROP
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/SettingsResponse
|
|
type SettingsResponse struct {
|
|
Response SettingsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SettingsResponse) GetResponse() SettingsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SettingsResponse) SetResponse(val SettingsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SettingsResponse) remnawaveSettingsGetSettingsRes() {}
|
|
func (*SettingsResponse) remnawaveSettingsUpdateSettingsRes() {}
|
|
|
|
type SettingsResponseResponse struct {
|
|
PasskeySettings NilPasskeySettings `json:"passkeySettings"`
|
|
Oauth2Settings NilOauth2Settings `json:"oauth2Settings"`
|
|
PasswordSettings NilPasswordSettings `json:"passwordSettings"`
|
|
BrandingSettings NilBrandingSettings `json:"brandingSettings"`
|
|
}
|
|
|
|
// GetPasskeySettings returns the value of PasskeySettings.
|
|
func (s *SettingsResponseResponse) GetPasskeySettings() NilPasskeySettings {
|
|
return s.PasskeySettings
|
|
}
|
|
|
|
// GetOauth2Settings returns the value of Oauth2Settings.
|
|
func (s *SettingsResponseResponse) GetOauth2Settings() NilOauth2Settings {
|
|
return s.Oauth2Settings
|
|
}
|
|
|
|
// GetPasswordSettings returns the value of PasswordSettings.
|
|
func (s *SettingsResponseResponse) GetPasswordSettings() NilPasswordSettings {
|
|
return s.PasswordSettings
|
|
}
|
|
|
|
// GetBrandingSettings returns the value of BrandingSettings.
|
|
func (s *SettingsResponseResponse) GetBrandingSettings() NilBrandingSettings {
|
|
return s.BrandingSettings
|
|
}
|
|
|
|
// SetPasskeySettings sets the value of PasskeySettings.
|
|
func (s *SettingsResponseResponse) SetPasskeySettings(val NilPasskeySettings) {
|
|
s.PasskeySettings = val
|
|
}
|
|
|
|
// SetOauth2Settings sets the value of Oauth2Settings.
|
|
func (s *SettingsResponseResponse) SetOauth2Settings(val NilOauth2Settings) {
|
|
s.Oauth2Settings = val
|
|
}
|
|
|
|
// SetPasswordSettings sets the value of PasswordSettings.
|
|
func (s *SettingsResponseResponse) SetPasswordSettings(val NilPasswordSettings) {
|
|
s.PasswordSettings = val
|
|
}
|
|
|
|
// SetBrandingSettings sets the value of BrandingSettings.
|
|
func (s *SettingsResponseResponse) SetBrandingSettings(val NilBrandingSettings) {
|
|
s.BrandingSettings = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SnippetRequest
|
|
type SnippetRequest struct {
|
|
Name string `json:"name"`
|
|
Snippet []SnippetRequestSnippetItem `json:"snippet"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *SnippetRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetSnippet returns the value of Snippet.
|
|
func (s *SnippetRequest) GetSnippet() []SnippetRequestSnippetItem {
|
|
return s.Snippet
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *SnippetRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetSnippet sets the value of Snippet.
|
|
func (s *SnippetRequest) SetSnippet(val []SnippetRequestSnippetItem) {
|
|
s.Snippet = val
|
|
}
|
|
|
|
type SnippetRequestSnippetItem struct{}
|
|
|
|
// SnippetsCreateSnippetConflict is response for SnippetsCreateSnippet operation.
|
|
type SnippetsCreateSnippetConflict struct{}
|
|
|
|
func (*SnippetsCreateSnippetConflict) snippetsCreateSnippetRes() {}
|
|
|
|
// Ref: #/components/schemas/SnippetsResponse
|
|
type SnippetsResponse struct {
|
|
Response SnippetsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SnippetsResponse) GetResponse() SnippetsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SnippetsResponse) SetResponse(val SnippetsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SnippetsResponse) snippetsCreateSnippetRes() {}
|
|
func (*SnippetsResponse) snippetsDeleteSnippetByNameRes() {}
|
|
func (*SnippetsResponse) snippetsGetSnippetsRes() {}
|
|
func (*SnippetsResponse) snippetsUpdateSnippetRes() {}
|
|
|
|
type SnippetsResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
Snippets []SnippetsResponseResponseSnippetsItem `json:"snippets"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *SnippetsResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetSnippets returns the value of Snippets.
|
|
func (s *SnippetsResponseResponse) GetSnippets() []SnippetsResponseResponseSnippetsItem {
|
|
return s.Snippets
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *SnippetsResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetSnippets sets the value of Snippets.
|
|
func (s *SnippetsResponseResponse) SetSnippets(val []SnippetsResponseResponseSnippetsItem) {
|
|
s.Snippets = val
|
|
}
|
|
|
|
type SnippetsResponseResponseSnippetsItem struct {
|
|
Name string `json:"name"`
|
|
Snippet jx.Raw `json:"snippet"`
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *SnippetsResponseResponseSnippetsItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetSnippet returns the value of Snippet.
|
|
func (s *SnippetsResponseResponseSnippetsItem) GetSnippet() jx.Raw {
|
|
return s.Snippet
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *SnippetsResponseResponseSnippetsItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetSnippet sets the value of Snippet.
|
|
func (s *SnippetsResponseResponseSnippetsItem) SetSnippet(val jx.Raw) {
|
|
s.Snippet = val
|
|
}
|
|
|
|
// SnippetsUpdateSnippetConflict is response for SnippetsUpdateSnippet operation.
|
|
type SnippetsUpdateSnippetConflict struct{}
|
|
|
|
func (*SnippetsUpdateSnippetConflict) snippetsUpdateSnippetRes() {}
|
|
|
|
// Ref: #/components/schemas/Stat
|
|
type Stat struct {
|
|
MemoryFree float64 `json:"memoryFree"`
|
|
MemoryUsed float64 `json:"memoryUsed"`
|
|
Uptime float64 `json:"uptime"`
|
|
LoadAvg []float64 `json:"loadAvg"`
|
|
Interface NilInterfaceItem `json:"interface"`
|
|
}
|
|
|
|
// GetMemoryFree returns the value of MemoryFree.
|
|
func (s *Stat) GetMemoryFree() float64 {
|
|
return s.MemoryFree
|
|
}
|
|
|
|
// GetMemoryUsed returns the value of MemoryUsed.
|
|
func (s *Stat) GetMemoryUsed() float64 {
|
|
return s.MemoryUsed
|
|
}
|
|
|
|
// GetUptime returns the value of Uptime.
|
|
func (s *Stat) GetUptime() float64 {
|
|
return s.Uptime
|
|
}
|
|
|
|
// GetLoadAvg returns the value of LoadAvg.
|
|
func (s *Stat) GetLoadAvg() []float64 {
|
|
return s.LoadAvg
|
|
}
|
|
|
|
// GetInterface returns the value of Interface.
|
|
func (s *Stat) GetInterface() NilInterfaceItem {
|
|
return s.Interface
|
|
}
|
|
|
|
// SetMemoryFree sets the value of MemoryFree.
|
|
func (s *Stat) SetMemoryFree(val float64) {
|
|
s.MemoryFree = val
|
|
}
|
|
|
|
// SetMemoryUsed sets the value of MemoryUsed.
|
|
func (s *Stat) SetMemoryUsed(val float64) {
|
|
s.MemoryUsed = val
|
|
}
|
|
|
|
// SetUptime sets the value of Uptime.
|
|
func (s *Stat) SetUptime(val float64) {
|
|
s.Uptime = val
|
|
}
|
|
|
|
// SetLoadAvg sets the value of LoadAvg.
|
|
func (s *Stat) SetLoadAvg(val []float64) {
|
|
s.LoadAvg = val
|
|
}
|
|
|
|
// SetInterface sets the value of Interface.
|
|
func (s *Stat) SetInterface(val NilInterfaceItem) {
|
|
s.Interface = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/StatsNodeUsersUsageResponseResponse
|
|
type StatsNodeUsersUsageResponseResponse struct {
|
|
Response StatsNodeUsersUsageResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *StatsNodeUsersUsageResponseResponse) GetResponse() StatsNodeUsersUsageResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *StatsNodeUsersUsageResponseResponse) SetResponse(val StatsNodeUsersUsageResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*StatsNodeUsersUsageResponseResponse) bandwidthStatsNodesGetStatsNodeUsersUsageRes() {}
|
|
func (*StatsNodeUsersUsageResponseResponse) bandwidthStatsNodesGetStatsNodesUsersUsageRes() {}
|
|
|
|
type StatsNodeUsersUsageResponseResponseResponse struct {
|
|
Categories []string `json:"categories"`
|
|
SparklineData []float64 `json:"sparklineData"`
|
|
TopUsers []StatsNodeUsersUsageResponseResponseResponseTopUsersItem `json:"topUsers"`
|
|
}
|
|
|
|
// GetCategories returns the value of Categories.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) GetCategories() []string {
|
|
return s.Categories
|
|
}
|
|
|
|
// GetSparklineData returns the value of SparklineData.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) GetSparklineData() []float64 {
|
|
return s.SparklineData
|
|
}
|
|
|
|
// GetTopUsers returns the value of TopUsers.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) GetTopUsers() []StatsNodeUsersUsageResponseResponseResponseTopUsersItem {
|
|
return s.TopUsers
|
|
}
|
|
|
|
// SetCategories sets the value of Categories.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) SetCategories(val []string) {
|
|
s.Categories = val
|
|
}
|
|
|
|
// SetSparklineData sets the value of SparklineData.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) SetSparklineData(val []float64) {
|
|
s.SparklineData = val
|
|
}
|
|
|
|
// SetTopUsers sets the value of TopUsers.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponse) SetTopUsers(val []StatsNodeUsersUsageResponseResponseResponseTopUsersItem) {
|
|
s.TopUsers = val
|
|
}
|
|
|
|
type StatsNodeUsersUsageResponseResponseResponseTopUsersItem struct {
|
|
Color string `json:"color"`
|
|
Username string `json:"username"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetColor returns the value of Color.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) GetColor() string {
|
|
return s.Color
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetColor sets the value of Color.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) SetColor(val string) {
|
|
s.Color = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *StatsNodeUsersUsageResponseResponseResponseTopUsersItem) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/StatsUserUsageResponseResponse
|
|
type StatsUserUsageResponseResponse struct {
|
|
Response StatsUserUsageResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *StatsUserUsageResponseResponse) GetResponse() StatsUserUsageResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *StatsUserUsageResponseResponse) SetResponse(val StatsUserUsageResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*StatsUserUsageResponseResponse) bandwidthStatsUsersGetStatsNodesUsageRes() {}
|
|
func (*StatsUserUsageResponseResponse) nodesUsageHistoryGetStatsNodesUsageRes() {}
|
|
|
|
type StatsUserUsageResponseResponseResponse struct {
|
|
Categories []string `json:"categories"`
|
|
SparklineData []float64 `json:"sparklineData"`
|
|
TopNodes []TopNode `json:"topNodes"`
|
|
Series []StatsUserUsageResponseResponseResponseSeriesItem `json:"series"`
|
|
}
|
|
|
|
// GetCategories returns the value of Categories.
|
|
func (s *StatsUserUsageResponseResponseResponse) GetCategories() []string {
|
|
return s.Categories
|
|
}
|
|
|
|
// GetSparklineData returns the value of SparklineData.
|
|
func (s *StatsUserUsageResponseResponseResponse) GetSparklineData() []float64 {
|
|
return s.SparklineData
|
|
}
|
|
|
|
// GetTopNodes returns the value of TopNodes.
|
|
func (s *StatsUserUsageResponseResponseResponse) GetTopNodes() []TopNode {
|
|
return s.TopNodes
|
|
}
|
|
|
|
// GetSeries returns the value of Series.
|
|
func (s *StatsUserUsageResponseResponseResponse) GetSeries() []StatsUserUsageResponseResponseResponseSeriesItem {
|
|
return s.Series
|
|
}
|
|
|
|
// SetCategories sets the value of Categories.
|
|
func (s *StatsUserUsageResponseResponseResponse) SetCategories(val []string) {
|
|
s.Categories = val
|
|
}
|
|
|
|
// SetSparklineData sets the value of SparklineData.
|
|
func (s *StatsUserUsageResponseResponseResponse) SetSparklineData(val []float64) {
|
|
s.SparklineData = val
|
|
}
|
|
|
|
// SetTopNodes sets the value of TopNodes.
|
|
func (s *StatsUserUsageResponseResponseResponse) SetTopNodes(val []TopNode) {
|
|
s.TopNodes = val
|
|
}
|
|
|
|
// SetSeries sets the value of Series.
|
|
func (s *StatsUserUsageResponseResponseResponse) SetSeries(val []StatsUserUsageResponseResponseResponseSeriesItem) {
|
|
s.Series = val
|
|
}
|
|
|
|
type StatsUserUsageResponseResponseResponseSeriesItem struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name string `json:"name"`
|
|
Color string `json:"color"`
|
|
CountryCode string `json:"countryCode"`
|
|
Total float64 `json:"total"`
|
|
Data []float64 `json:"data"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetColor returns the value of Color.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetColor() string {
|
|
return s.Color
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetData returns the value of Data.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) GetData() []float64 {
|
|
return s.Data
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetColor sets the value of Color.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetColor(val string) {
|
|
s.Color = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetData sets the value of Data.
|
|
func (s *StatsUserUsageResponseResponseResponseSeriesItem) SetData(val []float64) {
|
|
s.Data = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Subscription
|
|
type Subscription struct {
|
|
IsFound bool `json:"isFound"`
|
|
User UserItem2 `json:"user"`
|
|
Links []string `json:"links"`
|
|
SsConfLinks SubscriptionSsConfLinks `json:"ssConfLinks"`
|
|
SubscriptionUrl string `json:"subscriptionUrl"`
|
|
}
|
|
|
|
// GetIsFound returns the value of IsFound.
|
|
func (s *Subscription) GetIsFound() bool {
|
|
return s.IsFound
|
|
}
|
|
|
|
// GetUser returns the value of User.
|
|
func (s *Subscription) GetUser() UserItem2 {
|
|
return s.User
|
|
}
|
|
|
|
// GetLinks returns the value of Links.
|
|
func (s *Subscription) GetLinks() []string {
|
|
return s.Links
|
|
}
|
|
|
|
// GetSsConfLinks returns the value of SsConfLinks.
|
|
func (s *Subscription) GetSsConfLinks() SubscriptionSsConfLinks {
|
|
return s.SsConfLinks
|
|
}
|
|
|
|
// GetSubscriptionUrl returns the value of SubscriptionUrl.
|
|
func (s *Subscription) GetSubscriptionUrl() string {
|
|
return s.SubscriptionUrl
|
|
}
|
|
|
|
// SetIsFound sets the value of IsFound.
|
|
func (s *Subscription) SetIsFound(val bool) {
|
|
s.IsFound = val
|
|
}
|
|
|
|
// SetUser sets the value of User.
|
|
func (s *Subscription) SetUser(val UserItem2) {
|
|
s.User = val
|
|
}
|
|
|
|
// SetLinks sets the value of Links.
|
|
func (s *Subscription) SetLinks(val []string) {
|
|
s.Links = val
|
|
}
|
|
|
|
// SetSsConfLinks sets the value of SsConfLinks.
|
|
func (s *Subscription) SetSsConfLinks(val SubscriptionSsConfLinks) {
|
|
s.SsConfLinks = val
|
|
}
|
|
|
|
// SetSubscriptionUrl sets the value of SubscriptionUrl.
|
|
func (s *Subscription) SetSubscriptionUrl(val string) {
|
|
s.SubscriptionUrl = val
|
|
}
|
|
|
|
type SubscriptionGetSubscriptionByClientTypeClientType string
|
|
|
|
const (
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeStash SubscriptionGetSubscriptionByClientTypeClientType = "stash"
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeSingbox SubscriptionGetSubscriptionByClientTypeClientType = "singbox"
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeMihomo SubscriptionGetSubscriptionByClientTypeClientType = "mihomo"
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeJSON SubscriptionGetSubscriptionByClientTypeClientType = "json"
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeV2rayJSON SubscriptionGetSubscriptionByClientTypeClientType = "v2ray-json"
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeClash SubscriptionGetSubscriptionByClientTypeClientType = "clash"
|
|
)
|
|
|
|
// AllValues returns all SubscriptionGetSubscriptionByClientTypeClientType values.
|
|
func (SubscriptionGetSubscriptionByClientTypeClientType) AllValues() []SubscriptionGetSubscriptionByClientTypeClientType {
|
|
return []SubscriptionGetSubscriptionByClientTypeClientType{
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeStash,
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeSingbox,
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeMihomo,
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeJSON,
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeV2rayJSON,
|
|
SubscriptionGetSubscriptionByClientTypeClientTypeClash,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s SubscriptionGetSubscriptionByClientTypeClientType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeStash:
|
|
return []byte(s), nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeSingbox:
|
|
return []byte(s), nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeMihomo:
|
|
return []byte(s), nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeJSON:
|
|
return []byte(s), nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeV2rayJSON:
|
|
return []byte(s), nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeClash:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *SubscriptionGetSubscriptionByClientTypeClientType) UnmarshalText(data []byte) error {
|
|
switch SubscriptionGetSubscriptionByClientTypeClientType(data) {
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeStash:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeStash
|
|
return nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeSingbox:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeSingbox
|
|
return nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeMihomo:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeMihomo
|
|
return nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeJSON:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeJSON
|
|
return nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeV2rayJSON:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeV2rayJSON
|
|
return nil
|
|
case SubscriptionGetSubscriptionByClientTypeClientTypeClash:
|
|
*s = SubscriptionGetSubscriptionByClientTypeClientTypeClash
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type SubscriptionGetSubscriptionByClientTypeOK struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s SubscriptionGetSubscriptionByClientTypeOK) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
type SubscriptionGetSubscriptionOK struct {
|
|
Data io.Reader
|
|
}
|
|
|
|
// Read reads data from the Data reader.
|
|
//
|
|
// Kept to satisfy the io.Reader interface.
|
|
func (s SubscriptionGetSubscriptionOK) Read(p []byte) (n int, err error) {
|
|
if s.Data == nil {
|
|
return 0, io.EOF
|
|
}
|
|
return s.Data.Read(p)
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubscriptionPageConfigResponseResponse
|
|
type SubscriptionPageConfigResponseResponse struct {
|
|
Response SubscriptionPageConfigResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SubscriptionPageConfigResponseResponse) GetResponse() SubscriptionPageConfigResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SubscriptionPageConfigResponseResponse) SetResponse(val SubscriptionPageConfigResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SubscriptionPageConfigResponseResponse) subscriptionPageConfigCloneSubscriptionPageConfigRes() {
|
|
}
|
|
func (*SubscriptionPageConfigResponseResponse) subscriptionPageConfigGetConfigByUuidRes() {}
|
|
func (*SubscriptionPageConfigResponseResponse) subscriptionPageConfigUpdateConfigRes() {}
|
|
|
|
type SubscriptionPageConfigResponseResponseResponse struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
Config jx.Raw `json:"config"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) GetConfig() jx.Raw {
|
|
return s.Config
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *SubscriptionPageConfigResponseResponseResponse) SetConfig(val jx.Raw) {
|
|
s.Config = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubscriptionPageConfigsResponseResponse
|
|
type SubscriptionPageConfigsResponseResponse struct {
|
|
Response SubscriptionPageConfigsResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SubscriptionPageConfigsResponseResponse) GetResponse() SubscriptionPageConfigsResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SubscriptionPageConfigsResponseResponse) SetResponse(val SubscriptionPageConfigsResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SubscriptionPageConfigsResponseResponse) subscriptionPageConfigGetAllConfigsRes() {}
|
|
func (*SubscriptionPageConfigsResponseResponse) subscriptionPageConfigReorderSubscriptionPageConfigsRes() {
|
|
}
|
|
|
|
type SubscriptionPageConfigsResponseResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
Configs []Config `json:"configs"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *SubscriptionPageConfigsResponseResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetConfigs returns the value of Configs.
|
|
func (s *SubscriptionPageConfigsResponseResponseResponse) GetConfigs() []Config {
|
|
return s.Configs
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *SubscriptionPageConfigsResponseResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetConfigs sets the value of Configs.
|
|
func (s *SubscriptionPageConfigsResponseResponseResponse) SetConfigs(val []Config) {
|
|
s.Configs = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubscriptionResponse
|
|
type SubscriptionResponse struct {
|
|
Response Subscription `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SubscriptionResponse) GetResponse() Subscription {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SubscriptionResponse) SetResponse(val Subscription) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SubscriptionResponse) subscriptionGetSubscriptionInfoByShortUuidRes() {}
|
|
func (*SubscriptionResponse) subscriptionsGetSubscriptionByShortUuidProtectedRes() {}
|
|
func (*SubscriptionResponse) subscriptionsGetSubscriptionByUsernameRes() {}
|
|
func (*SubscriptionResponse) subscriptionsGetSubscriptionByUuidRes() {}
|
|
|
|
// Ref: #/components/schemas/SubscriptionSettings
|
|
type SubscriptionSettings struct {
|
|
ProfileTitle OptString `json:"profileTitle"`
|
|
SupportLink OptString `json:"supportLink"`
|
|
ProfileUpdateInterval OptInt `json:"profileUpdateInterval"`
|
|
IsProfileWebpageUrlEnabled OptBool `json:"isProfileWebpageUrlEnabled"`
|
|
ServeJsonAtBaseSubscription OptBool `json:"serveJsonAtBaseSubscription"`
|
|
IsShowCustomRemarks OptBool `json:"isShowCustomRemarks"`
|
|
HappAnnounce OptNilString `json:"happAnnounce"`
|
|
HappRouting OptNilString `json:"happRouting"`
|
|
RandomizeHosts OptBool `json:"randomizeHosts"`
|
|
}
|
|
|
|
// GetProfileTitle returns the value of ProfileTitle.
|
|
func (s *SubscriptionSettings) GetProfileTitle() OptString {
|
|
return s.ProfileTitle
|
|
}
|
|
|
|
// GetSupportLink returns the value of SupportLink.
|
|
func (s *SubscriptionSettings) GetSupportLink() OptString {
|
|
return s.SupportLink
|
|
}
|
|
|
|
// GetProfileUpdateInterval returns the value of ProfileUpdateInterval.
|
|
func (s *SubscriptionSettings) GetProfileUpdateInterval() OptInt {
|
|
return s.ProfileUpdateInterval
|
|
}
|
|
|
|
// GetIsProfileWebpageUrlEnabled returns the value of IsProfileWebpageUrlEnabled.
|
|
func (s *SubscriptionSettings) GetIsProfileWebpageUrlEnabled() OptBool {
|
|
return s.IsProfileWebpageUrlEnabled
|
|
}
|
|
|
|
// GetServeJsonAtBaseSubscription returns the value of ServeJsonAtBaseSubscription.
|
|
func (s *SubscriptionSettings) GetServeJsonAtBaseSubscription() OptBool {
|
|
return s.ServeJsonAtBaseSubscription
|
|
}
|
|
|
|
// GetIsShowCustomRemarks returns the value of IsShowCustomRemarks.
|
|
func (s *SubscriptionSettings) GetIsShowCustomRemarks() OptBool {
|
|
return s.IsShowCustomRemarks
|
|
}
|
|
|
|
// GetHappAnnounce returns the value of HappAnnounce.
|
|
func (s *SubscriptionSettings) GetHappAnnounce() OptNilString {
|
|
return s.HappAnnounce
|
|
}
|
|
|
|
// GetHappRouting returns the value of HappRouting.
|
|
func (s *SubscriptionSettings) GetHappRouting() OptNilString {
|
|
return s.HappRouting
|
|
}
|
|
|
|
// GetRandomizeHosts returns the value of RandomizeHosts.
|
|
func (s *SubscriptionSettings) GetRandomizeHosts() OptBool {
|
|
return s.RandomizeHosts
|
|
}
|
|
|
|
// SetProfileTitle sets the value of ProfileTitle.
|
|
func (s *SubscriptionSettings) SetProfileTitle(val OptString) {
|
|
s.ProfileTitle = val
|
|
}
|
|
|
|
// SetSupportLink sets the value of SupportLink.
|
|
func (s *SubscriptionSettings) SetSupportLink(val OptString) {
|
|
s.SupportLink = val
|
|
}
|
|
|
|
// SetProfileUpdateInterval sets the value of ProfileUpdateInterval.
|
|
func (s *SubscriptionSettings) SetProfileUpdateInterval(val OptInt) {
|
|
s.ProfileUpdateInterval = val
|
|
}
|
|
|
|
// SetIsProfileWebpageUrlEnabled sets the value of IsProfileWebpageUrlEnabled.
|
|
func (s *SubscriptionSettings) SetIsProfileWebpageUrlEnabled(val OptBool) {
|
|
s.IsProfileWebpageUrlEnabled = val
|
|
}
|
|
|
|
// SetServeJsonAtBaseSubscription sets the value of ServeJsonAtBaseSubscription.
|
|
func (s *SubscriptionSettings) SetServeJsonAtBaseSubscription(val OptBool) {
|
|
s.ServeJsonAtBaseSubscription = val
|
|
}
|
|
|
|
// SetIsShowCustomRemarks sets the value of IsShowCustomRemarks.
|
|
func (s *SubscriptionSettings) SetIsShowCustomRemarks(val OptBool) {
|
|
s.IsShowCustomRemarks = val
|
|
}
|
|
|
|
// SetHappAnnounce sets the value of HappAnnounce.
|
|
func (s *SubscriptionSettings) SetHappAnnounce(val OptNilString) {
|
|
s.HappAnnounce = val
|
|
}
|
|
|
|
// SetHappRouting sets the value of HappRouting.
|
|
func (s *SubscriptionSettings) SetHappRouting(val OptNilString) {
|
|
s.HappRouting = val
|
|
}
|
|
|
|
// SetRandomizeHosts sets the value of RandomizeHosts.
|
|
func (s *SubscriptionSettings) SetRandomizeHosts(val OptBool) {
|
|
s.RandomizeHosts = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/SubscriptionSettingsResponse
|
|
type SubscriptionSettingsResponse struct {
|
|
Response SubscriptionSettingsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *SubscriptionSettingsResponse) GetResponse() SubscriptionSettingsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *SubscriptionSettingsResponse) SetResponse(val SubscriptionSettingsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*SubscriptionSettingsResponse) subscriptionSettingsGetSettingsRes() {}
|
|
func (*SubscriptionSettingsResponse) subscriptionSettingsUpdateSettingsRes() {}
|
|
|
|
type SubscriptionSettingsResponseResponse struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ProfileTitle string `json:"profileTitle"`
|
|
SupportLink string `json:"supportLink"`
|
|
ProfileUpdateInterval int `json:"profileUpdateInterval"`
|
|
IsProfileWebpageUrlEnabled bool `json:"isProfileWebpageUrlEnabled"`
|
|
ServeJsonAtBaseSubscription bool `json:"serveJsonAtBaseSubscription"`
|
|
IsShowCustomRemarks bool `json:"isShowCustomRemarks"`
|
|
CustomRemarks NilCustomRemark `json:"customRemarks"`
|
|
HappAnnounce NilString `json:"happAnnounce"`
|
|
HappRouting NilString `json:"happRouting"`
|
|
CustomResponseHeaders NilSubscriptionSettingsResponseResponseCustomResponseHeaders `json:"customResponseHeaders"`
|
|
RandomizeHosts bool `json:"randomizeHosts"`
|
|
ResponseRules ResponseRules `json:"responseRules"`
|
|
HwidSettings NilHwidSettings `json:"hwidSettings"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *SubscriptionSettingsResponseResponse) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetProfileTitle returns the value of ProfileTitle.
|
|
func (s *SubscriptionSettingsResponseResponse) GetProfileTitle() string {
|
|
return s.ProfileTitle
|
|
}
|
|
|
|
// GetSupportLink returns the value of SupportLink.
|
|
func (s *SubscriptionSettingsResponseResponse) GetSupportLink() string {
|
|
return s.SupportLink
|
|
}
|
|
|
|
// GetProfileUpdateInterval returns the value of ProfileUpdateInterval.
|
|
func (s *SubscriptionSettingsResponseResponse) GetProfileUpdateInterval() int {
|
|
return s.ProfileUpdateInterval
|
|
}
|
|
|
|
// GetIsProfileWebpageUrlEnabled returns the value of IsProfileWebpageUrlEnabled.
|
|
func (s *SubscriptionSettingsResponseResponse) GetIsProfileWebpageUrlEnabled() bool {
|
|
return s.IsProfileWebpageUrlEnabled
|
|
}
|
|
|
|
// GetServeJsonAtBaseSubscription returns the value of ServeJsonAtBaseSubscription.
|
|
func (s *SubscriptionSettingsResponseResponse) GetServeJsonAtBaseSubscription() bool {
|
|
return s.ServeJsonAtBaseSubscription
|
|
}
|
|
|
|
// GetIsShowCustomRemarks returns the value of IsShowCustomRemarks.
|
|
func (s *SubscriptionSettingsResponseResponse) GetIsShowCustomRemarks() bool {
|
|
return s.IsShowCustomRemarks
|
|
}
|
|
|
|
// GetCustomRemarks returns the value of CustomRemarks.
|
|
func (s *SubscriptionSettingsResponseResponse) GetCustomRemarks() NilCustomRemark {
|
|
return s.CustomRemarks
|
|
}
|
|
|
|
// GetHappAnnounce returns the value of HappAnnounce.
|
|
func (s *SubscriptionSettingsResponseResponse) GetHappAnnounce() NilString {
|
|
return s.HappAnnounce
|
|
}
|
|
|
|
// GetHappRouting returns the value of HappRouting.
|
|
func (s *SubscriptionSettingsResponseResponse) GetHappRouting() NilString {
|
|
return s.HappRouting
|
|
}
|
|
|
|
// GetCustomResponseHeaders returns the value of CustomResponseHeaders.
|
|
func (s *SubscriptionSettingsResponseResponse) GetCustomResponseHeaders() NilSubscriptionSettingsResponseResponseCustomResponseHeaders {
|
|
return s.CustomResponseHeaders
|
|
}
|
|
|
|
// GetRandomizeHosts returns the value of RandomizeHosts.
|
|
func (s *SubscriptionSettingsResponseResponse) GetRandomizeHosts() bool {
|
|
return s.RandomizeHosts
|
|
}
|
|
|
|
// GetResponseRules returns the value of ResponseRules.
|
|
func (s *SubscriptionSettingsResponseResponse) GetResponseRules() ResponseRules {
|
|
return s.ResponseRules
|
|
}
|
|
|
|
// GetHwidSettings returns the value of HwidSettings.
|
|
func (s *SubscriptionSettingsResponseResponse) GetHwidSettings() NilHwidSettings {
|
|
return s.HwidSettings
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *SubscriptionSettingsResponseResponse) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *SubscriptionSettingsResponseResponse) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *SubscriptionSettingsResponseResponse) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetProfileTitle sets the value of ProfileTitle.
|
|
func (s *SubscriptionSettingsResponseResponse) SetProfileTitle(val string) {
|
|
s.ProfileTitle = val
|
|
}
|
|
|
|
// SetSupportLink sets the value of SupportLink.
|
|
func (s *SubscriptionSettingsResponseResponse) SetSupportLink(val string) {
|
|
s.SupportLink = val
|
|
}
|
|
|
|
// SetProfileUpdateInterval sets the value of ProfileUpdateInterval.
|
|
func (s *SubscriptionSettingsResponseResponse) SetProfileUpdateInterval(val int) {
|
|
s.ProfileUpdateInterval = val
|
|
}
|
|
|
|
// SetIsProfileWebpageUrlEnabled sets the value of IsProfileWebpageUrlEnabled.
|
|
func (s *SubscriptionSettingsResponseResponse) SetIsProfileWebpageUrlEnabled(val bool) {
|
|
s.IsProfileWebpageUrlEnabled = val
|
|
}
|
|
|
|
// SetServeJsonAtBaseSubscription sets the value of ServeJsonAtBaseSubscription.
|
|
func (s *SubscriptionSettingsResponseResponse) SetServeJsonAtBaseSubscription(val bool) {
|
|
s.ServeJsonAtBaseSubscription = val
|
|
}
|
|
|
|
// SetIsShowCustomRemarks sets the value of IsShowCustomRemarks.
|
|
func (s *SubscriptionSettingsResponseResponse) SetIsShowCustomRemarks(val bool) {
|
|
s.IsShowCustomRemarks = val
|
|
}
|
|
|
|
// SetCustomRemarks sets the value of CustomRemarks.
|
|
func (s *SubscriptionSettingsResponseResponse) SetCustomRemarks(val NilCustomRemark) {
|
|
s.CustomRemarks = val
|
|
}
|
|
|
|
// SetHappAnnounce sets the value of HappAnnounce.
|
|
func (s *SubscriptionSettingsResponseResponse) SetHappAnnounce(val NilString) {
|
|
s.HappAnnounce = val
|
|
}
|
|
|
|
// SetHappRouting sets the value of HappRouting.
|
|
func (s *SubscriptionSettingsResponseResponse) SetHappRouting(val NilString) {
|
|
s.HappRouting = val
|
|
}
|
|
|
|
// SetCustomResponseHeaders sets the value of CustomResponseHeaders.
|
|
func (s *SubscriptionSettingsResponseResponse) SetCustomResponseHeaders(val NilSubscriptionSettingsResponseResponseCustomResponseHeaders) {
|
|
s.CustomResponseHeaders = val
|
|
}
|
|
|
|
// SetRandomizeHosts sets the value of RandomizeHosts.
|
|
func (s *SubscriptionSettingsResponseResponse) SetRandomizeHosts(val bool) {
|
|
s.RandomizeHosts = val
|
|
}
|
|
|
|
// SetResponseRules sets the value of ResponseRules.
|
|
func (s *SubscriptionSettingsResponseResponse) SetResponseRules(val ResponseRules) {
|
|
s.ResponseRules = val
|
|
}
|
|
|
|
// SetHwidSettings sets the value of HwidSettings.
|
|
func (s *SubscriptionSettingsResponseResponse) SetHwidSettings(val NilHwidSettings) {
|
|
s.HwidSettings = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *SubscriptionSettingsResponseResponse) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *SubscriptionSettingsResponseResponse) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
type SubscriptionSettingsResponseResponseCustomResponseHeaders map[string]string
|
|
|
|
func (s *SubscriptionSettingsResponseResponseCustomResponseHeaders) init() SubscriptionSettingsResponseResponseCustomResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
type SubscriptionSsConfLinks map[string]string
|
|
|
|
func (s *SubscriptionSsConfLinks) init() SubscriptionSsConfLinks {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/SystemItem
|
|
type SystemItem struct {
|
|
Info NodeResponseInfoItem `json:"info"`
|
|
Stats Stat `json:"stats"`
|
|
}
|
|
|
|
// GetInfo returns the value of Info.
|
|
func (s *SystemItem) GetInfo() NodeResponseInfoItem {
|
|
return s.Info
|
|
}
|
|
|
|
// GetStats returns the value of Stats.
|
|
func (s *SystemItem) GetStats() Stat {
|
|
return s.Stats
|
|
}
|
|
|
|
// SetInfo sets the value of Info.
|
|
func (s *SystemItem) SetInfo(val NodeResponseInfoItem) {
|
|
s.Info = val
|
|
}
|
|
|
|
// SetStats sets the value of Stats.
|
|
func (s *SystemItem) SetStats(val Stat) {
|
|
s.Stats = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/TagsResponse
|
|
type TagsResponse struct {
|
|
Response TagsResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TagsResponse) GetResponse() TagsResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TagsResponse) SetResponse(val TagsResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*TagsResponse) hostsGetAllHostTagsRes() {}
|
|
func (*TagsResponse) nodesGetAllNodesTagsRes() {}
|
|
func (*TagsResponse) usersGetAllTagsRes() {}
|
|
|
|
type TagsResponseResponse struct {
|
|
Tags []string `json:"tags"`
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *TagsResponseResponse) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *TagsResponseResponse) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Telegram
|
|
type Telegram struct {
|
|
Enabled bool `json:"enabled"`
|
|
ClientId NilString `json:"clientId"`
|
|
ClientSecret NilString `json:"clientSecret"`
|
|
AllowedIds []string `json:"allowedIds"`
|
|
FrontendDomain NilString `json:"frontendDomain"`
|
|
}
|
|
|
|
// GetEnabled returns the value of Enabled.
|
|
func (s *Telegram) GetEnabled() bool {
|
|
return s.Enabled
|
|
}
|
|
|
|
// GetClientId returns the value of ClientId.
|
|
func (s *Telegram) GetClientId() NilString {
|
|
return s.ClientId
|
|
}
|
|
|
|
// GetClientSecret returns the value of ClientSecret.
|
|
func (s *Telegram) GetClientSecret() NilString {
|
|
return s.ClientSecret
|
|
}
|
|
|
|
// GetAllowedIds returns the value of AllowedIds.
|
|
func (s *Telegram) GetAllowedIds() []string {
|
|
return s.AllowedIds
|
|
}
|
|
|
|
// GetFrontendDomain returns the value of FrontendDomain.
|
|
func (s *Telegram) GetFrontendDomain() NilString {
|
|
return s.FrontendDomain
|
|
}
|
|
|
|
// SetEnabled sets the value of Enabled.
|
|
func (s *Telegram) SetEnabled(val bool) {
|
|
s.Enabled = val
|
|
}
|
|
|
|
// SetClientId sets the value of ClientId.
|
|
func (s *Telegram) SetClientId(val NilString) {
|
|
s.ClientId = val
|
|
}
|
|
|
|
// SetClientSecret sets the value of ClientSecret.
|
|
func (s *Telegram) SetClientSecret(val NilString) {
|
|
s.ClientSecret = val
|
|
}
|
|
|
|
// SetAllowedIds sets the value of AllowedIds.
|
|
func (s *Telegram) SetAllowedIds(val []string) {
|
|
s.AllowedIds = val
|
|
}
|
|
|
|
// SetFrontendDomain sets the value of FrontendDomain.
|
|
func (s *Telegram) SetFrontendDomain(val NilString) {
|
|
s.FrontendDomain = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/Template
|
|
type Template struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ViewPosition int `json:"viewPosition"`
|
|
Name string `json:"name"`
|
|
TemplateType TemplateTemplateType `json:"templateType"`
|
|
TemplateJson jx.Raw `json:"templateJson"`
|
|
EncodedTemplateYaml NilString `json:"encodedTemplateYaml"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *Template) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetViewPosition returns the value of ViewPosition.
|
|
func (s *Template) GetViewPosition() int {
|
|
return s.ViewPosition
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *Template) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetTemplateType returns the value of TemplateType.
|
|
func (s *Template) GetTemplateType() TemplateTemplateType {
|
|
return s.TemplateType
|
|
}
|
|
|
|
// GetTemplateJson returns the value of TemplateJson.
|
|
func (s *Template) GetTemplateJson() jx.Raw {
|
|
return s.TemplateJson
|
|
}
|
|
|
|
// GetEncodedTemplateYaml returns the value of EncodedTemplateYaml.
|
|
func (s *Template) GetEncodedTemplateYaml() NilString {
|
|
return s.EncodedTemplateYaml
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *Template) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetViewPosition sets the value of ViewPosition.
|
|
func (s *Template) SetViewPosition(val int) {
|
|
s.ViewPosition = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *Template) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetTemplateType sets the value of TemplateType.
|
|
func (s *Template) SetTemplateType(val TemplateTemplateType) {
|
|
s.TemplateType = val
|
|
}
|
|
|
|
// SetTemplateJson sets the value of TemplateJson.
|
|
func (s *Template) SetTemplateJson(val jx.Raw) {
|
|
s.TemplateJson = val
|
|
}
|
|
|
|
// SetEncodedTemplateYaml sets the value of EncodedTemplateYaml.
|
|
func (s *Template) SetEncodedTemplateYaml(val NilString) {
|
|
s.EncodedTemplateYaml = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/TemplateRef
|
|
type TemplateRef struct {
|
|
TemplateUuid uuid.UUID `json:"templateUuid"`
|
|
TemplateType TemplateRefTemplateType `json:"templateType"`
|
|
}
|
|
|
|
// GetTemplateUuid returns the value of TemplateUuid.
|
|
func (s *TemplateRef) GetTemplateUuid() uuid.UUID {
|
|
return s.TemplateUuid
|
|
}
|
|
|
|
// GetTemplateType returns the value of TemplateType.
|
|
func (s *TemplateRef) GetTemplateType() TemplateRefTemplateType {
|
|
return s.TemplateType
|
|
}
|
|
|
|
// SetTemplateUuid sets the value of TemplateUuid.
|
|
func (s *TemplateRef) SetTemplateUuid(val uuid.UUID) {
|
|
s.TemplateUuid = val
|
|
}
|
|
|
|
// SetTemplateType sets the value of TemplateType.
|
|
func (s *TemplateRef) SetTemplateType(val TemplateRefTemplateType) {
|
|
s.TemplateType = val
|
|
}
|
|
|
|
type TemplateRefTemplateType string
|
|
|
|
const (
|
|
TemplateRefTemplateTypeXRAYJSON TemplateRefTemplateType = "XRAY_JSON"
|
|
TemplateRefTemplateTypeXRAYBASE64 TemplateRefTemplateType = "XRAY_BASE64"
|
|
TemplateRefTemplateTypeMIHOMO TemplateRefTemplateType = "MIHOMO"
|
|
TemplateRefTemplateTypeSTASH TemplateRefTemplateType = "STASH"
|
|
TemplateRefTemplateTypeCLASH TemplateRefTemplateType = "CLASH"
|
|
TemplateRefTemplateTypeSINGBOX TemplateRefTemplateType = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all TemplateRefTemplateType values.
|
|
func (TemplateRefTemplateType) AllValues() []TemplateRefTemplateType {
|
|
return []TemplateRefTemplateType{
|
|
TemplateRefTemplateTypeXRAYJSON,
|
|
TemplateRefTemplateTypeXRAYBASE64,
|
|
TemplateRefTemplateTypeMIHOMO,
|
|
TemplateRefTemplateTypeSTASH,
|
|
TemplateRefTemplateTypeCLASH,
|
|
TemplateRefTemplateTypeSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s TemplateRefTemplateType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case TemplateRefTemplateTypeXRAYJSON:
|
|
return []byte(s), nil
|
|
case TemplateRefTemplateTypeXRAYBASE64:
|
|
return []byte(s), nil
|
|
case TemplateRefTemplateTypeMIHOMO:
|
|
return []byte(s), nil
|
|
case TemplateRefTemplateTypeSTASH:
|
|
return []byte(s), nil
|
|
case TemplateRefTemplateTypeCLASH:
|
|
return []byte(s), nil
|
|
case TemplateRefTemplateTypeSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *TemplateRefTemplateType) UnmarshalText(data []byte) error {
|
|
switch TemplateRefTemplateType(data) {
|
|
case TemplateRefTemplateTypeXRAYJSON:
|
|
*s = TemplateRefTemplateTypeXRAYJSON
|
|
return nil
|
|
case TemplateRefTemplateTypeXRAYBASE64:
|
|
*s = TemplateRefTemplateTypeXRAYBASE64
|
|
return nil
|
|
case TemplateRefTemplateTypeMIHOMO:
|
|
*s = TemplateRefTemplateTypeMIHOMO
|
|
return nil
|
|
case TemplateRefTemplateTypeSTASH:
|
|
*s = TemplateRefTemplateTypeSTASH
|
|
return nil
|
|
case TemplateRefTemplateTypeCLASH:
|
|
*s = TemplateRefTemplateTypeCLASH
|
|
return nil
|
|
case TemplateRefTemplateTypeSINGBOX:
|
|
*s = TemplateRefTemplateTypeSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/TemplateResponse
|
|
type TemplateResponse struct {
|
|
Response Template `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TemplateResponse) GetResponse() Template {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TemplateResponse) SetResponse(val Template) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*TemplateResponse) subscriptionTemplateCreateTemplateRes() {}
|
|
func (*TemplateResponse) subscriptionTemplateGetTemplateByUuidRes() {}
|
|
func (*TemplateResponse) subscriptionTemplateUpdateTemplateRes() {}
|
|
|
|
type TemplateTemplateType string
|
|
|
|
const (
|
|
TemplateTemplateTypeXRAYJSON TemplateTemplateType = "XRAY_JSON"
|
|
TemplateTemplateTypeXRAYBASE64 TemplateTemplateType = "XRAY_BASE64"
|
|
TemplateTemplateTypeMIHOMO TemplateTemplateType = "MIHOMO"
|
|
TemplateTemplateTypeSTASH TemplateTemplateType = "STASH"
|
|
TemplateTemplateTypeCLASH TemplateTemplateType = "CLASH"
|
|
TemplateTemplateTypeSINGBOX TemplateTemplateType = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all TemplateTemplateType values.
|
|
func (TemplateTemplateType) AllValues() []TemplateTemplateType {
|
|
return []TemplateTemplateType{
|
|
TemplateTemplateTypeXRAYJSON,
|
|
TemplateTemplateTypeXRAYBASE64,
|
|
TemplateTemplateTypeMIHOMO,
|
|
TemplateTemplateTypeSTASH,
|
|
TemplateTemplateTypeCLASH,
|
|
TemplateTemplateTypeSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s TemplateTemplateType) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case TemplateTemplateTypeXRAYJSON:
|
|
return []byte(s), nil
|
|
case TemplateTemplateTypeXRAYBASE64:
|
|
return []byte(s), nil
|
|
case TemplateTemplateTypeMIHOMO:
|
|
return []byte(s), nil
|
|
case TemplateTemplateTypeSTASH:
|
|
return []byte(s), nil
|
|
case TemplateTemplateTypeCLASH:
|
|
return []byte(s), nil
|
|
case TemplateTemplateTypeSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *TemplateTemplateType) UnmarshalText(data []byte) error {
|
|
switch TemplateTemplateType(data) {
|
|
case TemplateTemplateTypeXRAYJSON:
|
|
*s = TemplateTemplateTypeXRAYJSON
|
|
return nil
|
|
case TemplateTemplateTypeXRAYBASE64:
|
|
*s = TemplateTemplateTypeXRAYBASE64
|
|
return nil
|
|
case TemplateTemplateTypeMIHOMO:
|
|
*s = TemplateTemplateTypeMIHOMO
|
|
return nil
|
|
case TemplateTemplateTypeSTASH:
|
|
*s = TemplateTemplateTypeSTASH
|
|
return nil
|
|
case TemplateTemplateTypeCLASH:
|
|
*s = TemplateTemplateTypeCLASH
|
|
return nil
|
|
case TemplateTemplateTypeSINGBOX:
|
|
*s = TemplateTemplateTypeSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/TemplatesResponse
|
|
type TemplatesResponse struct {
|
|
Response TemplatesResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TemplatesResponse) GetResponse() TemplatesResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TemplatesResponse) SetResponse(val TemplatesResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*TemplatesResponse) subscriptionTemplateGetAllTemplatesRes() {}
|
|
func (*TemplatesResponse) subscriptionTemplateReorderSubscriptionTemplatesRes() {}
|
|
|
|
type TemplatesResponseResponse struct {
|
|
Total float64 `json:"total"`
|
|
Templates []Template `json:"templates"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *TemplatesResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetTemplates returns the value of Templates.
|
|
func (s *TemplatesResponseResponse) GetTemplates() []Template {
|
|
return s.Templates
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *TemplatesResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetTemplates sets the value of Templates.
|
|
func (s *TemplatesResponseResponse) SetTemplates(val []Template) {
|
|
s.Templates = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/TokenResponse
|
|
type TokenResponse struct {
|
|
Response TokenResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TokenResponse) GetResponse() TokenResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TokenResponse) SetResponse(val TokenResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
type TokenResponseResponse struct {
|
|
AccessToken string `json:"accessToken"`
|
|
}
|
|
|
|
// GetAccessToken returns the value of AccessToken.
|
|
func (s *TokenResponseResponse) GetAccessToken() string {
|
|
return s.AccessToken
|
|
}
|
|
|
|
// SetAccessToken sets the value of AccessToken.
|
|
func (s *TokenResponseResponse) SetAccessToken(val string) {
|
|
s.AccessToken = val
|
|
}
|
|
|
|
// TokenResponseStatusCode wraps TokenResponse with StatusCode.
|
|
type TokenResponseStatusCode struct {
|
|
StatusCode int
|
|
Response TokenResponse
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *TokenResponseStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TokenResponseStatusCode) GetResponse() TokenResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *TokenResponseStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TokenResponseStatusCode) SetResponse(val TokenResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*TokenResponseStatusCode) authLoginRes() {}
|
|
func (*TokenResponseStatusCode) authOauth2CallbackRes() {}
|
|
func (*TokenResponseStatusCode) authPasskeyAuthenticationVerifyRes() {}
|
|
func (*TokenResponseStatusCode) authRegisterRes() {}
|
|
|
|
// Ref: #/components/schemas/TopNode
|
|
type TopNode struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
CountryCode string `json:"countryCode"`
|
|
Color string `json:"color"`
|
|
Name string `json:"name"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *TopNode) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *TopNode) GetCountryCode() string {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetColor returns the value of Color.
|
|
func (s *TopNode) GetColor() string {
|
|
return s.Color
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *TopNode) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *TopNode) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *TopNode) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *TopNode) SetCountryCode(val string) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetColor sets the value of Color.
|
|
func (s *TopNode) SetColor(val string) {
|
|
s.Color = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *TopNode) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *TopNode) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/TorrentBlockerReportsResponseResponse
|
|
type TorrentBlockerReportsResponseResponse struct {
|
|
Response TorrentBlockerReportsResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *TorrentBlockerReportsResponseResponse) GetResponse() TorrentBlockerReportsResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *TorrentBlockerReportsResponseResponse) SetResponse(val TorrentBlockerReportsResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*TorrentBlockerReportsResponseResponse) torrentBlockerReportsGetTorrentBlockerReportsRes() {}
|
|
func (*TorrentBlockerReportsResponseResponse) torrentBlockerReportsTruncateTorrentBlockerReportsRes() {
|
|
}
|
|
|
|
type TorrentBlockerReportsResponseResponseResponse struct {
|
|
Records []TorrentBlockerReportsResponseResponseResponseRecordsItem `json:"records"`
|
|
Total float64 `json:"total"`
|
|
}
|
|
|
|
// GetRecords returns the value of Records.
|
|
func (s *TorrentBlockerReportsResponseResponseResponse) GetRecords() []TorrentBlockerReportsResponseResponseResponseRecordsItem {
|
|
return s.Records
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *TorrentBlockerReportsResponseResponseResponse) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// SetRecords sets the value of Records.
|
|
func (s *TorrentBlockerReportsResponseResponseResponse) SetRecords(val []TorrentBlockerReportsResponseResponseResponseRecordsItem) {
|
|
s.Records = val
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *TorrentBlockerReportsResponseResponseResponse) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
type TorrentBlockerReportsResponseResponseResponseRecordsItem struct {
|
|
ID float64 `json:"id"`
|
|
UserId float64 `json:"userId"`
|
|
NodeId float64 `json:"nodeId"`
|
|
User TorrentBlockerReportsResponseResponseResponseRecordsItemUser `json:"user"`
|
|
Node Node `json:"node"`
|
|
Report ReportItem `json:"report"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetID() float64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetUserId returns the value of UserId.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetUserId() float64 {
|
|
return s.UserId
|
|
}
|
|
|
|
// GetNodeId returns the value of NodeId.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetNodeId() float64 {
|
|
return s.NodeId
|
|
}
|
|
|
|
// GetUser returns the value of User.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetUser() TorrentBlockerReportsResponseResponseResponseRecordsItemUser {
|
|
return s.User
|
|
}
|
|
|
|
// GetNode returns the value of Node.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetNode() Node {
|
|
return s.Node
|
|
}
|
|
|
|
// GetReport returns the value of Report.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetReport() ReportItem {
|
|
return s.Report
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetID(val float64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetUserId sets the value of UserId.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetUserId(val float64) {
|
|
s.UserId = val
|
|
}
|
|
|
|
// SetNodeId sets the value of NodeId.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetNodeId(val float64) {
|
|
s.NodeId = val
|
|
}
|
|
|
|
// SetUser sets the value of User.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetUser(val TorrentBlockerReportsResponseResponseResponseRecordsItemUser) {
|
|
s.User = val
|
|
}
|
|
|
|
// SetNode sets the value of Node.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetNode(val Node) {
|
|
s.Node = val
|
|
}
|
|
|
|
// SetReport sets the value of Report.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetReport(val ReportItem) {
|
|
s.Report = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItem) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
type TorrentBlockerReportsResponseResponseResponseRecordsItemUser struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItemUser) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItemUser) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItemUser) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *TorrentBlockerReportsResponseResponseResponseRecordsItemUser) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UnauthorizedError
|
|
type UnauthorizedError struct {
|
|
Message string `json:"message"`
|
|
StatusCode float64 `json:"statusCode"`
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *UnauthorizedError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *UnauthorizedError) GetStatusCode() float64 {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *UnauthorizedError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *UnauthorizedError) SetStatusCode(val float64) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
func (*UnauthorizedError) authLoginRes() {}
|
|
|
|
// Ref: #/components/schemas/UpdateConfigProfileRequest
|
|
type UpdateConfigProfileRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
Config *UpdateConfigProfileRequestConfig `json:"config"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateConfigProfileRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateConfigProfileRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *UpdateConfigProfileRequest) GetConfig() *UpdateConfigProfileRequestConfig {
|
|
return s.Config
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateConfigProfileRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateConfigProfileRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *UpdateConfigProfileRequest) SetConfig(val *UpdateConfigProfileRequestConfig) {
|
|
s.Config = val
|
|
}
|
|
|
|
type UpdateConfigProfileRequestConfig struct{}
|
|
|
|
// Ref: #/components/schemas/UpdateExternalSquadRequest
|
|
type UpdateExternalSquadRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
Templates []TemplateRef `json:"templates"`
|
|
SubscriptionSettings OptNilSubscriptionSettings `json:"subscriptionSettings"`
|
|
HostOverrides OptNilHostOverride `json:"hostOverrides"`
|
|
ResponseHeaders OptNilUpdateExternalSquadRequestResponseHeaders `json:"responseHeaders"`
|
|
HwidSettings OptNilHwidSettings `json:"hwidSettings"`
|
|
CustomRemarks OptNilCustomRemark `json:"customRemarks"`
|
|
SubpageConfigUuid OptNilUUID `json:"subpageConfigUuid"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateExternalSquadRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateExternalSquadRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetTemplates returns the value of Templates.
|
|
func (s *UpdateExternalSquadRequest) GetTemplates() []TemplateRef {
|
|
return s.Templates
|
|
}
|
|
|
|
// GetSubscriptionSettings returns the value of SubscriptionSettings.
|
|
func (s *UpdateExternalSquadRequest) GetSubscriptionSettings() OptNilSubscriptionSettings {
|
|
return s.SubscriptionSettings
|
|
}
|
|
|
|
// GetHostOverrides returns the value of HostOverrides.
|
|
func (s *UpdateExternalSquadRequest) GetHostOverrides() OptNilHostOverride {
|
|
return s.HostOverrides
|
|
}
|
|
|
|
// GetResponseHeaders returns the value of ResponseHeaders.
|
|
func (s *UpdateExternalSquadRequest) GetResponseHeaders() OptNilUpdateExternalSquadRequestResponseHeaders {
|
|
return s.ResponseHeaders
|
|
}
|
|
|
|
// GetHwidSettings returns the value of HwidSettings.
|
|
func (s *UpdateExternalSquadRequest) GetHwidSettings() OptNilHwidSettings {
|
|
return s.HwidSettings
|
|
}
|
|
|
|
// GetCustomRemarks returns the value of CustomRemarks.
|
|
func (s *UpdateExternalSquadRequest) GetCustomRemarks() OptNilCustomRemark {
|
|
return s.CustomRemarks
|
|
}
|
|
|
|
// GetSubpageConfigUuid returns the value of SubpageConfigUuid.
|
|
func (s *UpdateExternalSquadRequest) GetSubpageConfigUuid() OptNilUUID {
|
|
return s.SubpageConfigUuid
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateExternalSquadRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateExternalSquadRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetTemplates sets the value of Templates.
|
|
func (s *UpdateExternalSquadRequest) SetTemplates(val []TemplateRef) {
|
|
s.Templates = val
|
|
}
|
|
|
|
// SetSubscriptionSettings sets the value of SubscriptionSettings.
|
|
func (s *UpdateExternalSquadRequest) SetSubscriptionSettings(val OptNilSubscriptionSettings) {
|
|
s.SubscriptionSettings = val
|
|
}
|
|
|
|
// SetHostOverrides sets the value of HostOverrides.
|
|
func (s *UpdateExternalSquadRequest) SetHostOverrides(val OptNilHostOverride) {
|
|
s.HostOverrides = val
|
|
}
|
|
|
|
// SetResponseHeaders sets the value of ResponseHeaders.
|
|
func (s *UpdateExternalSquadRequest) SetResponseHeaders(val OptNilUpdateExternalSquadRequestResponseHeaders) {
|
|
s.ResponseHeaders = val
|
|
}
|
|
|
|
// SetHwidSettings sets the value of HwidSettings.
|
|
func (s *UpdateExternalSquadRequest) SetHwidSettings(val OptNilHwidSettings) {
|
|
s.HwidSettings = val
|
|
}
|
|
|
|
// SetCustomRemarks sets the value of CustomRemarks.
|
|
func (s *UpdateExternalSquadRequest) SetCustomRemarks(val OptNilCustomRemark) {
|
|
s.CustomRemarks = val
|
|
}
|
|
|
|
// SetSubpageConfigUuid sets the value of SubpageConfigUuid.
|
|
func (s *UpdateExternalSquadRequest) SetSubpageConfigUuid(val OptNilUUID) {
|
|
s.SubpageConfigUuid = val
|
|
}
|
|
|
|
type UpdateExternalSquadRequestResponseHeaders map[string]string
|
|
|
|
func (s *UpdateExternalSquadRequestResponseHeaders) init() UpdateExternalSquadRequestResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateHostRequest
|
|
type UpdateHostRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Inbound OptInboundRef `json:"inbound"`
|
|
Remark OptString `json:"remark"`
|
|
Address OptString `json:"address"`
|
|
Port OptInt `json:"port"`
|
|
Path OptNilString `json:"path"`
|
|
Sni OptNilString `json:"sni"`
|
|
Host OptNilString `json:"host"`
|
|
Alpn OptNilUpdateHostRequestAlpn `json:"alpn"`
|
|
Fingerprint OptNilString `json:"fingerprint"`
|
|
IsDisabled OptBool `json:"isDisabled"`
|
|
SecurityLayer OptUpdateHostRequestSecurityLayer `json:"securityLayer"`
|
|
XhttpExtraParams jx.Raw `json:"xhttpExtraParams"`
|
|
MuxParams jx.Raw `json:"muxParams"`
|
|
SockoptParams jx.Raw `json:"sockoptParams"`
|
|
FinalMask jx.Raw `json:"finalMask"`
|
|
ServerDescription OptNilString `json:"serverDescription"`
|
|
Tags []string `json:"tags"`
|
|
IsHidden OptBool `json:"isHidden"`
|
|
OverrideSniFromAddress OptBool `json:"overrideSniFromAddress"`
|
|
KeepSniBlank OptBool `json:"keepSniBlank"`
|
|
VlessRouteId OptNilInt `json:"vlessRouteId"`
|
|
PinnedPeerCertSha256 OptNilString `json:"pinnedPeerCertSha256"`
|
|
VerifyPeerCertByName OptNilString `json:"verifyPeerCertByName"`
|
|
ShuffleHost OptBool `json:"shuffleHost"`
|
|
MihomoX25519 OptBool `json:"mihomoX25519"`
|
|
MihomoIpVersion OptNilUpdateHostRequestMihomoIpVersion `json:"mihomoIpVersion"`
|
|
Nodes []uuid.UUID `json:"nodes"`
|
|
XrayJsonTemplateUuid OptNilUUID `json:"xrayJsonTemplateUuid"`
|
|
// Optional. Internal squads from which the host will be excluded.
|
|
ExcludedInternalSquads []uuid.UUID `json:"excludedInternalSquads"`
|
|
// Optional. Subscription types from which the host will be excluded from.
|
|
ExcludeFromSubscriptionTypes []UpdateHostRequestExcludeFromSubscriptionTypesItem `json:"excludeFromSubscriptionTypes"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateHostRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetInbound returns the value of Inbound.
|
|
func (s *UpdateHostRequest) GetInbound() OptInboundRef {
|
|
return s.Inbound
|
|
}
|
|
|
|
// GetRemark returns the value of Remark.
|
|
func (s *UpdateHostRequest) GetRemark() OptString {
|
|
return s.Remark
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *UpdateHostRequest) GetAddress() OptString {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *UpdateHostRequest) GetPort() OptInt {
|
|
return s.Port
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *UpdateHostRequest) GetPath() OptNilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetSni returns the value of Sni.
|
|
func (s *UpdateHostRequest) GetSni() OptNilString {
|
|
return s.Sni
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *UpdateHostRequest) GetHost() OptNilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetAlpn returns the value of Alpn.
|
|
func (s *UpdateHostRequest) GetAlpn() OptNilUpdateHostRequestAlpn {
|
|
return s.Alpn
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *UpdateHostRequest) GetFingerprint() OptNilString {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *UpdateHostRequest) GetIsDisabled() OptBool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetSecurityLayer returns the value of SecurityLayer.
|
|
func (s *UpdateHostRequest) GetSecurityLayer() OptUpdateHostRequestSecurityLayer {
|
|
return s.SecurityLayer
|
|
}
|
|
|
|
// GetXhttpExtraParams returns the value of XhttpExtraParams.
|
|
func (s *UpdateHostRequest) GetXhttpExtraParams() jx.Raw {
|
|
return s.XhttpExtraParams
|
|
}
|
|
|
|
// GetMuxParams returns the value of MuxParams.
|
|
func (s *UpdateHostRequest) GetMuxParams() jx.Raw {
|
|
return s.MuxParams
|
|
}
|
|
|
|
// GetSockoptParams returns the value of SockoptParams.
|
|
func (s *UpdateHostRequest) GetSockoptParams() jx.Raw {
|
|
return s.SockoptParams
|
|
}
|
|
|
|
// GetFinalMask returns the value of FinalMask.
|
|
func (s *UpdateHostRequest) GetFinalMask() jx.Raw {
|
|
return s.FinalMask
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *UpdateHostRequest) GetServerDescription() OptNilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *UpdateHostRequest) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetIsHidden returns the value of IsHidden.
|
|
func (s *UpdateHostRequest) GetIsHidden() OptBool {
|
|
return s.IsHidden
|
|
}
|
|
|
|
// GetOverrideSniFromAddress returns the value of OverrideSniFromAddress.
|
|
func (s *UpdateHostRequest) GetOverrideSniFromAddress() OptBool {
|
|
return s.OverrideSniFromAddress
|
|
}
|
|
|
|
// GetKeepSniBlank returns the value of KeepSniBlank.
|
|
func (s *UpdateHostRequest) GetKeepSniBlank() OptBool {
|
|
return s.KeepSniBlank
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *UpdateHostRequest) GetVlessRouteId() OptNilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// GetPinnedPeerCertSha256 returns the value of PinnedPeerCertSha256.
|
|
func (s *UpdateHostRequest) GetPinnedPeerCertSha256() OptNilString {
|
|
return s.PinnedPeerCertSha256
|
|
}
|
|
|
|
// GetVerifyPeerCertByName returns the value of VerifyPeerCertByName.
|
|
func (s *UpdateHostRequest) GetVerifyPeerCertByName() OptNilString {
|
|
return s.VerifyPeerCertByName
|
|
}
|
|
|
|
// GetShuffleHost returns the value of ShuffleHost.
|
|
func (s *UpdateHostRequest) GetShuffleHost() OptBool {
|
|
return s.ShuffleHost
|
|
}
|
|
|
|
// GetMihomoX25519 returns the value of MihomoX25519.
|
|
func (s *UpdateHostRequest) GetMihomoX25519() OptBool {
|
|
return s.MihomoX25519
|
|
}
|
|
|
|
// GetMihomoIpVersion returns the value of MihomoIpVersion.
|
|
func (s *UpdateHostRequest) GetMihomoIpVersion() OptNilUpdateHostRequestMihomoIpVersion {
|
|
return s.MihomoIpVersion
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *UpdateHostRequest) GetNodes() []uuid.UUID {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetXrayJsonTemplateUuid returns the value of XrayJsonTemplateUuid.
|
|
func (s *UpdateHostRequest) GetXrayJsonTemplateUuid() OptNilUUID {
|
|
return s.XrayJsonTemplateUuid
|
|
}
|
|
|
|
// GetExcludedInternalSquads returns the value of ExcludedInternalSquads.
|
|
func (s *UpdateHostRequest) GetExcludedInternalSquads() []uuid.UUID {
|
|
return s.ExcludedInternalSquads
|
|
}
|
|
|
|
// GetExcludeFromSubscriptionTypes returns the value of ExcludeFromSubscriptionTypes.
|
|
func (s *UpdateHostRequest) GetExcludeFromSubscriptionTypes() []UpdateHostRequestExcludeFromSubscriptionTypesItem {
|
|
return s.ExcludeFromSubscriptionTypes
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateHostRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetInbound sets the value of Inbound.
|
|
func (s *UpdateHostRequest) SetInbound(val OptInboundRef) {
|
|
s.Inbound = val
|
|
}
|
|
|
|
// SetRemark sets the value of Remark.
|
|
func (s *UpdateHostRequest) SetRemark(val OptString) {
|
|
s.Remark = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *UpdateHostRequest) SetAddress(val OptString) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *UpdateHostRequest) SetPort(val OptInt) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *UpdateHostRequest) SetPath(val OptNilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetSni sets the value of Sni.
|
|
func (s *UpdateHostRequest) SetSni(val OptNilString) {
|
|
s.Sni = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *UpdateHostRequest) SetHost(val OptNilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetAlpn sets the value of Alpn.
|
|
func (s *UpdateHostRequest) SetAlpn(val OptNilUpdateHostRequestAlpn) {
|
|
s.Alpn = val
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *UpdateHostRequest) SetFingerprint(val OptNilString) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *UpdateHostRequest) SetIsDisabled(val OptBool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetSecurityLayer sets the value of SecurityLayer.
|
|
func (s *UpdateHostRequest) SetSecurityLayer(val OptUpdateHostRequestSecurityLayer) {
|
|
s.SecurityLayer = val
|
|
}
|
|
|
|
// SetXhttpExtraParams sets the value of XhttpExtraParams.
|
|
func (s *UpdateHostRequest) SetXhttpExtraParams(val jx.Raw) {
|
|
s.XhttpExtraParams = val
|
|
}
|
|
|
|
// SetMuxParams sets the value of MuxParams.
|
|
func (s *UpdateHostRequest) SetMuxParams(val jx.Raw) {
|
|
s.MuxParams = val
|
|
}
|
|
|
|
// SetSockoptParams sets the value of SockoptParams.
|
|
func (s *UpdateHostRequest) SetSockoptParams(val jx.Raw) {
|
|
s.SockoptParams = val
|
|
}
|
|
|
|
// SetFinalMask sets the value of FinalMask.
|
|
func (s *UpdateHostRequest) SetFinalMask(val jx.Raw) {
|
|
s.FinalMask = val
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *UpdateHostRequest) SetServerDescription(val OptNilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *UpdateHostRequest) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetIsHidden sets the value of IsHidden.
|
|
func (s *UpdateHostRequest) SetIsHidden(val OptBool) {
|
|
s.IsHidden = val
|
|
}
|
|
|
|
// SetOverrideSniFromAddress sets the value of OverrideSniFromAddress.
|
|
func (s *UpdateHostRequest) SetOverrideSniFromAddress(val OptBool) {
|
|
s.OverrideSniFromAddress = val
|
|
}
|
|
|
|
// SetKeepSniBlank sets the value of KeepSniBlank.
|
|
func (s *UpdateHostRequest) SetKeepSniBlank(val OptBool) {
|
|
s.KeepSniBlank = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *UpdateHostRequest) SetVlessRouteId(val OptNilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// SetPinnedPeerCertSha256 sets the value of PinnedPeerCertSha256.
|
|
func (s *UpdateHostRequest) SetPinnedPeerCertSha256(val OptNilString) {
|
|
s.PinnedPeerCertSha256 = val
|
|
}
|
|
|
|
// SetVerifyPeerCertByName sets the value of VerifyPeerCertByName.
|
|
func (s *UpdateHostRequest) SetVerifyPeerCertByName(val OptNilString) {
|
|
s.VerifyPeerCertByName = val
|
|
}
|
|
|
|
// SetShuffleHost sets the value of ShuffleHost.
|
|
func (s *UpdateHostRequest) SetShuffleHost(val OptBool) {
|
|
s.ShuffleHost = val
|
|
}
|
|
|
|
// SetMihomoX25519 sets the value of MihomoX25519.
|
|
func (s *UpdateHostRequest) SetMihomoX25519(val OptBool) {
|
|
s.MihomoX25519 = val
|
|
}
|
|
|
|
// SetMihomoIpVersion sets the value of MihomoIpVersion.
|
|
func (s *UpdateHostRequest) SetMihomoIpVersion(val OptNilUpdateHostRequestMihomoIpVersion) {
|
|
s.MihomoIpVersion = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *UpdateHostRequest) SetNodes(val []uuid.UUID) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetXrayJsonTemplateUuid sets the value of XrayJsonTemplateUuid.
|
|
func (s *UpdateHostRequest) SetXrayJsonTemplateUuid(val OptNilUUID) {
|
|
s.XrayJsonTemplateUuid = val
|
|
}
|
|
|
|
// SetExcludedInternalSquads sets the value of ExcludedInternalSquads.
|
|
func (s *UpdateHostRequest) SetExcludedInternalSquads(val []uuid.UUID) {
|
|
s.ExcludedInternalSquads = val
|
|
}
|
|
|
|
// SetExcludeFromSubscriptionTypes sets the value of ExcludeFromSubscriptionTypes.
|
|
func (s *UpdateHostRequest) SetExcludeFromSubscriptionTypes(val []UpdateHostRequestExcludeFromSubscriptionTypesItem) {
|
|
s.ExcludeFromSubscriptionTypes = val
|
|
}
|
|
|
|
type UpdateHostRequestAlpn string
|
|
|
|
const (
|
|
UpdateHostRequestAlpnH3 UpdateHostRequestAlpn = "h3"
|
|
UpdateHostRequestAlpnH2 UpdateHostRequestAlpn = "h2"
|
|
UpdateHostRequestAlpnHTTP11 UpdateHostRequestAlpn = "http/1.1"
|
|
UpdateHostRequestAlpnH2HTTP11 UpdateHostRequestAlpn = "h2,http/1.1"
|
|
UpdateHostRequestAlpnH3H2HTTP11 UpdateHostRequestAlpn = "h3,h2,http/1.1"
|
|
UpdateHostRequestAlpnH3H2 UpdateHostRequestAlpn = "h3,h2"
|
|
)
|
|
|
|
// AllValues returns all UpdateHostRequestAlpn values.
|
|
func (UpdateHostRequestAlpn) AllValues() []UpdateHostRequestAlpn {
|
|
return []UpdateHostRequestAlpn{
|
|
UpdateHostRequestAlpnH3,
|
|
UpdateHostRequestAlpnH2,
|
|
UpdateHostRequestAlpnHTTP11,
|
|
UpdateHostRequestAlpnH2HTTP11,
|
|
UpdateHostRequestAlpnH3H2HTTP11,
|
|
UpdateHostRequestAlpnH3H2,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateHostRequestAlpn) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateHostRequestAlpnH3:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestAlpnH2:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestAlpnHTTP11:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestAlpnH2HTTP11:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestAlpnH3H2HTTP11:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestAlpnH3H2:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateHostRequestAlpn) UnmarshalText(data []byte) error {
|
|
switch UpdateHostRequestAlpn(data) {
|
|
case UpdateHostRequestAlpnH3:
|
|
*s = UpdateHostRequestAlpnH3
|
|
return nil
|
|
case UpdateHostRequestAlpnH2:
|
|
*s = UpdateHostRequestAlpnH2
|
|
return nil
|
|
case UpdateHostRequestAlpnHTTP11:
|
|
*s = UpdateHostRequestAlpnHTTP11
|
|
return nil
|
|
case UpdateHostRequestAlpnH2HTTP11:
|
|
*s = UpdateHostRequestAlpnH2HTTP11
|
|
return nil
|
|
case UpdateHostRequestAlpnH3H2HTTP11:
|
|
*s = UpdateHostRequestAlpnH3H2HTTP11
|
|
return nil
|
|
case UpdateHostRequestAlpnH3H2:
|
|
*s = UpdateHostRequestAlpnH3H2
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateHostRequestExcludeFromSubscriptionTypesItem string
|
|
|
|
const (
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON UpdateHostRequestExcludeFromSubscriptionTypesItem = "XRAY_JSON"
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64 UpdateHostRequestExcludeFromSubscriptionTypesItem = "XRAY_BASE64"
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemMIHOMO UpdateHostRequestExcludeFromSubscriptionTypesItem = "MIHOMO"
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemSTASH UpdateHostRequestExcludeFromSubscriptionTypesItem = "STASH"
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemCLASH UpdateHostRequestExcludeFromSubscriptionTypesItem = "CLASH"
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemSINGBOX UpdateHostRequestExcludeFromSubscriptionTypesItem = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all UpdateHostRequestExcludeFromSubscriptionTypesItem values.
|
|
func (UpdateHostRequestExcludeFromSubscriptionTypesItem) AllValues() []UpdateHostRequestExcludeFromSubscriptionTypesItem {
|
|
return []UpdateHostRequestExcludeFromSubscriptionTypesItem{
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON,
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64,
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemMIHOMO,
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemSTASH,
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemCLASH,
|
|
UpdateHostRequestExcludeFromSubscriptionTypesItemSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateHostRequestExcludeFromSubscriptionTypesItem) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateHostRequestExcludeFromSubscriptionTypesItem) UnmarshalText(data []byte) error {
|
|
switch UpdateHostRequestExcludeFromSubscriptionTypesItem(data) {
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYJSON
|
|
return nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemXRAYBASE64
|
|
return nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemMIHOMO
|
|
return nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemSTASH
|
|
return nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemCLASH
|
|
return nil
|
|
case UpdateHostRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
*s = UpdateHostRequestExcludeFromSubscriptionTypesItemSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateHostRequestMihomoIpVersion string
|
|
|
|
const (
|
|
UpdateHostRequestMihomoIpVersionDual UpdateHostRequestMihomoIpVersion = "dual"
|
|
UpdateHostRequestMihomoIpVersionIpv4 UpdateHostRequestMihomoIpVersion = "ipv4"
|
|
UpdateHostRequestMihomoIpVersionIpv6 UpdateHostRequestMihomoIpVersion = "ipv6"
|
|
UpdateHostRequestMihomoIpVersionIpv4Prefer UpdateHostRequestMihomoIpVersion = "ipv4-prefer"
|
|
UpdateHostRequestMihomoIpVersionIpv6Prefer UpdateHostRequestMihomoIpVersion = "ipv6-prefer"
|
|
)
|
|
|
|
// AllValues returns all UpdateHostRequestMihomoIpVersion values.
|
|
func (UpdateHostRequestMihomoIpVersion) AllValues() []UpdateHostRequestMihomoIpVersion {
|
|
return []UpdateHostRequestMihomoIpVersion{
|
|
UpdateHostRequestMihomoIpVersionDual,
|
|
UpdateHostRequestMihomoIpVersionIpv4,
|
|
UpdateHostRequestMihomoIpVersionIpv6,
|
|
UpdateHostRequestMihomoIpVersionIpv4Prefer,
|
|
UpdateHostRequestMihomoIpVersionIpv6Prefer,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateHostRequestMihomoIpVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateHostRequestMihomoIpVersionDual:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestMihomoIpVersionIpv4:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestMihomoIpVersionIpv6:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestMihomoIpVersionIpv4Prefer:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestMihomoIpVersionIpv6Prefer:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateHostRequestMihomoIpVersion) UnmarshalText(data []byte) error {
|
|
switch UpdateHostRequestMihomoIpVersion(data) {
|
|
case UpdateHostRequestMihomoIpVersionDual:
|
|
*s = UpdateHostRequestMihomoIpVersionDual
|
|
return nil
|
|
case UpdateHostRequestMihomoIpVersionIpv4:
|
|
*s = UpdateHostRequestMihomoIpVersionIpv4
|
|
return nil
|
|
case UpdateHostRequestMihomoIpVersionIpv6:
|
|
*s = UpdateHostRequestMihomoIpVersionIpv6
|
|
return nil
|
|
case UpdateHostRequestMihomoIpVersionIpv4Prefer:
|
|
*s = UpdateHostRequestMihomoIpVersionIpv4Prefer
|
|
return nil
|
|
case UpdateHostRequestMihomoIpVersionIpv6Prefer:
|
|
*s = UpdateHostRequestMihomoIpVersionIpv6Prefer
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateHostRequestSecurityLayer string
|
|
|
|
const (
|
|
UpdateHostRequestSecurityLayerDEFAULT UpdateHostRequestSecurityLayer = "DEFAULT"
|
|
UpdateHostRequestSecurityLayerTLS UpdateHostRequestSecurityLayer = "TLS"
|
|
UpdateHostRequestSecurityLayerNONE UpdateHostRequestSecurityLayer = "NONE"
|
|
)
|
|
|
|
// AllValues returns all UpdateHostRequestSecurityLayer values.
|
|
func (UpdateHostRequestSecurityLayer) AllValues() []UpdateHostRequestSecurityLayer {
|
|
return []UpdateHostRequestSecurityLayer{
|
|
UpdateHostRequestSecurityLayerDEFAULT,
|
|
UpdateHostRequestSecurityLayerTLS,
|
|
UpdateHostRequestSecurityLayerNONE,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateHostRequestSecurityLayer) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateHostRequestSecurityLayerDEFAULT:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestSecurityLayerTLS:
|
|
return []byte(s), nil
|
|
case UpdateHostRequestSecurityLayerNONE:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateHostRequestSecurityLayer) UnmarshalText(data []byte) error {
|
|
switch UpdateHostRequestSecurityLayer(data) {
|
|
case UpdateHostRequestSecurityLayerDEFAULT:
|
|
*s = UpdateHostRequestSecurityLayerDEFAULT
|
|
return nil
|
|
case UpdateHostRequestSecurityLayerTLS:
|
|
*s = UpdateHostRequestSecurityLayerTLS
|
|
return nil
|
|
case UpdateHostRequestSecurityLayerNONE:
|
|
*s = UpdateHostRequestSecurityLayerNONE
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateInfraBillingNodeRequest
|
|
type UpdateInfraBillingNodeRequest struct {
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
NextBillingAt time.Time `json:"nextBillingAt"`
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *UpdateInfraBillingNodeRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// GetNextBillingAt returns the value of NextBillingAt.
|
|
func (s *UpdateInfraBillingNodeRequest) GetNextBillingAt() time.Time {
|
|
return s.NextBillingAt
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *UpdateInfraBillingNodeRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
// SetNextBillingAt sets the value of NextBillingAt.
|
|
func (s *UpdateInfraBillingNodeRequest) SetNextBillingAt(val time.Time) {
|
|
s.NextBillingAt = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateInfraProviderRequest
|
|
type UpdateInfraProviderRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
FaviconLink OptNilURI `json:"faviconLink"`
|
|
LoginUrl OptNilURI `json:"loginUrl"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateInfraProviderRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateInfraProviderRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetFaviconLink returns the value of FaviconLink.
|
|
func (s *UpdateInfraProviderRequest) GetFaviconLink() OptNilURI {
|
|
return s.FaviconLink
|
|
}
|
|
|
|
// GetLoginUrl returns the value of LoginUrl.
|
|
func (s *UpdateInfraProviderRequest) GetLoginUrl() OptNilURI {
|
|
return s.LoginUrl
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateInfraProviderRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateInfraProviderRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetFaviconLink sets the value of FaviconLink.
|
|
func (s *UpdateInfraProviderRequest) SetFaviconLink(val OptNilURI) {
|
|
s.FaviconLink = val
|
|
}
|
|
|
|
// SetLoginUrl sets the value of LoginUrl.
|
|
func (s *UpdateInfraProviderRequest) SetLoginUrl(val OptNilURI) {
|
|
s.LoginUrl = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateInternalSquadRequest
|
|
type UpdateInternalSquadRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
Inbounds []uuid.UUID `json:"inbounds"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateInternalSquadRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateInternalSquadRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetInbounds returns the value of Inbounds.
|
|
func (s *UpdateInternalSquadRequest) GetInbounds() []uuid.UUID {
|
|
return s.Inbounds
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateInternalSquadRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateInternalSquadRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetInbounds sets the value of Inbounds.
|
|
func (s *UpdateInternalSquadRequest) SetInbounds(val []uuid.UUID) {
|
|
s.Inbounds = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateManyHostsRequest
|
|
type UpdateManyHostsRequest struct {
|
|
Inbound OptInboundRef `json:"inbound"`
|
|
Remark OptString `json:"remark"`
|
|
Address OptString `json:"address"`
|
|
Port OptInt `json:"port"`
|
|
Path OptNilString `json:"path"`
|
|
Sni OptNilString `json:"sni"`
|
|
Host OptNilString `json:"host"`
|
|
Alpn OptNilUpdateManyHostsRequestAlpn `json:"alpn"`
|
|
Fingerprint OptNilString `json:"fingerprint"`
|
|
IsDisabled OptBool `json:"isDisabled"`
|
|
SecurityLayer OptUpdateManyHostsRequestSecurityLayer `json:"securityLayer"`
|
|
XhttpExtraParams jx.Raw `json:"xhttpExtraParams"`
|
|
MuxParams jx.Raw `json:"muxParams"`
|
|
SockoptParams jx.Raw `json:"sockoptParams"`
|
|
FinalMask jx.Raw `json:"finalMask"`
|
|
ServerDescription OptNilString `json:"serverDescription"`
|
|
Tags []string `json:"tags"`
|
|
IsHidden OptBool `json:"isHidden"`
|
|
OverrideSniFromAddress OptBool `json:"overrideSniFromAddress"`
|
|
KeepSniBlank OptBool `json:"keepSniBlank"`
|
|
VlessRouteId OptNilInt `json:"vlessRouteId"`
|
|
PinnedPeerCertSha256 OptNilString `json:"pinnedPeerCertSha256"`
|
|
VerifyPeerCertByName OptNilString `json:"verifyPeerCertByName"`
|
|
ShuffleHost OptBool `json:"shuffleHost"`
|
|
MihomoX25519 OptBool `json:"mihomoX25519"`
|
|
MihomoIpVersion OptNilUpdateManyHostsRequestMihomoIpVersion `json:"mihomoIpVersion"`
|
|
Nodes []uuid.UUID `json:"nodes"`
|
|
XrayJsonTemplateUuid OptNilUUID `json:"xrayJsonTemplateUuid"`
|
|
// Optional. Internal squads from which the host will be excluded.
|
|
ExcludedInternalSquads []uuid.UUID `json:"excludedInternalSquads"`
|
|
// Optional. Subscription types from which the host will be excluded from.
|
|
ExcludeFromSubscriptionTypes []UpdateManyHostsRequestExcludeFromSubscriptionTypesItem `json:"excludeFromSubscriptionTypes"`
|
|
Uuids []uuid.UUID `json:"uuids"`
|
|
}
|
|
|
|
// GetInbound returns the value of Inbound.
|
|
func (s *UpdateManyHostsRequest) GetInbound() OptInboundRef {
|
|
return s.Inbound
|
|
}
|
|
|
|
// GetRemark returns the value of Remark.
|
|
func (s *UpdateManyHostsRequest) GetRemark() OptString {
|
|
return s.Remark
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *UpdateManyHostsRequest) GetAddress() OptString {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *UpdateManyHostsRequest) GetPort() OptInt {
|
|
return s.Port
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *UpdateManyHostsRequest) GetPath() OptNilString {
|
|
return s.Path
|
|
}
|
|
|
|
// GetSni returns the value of Sni.
|
|
func (s *UpdateManyHostsRequest) GetSni() OptNilString {
|
|
return s.Sni
|
|
}
|
|
|
|
// GetHost returns the value of Host.
|
|
func (s *UpdateManyHostsRequest) GetHost() OptNilString {
|
|
return s.Host
|
|
}
|
|
|
|
// GetAlpn returns the value of Alpn.
|
|
func (s *UpdateManyHostsRequest) GetAlpn() OptNilUpdateManyHostsRequestAlpn {
|
|
return s.Alpn
|
|
}
|
|
|
|
// GetFingerprint returns the value of Fingerprint.
|
|
func (s *UpdateManyHostsRequest) GetFingerprint() OptNilString {
|
|
return s.Fingerprint
|
|
}
|
|
|
|
// GetIsDisabled returns the value of IsDisabled.
|
|
func (s *UpdateManyHostsRequest) GetIsDisabled() OptBool {
|
|
return s.IsDisabled
|
|
}
|
|
|
|
// GetSecurityLayer returns the value of SecurityLayer.
|
|
func (s *UpdateManyHostsRequest) GetSecurityLayer() OptUpdateManyHostsRequestSecurityLayer {
|
|
return s.SecurityLayer
|
|
}
|
|
|
|
// GetXhttpExtraParams returns the value of XhttpExtraParams.
|
|
func (s *UpdateManyHostsRequest) GetXhttpExtraParams() jx.Raw {
|
|
return s.XhttpExtraParams
|
|
}
|
|
|
|
// GetMuxParams returns the value of MuxParams.
|
|
func (s *UpdateManyHostsRequest) GetMuxParams() jx.Raw {
|
|
return s.MuxParams
|
|
}
|
|
|
|
// GetSockoptParams returns the value of SockoptParams.
|
|
func (s *UpdateManyHostsRequest) GetSockoptParams() jx.Raw {
|
|
return s.SockoptParams
|
|
}
|
|
|
|
// GetFinalMask returns the value of FinalMask.
|
|
func (s *UpdateManyHostsRequest) GetFinalMask() jx.Raw {
|
|
return s.FinalMask
|
|
}
|
|
|
|
// GetServerDescription returns the value of ServerDescription.
|
|
func (s *UpdateManyHostsRequest) GetServerDescription() OptNilString {
|
|
return s.ServerDescription
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *UpdateManyHostsRequest) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetIsHidden returns the value of IsHidden.
|
|
func (s *UpdateManyHostsRequest) GetIsHidden() OptBool {
|
|
return s.IsHidden
|
|
}
|
|
|
|
// GetOverrideSniFromAddress returns the value of OverrideSniFromAddress.
|
|
func (s *UpdateManyHostsRequest) GetOverrideSniFromAddress() OptBool {
|
|
return s.OverrideSniFromAddress
|
|
}
|
|
|
|
// GetKeepSniBlank returns the value of KeepSniBlank.
|
|
func (s *UpdateManyHostsRequest) GetKeepSniBlank() OptBool {
|
|
return s.KeepSniBlank
|
|
}
|
|
|
|
// GetVlessRouteId returns the value of VlessRouteId.
|
|
func (s *UpdateManyHostsRequest) GetVlessRouteId() OptNilInt {
|
|
return s.VlessRouteId
|
|
}
|
|
|
|
// GetPinnedPeerCertSha256 returns the value of PinnedPeerCertSha256.
|
|
func (s *UpdateManyHostsRequest) GetPinnedPeerCertSha256() OptNilString {
|
|
return s.PinnedPeerCertSha256
|
|
}
|
|
|
|
// GetVerifyPeerCertByName returns the value of VerifyPeerCertByName.
|
|
func (s *UpdateManyHostsRequest) GetVerifyPeerCertByName() OptNilString {
|
|
return s.VerifyPeerCertByName
|
|
}
|
|
|
|
// GetShuffleHost returns the value of ShuffleHost.
|
|
func (s *UpdateManyHostsRequest) GetShuffleHost() OptBool {
|
|
return s.ShuffleHost
|
|
}
|
|
|
|
// GetMihomoX25519 returns the value of MihomoX25519.
|
|
func (s *UpdateManyHostsRequest) GetMihomoX25519() OptBool {
|
|
return s.MihomoX25519
|
|
}
|
|
|
|
// GetMihomoIpVersion returns the value of MihomoIpVersion.
|
|
func (s *UpdateManyHostsRequest) GetMihomoIpVersion() OptNilUpdateManyHostsRequestMihomoIpVersion {
|
|
return s.MihomoIpVersion
|
|
}
|
|
|
|
// GetNodes returns the value of Nodes.
|
|
func (s *UpdateManyHostsRequest) GetNodes() []uuid.UUID {
|
|
return s.Nodes
|
|
}
|
|
|
|
// GetXrayJsonTemplateUuid returns the value of XrayJsonTemplateUuid.
|
|
func (s *UpdateManyHostsRequest) GetXrayJsonTemplateUuid() OptNilUUID {
|
|
return s.XrayJsonTemplateUuid
|
|
}
|
|
|
|
// GetExcludedInternalSquads returns the value of ExcludedInternalSquads.
|
|
func (s *UpdateManyHostsRequest) GetExcludedInternalSquads() []uuid.UUID {
|
|
return s.ExcludedInternalSquads
|
|
}
|
|
|
|
// GetExcludeFromSubscriptionTypes returns the value of ExcludeFromSubscriptionTypes.
|
|
func (s *UpdateManyHostsRequest) GetExcludeFromSubscriptionTypes() []UpdateManyHostsRequestExcludeFromSubscriptionTypesItem {
|
|
return s.ExcludeFromSubscriptionTypes
|
|
}
|
|
|
|
// GetUuids returns the value of Uuids.
|
|
func (s *UpdateManyHostsRequest) GetUuids() []uuid.UUID {
|
|
return s.Uuids
|
|
}
|
|
|
|
// SetInbound sets the value of Inbound.
|
|
func (s *UpdateManyHostsRequest) SetInbound(val OptInboundRef) {
|
|
s.Inbound = val
|
|
}
|
|
|
|
// SetRemark sets the value of Remark.
|
|
func (s *UpdateManyHostsRequest) SetRemark(val OptString) {
|
|
s.Remark = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *UpdateManyHostsRequest) SetAddress(val OptString) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *UpdateManyHostsRequest) SetPort(val OptInt) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *UpdateManyHostsRequest) SetPath(val OptNilString) {
|
|
s.Path = val
|
|
}
|
|
|
|
// SetSni sets the value of Sni.
|
|
func (s *UpdateManyHostsRequest) SetSni(val OptNilString) {
|
|
s.Sni = val
|
|
}
|
|
|
|
// SetHost sets the value of Host.
|
|
func (s *UpdateManyHostsRequest) SetHost(val OptNilString) {
|
|
s.Host = val
|
|
}
|
|
|
|
// SetAlpn sets the value of Alpn.
|
|
func (s *UpdateManyHostsRequest) SetAlpn(val OptNilUpdateManyHostsRequestAlpn) {
|
|
s.Alpn = val
|
|
}
|
|
|
|
// SetFingerprint sets the value of Fingerprint.
|
|
func (s *UpdateManyHostsRequest) SetFingerprint(val OptNilString) {
|
|
s.Fingerprint = val
|
|
}
|
|
|
|
// SetIsDisabled sets the value of IsDisabled.
|
|
func (s *UpdateManyHostsRequest) SetIsDisabled(val OptBool) {
|
|
s.IsDisabled = val
|
|
}
|
|
|
|
// SetSecurityLayer sets the value of SecurityLayer.
|
|
func (s *UpdateManyHostsRequest) SetSecurityLayer(val OptUpdateManyHostsRequestSecurityLayer) {
|
|
s.SecurityLayer = val
|
|
}
|
|
|
|
// SetXhttpExtraParams sets the value of XhttpExtraParams.
|
|
func (s *UpdateManyHostsRequest) SetXhttpExtraParams(val jx.Raw) {
|
|
s.XhttpExtraParams = val
|
|
}
|
|
|
|
// SetMuxParams sets the value of MuxParams.
|
|
func (s *UpdateManyHostsRequest) SetMuxParams(val jx.Raw) {
|
|
s.MuxParams = val
|
|
}
|
|
|
|
// SetSockoptParams sets the value of SockoptParams.
|
|
func (s *UpdateManyHostsRequest) SetSockoptParams(val jx.Raw) {
|
|
s.SockoptParams = val
|
|
}
|
|
|
|
// SetFinalMask sets the value of FinalMask.
|
|
func (s *UpdateManyHostsRequest) SetFinalMask(val jx.Raw) {
|
|
s.FinalMask = val
|
|
}
|
|
|
|
// SetServerDescription sets the value of ServerDescription.
|
|
func (s *UpdateManyHostsRequest) SetServerDescription(val OptNilString) {
|
|
s.ServerDescription = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *UpdateManyHostsRequest) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetIsHidden sets the value of IsHidden.
|
|
func (s *UpdateManyHostsRequest) SetIsHidden(val OptBool) {
|
|
s.IsHidden = val
|
|
}
|
|
|
|
// SetOverrideSniFromAddress sets the value of OverrideSniFromAddress.
|
|
func (s *UpdateManyHostsRequest) SetOverrideSniFromAddress(val OptBool) {
|
|
s.OverrideSniFromAddress = val
|
|
}
|
|
|
|
// SetKeepSniBlank sets the value of KeepSniBlank.
|
|
func (s *UpdateManyHostsRequest) SetKeepSniBlank(val OptBool) {
|
|
s.KeepSniBlank = val
|
|
}
|
|
|
|
// SetVlessRouteId sets the value of VlessRouteId.
|
|
func (s *UpdateManyHostsRequest) SetVlessRouteId(val OptNilInt) {
|
|
s.VlessRouteId = val
|
|
}
|
|
|
|
// SetPinnedPeerCertSha256 sets the value of PinnedPeerCertSha256.
|
|
func (s *UpdateManyHostsRequest) SetPinnedPeerCertSha256(val OptNilString) {
|
|
s.PinnedPeerCertSha256 = val
|
|
}
|
|
|
|
// SetVerifyPeerCertByName sets the value of VerifyPeerCertByName.
|
|
func (s *UpdateManyHostsRequest) SetVerifyPeerCertByName(val OptNilString) {
|
|
s.VerifyPeerCertByName = val
|
|
}
|
|
|
|
// SetShuffleHost sets the value of ShuffleHost.
|
|
func (s *UpdateManyHostsRequest) SetShuffleHost(val OptBool) {
|
|
s.ShuffleHost = val
|
|
}
|
|
|
|
// SetMihomoX25519 sets the value of MihomoX25519.
|
|
func (s *UpdateManyHostsRequest) SetMihomoX25519(val OptBool) {
|
|
s.MihomoX25519 = val
|
|
}
|
|
|
|
// SetMihomoIpVersion sets the value of MihomoIpVersion.
|
|
func (s *UpdateManyHostsRequest) SetMihomoIpVersion(val OptNilUpdateManyHostsRequestMihomoIpVersion) {
|
|
s.MihomoIpVersion = val
|
|
}
|
|
|
|
// SetNodes sets the value of Nodes.
|
|
func (s *UpdateManyHostsRequest) SetNodes(val []uuid.UUID) {
|
|
s.Nodes = val
|
|
}
|
|
|
|
// SetXrayJsonTemplateUuid sets the value of XrayJsonTemplateUuid.
|
|
func (s *UpdateManyHostsRequest) SetXrayJsonTemplateUuid(val OptNilUUID) {
|
|
s.XrayJsonTemplateUuid = val
|
|
}
|
|
|
|
// SetExcludedInternalSquads sets the value of ExcludedInternalSquads.
|
|
func (s *UpdateManyHostsRequest) SetExcludedInternalSquads(val []uuid.UUID) {
|
|
s.ExcludedInternalSquads = val
|
|
}
|
|
|
|
// SetExcludeFromSubscriptionTypes sets the value of ExcludeFromSubscriptionTypes.
|
|
func (s *UpdateManyHostsRequest) SetExcludeFromSubscriptionTypes(val []UpdateManyHostsRequestExcludeFromSubscriptionTypesItem) {
|
|
s.ExcludeFromSubscriptionTypes = val
|
|
}
|
|
|
|
// SetUuids sets the value of Uuids.
|
|
func (s *UpdateManyHostsRequest) SetUuids(val []uuid.UUID) {
|
|
s.Uuids = val
|
|
}
|
|
|
|
type UpdateManyHostsRequestAlpn string
|
|
|
|
const (
|
|
UpdateManyHostsRequestAlpnH3 UpdateManyHostsRequestAlpn = "h3"
|
|
UpdateManyHostsRequestAlpnH2 UpdateManyHostsRequestAlpn = "h2"
|
|
UpdateManyHostsRequestAlpnHTTP11 UpdateManyHostsRequestAlpn = "http/1.1"
|
|
UpdateManyHostsRequestAlpnH2HTTP11 UpdateManyHostsRequestAlpn = "h2,http/1.1"
|
|
UpdateManyHostsRequestAlpnH3H2HTTP11 UpdateManyHostsRequestAlpn = "h3,h2,http/1.1"
|
|
UpdateManyHostsRequestAlpnH3H2 UpdateManyHostsRequestAlpn = "h3,h2"
|
|
)
|
|
|
|
// AllValues returns all UpdateManyHostsRequestAlpn values.
|
|
func (UpdateManyHostsRequestAlpn) AllValues() []UpdateManyHostsRequestAlpn {
|
|
return []UpdateManyHostsRequestAlpn{
|
|
UpdateManyHostsRequestAlpnH3,
|
|
UpdateManyHostsRequestAlpnH2,
|
|
UpdateManyHostsRequestAlpnHTTP11,
|
|
UpdateManyHostsRequestAlpnH2HTTP11,
|
|
UpdateManyHostsRequestAlpnH3H2HTTP11,
|
|
UpdateManyHostsRequestAlpnH3H2,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateManyHostsRequestAlpn) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateManyHostsRequestAlpnH3:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestAlpnH2:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestAlpnHTTP11:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestAlpnH2HTTP11:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestAlpnH3H2HTTP11:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestAlpnH3H2:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateManyHostsRequestAlpn) UnmarshalText(data []byte) error {
|
|
switch UpdateManyHostsRequestAlpn(data) {
|
|
case UpdateManyHostsRequestAlpnH3:
|
|
*s = UpdateManyHostsRequestAlpnH3
|
|
return nil
|
|
case UpdateManyHostsRequestAlpnH2:
|
|
*s = UpdateManyHostsRequestAlpnH2
|
|
return nil
|
|
case UpdateManyHostsRequestAlpnHTTP11:
|
|
*s = UpdateManyHostsRequestAlpnHTTP11
|
|
return nil
|
|
case UpdateManyHostsRequestAlpnH2HTTP11:
|
|
*s = UpdateManyHostsRequestAlpnH2HTTP11
|
|
return nil
|
|
case UpdateManyHostsRequestAlpnH3H2HTTP11:
|
|
*s = UpdateManyHostsRequestAlpnH3H2HTTP11
|
|
return nil
|
|
case UpdateManyHostsRequestAlpnH3H2:
|
|
*s = UpdateManyHostsRequestAlpnH3H2
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateManyHostsRequestExcludeFromSubscriptionTypesItem string
|
|
|
|
const (
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYJSON UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "XRAY_JSON"
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYBASE64 UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "XRAY_BASE64"
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemMIHOMO UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "MIHOMO"
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSTASH UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "STASH"
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemCLASH UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "CLASH"
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSINGBOX UpdateManyHostsRequestExcludeFromSubscriptionTypesItem = "SINGBOX"
|
|
)
|
|
|
|
// AllValues returns all UpdateManyHostsRequestExcludeFromSubscriptionTypesItem values.
|
|
func (UpdateManyHostsRequestExcludeFromSubscriptionTypesItem) AllValues() []UpdateManyHostsRequestExcludeFromSubscriptionTypesItem {
|
|
return []UpdateManyHostsRequestExcludeFromSubscriptionTypesItem{
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYJSON,
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYBASE64,
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemMIHOMO,
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSTASH,
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemCLASH,
|
|
UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSINGBOX,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateManyHostsRequestExcludeFromSubscriptionTypesItem) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateManyHostsRequestExcludeFromSubscriptionTypesItem) UnmarshalText(data []byte) error {
|
|
switch UpdateManyHostsRequestExcludeFromSubscriptionTypesItem(data) {
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYJSON:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYJSON
|
|
return nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYBASE64:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemXRAYBASE64
|
|
return nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemMIHOMO:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemMIHOMO
|
|
return nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSTASH:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSTASH
|
|
return nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemCLASH:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemCLASH
|
|
return nil
|
|
case UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSINGBOX:
|
|
*s = UpdateManyHostsRequestExcludeFromSubscriptionTypesItemSINGBOX
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateManyHostsRequestMihomoIpVersion string
|
|
|
|
const (
|
|
UpdateManyHostsRequestMihomoIpVersionDual UpdateManyHostsRequestMihomoIpVersion = "dual"
|
|
UpdateManyHostsRequestMihomoIpVersionIpv4 UpdateManyHostsRequestMihomoIpVersion = "ipv4"
|
|
UpdateManyHostsRequestMihomoIpVersionIpv6 UpdateManyHostsRequestMihomoIpVersion = "ipv6"
|
|
UpdateManyHostsRequestMihomoIpVersionIpv4Prefer UpdateManyHostsRequestMihomoIpVersion = "ipv4-prefer"
|
|
UpdateManyHostsRequestMihomoIpVersionIpv6Prefer UpdateManyHostsRequestMihomoIpVersion = "ipv6-prefer"
|
|
)
|
|
|
|
// AllValues returns all UpdateManyHostsRequestMihomoIpVersion values.
|
|
func (UpdateManyHostsRequestMihomoIpVersion) AllValues() []UpdateManyHostsRequestMihomoIpVersion {
|
|
return []UpdateManyHostsRequestMihomoIpVersion{
|
|
UpdateManyHostsRequestMihomoIpVersionDual,
|
|
UpdateManyHostsRequestMihomoIpVersionIpv4,
|
|
UpdateManyHostsRequestMihomoIpVersionIpv6,
|
|
UpdateManyHostsRequestMihomoIpVersionIpv4Prefer,
|
|
UpdateManyHostsRequestMihomoIpVersionIpv6Prefer,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateManyHostsRequestMihomoIpVersion) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateManyHostsRequestMihomoIpVersionDual:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv4:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv6:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv4Prefer:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv6Prefer:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateManyHostsRequestMihomoIpVersion) UnmarshalText(data []byte) error {
|
|
switch UpdateManyHostsRequestMihomoIpVersion(data) {
|
|
case UpdateManyHostsRequestMihomoIpVersionDual:
|
|
*s = UpdateManyHostsRequestMihomoIpVersionDual
|
|
return nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv4:
|
|
*s = UpdateManyHostsRequestMihomoIpVersionIpv4
|
|
return nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv6:
|
|
*s = UpdateManyHostsRequestMihomoIpVersionIpv6
|
|
return nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv4Prefer:
|
|
*s = UpdateManyHostsRequestMihomoIpVersionIpv4Prefer
|
|
return nil
|
|
case UpdateManyHostsRequestMihomoIpVersionIpv6Prefer:
|
|
*s = UpdateManyHostsRequestMihomoIpVersionIpv6Prefer
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UpdateManyHostsRequestSecurityLayer string
|
|
|
|
const (
|
|
UpdateManyHostsRequestSecurityLayerDEFAULT UpdateManyHostsRequestSecurityLayer = "DEFAULT"
|
|
UpdateManyHostsRequestSecurityLayerTLS UpdateManyHostsRequestSecurityLayer = "TLS"
|
|
UpdateManyHostsRequestSecurityLayerNONE UpdateManyHostsRequestSecurityLayer = "NONE"
|
|
)
|
|
|
|
// AllValues returns all UpdateManyHostsRequestSecurityLayer values.
|
|
func (UpdateManyHostsRequestSecurityLayer) AllValues() []UpdateManyHostsRequestSecurityLayer {
|
|
return []UpdateManyHostsRequestSecurityLayer{
|
|
UpdateManyHostsRequestSecurityLayerDEFAULT,
|
|
UpdateManyHostsRequestSecurityLayerTLS,
|
|
UpdateManyHostsRequestSecurityLayerNONE,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateManyHostsRequestSecurityLayer) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateManyHostsRequestSecurityLayerDEFAULT:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestSecurityLayerTLS:
|
|
return []byte(s), nil
|
|
case UpdateManyHostsRequestSecurityLayerNONE:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateManyHostsRequestSecurityLayer) UnmarshalText(data []byte) error {
|
|
switch UpdateManyHostsRequestSecurityLayer(data) {
|
|
case UpdateManyHostsRequestSecurityLayerDEFAULT:
|
|
*s = UpdateManyHostsRequestSecurityLayerDEFAULT
|
|
return nil
|
|
case UpdateManyHostsRequestSecurityLayerTLS:
|
|
*s = UpdateManyHostsRequestSecurityLayerTLS
|
|
return nil
|
|
case UpdateManyHostsRequestSecurityLayerNONE:
|
|
*s = UpdateManyHostsRequestSecurityLayerNONE
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateNodePluginRequest
|
|
type UpdateNodePluginRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
PluginConfig jx.Raw `json:"pluginConfig"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateNodePluginRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateNodePluginRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetPluginConfig returns the value of PluginConfig.
|
|
func (s *UpdateNodePluginRequest) GetPluginConfig() jx.Raw {
|
|
return s.PluginConfig
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateNodePluginRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateNodePluginRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetPluginConfig sets the value of PluginConfig.
|
|
func (s *UpdateNodePluginRequest) SetPluginConfig(val jx.Raw) {
|
|
s.PluginConfig = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateNodeRequest
|
|
type UpdateNodeRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
Address OptString `json:"address"`
|
|
Port OptFloat64 `json:"port"`
|
|
ProxyUrl OptNilString `json:"proxyUrl"`
|
|
IsTrafficTrackingActive OptBool `json:"isTrafficTrackingActive"`
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
NotifyPercent OptFloat64 `json:"notifyPercent"`
|
|
TrafficResetDay OptFloat64 `json:"trafficResetDay"`
|
|
CountryCode OptString `json:"countryCode"`
|
|
ConsumptionMultiplier OptFloat64 `json:"consumptionMultiplier"`
|
|
NodeConsumptionMultiplier OptFloat64 `json:"nodeConsumptionMultiplier"`
|
|
ConfigProfile OptConfigProfileRef `json:"configProfile"`
|
|
ProviderUuid OptNilUUID `json:"providerUuid"`
|
|
Tags []string `json:"tags"`
|
|
ActivePluginUuid OptNilUUID `json:"activePluginUuid"`
|
|
Note OptNilString `json:"note"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateNodeRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateNodeRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetAddress returns the value of Address.
|
|
func (s *UpdateNodeRequest) GetAddress() OptString {
|
|
return s.Address
|
|
}
|
|
|
|
// GetPort returns the value of Port.
|
|
func (s *UpdateNodeRequest) GetPort() OptFloat64 {
|
|
return s.Port
|
|
}
|
|
|
|
// GetProxyUrl returns the value of ProxyUrl.
|
|
func (s *UpdateNodeRequest) GetProxyUrl() OptNilString {
|
|
return s.ProxyUrl
|
|
}
|
|
|
|
// GetIsTrafficTrackingActive returns the value of IsTrafficTrackingActive.
|
|
func (s *UpdateNodeRequest) GetIsTrafficTrackingActive() OptBool {
|
|
return s.IsTrafficTrackingActive
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *UpdateNodeRequest) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetNotifyPercent returns the value of NotifyPercent.
|
|
func (s *UpdateNodeRequest) GetNotifyPercent() OptFloat64 {
|
|
return s.NotifyPercent
|
|
}
|
|
|
|
// GetTrafficResetDay returns the value of TrafficResetDay.
|
|
func (s *UpdateNodeRequest) GetTrafficResetDay() OptFloat64 {
|
|
return s.TrafficResetDay
|
|
}
|
|
|
|
// GetCountryCode returns the value of CountryCode.
|
|
func (s *UpdateNodeRequest) GetCountryCode() OptString {
|
|
return s.CountryCode
|
|
}
|
|
|
|
// GetConsumptionMultiplier returns the value of ConsumptionMultiplier.
|
|
func (s *UpdateNodeRequest) GetConsumptionMultiplier() OptFloat64 {
|
|
return s.ConsumptionMultiplier
|
|
}
|
|
|
|
// GetNodeConsumptionMultiplier returns the value of NodeConsumptionMultiplier.
|
|
func (s *UpdateNodeRequest) GetNodeConsumptionMultiplier() OptFloat64 {
|
|
return s.NodeConsumptionMultiplier
|
|
}
|
|
|
|
// GetConfigProfile returns the value of ConfigProfile.
|
|
func (s *UpdateNodeRequest) GetConfigProfile() OptConfigProfileRef {
|
|
return s.ConfigProfile
|
|
}
|
|
|
|
// GetProviderUuid returns the value of ProviderUuid.
|
|
func (s *UpdateNodeRequest) GetProviderUuid() OptNilUUID {
|
|
return s.ProviderUuid
|
|
}
|
|
|
|
// GetTags returns the value of Tags.
|
|
func (s *UpdateNodeRequest) GetTags() []string {
|
|
return s.Tags
|
|
}
|
|
|
|
// GetActivePluginUuid returns the value of ActivePluginUuid.
|
|
func (s *UpdateNodeRequest) GetActivePluginUuid() OptNilUUID {
|
|
return s.ActivePluginUuid
|
|
}
|
|
|
|
// GetNote returns the value of Note.
|
|
func (s *UpdateNodeRequest) GetNote() OptNilString {
|
|
return s.Note
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateNodeRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateNodeRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetAddress sets the value of Address.
|
|
func (s *UpdateNodeRequest) SetAddress(val OptString) {
|
|
s.Address = val
|
|
}
|
|
|
|
// SetPort sets the value of Port.
|
|
func (s *UpdateNodeRequest) SetPort(val OptFloat64) {
|
|
s.Port = val
|
|
}
|
|
|
|
// SetProxyUrl sets the value of ProxyUrl.
|
|
func (s *UpdateNodeRequest) SetProxyUrl(val OptNilString) {
|
|
s.ProxyUrl = val
|
|
}
|
|
|
|
// SetIsTrafficTrackingActive sets the value of IsTrafficTrackingActive.
|
|
func (s *UpdateNodeRequest) SetIsTrafficTrackingActive(val OptBool) {
|
|
s.IsTrafficTrackingActive = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *UpdateNodeRequest) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetNotifyPercent sets the value of NotifyPercent.
|
|
func (s *UpdateNodeRequest) SetNotifyPercent(val OptFloat64) {
|
|
s.NotifyPercent = val
|
|
}
|
|
|
|
// SetTrafficResetDay sets the value of TrafficResetDay.
|
|
func (s *UpdateNodeRequest) SetTrafficResetDay(val OptFloat64) {
|
|
s.TrafficResetDay = val
|
|
}
|
|
|
|
// SetCountryCode sets the value of CountryCode.
|
|
func (s *UpdateNodeRequest) SetCountryCode(val OptString) {
|
|
s.CountryCode = val
|
|
}
|
|
|
|
// SetConsumptionMultiplier sets the value of ConsumptionMultiplier.
|
|
func (s *UpdateNodeRequest) SetConsumptionMultiplier(val OptFloat64) {
|
|
s.ConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetNodeConsumptionMultiplier sets the value of NodeConsumptionMultiplier.
|
|
func (s *UpdateNodeRequest) SetNodeConsumptionMultiplier(val OptFloat64) {
|
|
s.NodeConsumptionMultiplier = val
|
|
}
|
|
|
|
// SetConfigProfile sets the value of ConfigProfile.
|
|
func (s *UpdateNodeRequest) SetConfigProfile(val OptConfigProfileRef) {
|
|
s.ConfigProfile = val
|
|
}
|
|
|
|
// SetProviderUuid sets the value of ProviderUuid.
|
|
func (s *UpdateNodeRequest) SetProviderUuid(val OptNilUUID) {
|
|
s.ProviderUuid = val
|
|
}
|
|
|
|
// SetTags sets the value of Tags.
|
|
func (s *UpdateNodeRequest) SetTags(val []string) {
|
|
s.Tags = val
|
|
}
|
|
|
|
// SetActivePluginUuid sets the value of ActivePluginUuid.
|
|
func (s *UpdateNodeRequest) SetActivePluginUuid(val OptNilUUID) {
|
|
s.ActivePluginUuid = val
|
|
}
|
|
|
|
// SetNote sets the value of Note.
|
|
func (s *UpdateNodeRequest) SetNote(val OptNilString) {
|
|
s.Note = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdatePasskeyRequest
|
|
type UpdatePasskeyRequest struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *UpdatePasskeyRequest) GetID() string {
|
|
return s.ID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdatePasskeyRequest) GetName() string {
|
|
return s.Name
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *UpdatePasskeyRequest) SetID(val string) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdatePasskeyRequest) SetName(val string) {
|
|
s.Name = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateRemnawaveSettingsRequest
|
|
type UpdateRemnawaveSettingsRequest struct {
|
|
PasskeySettings OptNilPasskeySettings `json:"passkeySettings"`
|
|
Oauth2Settings OptNilOauth2Settings `json:"oauth2Settings"`
|
|
PasswordSettings OptNilPasswordSettings `json:"passwordSettings"`
|
|
BrandingSettings OptNilBrandingSettings `json:"brandingSettings"`
|
|
}
|
|
|
|
// GetPasskeySettings returns the value of PasskeySettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) GetPasskeySettings() OptNilPasskeySettings {
|
|
return s.PasskeySettings
|
|
}
|
|
|
|
// GetOauth2Settings returns the value of Oauth2Settings.
|
|
func (s *UpdateRemnawaveSettingsRequest) GetOauth2Settings() OptNilOauth2Settings {
|
|
return s.Oauth2Settings
|
|
}
|
|
|
|
// GetPasswordSettings returns the value of PasswordSettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) GetPasswordSettings() OptNilPasswordSettings {
|
|
return s.PasswordSettings
|
|
}
|
|
|
|
// GetBrandingSettings returns the value of BrandingSettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) GetBrandingSettings() OptNilBrandingSettings {
|
|
return s.BrandingSettings
|
|
}
|
|
|
|
// SetPasskeySettings sets the value of PasskeySettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) SetPasskeySettings(val OptNilPasskeySettings) {
|
|
s.PasskeySettings = val
|
|
}
|
|
|
|
// SetOauth2Settings sets the value of Oauth2Settings.
|
|
func (s *UpdateRemnawaveSettingsRequest) SetOauth2Settings(val OptNilOauth2Settings) {
|
|
s.Oauth2Settings = val
|
|
}
|
|
|
|
// SetPasswordSettings sets the value of PasswordSettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) SetPasswordSettings(val OptNilPasswordSettings) {
|
|
s.PasswordSettings = val
|
|
}
|
|
|
|
// SetBrandingSettings sets the value of BrandingSettings.
|
|
func (s *UpdateRemnawaveSettingsRequest) SetBrandingSettings(val OptNilBrandingSettings) {
|
|
s.BrandingSettings = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateSubscriptionPageConfigRequest
|
|
type UpdateSubscriptionPageConfigRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
Config jx.Raw `json:"config"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateSubscriptionPageConfigRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateSubscriptionPageConfigRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetConfig returns the value of Config.
|
|
func (s *UpdateSubscriptionPageConfigRequest) GetConfig() jx.Raw {
|
|
return s.Config
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateSubscriptionPageConfigRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateSubscriptionPageConfigRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetConfig sets the value of Config.
|
|
func (s *UpdateSubscriptionPageConfigRequest) SetConfig(val jx.Raw) {
|
|
s.Config = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateSubscriptionSettingsRequest
|
|
type UpdateSubscriptionSettingsRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ProfileTitle OptString `json:"profileTitle"`
|
|
SupportLink OptString `json:"supportLink"`
|
|
ProfileUpdateInterval OptInt `json:"profileUpdateInterval"`
|
|
IsProfileWebpageUrlEnabled OptBool `json:"isProfileWebpageUrlEnabled"`
|
|
ServeJsonAtBaseSubscription OptBool `json:"serveJsonAtBaseSubscription"`
|
|
HappAnnounce OptNilString `json:"happAnnounce"`
|
|
HappRouting OptNilString `json:"happRouting"`
|
|
IsShowCustomRemarks OptBool `json:"isShowCustomRemarks"`
|
|
CustomRemarks OptNilCustomRemark `json:"customRemarks"`
|
|
CustomResponseHeaders OptUpdateSubscriptionSettingsRequestCustomResponseHeaders `json:"customResponseHeaders"`
|
|
RandomizeHosts OptBool `json:"randomizeHosts"`
|
|
ResponseRules OptResponseRules `json:"responseRules"`
|
|
HwidSettings OptNilHwidSettings `json:"hwidSettings"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetProfileTitle returns the value of ProfileTitle.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetProfileTitle() OptString {
|
|
return s.ProfileTitle
|
|
}
|
|
|
|
// GetSupportLink returns the value of SupportLink.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetSupportLink() OptString {
|
|
return s.SupportLink
|
|
}
|
|
|
|
// GetProfileUpdateInterval returns the value of ProfileUpdateInterval.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetProfileUpdateInterval() OptInt {
|
|
return s.ProfileUpdateInterval
|
|
}
|
|
|
|
// GetIsProfileWebpageUrlEnabled returns the value of IsProfileWebpageUrlEnabled.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetIsProfileWebpageUrlEnabled() OptBool {
|
|
return s.IsProfileWebpageUrlEnabled
|
|
}
|
|
|
|
// GetServeJsonAtBaseSubscription returns the value of ServeJsonAtBaseSubscription.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetServeJsonAtBaseSubscription() OptBool {
|
|
return s.ServeJsonAtBaseSubscription
|
|
}
|
|
|
|
// GetHappAnnounce returns the value of HappAnnounce.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetHappAnnounce() OptNilString {
|
|
return s.HappAnnounce
|
|
}
|
|
|
|
// GetHappRouting returns the value of HappRouting.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetHappRouting() OptNilString {
|
|
return s.HappRouting
|
|
}
|
|
|
|
// GetIsShowCustomRemarks returns the value of IsShowCustomRemarks.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetIsShowCustomRemarks() OptBool {
|
|
return s.IsShowCustomRemarks
|
|
}
|
|
|
|
// GetCustomRemarks returns the value of CustomRemarks.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetCustomRemarks() OptNilCustomRemark {
|
|
return s.CustomRemarks
|
|
}
|
|
|
|
// GetCustomResponseHeaders returns the value of CustomResponseHeaders.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetCustomResponseHeaders() OptUpdateSubscriptionSettingsRequestCustomResponseHeaders {
|
|
return s.CustomResponseHeaders
|
|
}
|
|
|
|
// GetRandomizeHosts returns the value of RandomizeHosts.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetRandomizeHosts() OptBool {
|
|
return s.RandomizeHosts
|
|
}
|
|
|
|
// GetResponseRules returns the value of ResponseRules.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetResponseRules() OptResponseRules {
|
|
return s.ResponseRules
|
|
}
|
|
|
|
// GetHwidSettings returns the value of HwidSettings.
|
|
func (s *UpdateSubscriptionSettingsRequest) GetHwidSettings() OptNilHwidSettings {
|
|
return s.HwidSettings
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetProfileTitle sets the value of ProfileTitle.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetProfileTitle(val OptString) {
|
|
s.ProfileTitle = val
|
|
}
|
|
|
|
// SetSupportLink sets the value of SupportLink.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetSupportLink(val OptString) {
|
|
s.SupportLink = val
|
|
}
|
|
|
|
// SetProfileUpdateInterval sets the value of ProfileUpdateInterval.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetProfileUpdateInterval(val OptInt) {
|
|
s.ProfileUpdateInterval = val
|
|
}
|
|
|
|
// SetIsProfileWebpageUrlEnabled sets the value of IsProfileWebpageUrlEnabled.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetIsProfileWebpageUrlEnabled(val OptBool) {
|
|
s.IsProfileWebpageUrlEnabled = val
|
|
}
|
|
|
|
// SetServeJsonAtBaseSubscription sets the value of ServeJsonAtBaseSubscription.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetServeJsonAtBaseSubscription(val OptBool) {
|
|
s.ServeJsonAtBaseSubscription = val
|
|
}
|
|
|
|
// SetHappAnnounce sets the value of HappAnnounce.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetHappAnnounce(val OptNilString) {
|
|
s.HappAnnounce = val
|
|
}
|
|
|
|
// SetHappRouting sets the value of HappRouting.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetHappRouting(val OptNilString) {
|
|
s.HappRouting = val
|
|
}
|
|
|
|
// SetIsShowCustomRemarks sets the value of IsShowCustomRemarks.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetIsShowCustomRemarks(val OptBool) {
|
|
s.IsShowCustomRemarks = val
|
|
}
|
|
|
|
// SetCustomRemarks sets the value of CustomRemarks.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetCustomRemarks(val OptNilCustomRemark) {
|
|
s.CustomRemarks = val
|
|
}
|
|
|
|
// SetCustomResponseHeaders sets the value of CustomResponseHeaders.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetCustomResponseHeaders(val OptUpdateSubscriptionSettingsRequestCustomResponseHeaders) {
|
|
s.CustomResponseHeaders = val
|
|
}
|
|
|
|
// SetRandomizeHosts sets the value of RandomizeHosts.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetRandomizeHosts(val OptBool) {
|
|
s.RandomizeHosts = val
|
|
}
|
|
|
|
// SetResponseRules sets the value of ResponseRules.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetResponseRules(val OptResponseRules) {
|
|
s.ResponseRules = val
|
|
}
|
|
|
|
// SetHwidSettings sets the value of HwidSettings.
|
|
func (s *UpdateSubscriptionSettingsRequest) SetHwidSettings(val OptNilHwidSettings) {
|
|
s.HwidSettings = val
|
|
}
|
|
|
|
type UpdateSubscriptionSettingsRequestCustomResponseHeaders map[string]string
|
|
|
|
func (s *UpdateSubscriptionSettingsRequestCustomResponseHeaders) init() UpdateSubscriptionSettingsRequestCustomResponseHeaders {
|
|
m := *s
|
|
if m == nil {
|
|
m = map[string]string{}
|
|
*s = m
|
|
}
|
|
return m
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpdateTemplateRequest
|
|
type UpdateTemplateRequest struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
Name OptString `json:"name"`
|
|
TemplateJson *UpdateTemplateRequestTemplateJson `json:"templateJson"`
|
|
EncodedTemplateYaml OptString `json:"encodedTemplateYaml"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateTemplateRequest) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetName returns the value of Name.
|
|
func (s *UpdateTemplateRequest) GetName() OptString {
|
|
return s.Name
|
|
}
|
|
|
|
// GetTemplateJson returns the value of TemplateJson.
|
|
func (s *UpdateTemplateRequest) GetTemplateJson() *UpdateTemplateRequestTemplateJson {
|
|
return s.TemplateJson
|
|
}
|
|
|
|
// GetEncodedTemplateYaml returns the value of EncodedTemplateYaml.
|
|
func (s *UpdateTemplateRequest) GetEncodedTemplateYaml() OptString {
|
|
return s.EncodedTemplateYaml
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateTemplateRequest) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetName sets the value of Name.
|
|
func (s *UpdateTemplateRequest) SetName(val OptString) {
|
|
s.Name = val
|
|
}
|
|
|
|
// SetTemplateJson sets the value of TemplateJson.
|
|
func (s *UpdateTemplateRequest) SetTemplateJson(val *UpdateTemplateRequestTemplateJson) {
|
|
s.TemplateJson = val
|
|
}
|
|
|
|
// SetEncodedTemplateYaml sets the value of EncodedTemplateYaml.
|
|
func (s *UpdateTemplateRequest) SetEncodedTemplateYaml(val OptString) {
|
|
s.EncodedTemplateYaml = val
|
|
}
|
|
|
|
type UpdateTemplateRequestTemplateJson struct{}
|
|
|
|
// Ref: #/components/schemas/UpdateUserRequest
|
|
type UpdateUserRequest struct {
|
|
// Username of the user.
|
|
Username OptString `json:"username"`
|
|
// UUID of the user. UUID has higher priority than username, so if both are provided, username will
|
|
// be ignored.
|
|
UUID OptUUID `json:"uuid"`
|
|
Status OptUpdateUserRequestStatus `json:"status"`
|
|
// Traffic limit in bytes. 0 - unlimited.
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
// Available reset periods.
|
|
TrafficLimitStrategy OptUpdateUserRequestTrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
// Expiration date: 2025-01-17T15:38:45.065Z.
|
|
ExpireAt OptDateTime `json:"expireAt"`
|
|
Description OptNilString `json:"description"`
|
|
Tag OptNilString `json:"tag"`
|
|
TelegramId OptNilInt `json:"telegramId"`
|
|
Email OptNilString `json:"email"`
|
|
HwidDeviceLimit OptNilInt `json:"hwidDeviceLimit"`
|
|
ActiveInternalSquads []uuid.UUID `json:"activeInternalSquads"`
|
|
// Optional. External squad UUID.
|
|
ExternalSquadUuid OptNilUUID `json:"externalSquadUuid"`
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *UpdateUserRequest) GetUsername() OptString {
|
|
return s.Username
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UpdateUserRequest) GetUUID() OptUUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *UpdateUserRequest) GetStatus() OptUpdateUserRequestStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *UpdateUserRequest) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *UpdateUserRequest) GetTrafficLimitStrategy() OptUpdateUserRequestTrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *UpdateUserRequest) GetExpireAt() OptDateTime {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *UpdateUserRequest) GetDescription() OptNilString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *UpdateUserRequest) GetTag() OptNilString {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetTelegramId returns the value of TelegramId.
|
|
func (s *UpdateUserRequest) GetTelegramId() OptNilInt {
|
|
return s.TelegramId
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *UpdateUserRequest) GetEmail() OptNilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetHwidDeviceLimit returns the value of HwidDeviceLimit.
|
|
func (s *UpdateUserRequest) GetHwidDeviceLimit() OptNilInt {
|
|
return s.HwidDeviceLimit
|
|
}
|
|
|
|
// GetActiveInternalSquads returns the value of ActiveInternalSquads.
|
|
func (s *UpdateUserRequest) GetActiveInternalSquads() []uuid.UUID {
|
|
return s.ActiveInternalSquads
|
|
}
|
|
|
|
// GetExternalSquadUuid returns the value of ExternalSquadUuid.
|
|
func (s *UpdateUserRequest) GetExternalSquadUuid() OptNilUUID {
|
|
return s.ExternalSquadUuid
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *UpdateUserRequest) SetUsername(val OptString) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UpdateUserRequest) SetUUID(val OptUUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *UpdateUserRequest) SetStatus(val OptUpdateUserRequestStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *UpdateUserRequest) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *UpdateUserRequest) SetTrafficLimitStrategy(val OptUpdateUserRequestTrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *UpdateUserRequest) SetExpireAt(val OptDateTime) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *UpdateUserRequest) SetDescription(val OptNilString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *UpdateUserRequest) SetTag(val OptNilString) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetTelegramId sets the value of TelegramId.
|
|
func (s *UpdateUserRequest) SetTelegramId(val OptNilInt) {
|
|
s.TelegramId = val
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *UpdateUserRequest) SetEmail(val OptNilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetHwidDeviceLimit sets the value of HwidDeviceLimit.
|
|
func (s *UpdateUserRequest) SetHwidDeviceLimit(val OptNilInt) {
|
|
s.HwidDeviceLimit = val
|
|
}
|
|
|
|
// SetActiveInternalSquads sets the value of ActiveInternalSquads.
|
|
func (s *UpdateUserRequest) SetActiveInternalSquads(val []uuid.UUID) {
|
|
s.ActiveInternalSquads = val
|
|
}
|
|
|
|
// SetExternalSquadUuid sets the value of ExternalSquadUuid.
|
|
func (s *UpdateUserRequest) SetExternalSquadUuid(val OptNilUUID) {
|
|
s.ExternalSquadUuid = val
|
|
}
|
|
|
|
type UpdateUserRequestStatus string
|
|
|
|
const (
|
|
UpdateUserRequestStatusACTIVE UpdateUserRequestStatus = "ACTIVE"
|
|
UpdateUserRequestStatusDISABLED UpdateUserRequestStatus = "DISABLED"
|
|
)
|
|
|
|
// AllValues returns all UpdateUserRequestStatus values.
|
|
func (UpdateUserRequestStatus) AllValues() []UpdateUserRequestStatus {
|
|
return []UpdateUserRequestStatus{
|
|
UpdateUserRequestStatusACTIVE,
|
|
UpdateUserRequestStatusDISABLED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateUserRequestStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateUserRequestStatusACTIVE:
|
|
return []byte(s), nil
|
|
case UpdateUserRequestStatusDISABLED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateUserRequestStatus) UnmarshalText(data []byte) error {
|
|
switch UpdateUserRequestStatus(data) {
|
|
case UpdateUserRequestStatusACTIVE:
|
|
*s = UpdateUserRequestStatusACTIVE
|
|
return nil
|
|
case UpdateUserRequestStatusDISABLED:
|
|
*s = UpdateUserRequestStatusDISABLED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Available reset periods.
|
|
type UpdateUserRequestTrafficLimitStrategy string
|
|
|
|
const (
|
|
UpdateUserRequestTrafficLimitStrategyNORESET UpdateUserRequestTrafficLimitStrategy = "NO_RESET"
|
|
UpdateUserRequestTrafficLimitStrategyDAY UpdateUserRequestTrafficLimitStrategy = "DAY"
|
|
UpdateUserRequestTrafficLimitStrategyWEEK UpdateUserRequestTrafficLimitStrategy = "WEEK"
|
|
UpdateUserRequestTrafficLimitStrategyMONTH UpdateUserRequestTrafficLimitStrategy = "MONTH"
|
|
UpdateUserRequestTrafficLimitStrategyMONTHROLLING UpdateUserRequestTrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all UpdateUserRequestTrafficLimitStrategy values.
|
|
func (UpdateUserRequestTrafficLimitStrategy) AllValues() []UpdateUserRequestTrafficLimitStrategy {
|
|
return []UpdateUserRequestTrafficLimitStrategy{
|
|
UpdateUserRequestTrafficLimitStrategyNORESET,
|
|
UpdateUserRequestTrafficLimitStrategyDAY,
|
|
UpdateUserRequestTrafficLimitStrategyWEEK,
|
|
UpdateUserRequestTrafficLimitStrategyMONTH,
|
|
UpdateUserRequestTrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UpdateUserRequestTrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UpdateUserRequestTrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case UpdateUserRequestTrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case UpdateUserRequestTrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case UpdateUserRequestTrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case UpdateUserRequestTrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UpdateUserRequestTrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch UpdateUserRequestTrafficLimitStrategy(data) {
|
|
case UpdateUserRequestTrafficLimitStrategyNORESET:
|
|
*s = UpdateUserRequestTrafficLimitStrategyNORESET
|
|
return nil
|
|
case UpdateUserRequestTrafficLimitStrategyDAY:
|
|
*s = UpdateUserRequestTrafficLimitStrategyDAY
|
|
return nil
|
|
case UpdateUserRequestTrafficLimitStrategyWEEK:
|
|
*s = UpdateUserRequestTrafficLimitStrategyWEEK
|
|
return nil
|
|
case UpdateUserRequestTrafficLimitStrategyMONTH:
|
|
*s = UpdateUserRequestTrafficLimitStrategyMONTH
|
|
return nil
|
|
case UpdateUserRequestTrafficLimitStrategyMONTHROLLING:
|
|
*s = UpdateUserRequestTrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/UpsertUserMetadataRequestBodyRequest
|
|
type UpsertUserMetadataRequestBodyRequest struct {
|
|
Metadata UpsertUserMetadataRequestBodyRequestMetadata `json:"metadata"`
|
|
}
|
|
|
|
// GetMetadata returns the value of Metadata.
|
|
func (s *UpsertUserMetadataRequestBodyRequest) GetMetadata() UpsertUserMetadataRequestBodyRequestMetadata {
|
|
return s.Metadata
|
|
}
|
|
|
|
// SetMetadata sets the value of Metadata.
|
|
func (s *UpsertUserMetadataRequestBodyRequest) SetMetadata(val UpsertUserMetadataRequestBodyRequestMetadata) {
|
|
s.Metadata = val
|
|
}
|
|
|
|
type UpsertUserMetadataRequestBodyRequestMetadata struct{}
|
|
|
|
// Ref: #/components/schemas/UserItem2
|
|
type UserItem2 struct {
|
|
ShortUuid string `json:"shortUuid"`
|
|
DaysLeft float64 `json:"daysLeft"`
|
|
TrafficUsed string `json:"trafficUsed"`
|
|
TrafficLimit string `json:"trafficLimit"`
|
|
LifetimeTrafficUsed string `json:"lifetimeTrafficUsed"`
|
|
TrafficUsedBytes string `json:"trafficUsedBytes"`
|
|
TrafficLimitBytes string `json:"trafficLimitBytes"`
|
|
LifetimeTrafficUsedBytes string `json:"lifetimeTrafficUsedBytes"`
|
|
Username string `json:"username"`
|
|
ExpiresAt time.Time `json:"expiresAt"`
|
|
IsActive bool `json:"isActive"`
|
|
UserStatus UserItem2UserStatus `json:"userStatus"`
|
|
TrafficLimitStrategy UserItem2TrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *UserItem2) GetShortUuid() string {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// GetDaysLeft returns the value of DaysLeft.
|
|
func (s *UserItem2) GetDaysLeft() float64 {
|
|
return s.DaysLeft
|
|
}
|
|
|
|
// GetTrafficUsed returns the value of TrafficUsed.
|
|
func (s *UserItem2) GetTrafficUsed() string {
|
|
return s.TrafficUsed
|
|
}
|
|
|
|
// GetTrafficLimit returns the value of TrafficLimit.
|
|
func (s *UserItem2) GetTrafficLimit() string {
|
|
return s.TrafficLimit
|
|
}
|
|
|
|
// GetLifetimeTrafficUsed returns the value of LifetimeTrafficUsed.
|
|
func (s *UserItem2) GetLifetimeTrafficUsed() string {
|
|
return s.LifetimeTrafficUsed
|
|
}
|
|
|
|
// GetTrafficUsedBytes returns the value of TrafficUsedBytes.
|
|
func (s *UserItem2) GetTrafficUsedBytes() string {
|
|
return s.TrafficUsedBytes
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *UserItem2) GetTrafficLimitBytes() string {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetLifetimeTrafficUsedBytes returns the value of LifetimeTrafficUsedBytes.
|
|
func (s *UserItem2) GetLifetimeTrafficUsedBytes() string {
|
|
return s.LifetimeTrafficUsedBytes
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *UserItem2) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetExpiresAt returns the value of ExpiresAt.
|
|
func (s *UserItem2) GetExpiresAt() time.Time {
|
|
return s.ExpiresAt
|
|
}
|
|
|
|
// GetIsActive returns the value of IsActive.
|
|
func (s *UserItem2) GetIsActive() bool {
|
|
return s.IsActive
|
|
}
|
|
|
|
// GetUserStatus returns the value of UserStatus.
|
|
func (s *UserItem2) GetUserStatus() UserItem2UserStatus {
|
|
return s.UserStatus
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *UserItem2) GetTrafficLimitStrategy() UserItem2TrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *UserItem2) SetShortUuid(val string) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// SetDaysLeft sets the value of DaysLeft.
|
|
func (s *UserItem2) SetDaysLeft(val float64) {
|
|
s.DaysLeft = val
|
|
}
|
|
|
|
// SetTrafficUsed sets the value of TrafficUsed.
|
|
func (s *UserItem2) SetTrafficUsed(val string) {
|
|
s.TrafficUsed = val
|
|
}
|
|
|
|
// SetTrafficLimit sets the value of TrafficLimit.
|
|
func (s *UserItem2) SetTrafficLimit(val string) {
|
|
s.TrafficLimit = val
|
|
}
|
|
|
|
// SetLifetimeTrafficUsed sets the value of LifetimeTrafficUsed.
|
|
func (s *UserItem2) SetLifetimeTrafficUsed(val string) {
|
|
s.LifetimeTrafficUsed = val
|
|
}
|
|
|
|
// SetTrafficUsedBytes sets the value of TrafficUsedBytes.
|
|
func (s *UserItem2) SetTrafficUsedBytes(val string) {
|
|
s.TrafficUsedBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *UserItem2) SetTrafficLimitBytes(val string) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetLifetimeTrafficUsedBytes sets the value of LifetimeTrafficUsedBytes.
|
|
func (s *UserItem2) SetLifetimeTrafficUsedBytes(val string) {
|
|
s.LifetimeTrafficUsedBytes = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *UserItem2) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetExpiresAt sets the value of ExpiresAt.
|
|
func (s *UserItem2) SetExpiresAt(val time.Time) {
|
|
s.ExpiresAt = val
|
|
}
|
|
|
|
// SetIsActive sets the value of IsActive.
|
|
func (s *UserItem2) SetIsActive(val bool) {
|
|
s.IsActive = val
|
|
}
|
|
|
|
// SetUserStatus sets the value of UserStatus.
|
|
func (s *UserItem2) SetUserStatus(val UserItem2UserStatus) {
|
|
s.UserStatus = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *UserItem2) SetTrafficLimitStrategy(val UserItem2TrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
type UserItem2TrafficLimitStrategy string
|
|
|
|
const (
|
|
UserItem2TrafficLimitStrategyNORESET UserItem2TrafficLimitStrategy = "NO_RESET"
|
|
UserItem2TrafficLimitStrategyDAY UserItem2TrafficLimitStrategy = "DAY"
|
|
UserItem2TrafficLimitStrategyWEEK UserItem2TrafficLimitStrategy = "WEEK"
|
|
UserItem2TrafficLimitStrategyMONTH UserItem2TrafficLimitStrategy = "MONTH"
|
|
UserItem2TrafficLimitStrategyMONTHROLLING UserItem2TrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all UserItem2TrafficLimitStrategy values.
|
|
func (UserItem2TrafficLimitStrategy) AllValues() []UserItem2TrafficLimitStrategy {
|
|
return []UserItem2TrafficLimitStrategy{
|
|
UserItem2TrafficLimitStrategyNORESET,
|
|
UserItem2TrafficLimitStrategyDAY,
|
|
UserItem2TrafficLimitStrategyWEEK,
|
|
UserItem2TrafficLimitStrategyMONTH,
|
|
UserItem2TrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UserItem2TrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UserItem2TrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case UserItem2TrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case UserItem2TrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case UserItem2TrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case UserItem2TrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UserItem2TrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch UserItem2TrafficLimitStrategy(data) {
|
|
case UserItem2TrafficLimitStrategyNORESET:
|
|
*s = UserItem2TrafficLimitStrategyNORESET
|
|
return nil
|
|
case UserItem2TrafficLimitStrategyDAY:
|
|
*s = UserItem2TrafficLimitStrategyDAY
|
|
return nil
|
|
case UserItem2TrafficLimitStrategyWEEK:
|
|
*s = UserItem2TrafficLimitStrategyWEEK
|
|
return nil
|
|
case UserItem2TrafficLimitStrategyMONTH:
|
|
*s = UserItem2TrafficLimitStrategyMONTH
|
|
return nil
|
|
case UserItem2TrafficLimitStrategyMONTHROLLING:
|
|
*s = UserItem2TrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
type UserItem2UserStatus string
|
|
|
|
const (
|
|
UserItem2UserStatusACTIVE UserItem2UserStatus = "ACTIVE"
|
|
UserItem2UserStatusDISABLED UserItem2UserStatus = "DISABLED"
|
|
UserItem2UserStatusLIMITED UserItem2UserStatus = "LIMITED"
|
|
UserItem2UserStatusEXPIRED UserItem2UserStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all UserItem2UserStatus values.
|
|
func (UserItem2UserStatus) AllValues() []UserItem2UserStatus {
|
|
return []UserItem2UserStatus{
|
|
UserItem2UserStatusACTIVE,
|
|
UserItem2UserStatusDISABLED,
|
|
UserItem2UserStatusLIMITED,
|
|
UserItem2UserStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UserItem2UserStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UserItem2UserStatusACTIVE:
|
|
return []byte(s), nil
|
|
case UserItem2UserStatusDISABLED:
|
|
return []byte(s), nil
|
|
case UserItem2UserStatusLIMITED:
|
|
return []byte(s), nil
|
|
case UserItem2UserStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UserItem2UserStatus) UnmarshalText(data []byte) error {
|
|
switch UserItem2UserStatus(data) {
|
|
case UserItem2UserStatusACTIVE:
|
|
*s = UserItem2UserStatusACTIVE
|
|
return nil
|
|
case UserItem2UserStatusDISABLED:
|
|
*s = UserItem2UserStatusDISABLED
|
|
return nil
|
|
case UserItem2UserStatusLIMITED:
|
|
*s = UserItem2UserStatusLIMITED
|
|
return nil
|
|
case UserItem2UserStatusEXPIRED:
|
|
*s = UserItem2UserStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/UserItemInfo
|
|
type UserItemInfo struct {
|
|
UUID uuid.UUID `json:"uuid"`
|
|
ID float64 `json:"id"`
|
|
ShortUuid string `json:"shortUuid"`
|
|
Username string `json:"username"`
|
|
Status OptUserItemInfoStatus `json:"status"`
|
|
TrafficLimitBytes OptFloat64 `json:"trafficLimitBytes"`
|
|
// Available reset periods.
|
|
TrafficLimitStrategy OptUserItemInfoTrafficLimitStrategy `json:"trafficLimitStrategy"`
|
|
ExpireAt time.Time `json:"expireAt"`
|
|
TelegramId NilInt `json:"telegramId"`
|
|
Email NilString `json:"email"`
|
|
Description NilString `json:"description"`
|
|
Tag NilString `json:"tag"`
|
|
HwidDeviceLimit NilInt `json:"hwidDeviceLimit"`
|
|
ExternalSquadUuid NilUUID `json:"externalSquadUuid"`
|
|
TrojanPassword string `json:"trojanPassword"`
|
|
VlessUuid uuid.UUID `json:"vlessUuid"`
|
|
SsPassword string `json:"ssPassword"`
|
|
LastTriggeredThreshold OptInt `json:"lastTriggeredThreshold"`
|
|
SubRevokedAt NilDateTime `json:"subRevokedAt"`
|
|
LastTrafficResetAt NilDateTime `json:"lastTrafficResetAt"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
SubscriptionUrl string `json:"subscriptionUrl"`
|
|
ActiveInternalSquads []ActiveInternalSquad `json:"activeInternalSquads"`
|
|
UserTraffic UserTrafficItem `json:"userTraffic"`
|
|
}
|
|
|
|
// GetUUID returns the value of UUID.
|
|
func (s *UserItemInfo) GetUUID() uuid.UUID {
|
|
return s.UUID
|
|
}
|
|
|
|
// GetID returns the value of ID.
|
|
func (s *UserItemInfo) GetID() float64 {
|
|
return s.ID
|
|
}
|
|
|
|
// GetShortUuid returns the value of ShortUuid.
|
|
func (s *UserItemInfo) GetShortUuid() string {
|
|
return s.ShortUuid
|
|
}
|
|
|
|
// GetUsername returns the value of Username.
|
|
func (s *UserItemInfo) GetUsername() string {
|
|
return s.Username
|
|
}
|
|
|
|
// GetStatus returns the value of Status.
|
|
func (s *UserItemInfo) GetStatus() OptUserItemInfoStatus {
|
|
return s.Status
|
|
}
|
|
|
|
// GetTrafficLimitBytes returns the value of TrafficLimitBytes.
|
|
func (s *UserItemInfo) GetTrafficLimitBytes() OptFloat64 {
|
|
return s.TrafficLimitBytes
|
|
}
|
|
|
|
// GetTrafficLimitStrategy returns the value of TrafficLimitStrategy.
|
|
func (s *UserItemInfo) GetTrafficLimitStrategy() OptUserItemInfoTrafficLimitStrategy {
|
|
return s.TrafficLimitStrategy
|
|
}
|
|
|
|
// GetExpireAt returns the value of ExpireAt.
|
|
func (s *UserItemInfo) GetExpireAt() time.Time {
|
|
return s.ExpireAt
|
|
}
|
|
|
|
// GetTelegramId returns the value of TelegramId.
|
|
func (s *UserItemInfo) GetTelegramId() NilInt {
|
|
return s.TelegramId
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *UserItemInfo) GetEmail() NilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetDescription returns the value of Description.
|
|
func (s *UserItemInfo) GetDescription() NilString {
|
|
return s.Description
|
|
}
|
|
|
|
// GetTag returns the value of Tag.
|
|
func (s *UserItemInfo) GetTag() NilString {
|
|
return s.Tag
|
|
}
|
|
|
|
// GetHwidDeviceLimit returns the value of HwidDeviceLimit.
|
|
func (s *UserItemInfo) GetHwidDeviceLimit() NilInt {
|
|
return s.HwidDeviceLimit
|
|
}
|
|
|
|
// GetExternalSquadUuid returns the value of ExternalSquadUuid.
|
|
func (s *UserItemInfo) GetExternalSquadUuid() NilUUID {
|
|
return s.ExternalSquadUuid
|
|
}
|
|
|
|
// GetTrojanPassword returns the value of TrojanPassword.
|
|
func (s *UserItemInfo) GetTrojanPassword() string {
|
|
return s.TrojanPassword
|
|
}
|
|
|
|
// GetVlessUuid returns the value of VlessUuid.
|
|
func (s *UserItemInfo) GetVlessUuid() uuid.UUID {
|
|
return s.VlessUuid
|
|
}
|
|
|
|
// GetSsPassword returns the value of SsPassword.
|
|
func (s *UserItemInfo) GetSsPassword() string {
|
|
return s.SsPassword
|
|
}
|
|
|
|
// GetLastTriggeredThreshold returns the value of LastTriggeredThreshold.
|
|
func (s *UserItemInfo) GetLastTriggeredThreshold() OptInt {
|
|
return s.LastTriggeredThreshold
|
|
}
|
|
|
|
// GetSubRevokedAt returns the value of SubRevokedAt.
|
|
func (s *UserItemInfo) GetSubRevokedAt() NilDateTime {
|
|
return s.SubRevokedAt
|
|
}
|
|
|
|
// GetLastTrafficResetAt returns the value of LastTrafficResetAt.
|
|
func (s *UserItemInfo) GetLastTrafficResetAt() NilDateTime {
|
|
return s.LastTrafficResetAt
|
|
}
|
|
|
|
// GetCreatedAt returns the value of CreatedAt.
|
|
func (s *UserItemInfo) GetCreatedAt() time.Time {
|
|
return s.CreatedAt
|
|
}
|
|
|
|
// GetUpdatedAt returns the value of UpdatedAt.
|
|
func (s *UserItemInfo) GetUpdatedAt() time.Time {
|
|
return s.UpdatedAt
|
|
}
|
|
|
|
// GetSubscriptionUrl returns the value of SubscriptionUrl.
|
|
func (s *UserItemInfo) GetSubscriptionUrl() string {
|
|
return s.SubscriptionUrl
|
|
}
|
|
|
|
// GetActiveInternalSquads returns the value of ActiveInternalSquads.
|
|
func (s *UserItemInfo) GetActiveInternalSquads() []ActiveInternalSquad {
|
|
return s.ActiveInternalSquads
|
|
}
|
|
|
|
// GetUserTraffic returns the value of UserTraffic.
|
|
func (s *UserItemInfo) GetUserTraffic() UserTrafficItem {
|
|
return s.UserTraffic
|
|
}
|
|
|
|
// SetUUID sets the value of UUID.
|
|
func (s *UserItemInfo) SetUUID(val uuid.UUID) {
|
|
s.UUID = val
|
|
}
|
|
|
|
// SetID sets the value of ID.
|
|
func (s *UserItemInfo) SetID(val float64) {
|
|
s.ID = val
|
|
}
|
|
|
|
// SetShortUuid sets the value of ShortUuid.
|
|
func (s *UserItemInfo) SetShortUuid(val string) {
|
|
s.ShortUuid = val
|
|
}
|
|
|
|
// SetUsername sets the value of Username.
|
|
func (s *UserItemInfo) SetUsername(val string) {
|
|
s.Username = val
|
|
}
|
|
|
|
// SetStatus sets the value of Status.
|
|
func (s *UserItemInfo) SetStatus(val OptUserItemInfoStatus) {
|
|
s.Status = val
|
|
}
|
|
|
|
// SetTrafficLimitBytes sets the value of TrafficLimitBytes.
|
|
func (s *UserItemInfo) SetTrafficLimitBytes(val OptFloat64) {
|
|
s.TrafficLimitBytes = val
|
|
}
|
|
|
|
// SetTrafficLimitStrategy sets the value of TrafficLimitStrategy.
|
|
func (s *UserItemInfo) SetTrafficLimitStrategy(val OptUserItemInfoTrafficLimitStrategy) {
|
|
s.TrafficLimitStrategy = val
|
|
}
|
|
|
|
// SetExpireAt sets the value of ExpireAt.
|
|
func (s *UserItemInfo) SetExpireAt(val time.Time) {
|
|
s.ExpireAt = val
|
|
}
|
|
|
|
// SetTelegramId sets the value of TelegramId.
|
|
func (s *UserItemInfo) SetTelegramId(val NilInt) {
|
|
s.TelegramId = val
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *UserItemInfo) SetEmail(val NilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetDescription sets the value of Description.
|
|
func (s *UserItemInfo) SetDescription(val NilString) {
|
|
s.Description = val
|
|
}
|
|
|
|
// SetTag sets the value of Tag.
|
|
func (s *UserItemInfo) SetTag(val NilString) {
|
|
s.Tag = val
|
|
}
|
|
|
|
// SetHwidDeviceLimit sets the value of HwidDeviceLimit.
|
|
func (s *UserItemInfo) SetHwidDeviceLimit(val NilInt) {
|
|
s.HwidDeviceLimit = val
|
|
}
|
|
|
|
// SetExternalSquadUuid sets the value of ExternalSquadUuid.
|
|
func (s *UserItemInfo) SetExternalSquadUuid(val NilUUID) {
|
|
s.ExternalSquadUuid = val
|
|
}
|
|
|
|
// SetTrojanPassword sets the value of TrojanPassword.
|
|
func (s *UserItemInfo) SetTrojanPassword(val string) {
|
|
s.TrojanPassword = val
|
|
}
|
|
|
|
// SetVlessUuid sets the value of VlessUuid.
|
|
func (s *UserItemInfo) SetVlessUuid(val uuid.UUID) {
|
|
s.VlessUuid = val
|
|
}
|
|
|
|
// SetSsPassword sets the value of SsPassword.
|
|
func (s *UserItemInfo) SetSsPassword(val string) {
|
|
s.SsPassword = val
|
|
}
|
|
|
|
// SetLastTriggeredThreshold sets the value of LastTriggeredThreshold.
|
|
func (s *UserItemInfo) SetLastTriggeredThreshold(val OptInt) {
|
|
s.LastTriggeredThreshold = val
|
|
}
|
|
|
|
// SetSubRevokedAt sets the value of SubRevokedAt.
|
|
func (s *UserItemInfo) SetSubRevokedAt(val NilDateTime) {
|
|
s.SubRevokedAt = val
|
|
}
|
|
|
|
// SetLastTrafficResetAt sets the value of LastTrafficResetAt.
|
|
func (s *UserItemInfo) SetLastTrafficResetAt(val NilDateTime) {
|
|
s.LastTrafficResetAt = val
|
|
}
|
|
|
|
// SetCreatedAt sets the value of CreatedAt.
|
|
func (s *UserItemInfo) SetCreatedAt(val time.Time) {
|
|
s.CreatedAt = val
|
|
}
|
|
|
|
// SetUpdatedAt sets the value of UpdatedAt.
|
|
func (s *UserItemInfo) SetUpdatedAt(val time.Time) {
|
|
s.UpdatedAt = val
|
|
}
|
|
|
|
// SetSubscriptionUrl sets the value of SubscriptionUrl.
|
|
func (s *UserItemInfo) SetSubscriptionUrl(val string) {
|
|
s.SubscriptionUrl = val
|
|
}
|
|
|
|
// SetActiveInternalSquads sets the value of ActiveInternalSquads.
|
|
func (s *UserItemInfo) SetActiveInternalSquads(val []ActiveInternalSquad) {
|
|
s.ActiveInternalSquads = val
|
|
}
|
|
|
|
// SetUserTraffic sets the value of UserTraffic.
|
|
func (s *UserItemInfo) SetUserTraffic(val UserTrafficItem) {
|
|
s.UserTraffic = val
|
|
}
|
|
|
|
type UserItemInfoStatus string
|
|
|
|
const (
|
|
UserItemInfoStatusACTIVE UserItemInfoStatus = "ACTIVE"
|
|
UserItemInfoStatusDISABLED UserItemInfoStatus = "DISABLED"
|
|
UserItemInfoStatusLIMITED UserItemInfoStatus = "LIMITED"
|
|
UserItemInfoStatusEXPIRED UserItemInfoStatus = "EXPIRED"
|
|
)
|
|
|
|
// AllValues returns all UserItemInfoStatus values.
|
|
func (UserItemInfoStatus) AllValues() []UserItemInfoStatus {
|
|
return []UserItemInfoStatus{
|
|
UserItemInfoStatusACTIVE,
|
|
UserItemInfoStatusDISABLED,
|
|
UserItemInfoStatusLIMITED,
|
|
UserItemInfoStatusEXPIRED,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UserItemInfoStatus) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UserItemInfoStatusACTIVE:
|
|
return []byte(s), nil
|
|
case UserItemInfoStatusDISABLED:
|
|
return []byte(s), nil
|
|
case UserItemInfoStatusLIMITED:
|
|
return []byte(s), nil
|
|
case UserItemInfoStatusEXPIRED:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UserItemInfoStatus) UnmarshalText(data []byte) error {
|
|
switch UserItemInfoStatus(data) {
|
|
case UserItemInfoStatusACTIVE:
|
|
*s = UserItemInfoStatusACTIVE
|
|
return nil
|
|
case UserItemInfoStatusDISABLED:
|
|
*s = UserItemInfoStatusDISABLED
|
|
return nil
|
|
case UserItemInfoStatusLIMITED:
|
|
*s = UserItemInfoStatusLIMITED
|
|
return nil
|
|
case UserItemInfoStatusEXPIRED:
|
|
*s = UserItemInfoStatusEXPIRED
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Available reset periods.
|
|
type UserItemInfoTrafficLimitStrategy string
|
|
|
|
const (
|
|
UserItemInfoTrafficLimitStrategyNORESET UserItemInfoTrafficLimitStrategy = "NO_RESET"
|
|
UserItemInfoTrafficLimitStrategyDAY UserItemInfoTrafficLimitStrategy = "DAY"
|
|
UserItemInfoTrafficLimitStrategyWEEK UserItemInfoTrafficLimitStrategy = "WEEK"
|
|
UserItemInfoTrafficLimitStrategyMONTH UserItemInfoTrafficLimitStrategy = "MONTH"
|
|
UserItemInfoTrafficLimitStrategyMONTHROLLING UserItemInfoTrafficLimitStrategy = "MONTH_ROLLING"
|
|
)
|
|
|
|
// AllValues returns all UserItemInfoTrafficLimitStrategy values.
|
|
func (UserItemInfoTrafficLimitStrategy) AllValues() []UserItemInfoTrafficLimitStrategy {
|
|
return []UserItemInfoTrafficLimitStrategy{
|
|
UserItemInfoTrafficLimitStrategyNORESET,
|
|
UserItemInfoTrafficLimitStrategyDAY,
|
|
UserItemInfoTrafficLimitStrategyWEEK,
|
|
UserItemInfoTrafficLimitStrategyMONTH,
|
|
UserItemInfoTrafficLimitStrategyMONTHROLLING,
|
|
}
|
|
}
|
|
|
|
// MarshalText implements encoding.TextMarshaler.
|
|
func (s UserItemInfoTrafficLimitStrategy) MarshalText() ([]byte, error) {
|
|
switch s {
|
|
case UserItemInfoTrafficLimitStrategyNORESET:
|
|
return []byte(s), nil
|
|
case UserItemInfoTrafficLimitStrategyDAY:
|
|
return []byte(s), nil
|
|
case UserItemInfoTrafficLimitStrategyWEEK:
|
|
return []byte(s), nil
|
|
case UserItemInfoTrafficLimitStrategyMONTH:
|
|
return []byte(s), nil
|
|
case UserItemInfoTrafficLimitStrategyMONTHROLLING:
|
|
return []byte(s), nil
|
|
default:
|
|
return nil, errors.Errorf("invalid value: %q", s)
|
|
}
|
|
}
|
|
|
|
// UnmarshalText implements encoding.TextUnmarshaler.
|
|
func (s *UserItemInfoTrafficLimitStrategy) UnmarshalText(data []byte) error {
|
|
switch UserItemInfoTrafficLimitStrategy(data) {
|
|
case UserItemInfoTrafficLimitStrategyNORESET:
|
|
*s = UserItemInfoTrafficLimitStrategyNORESET
|
|
return nil
|
|
case UserItemInfoTrafficLimitStrategyDAY:
|
|
*s = UserItemInfoTrafficLimitStrategyDAY
|
|
return nil
|
|
case UserItemInfoTrafficLimitStrategyWEEK:
|
|
*s = UserItemInfoTrafficLimitStrategyWEEK
|
|
return nil
|
|
case UserItemInfoTrafficLimitStrategyMONTH:
|
|
*s = UserItemInfoTrafficLimitStrategyMONTH
|
|
return nil
|
|
case UserItemInfoTrafficLimitStrategyMONTHROLLING:
|
|
*s = UserItemInfoTrafficLimitStrategyMONTHROLLING
|
|
return nil
|
|
default:
|
|
return errors.Errorf("invalid value: %q", data)
|
|
}
|
|
}
|
|
|
|
// Ref: #/components/schemas/UserMetadataResponseResponse
|
|
type UserMetadataResponseResponse struct {
|
|
Response UserMetadataResponseResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *UserMetadataResponseResponse) GetResponse() UserMetadataResponseResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *UserMetadataResponseResponse) SetResponse(val UserMetadataResponseResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*UserMetadataResponseResponse) metadataGetNodeMetadataRes() {}
|
|
func (*UserMetadataResponseResponse) metadataGetUserMetadataRes() {}
|
|
func (*UserMetadataResponseResponse) metadataUpsertNodeMetadataRes() {}
|
|
func (*UserMetadataResponseResponse) metadataUpsertUserMetadataRes() {}
|
|
|
|
type UserMetadataResponseResponseResponse struct {
|
|
Metadata UserMetadataResponseResponseResponseMetadata `json:"metadata"`
|
|
}
|
|
|
|
// GetMetadata returns the value of Metadata.
|
|
func (s *UserMetadataResponseResponseResponse) GetMetadata() UserMetadataResponseResponseResponseMetadata {
|
|
return s.Metadata
|
|
}
|
|
|
|
// SetMetadata sets the value of Metadata.
|
|
func (s *UserMetadataResponseResponseResponse) SetMetadata(val UserMetadataResponseResponseResponseMetadata) {
|
|
s.Metadata = val
|
|
}
|
|
|
|
type UserMetadataResponseResponseResponseMetadata struct{}
|
|
|
|
// Ref: #/components/schemas/UserResponse
|
|
type UserResponse struct {
|
|
Response UserItemInfo `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *UserResponse) GetResponse() UserItemInfo {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *UserResponse) SetResponse(val UserItemInfo) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*UserResponse) usersCreateUserRes() {}
|
|
func (*UserResponse) usersDisableUserRes() {}
|
|
func (*UserResponse) usersEnableUserRes() {}
|
|
func (*UserResponse) usersGetUserByIdRes() {}
|
|
func (*UserResponse) usersGetUserByShortUuidRes() {}
|
|
func (*UserResponse) usersGetUserByUsernameRes() {}
|
|
func (*UserResponse) usersGetUserByUuidRes() {}
|
|
func (*UserResponse) usersResetUserTrafficRes() {}
|
|
func (*UserResponse) usersRevokeUserSubscriptionRes() {}
|
|
func (*UserResponse) usersUpdateUserRes() {}
|
|
|
|
// Ref: #/components/schemas/UserSubscriptionHistory
|
|
type UserSubscriptionHistory struct {
|
|
Total float64 `json:"total"`
|
|
Records []Record `json:"records"`
|
|
}
|
|
|
|
// GetTotal returns the value of Total.
|
|
func (s *UserSubscriptionHistory) GetTotal() float64 {
|
|
return s.Total
|
|
}
|
|
|
|
// GetRecords returns the value of Records.
|
|
func (s *UserSubscriptionHistory) GetRecords() []Record {
|
|
return s.Records
|
|
}
|
|
|
|
// SetTotal sets the value of Total.
|
|
func (s *UserSubscriptionHistory) SetTotal(val float64) {
|
|
s.Total = val
|
|
}
|
|
|
|
// SetRecords sets the value of Records.
|
|
func (s *UserSubscriptionHistory) SetRecords(val []Record) {
|
|
s.Records = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UserTrafficItem
|
|
type UserTrafficItem struct {
|
|
UsedTrafficBytes float64 `json:"usedTrafficBytes"`
|
|
LifetimeUsedTrafficBytes float64 `json:"lifetimeUsedTrafficBytes"`
|
|
OnlineAt NilDateTime `json:"onlineAt"`
|
|
FirstConnectedAt NilDateTime `json:"firstConnectedAt"`
|
|
LastConnectedNodeUuid NilUUID `json:"lastConnectedNodeUuid"`
|
|
}
|
|
|
|
// GetUsedTrafficBytes returns the value of UsedTrafficBytes.
|
|
func (s *UserTrafficItem) GetUsedTrafficBytes() float64 {
|
|
return s.UsedTrafficBytes
|
|
}
|
|
|
|
// GetLifetimeUsedTrafficBytes returns the value of LifetimeUsedTrafficBytes.
|
|
func (s *UserTrafficItem) GetLifetimeUsedTrafficBytes() float64 {
|
|
return s.LifetimeUsedTrafficBytes
|
|
}
|
|
|
|
// GetOnlineAt returns the value of OnlineAt.
|
|
func (s *UserTrafficItem) GetOnlineAt() NilDateTime {
|
|
return s.OnlineAt
|
|
}
|
|
|
|
// GetFirstConnectedAt returns the value of FirstConnectedAt.
|
|
func (s *UserTrafficItem) GetFirstConnectedAt() NilDateTime {
|
|
return s.FirstConnectedAt
|
|
}
|
|
|
|
// GetLastConnectedNodeUuid returns the value of LastConnectedNodeUuid.
|
|
func (s *UserTrafficItem) GetLastConnectedNodeUuid() NilUUID {
|
|
return s.LastConnectedNodeUuid
|
|
}
|
|
|
|
// SetUsedTrafficBytes sets the value of UsedTrafficBytes.
|
|
func (s *UserTrafficItem) SetUsedTrafficBytes(val float64) {
|
|
s.UsedTrafficBytes = val
|
|
}
|
|
|
|
// SetLifetimeUsedTrafficBytes sets the value of LifetimeUsedTrafficBytes.
|
|
func (s *UserTrafficItem) SetLifetimeUsedTrafficBytes(val float64) {
|
|
s.LifetimeUsedTrafficBytes = val
|
|
}
|
|
|
|
// SetOnlineAt sets the value of OnlineAt.
|
|
func (s *UserTrafficItem) SetOnlineAt(val NilDateTime) {
|
|
s.OnlineAt = val
|
|
}
|
|
|
|
// SetFirstConnectedAt sets the value of FirstConnectedAt.
|
|
func (s *UserTrafficItem) SetFirstConnectedAt(val NilDateTime) {
|
|
s.FirstConnectedAt = val
|
|
}
|
|
|
|
// SetLastConnectedNodeUuid sets the value of LastConnectedNodeUuid.
|
|
func (s *UserTrafficItem) SetLastConnectedNodeUuid(val NilUUID) {
|
|
s.LastConnectedNodeUuid = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/UsersResponse
|
|
type UsersResponse struct {
|
|
Response []UserItemInfo `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *UsersResponse) GetResponse() []UserItemInfo {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *UsersResponse) SetResponse(val []UserItemInfo) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*UsersResponse) usersGetUserByTelegramIdRes() {}
|
|
func (*UsersResponse) usersGetUsersByEmailRes() {}
|
|
func (*UsersResponse) usersGetUsersByTagRes() {}
|
|
|
|
// Ref: #/components/schemas/ValidationError
|
|
type ValidationError struct {
|
|
Validation string `json:"validation"`
|
|
Code string `json:"code"`
|
|
Message string `json:"message"`
|
|
Path []string `json:"path"`
|
|
}
|
|
|
|
// GetValidation returns the value of Validation.
|
|
func (s *ValidationError) GetValidation() string {
|
|
return s.Validation
|
|
}
|
|
|
|
// GetCode returns the value of Code.
|
|
func (s *ValidationError) GetCode() string {
|
|
return s.Code
|
|
}
|
|
|
|
// GetMessage returns the value of Message.
|
|
func (s *ValidationError) GetMessage() string {
|
|
return s.Message
|
|
}
|
|
|
|
// GetPath returns the value of Path.
|
|
func (s *ValidationError) GetPath() []string {
|
|
return s.Path
|
|
}
|
|
|
|
// SetValidation sets the value of Validation.
|
|
func (s *ValidationError) SetValidation(val string) {
|
|
s.Validation = val
|
|
}
|
|
|
|
// SetCode sets the value of Code.
|
|
func (s *ValidationError) SetCode(val string) {
|
|
s.Code = val
|
|
}
|
|
|
|
// SetMessage sets the value of Message.
|
|
func (s *ValidationError) SetMessage(val string) {
|
|
s.Message = val
|
|
}
|
|
|
|
// SetPath sets the value of Path.
|
|
func (s *ValidationError) SetPath(val []string) {
|
|
s.Path = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/VerifyPasskeyRegistrationResponse
|
|
type VerifyPasskeyRegistrationResponse struct {
|
|
Response VerifyPasskeyRegistrationResponseResponse `json:"response"`
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *VerifyPasskeyRegistrationResponse) GetResponse() VerifyPasskeyRegistrationResponseResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *VerifyPasskeyRegistrationResponse) SetResponse(val VerifyPasskeyRegistrationResponseResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
type VerifyPasskeyRegistrationResponseResponse struct {
|
|
Verified bool `json:"verified"`
|
|
}
|
|
|
|
// GetVerified returns the value of Verified.
|
|
func (s *VerifyPasskeyRegistrationResponseResponse) GetVerified() bool {
|
|
return s.Verified
|
|
}
|
|
|
|
// SetVerified sets the value of Verified.
|
|
func (s *VerifyPasskeyRegistrationResponseResponse) SetVerified(val bool) {
|
|
s.Verified = val
|
|
}
|
|
|
|
// VerifyPasskeyRegistrationResponseStatusCode wraps VerifyPasskeyRegistrationResponse with StatusCode.
|
|
type VerifyPasskeyRegistrationResponseStatusCode struct {
|
|
StatusCode int
|
|
Response VerifyPasskeyRegistrationResponse
|
|
}
|
|
|
|
// GetStatusCode returns the value of StatusCode.
|
|
func (s *VerifyPasskeyRegistrationResponseStatusCode) GetStatusCode() int {
|
|
return s.StatusCode
|
|
}
|
|
|
|
// GetResponse returns the value of Response.
|
|
func (s *VerifyPasskeyRegistrationResponseStatusCode) GetResponse() VerifyPasskeyRegistrationResponse {
|
|
return s.Response
|
|
}
|
|
|
|
// SetStatusCode sets the value of StatusCode.
|
|
func (s *VerifyPasskeyRegistrationResponseStatusCode) SetStatusCode(val int) {
|
|
s.StatusCode = val
|
|
}
|
|
|
|
// SetResponse sets the value of Response.
|
|
func (s *VerifyPasskeyRegistrationResponseStatusCode) SetResponse(val VerifyPasskeyRegistrationResponse) {
|
|
s.Response = val
|
|
}
|
|
|
|
func (*VerifyPasskeyRegistrationResponseStatusCode) passkeyPasskeyRegistrationVerifyRes() {}
|
|
|
|
// Ref: #/components/schemas/Version
|
|
type Version struct {
|
|
Xray string `json:"xray"`
|
|
Node string `json:"node"`
|
|
}
|
|
|
|
// GetXray returns the value of Xray.
|
|
func (s *Version) GetXray() string {
|
|
return s.Xray
|
|
}
|
|
|
|
// GetNode returns the value of Node.
|
|
func (s *Version) GetNode() string {
|
|
return s.Node
|
|
}
|
|
|
|
// SetXray sets the value of Xray.
|
|
func (s *Version) SetXray(val string) {
|
|
s.Xray = val
|
|
}
|
|
|
|
// SetNode sets the value of Node.
|
|
func (s *Version) SetNode(val string) {
|
|
s.Node = val
|
|
}
|
|
|
|
// Ref: #/components/schemas/XrayReportItem
|
|
type XrayReportItem struct {
|
|
Email NilString `json:"email"`
|
|
Level NilFloat64 `json:"level"`
|
|
Protocol NilString `json:"protocol"`
|
|
Network string `json:"network"`
|
|
Source NilString `json:"source"`
|
|
Destination string `json:"destination"`
|
|
RouteTarget NilString `json:"routeTarget"`
|
|
OriginalTarget NilString `json:"originalTarget"`
|
|
InboundTag NilString `json:"inboundTag"`
|
|
InboundName NilString `json:"inboundName"`
|
|
InboundLocal NilString `json:"inboundLocal"`
|
|
OutboundTag NilString `json:"outboundTag"`
|
|
Ts float64 `json:"ts"`
|
|
}
|
|
|
|
// GetEmail returns the value of Email.
|
|
func (s *XrayReportItem) GetEmail() NilString {
|
|
return s.Email
|
|
}
|
|
|
|
// GetLevel returns the value of Level.
|
|
func (s *XrayReportItem) GetLevel() NilFloat64 {
|
|
return s.Level
|
|
}
|
|
|
|
// GetProtocol returns the value of Protocol.
|
|
func (s *XrayReportItem) GetProtocol() NilString {
|
|
return s.Protocol
|
|
}
|
|
|
|
// GetNetwork returns the value of Network.
|
|
func (s *XrayReportItem) GetNetwork() string {
|
|
return s.Network
|
|
}
|
|
|
|
// GetSource returns the value of Source.
|
|
func (s *XrayReportItem) GetSource() NilString {
|
|
return s.Source
|
|
}
|
|
|
|
// GetDestination returns the value of Destination.
|
|
func (s *XrayReportItem) GetDestination() string {
|
|
return s.Destination
|
|
}
|
|
|
|
// GetRouteTarget returns the value of RouteTarget.
|
|
func (s *XrayReportItem) GetRouteTarget() NilString {
|
|
return s.RouteTarget
|
|
}
|
|
|
|
// GetOriginalTarget returns the value of OriginalTarget.
|
|
func (s *XrayReportItem) GetOriginalTarget() NilString {
|
|
return s.OriginalTarget
|
|
}
|
|
|
|
// GetInboundTag returns the value of InboundTag.
|
|
func (s *XrayReportItem) GetInboundTag() NilString {
|
|
return s.InboundTag
|
|
}
|
|
|
|
// GetInboundName returns the value of InboundName.
|
|
func (s *XrayReportItem) GetInboundName() NilString {
|
|
return s.InboundName
|
|
}
|
|
|
|
// GetInboundLocal returns the value of InboundLocal.
|
|
func (s *XrayReportItem) GetInboundLocal() NilString {
|
|
return s.InboundLocal
|
|
}
|
|
|
|
// GetOutboundTag returns the value of OutboundTag.
|
|
func (s *XrayReportItem) GetOutboundTag() NilString {
|
|
return s.OutboundTag
|
|
}
|
|
|
|
// GetTs returns the value of Ts.
|
|
func (s *XrayReportItem) GetTs() float64 {
|
|
return s.Ts
|
|
}
|
|
|
|
// SetEmail sets the value of Email.
|
|
func (s *XrayReportItem) SetEmail(val NilString) {
|
|
s.Email = val
|
|
}
|
|
|
|
// SetLevel sets the value of Level.
|
|
func (s *XrayReportItem) SetLevel(val NilFloat64) {
|
|
s.Level = val
|
|
}
|
|
|
|
// SetProtocol sets the value of Protocol.
|
|
func (s *XrayReportItem) SetProtocol(val NilString) {
|
|
s.Protocol = val
|
|
}
|
|
|
|
// SetNetwork sets the value of Network.
|
|
func (s *XrayReportItem) SetNetwork(val string) {
|
|
s.Network = val
|
|
}
|
|
|
|
// SetSource sets the value of Source.
|
|
func (s *XrayReportItem) SetSource(val NilString) {
|
|
s.Source = val
|
|
}
|
|
|
|
// SetDestination sets the value of Destination.
|
|
func (s *XrayReportItem) SetDestination(val string) {
|
|
s.Destination = val
|
|
}
|
|
|
|
// SetRouteTarget sets the value of RouteTarget.
|
|
func (s *XrayReportItem) SetRouteTarget(val NilString) {
|
|
s.RouteTarget = val
|
|
}
|
|
|
|
// SetOriginalTarget sets the value of OriginalTarget.
|
|
func (s *XrayReportItem) SetOriginalTarget(val NilString) {
|
|
s.OriginalTarget = val
|
|
}
|
|
|
|
// SetInboundTag sets the value of InboundTag.
|
|
func (s *XrayReportItem) SetInboundTag(val NilString) {
|
|
s.InboundTag = val
|
|
}
|
|
|
|
// SetInboundName sets the value of InboundName.
|
|
func (s *XrayReportItem) SetInboundName(val NilString) {
|
|
s.InboundName = val
|
|
}
|
|
|
|
// SetInboundLocal sets the value of InboundLocal.
|
|
func (s *XrayReportItem) SetInboundLocal(val NilString) {
|
|
s.InboundLocal = val
|
|
}
|
|
|
|
// SetOutboundTag sets the value of OutboundTag.
|
|
func (s *XrayReportItem) SetOutboundTag(val NilString) {
|
|
s.OutboundTag = val
|
|
}
|
|
|
|
// SetTs sets the value of Ts.
|
|
func (s *XrayReportItem) SetTs(val float64) {
|
|
s.Ts = val
|
|
}
|