openshock

package module
v0.0.0-...-958771b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: ISC Imports: 21 Imported by: 0

README

go-openshock

GoDoc Reference

Autogenerated API client for the OpenShock API. It is autogenerated using ogen.

Autogenerating

To autogenerate the client, you need task, go and jq installed. Then, simply run:

task

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AccountLoginRes

type AccountLoginRes interface {
	// contains filtered or unexported methods
}

type AccountLoginV2Res

type AccountLoginV2Res interface {
	// contains filtered or unexported methods
}

type AccountPasswordResetCheckValidParams

type AccountPasswordResetCheckValidParams struct {
	// The id of the password reset.
	PasswordResetId uuid.UUID
	// The secret of the password reset.
	Secret string
}

AccountPasswordResetCheckValidParams is parameters of Account_PasswordResetCheckValid operation.

type AccountPasswordResetCheckValidRes

type AccountPasswordResetCheckValidRes interface {
	// contains filtered or unexported methods
}

type AccountPasswordResetCompleteParams

type AccountPasswordResetCompleteParams struct {
	// The id of the password reset.
	PasswordResetId uuid.UUID
	// The secret of the password reset.
	Secret string
}

AccountPasswordResetCompleteParams is parameters of Account_PasswordResetComplete operation.

type AccountPasswordResetCompleteRes

type AccountPasswordResetCompleteRes interface {
	// contains filtered or unexported methods
}

type AccountSignUpRes

type AccountSignUpRes interface {
	// contains filtered or unexported methods
}

type AccountSignUpV2BadRequest

type AccountSignUpV2BadRequest struct{}

AccountSignUpV2BadRequest is response for AccountSignUpV2 operation.

type AccountSignUpV2Conflict

type AccountSignUpV2Conflict OpenShockProblem

func (*AccountSignUpV2Conflict) Decode

func (s *AccountSignUpV2Conflict) Decode(d *jx.Decoder) error

Decode decodes AccountSignUpV2Conflict from json.

func (*AccountSignUpV2Conflict) Encode

func (s *AccountSignUpV2Conflict) Encode(e *jx.Encoder)

Encode encodes AccountSignUpV2Conflict as json.

func (*AccountSignUpV2Conflict) MarshalJSON

func (s *AccountSignUpV2Conflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountSignUpV2Conflict) SetFake

func (s *AccountSignUpV2Conflict) SetFake()

SetFake set fake values.

func (*AccountSignUpV2Conflict) UnmarshalJSON

func (s *AccountSignUpV2Conflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AccountSignUpV2Forbidden

type AccountSignUpV2Forbidden OpenShockProblem

func (*AccountSignUpV2Forbidden) Decode

func (s *AccountSignUpV2Forbidden) Decode(d *jx.Decoder) error

Decode decodes AccountSignUpV2Forbidden from json.

func (*AccountSignUpV2Forbidden) Encode

func (s *AccountSignUpV2Forbidden) Encode(e *jx.Encoder)

Encode encodes AccountSignUpV2Forbidden as json.

func (*AccountSignUpV2Forbidden) MarshalJSON

func (s *AccountSignUpV2Forbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AccountSignUpV2Forbidden) SetFake

func (s *AccountSignUpV2Forbidden) SetFake()

SetFake set fake values.

func (*AccountSignUpV2Forbidden) UnmarshalJSON

func (s *AccountSignUpV2Forbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type AccountSignUpV2Res

type AccountSignUpV2Res interface {
	// contains filtered or unexported methods
}

type AdminGetOnlineDevicesRes

type AdminGetOnlineDevicesRes interface {
	// contains filtered or unexported methods
}

type AdminGetOnlineDevicesUnauthorized

type AdminGetOnlineDevicesUnauthorized struct{}

AdminGetOnlineDevicesUnauthorized is response for AdminGetOnlineDevices operation.

type AdminOnlineDeviceResponse

type AdminOnlineDeviceResponse struct {
	ID              OptUUID       `json:"id"`
	Name            OptNilString  `json:"name"`
	Owner           OptGenericIni `json:"owner"`
	FirmwareVersion OptNilString  `json:"firmwareVersion"`
	Gateway         OptNilString  `json:"gateway"`
	ConnectedAt     OptDateTime   `json:"connectedAt"`
}

Ref: #/components/schemas/AdminOnlineDeviceResponse

func (*AdminOnlineDeviceResponse) Decode

func (s *AdminOnlineDeviceResponse) Decode(d *jx.Decoder) error

Decode decodes AdminOnlineDeviceResponse from json.

func (*AdminOnlineDeviceResponse) Encode

func (s *AdminOnlineDeviceResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*AdminOnlineDeviceResponse) GetConnectedAt

func (s *AdminOnlineDeviceResponse) GetConnectedAt() OptDateTime

GetConnectedAt returns the value of ConnectedAt.

func (*AdminOnlineDeviceResponse) GetFirmwareVersion

func (s *AdminOnlineDeviceResponse) GetFirmwareVersion() OptNilString

GetFirmwareVersion returns the value of FirmwareVersion.

func (*AdminOnlineDeviceResponse) GetGateway

func (s *AdminOnlineDeviceResponse) GetGateway() OptNilString

GetGateway returns the value of Gateway.

func (*AdminOnlineDeviceResponse) GetID

GetID returns the value of ID.

func (*AdminOnlineDeviceResponse) GetName

GetName returns the value of Name.

func (*AdminOnlineDeviceResponse) GetOwner

GetOwner returns the value of Owner.

func (*AdminOnlineDeviceResponse) MarshalJSON

func (s *AdminOnlineDeviceResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*AdminOnlineDeviceResponse) SetConnectedAt

func (s *AdminOnlineDeviceResponse) SetConnectedAt(val OptDateTime)

SetConnectedAt sets the value of ConnectedAt.

func (*AdminOnlineDeviceResponse) SetFake

func (s *AdminOnlineDeviceResponse) SetFake()

SetFake set fake values.

func (*AdminOnlineDeviceResponse) SetFirmwareVersion

func (s *AdminOnlineDeviceResponse) SetFirmwareVersion(val OptNilString)

SetFirmwareVersion sets the value of FirmwareVersion.

func (*AdminOnlineDeviceResponse) SetGateway

func (s *AdminOnlineDeviceResponse) SetGateway(val OptNilString)

SetGateway sets the value of Gateway.

func (*AdminOnlineDeviceResponse) SetID

func (s *AdminOnlineDeviceResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*AdminOnlineDeviceResponse) SetName

func (s *AdminOnlineDeviceResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*AdminOnlineDeviceResponse) SetOwner

func (s *AdminOnlineDeviceResponse) SetOwner(val OptGenericIni)

SetOwner sets the value of Owner.

func (*AdminOnlineDeviceResponse) UnmarshalJSON

func (s *AdminOnlineDeviceResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AdminOnlineDeviceResponse) Validate

func (s *AdminOnlineDeviceResponse) Validate() error

type AdminOnlineDeviceResponseIEnumerableBaseResponse

type AdminOnlineDeviceResponseIEnumerableBaseResponse struct {
	Message OptNilString                         `json:"message"`
	Data    OptNilAdminOnlineDeviceResponseArray `json:"data"`
}

Ref: #/components/schemas/AdminOnlineDeviceResponseIEnumerableBaseResponse

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) Decode

Decode decodes AdminOnlineDeviceResponseIEnumerableBaseResponse from json.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*AdminOnlineDeviceResponseIEnumerableBaseResponse) Validate

type BooleanNullableBaseResponse

type BooleanNullableBaseResponse struct {
	Message OptNilString `json:"message"`
	Data    OptNilBool   `json:"data"`
}

Ref: #/components/schemas/BooleanNullableBaseResponse

func (*BooleanNullableBaseResponse) Decode

Decode decodes BooleanNullableBaseResponse from json.

func (*BooleanNullableBaseResponse) Encode

func (s *BooleanNullableBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BooleanNullableBaseResponse) GetData

GetData returns the value of Data.

func (*BooleanNullableBaseResponse) GetMessage

func (s *BooleanNullableBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*BooleanNullableBaseResponse) MarshalJSON

func (s *BooleanNullableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BooleanNullableBaseResponse) SetData

func (s *BooleanNullableBaseResponse) SetData(val OptNilBool)

SetData sets the value of Data.

func (*BooleanNullableBaseResponse) SetFake

func (s *BooleanNullableBaseResponse) SetFake()

SetFake set fake values.

func (*BooleanNullableBaseResponse) SetMessage

func (s *BooleanNullableBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*BooleanNullableBaseResponse) UnmarshalJSON

func (s *BooleanNullableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AccountLogin

func (c *Client) AccountLogin(ctx context.Context, request OptLogin) (AccountLoginRes, error)

AccountLogin invokes Account_Login operation.

Authenticate a user.

POST /1/account/login

func (*Client) AccountLoginV2

func (c *Client) AccountLoginV2(ctx context.Context, request OptLoginV2) (AccountLoginV2Res, error)

AccountLoginV2 invokes Account_LoginV2 operation.

Authenticate a user.

POST /2/account/login

func (*Client) AccountPasswordResetCheckValid

func (c *Client) AccountPasswordResetCheckValid(ctx context.Context, params AccountPasswordResetCheckValidParams) (AccountPasswordResetCheckValidRes, error)

AccountPasswordResetCheckValid invokes Account_PasswordResetCheckValid operation.

Check if a password reset is in progress.

HEAD /1/account/recover/{passwordResetId}/{secret}

func (*Client) AccountPasswordResetComplete

AccountPasswordResetComplete invokes Account_PasswordResetComplete operation.

Complete a password reset process.

POST /1/account/recover/{passwordResetId}/{secret}

func (*Client) AccountPasswordResetInitiate

func (c *Client) AccountPasswordResetInitiate(ctx context.Context, request OptResetRequest) (*ObjectBaseResponse, error)

AccountPasswordResetInitiate invokes Account_PasswordResetInitiate operation.

Initiate a password reset.

POST /1/account/reset

func (*Client) AccountSignUp

func (c *Client) AccountSignUp(ctx context.Context, request OptSignUp) (AccountSignUpRes, error)

AccountSignUp invokes Account_SignUp operation.

Signs up a new user.

POST /1/account/signup

func (*Client) AccountSignUpV2

func (c *Client) AccountSignUpV2(ctx context.Context, request OptSignUpV2) (AccountSignUpV2Res, error)

AccountSignUpV2 invokes Account_SignUpV2 operation.

Signs up a new user.

POST /2/account/signup

func (*Client) AdminGetOnlineDevices

func (c *Client) AdminGetOnlineDevices(ctx context.Context) (AdminGetOnlineDevicesRes, error)

AdminGetOnlineDevices invokes Admin_GetOnlineDevices operation.

Gets all online devices.

GET /1/admin/monitoring/onlineDevices

func (*Client) DeviceGetLiveControlGateway

func (c *Client) DeviceGetLiveControlGateway(ctx context.Context) (DeviceGetLiveControlGatewayRes, error)

DeviceGetLiveControlGateway invokes Device_GetLiveControlGateway operation.

Gets the best suited LCG node for the client.

GET /1/device/assignLCG

func (*Client) DeviceGetSelf

func (c *Client) DeviceGetSelf(ctx context.Context) (*DeviceSelfResponseBaseResponse, error)

DeviceGetSelf invokes Device_GetSelf operation.

Gets information about the authenticated device.

GET /1/device/self

func (*Client) DevicePair

func (c *Client) DevicePair(ctx context.Context, params DevicePairParams) (DevicePairRes, error)

DevicePair invokes Device_Pair operation.

Pair a device with a pair code.

GET /1/device/pair/{pairCode}

func (*Client) DevicePairDEPRECATED

func (c *Client) DevicePairDEPRECATED(ctx context.Context, params DevicePairDEPRECATEDParams) (DevicePairDEPRECATEDRes, error)

DevicePairDEPRECATED invokes Device_Pair_DEPRECATED operation.

Pair a device with a pair code.

GET /1/pair/{pairCode}

func (*Client) DevicesCreateDevice

func (c *Client) DevicesCreateDevice(ctx context.Context) (*GuidBaseResponse, error)

DevicesCreateDevice invokes Devices_CreateDevice operation.

Create a new device for the current user.

POST /1/devices

func (*Client) DevicesEditDevice

func (c *Client) DevicesEditDevice(ctx context.Context, request OptDeviceEdit, params DevicesEditDeviceParams) (DevicesEditDeviceRes, error)

DevicesEditDevice invokes Devices_EditDevice operation.

Edit a device.

PATCH /1/devices/{deviceId}

func (*Client) DevicesGetDeviceById

func (c *Client) DevicesGetDeviceById(ctx context.Context, params DevicesGetDeviceByIdParams) (DevicesGetDeviceByIdRes, error)

DevicesGetDeviceById invokes Devices_GetDeviceById operation.

Get a device by its id.

GET /1/devices/{deviceId}

func (*Client) DevicesGetLiveControlGatewayInfo

func (c *Client) DevicesGetLiveControlGatewayInfo(ctx context.Context, params DevicesGetLiveControlGatewayInfoParams) (DevicesGetLiveControlGatewayInfoRes, error)

DevicesGetLiveControlGatewayInfo invokes Devices_GetLiveControlGatewayInfo operation.

Get LCG info for a device if it is online and connected to a LCG node.

GET /1/devices/{deviceId}/lcg

func (*Client) DevicesGetOtaUpdateHistory

func (c *Client) DevicesGetOtaUpdateHistory(ctx context.Context, params DevicesGetOtaUpdateHistoryParams) (DevicesGetOtaUpdateHistoryRes, error)

DevicesGetOtaUpdateHistory invokes Devices_GetOtaUpdateHistory operation.

Gets the OTA update history for a device.

GET /1/devices/{deviceId}/ota

func (*Client) DevicesGetPairCode

func (c *Client) DevicesGetPairCode(ctx context.Context, params DevicesGetPairCodeParams) (DevicesGetPairCodeRes, error)

DevicesGetPairCode invokes Devices_GetPairCode operation.

Get a pair code for a device.

GET /1/devices/{deviceId}/pair

func (*Client) DevicesGetShockers

func (c *Client) DevicesGetShockers(ctx context.Context, params DevicesGetShockersParams) (DevicesGetShockersRes, error)

DevicesGetShockers invokes Devices_GetShockers operation.

Get all shockers for a device.

GET /1/devices/{deviceId}/shockers

func (*Client) DevicesListDevices

func (c *Client) DevicesListDevices(ctx context.Context) (*ResponseDeviceIEnumerableBaseResponse, error)

DevicesListDevices invokes Devices_ListDevices operation.

Get all devices for the current user.

GET /1/devices

func (*Client) DevicesRegenerateDeviceToken

func (c *Client) DevicesRegenerateDeviceToken(ctx context.Context, params DevicesRegenerateDeviceTokenParams) (DevicesRegenerateDeviceTokenRes, error)

DevicesRegenerateDeviceToken invokes Devices_RegenerateDeviceToken operation.

Regenerate a device token.

PUT /1/devices/{deviceId}

func (*Client) DevicesRemoveDevice

func (c *Client) DevicesRemoveDevice(ctx context.Context, params DevicesRemoveDeviceParams) (DevicesRemoveDeviceRes, error)

DevicesRemoveDevice invokes Devices_RemoveDevice operation.

Remove a device from current user's account.

DELETE /1/devices/{deviceId}

func (*Client) PublicGetOnlineDevicesStatistics

func (c *Client) PublicGetOnlineDevicesStatistics(ctx context.Context) (*StatsResponseBaseResponse, error)

PublicGetOnlineDevicesStatistics invokes Public_GetOnlineDevicesStatistics operation.

Gets online devices statistics.

GET /1/public/stats

func (c *Client) PublicGetShareLink(ctx context.Context, params PublicGetShareLinkParams) (PublicGetShareLinkRes, error)

PublicGetShareLink invokes Public_GetShareLink operation.

Gets information about a public share link.

GET /1/public/shares/links/{shareLinkId}

func (*Client) ShareLinksAddShocker

func (c *Client) ShareLinksAddShocker(ctx context.Context, params ShareLinksAddShockerParams) (ShareLinksAddShockerRes, error)

ShareLinksAddShocker invokes ShareLinks_AddShocker operation.

Add a shocker to a share link.

POST /1/shares/links/{shareLinkId}/{shockerId}

func (c *Client) ShareLinksCreateShareLink(ctx context.Context, request OptShareLinkCreate) (*GuidBaseResponse, error)

ShareLinksCreateShareLink invokes ShareLinks_CreateShareLink operation.

Create a new share link.

POST /1/shares/links

func (c *Client) ShareLinksDeleteShareLink(ctx context.Context, params ShareLinksDeleteShareLinkParams) (ShareLinksDeleteShareLinkRes, error)

ShareLinksDeleteShareLink invokes ShareLinks_DeleteShareLink operation.

Deletes a share link.

DELETE /1/shares/links/{shareLinkId}

func (*Client) ShareLinksEditShocker

ShareLinksEditShocker invokes ShareLinks_EditShocker operation.

Edit a shocker in a share link.

PATCH /1/shares/links/{shareLinkId}/{shockerId}

ShareLinksList invokes ShareLinks_List operation.

Get all share links for the current user.

GET /1/shares/links

func (*Client) ShareLinksPauseShocker

func (c *Client) ShareLinksPauseShocker(ctx context.Context, request OptPauseRequest, params ShareLinksPauseShockerParams) (ShareLinksPauseShockerRes, error)

ShareLinksPauseShocker invokes ShareLinks_PauseShocker operation.

Pause a shocker in a share link.

POST /1/shares/links/{shareLinkId}/{shockerId}/pause

func (*Client) ShareLinksRemoveShocker

func (c *Client) ShareLinksRemoveShocker(ctx context.Context, params ShareLinksRemoveShockerParams) (ShareLinksRemoveShockerRes, error)

ShareLinksRemoveShocker invokes ShareLinks_RemoveShocker operation.

Remove a shocker from a share link.

DELETE /1/shares/links/{shareLinkId}/{shockerId}

func (*Client) SharesDeleteShareCode

func (c *Client) SharesDeleteShareCode(ctx context.Context, params SharesDeleteShareCodeParams) (SharesDeleteShareCodeRes, error)

SharesDeleteShareCode invokes Shares_DeleteShareCode operation.

Delete a share code.

DELETE /1/shares/code/{shareCodeId}

func (*Client) SharesLinkShareCode

func (c *Client) SharesLinkShareCode(ctx context.Context, params SharesLinkShareCodeParams) (SharesLinkShareCodeRes, error)

SharesLinkShareCode invokes Shares_LinkShareCode operation.

Link a share code to your account.

POST /1/shares/code/{shareCodeId}

func (*Client) ShockerEditShocker

func (c *Client) ShockerEditShocker(ctx context.Context, request OptNewShocker, params ShockerEditShockerParams) (ShockerEditShockerRes, error)

ShockerEditShocker invokes Shocker_EditShocker operation.

Edit a shocker.

PATCH /1/shockers/{shockerId}

func (*Client) ShockerGetShockerById

func (c *Client) ShockerGetShockerById(ctx context.Context, params ShockerGetShockerByIdParams) (ShockerGetShockerByIdRes, error)

ShockerGetShockerById invokes Shocker_GetShockerById operation.

Get information about a shocker.

GET /1/shockers/{shockerId}

func (*Client) ShockerGetShockerLogs

func (c *Client) ShockerGetShockerLogs(ctx context.Context, params ShockerGetShockerLogsParams) (ShockerGetShockerLogsRes, error)

ShockerGetShockerLogs invokes Shocker_GetShockerLogs operation.

Get the logs for a shocker.

GET /1/shockers/{shockerId}/logs

func (*Client) ShockerGetShockerShares

func (c *Client) ShockerGetShockerShares(ctx context.Context, params ShockerGetShockerSharesParams) (ShockerGetShockerSharesRes, error)

ShockerGetShockerShares invokes Shocker_GetShockerShares operation.

Get all shares for a shocker.

GET /1/shockers/{shockerId}/shares

func (*Client) ShockerListSharedShockers

ShockerListSharedShockers invokes Shocker_ListSharedShockers operation.

List all shockers shared with the authenticated user.

GET /1/shockers/shared

func (*Client) ShockerListShockers

ShockerListShockers invokes Shocker_ListShockers operation.

List all shockers belonging to the authenticated user.

GET /1/shockers/own

func (*Client) ShockerPauseShocker

func (c *Client) ShockerPauseShocker(ctx context.Context, request OptPauseRequest, params ShockerPauseShockerParams) (ShockerPauseShockerRes, error)

ShockerPauseShocker invokes Shocker_PauseShocker operation.

Pause or unpause a shocker.

POST /1/shockers/{shockerId}/pause

func (*Client) ShockerRegisterShocker

func (c *Client) ShockerRegisterShocker(ctx context.Context, request OptNewShocker) (ShockerRegisterShockerRes, error)

ShockerRegisterShocker invokes Shocker_RegisterShocker operation.

Register a shocker.

POST /1/shockers

func (*Client) ShockerRemoveShocker

func (c *Client) ShockerRemoveShocker(ctx context.Context, params ShockerRemoveShockerParams) (ShockerRemoveShockerRes, error)

ShockerRemoveShocker invokes Shocker_RemoveShocker operation.

Remove a shocker.

DELETE /1/shockers/{shockerId}

func (*Client) ShockerSendControl

func (c *Client) ShockerSendControl(ctx context.Context, request OptControlRequest) (ShockerSendControlRes, error)

ShockerSendControl invokes Shocker_SendControl operation.

Send a control message to shockers.

POST /2/shockers/control

func (*Client) ShockerSendControlDEPRECATED

func (c *Client) ShockerSendControlDEPRECATED(ctx context.Context, request []Control) (ShockerSendControlDEPRECATEDRes, error)

ShockerSendControlDEPRECATED invokes Shocker_SendControl_DEPRECATED operation.

Send a control message to shockers (Deprecated in favor of the /2/shockers/control endpoint).

POST /1/shockers/control

func (*Client) ShockerShockerShareCodeCreate

ShockerShockerShareCodeCreate invokes Shocker_ShockerShareCodeCreate operation.

Create a share code for a shocker.

POST /1/shockers/{shockerId}/shares

func (*Client) ShockerShockerShareCodeList

func (c *Client) ShockerShockerShareCodeList(ctx context.Context, params ShockerShockerShareCodeListParams) (ShockerShockerShareCodeListRes, error)

ShockerShockerShareCodeList invokes Shocker_ShockerShareCodeList operation.

List all share codes for a shocker.

GET /1/shockers/{shockerId}/shareCodes

func (*Client) ShockerShockerShareCodePause

func (c *Client) ShockerShockerShareCodePause(ctx context.Context, request OptPauseRequest, params ShockerShockerShareCodePauseParams) (ShockerShockerShareCodePauseRes, error)

ShockerShockerShareCodePause invokes Shocker_ShockerShareCodePause operation.

Pause/Unpause a share code for a shocker.

POST /1/shockers/{shockerId}/shares/{sharedWithUserId}/pause

func (*Client) ShockerShockerShareCodeRemove

func (c *Client) ShockerShockerShareCodeRemove(ctx context.Context, params ShockerShockerShareCodeRemoveParams) (ShockerShockerShareCodeRemoveRes, error)

ShockerShockerShareCodeRemove invokes Shocker_ShockerShareCodeRemove operation.

Remove a share code for a shocker.

DELETE /1/shockers/{shockerId}/shares/{sharedWithUserId}

func (*Client) ShockerShockerShareCodeUpdate

ShockerShockerShareCodeUpdate invokes Shocker_ShockerShareCodeUpdate operation.

Update a share code for a shocker.

PATCH /1/shockers/{shockerId}/shares/{sharedWithUserId}

func (*Client) TokensCreateToken

func (c *Client) TokensCreateToken(ctx context.Context, request OptCreateTokenRequest) (*StringBaseResponse, error)

TokensCreateToken invokes Tokens_CreateToken operation.

Create a new token.

POST /1/tokens

func (*Client) TokensDeleteToken

func (c *Client) TokensDeleteToken(ctx context.Context, params TokensDeleteTokenParams) (TokensDeleteTokenRes, error)

TokensDeleteToken invokes Tokens_DeleteToken operation.

Revoke a token from the current user.

DELETE /1/tokens/{tokenId}

func (*Client) TokensEditToken

func (c *Client) TokensEditToken(ctx context.Context, request OptEditTokenRequest, params TokensEditTokenParams) (TokensEditTokenRes, error)

TokensEditToken invokes Tokens_EditToken operation.

Edit a token.

PATCH /1/tokens/{tokenId}

func (*Client) TokensGetTokenById

func (c *Client) TokensGetTokenById(ctx context.Context, params TokensGetTokenByIdParams) (TokensGetTokenByIdRes, error)

TokensGetTokenById invokes Tokens_GetTokenById operation.

Get a token by id.

GET /1/tokens/{tokenId}

func (*Client) TokensListTokens

func (c *Client) TokensListTokens(ctx context.Context) (*TokenResponseIEnumerableBaseResponse, error)

TokensListTokens invokes Tokens_ListTokens operation.

List all tokens for the current user.

GET /1/tokens

func (*Client) UsersGetSelf

func (c *Client) UsersGetSelf(ctx context.Context) (*SelfResponseBaseResponse, error)

UsersGetSelf invokes Users_GetSelf operation.

Get the current user's information.

GET /1/users/self

func (*Client) VersionGetBackendVersion

func (c *Client) VersionGetBackendVersion(ctx context.Context) (*RootResponseBaseResponse, error)

VersionGetBackendVersion invokes Version_GetBackendVersion operation.

Gets the version of the OpenShock backend.

GET /1

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type Control

type Control struct {
	ID        OptUUID        `json:"id"`
	Type      OptControlType `json:"type"`
	Intensity OptInt32       `json:"intensity"`
	Duration  OptInt32       `json:"duration"`
	Exclusive OptBool        `json:"exclusive"`
}

Ref: #/components/schemas/Control

func (*Control) Decode

func (s *Control) Decode(d *jx.Decoder) error

Decode decodes Control from json.

func (*Control) Encode

func (s *Control) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Control) GetDuration

func (s *Control) GetDuration() OptInt32

GetDuration returns the value of Duration.

func (*Control) GetExclusive

func (s *Control) GetExclusive() OptBool

GetExclusive returns the value of Exclusive.

func (*Control) GetID

func (s *Control) GetID() OptUUID

GetID returns the value of ID.

func (*Control) GetIntensity

func (s *Control) GetIntensity() OptInt32

GetIntensity returns the value of Intensity.

func (*Control) GetType

func (s *Control) GetType() OptControlType

GetType returns the value of Type.

func (*Control) MarshalJSON

func (s *Control) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Control) SetDuration

func (s *Control) SetDuration(val OptInt32)

SetDuration sets the value of Duration.

func (*Control) SetExclusive

func (s *Control) SetExclusive(val OptBool)

SetExclusive sets the value of Exclusive.

func (*Control) SetFake

func (s *Control) SetFake()

SetFake set fake values.

func (*Control) SetID

func (s *Control) SetID(val OptUUID)

SetID sets the value of ID.

func (*Control) SetIntensity

func (s *Control) SetIntensity(val OptInt32)

SetIntensity sets the value of Intensity.

func (*Control) SetType

func (s *Control) SetType(val OptControlType)

SetType sets the value of Type.

func (*Control) UnmarshalJSON

func (s *Control) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Control) Validate

func (s *Control) Validate() error

type ControlLogSenderLight

type ControlLogSenderLight struct {
	ID         OptUUID      `json:"id"`
	Name       OptNilString `json:"name"`
	Image      OptNilURI    `json:"image"`
	CustomName OptNilString `json:"customName"`
}

Ref: #/components/schemas/ControlLogSenderLight

func (*ControlLogSenderLight) Decode

func (s *ControlLogSenderLight) Decode(d *jx.Decoder) error

Decode decodes ControlLogSenderLight from json.

func (*ControlLogSenderLight) Encode

func (s *ControlLogSenderLight) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ControlLogSenderLight) GetCustomName

func (s *ControlLogSenderLight) GetCustomName() OptNilString

GetCustomName returns the value of CustomName.

func (*ControlLogSenderLight) GetID

func (s *ControlLogSenderLight) GetID() OptUUID

GetID returns the value of ID.

func (*ControlLogSenderLight) GetImage

func (s *ControlLogSenderLight) GetImage() OptNilURI

GetImage returns the value of Image.

func (*ControlLogSenderLight) GetName

func (s *ControlLogSenderLight) GetName() OptNilString

GetName returns the value of Name.

func (*ControlLogSenderLight) MarshalJSON

func (s *ControlLogSenderLight) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ControlLogSenderLight) SetCustomName

func (s *ControlLogSenderLight) SetCustomName(val OptNilString)

SetCustomName sets the value of CustomName.

func (*ControlLogSenderLight) SetFake

func (s *ControlLogSenderLight) SetFake()

SetFake set fake values.

func (*ControlLogSenderLight) SetID

func (s *ControlLogSenderLight) SetID(val OptUUID)

SetID sets the value of ID.

func (*ControlLogSenderLight) SetImage

func (s *ControlLogSenderLight) SetImage(val OptNilURI)

SetImage sets the value of Image.

func (*ControlLogSenderLight) SetName

func (s *ControlLogSenderLight) SetName(val OptNilString)

SetName sets the value of Name.

func (*ControlLogSenderLight) UnmarshalJSON

func (s *ControlLogSenderLight) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ControlRequest

type ControlRequest struct {
	Shocks     OptNilControlArray `json:"shocks"`
	CustomName OptNilString       `json:"customName"`
}

Ref: #/components/schemas/ControlRequest

func (*ControlRequest) Decode

func (s *ControlRequest) Decode(d *jx.Decoder) error

Decode decodes ControlRequest from json.

func (*ControlRequest) Encode

func (s *ControlRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ControlRequest) GetCustomName

func (s *ControlRequest) GetCustomName() OptNilString

GetCustomName returns the value of CustomName.

func (*ControlRequest) GetShocks

func (s *ControlRequest) GetShocks() OptNilControlArray

GetShocks returns the value of Shocks.

func (*ControlRequest) MarshalJSON

func (s *ControlRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ControlRequest) SetCustomName

func (s *ControlRequest) SetCustomName(val OptNilString)

SetCustomName sets the value of CustomName.

func (*ControlRequest) SetFake

func (s *ControlRequest) SetFake()

SetFake set fake values.

func (*ControlRequest) SetShocks

func (s *ControlRequest) SetShocks(val OptNilControlArray)

SetShocks sets the value of Shocks.

func (*ControlRequest) UnmarshalJSON

func (s *ControlRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ControlRequest) Validate

func (s *ControlRequest) Validate() error

type ControlType

type ControlType string

Ref: #/components/schemas/ControlType

const (
	ControlTypeStop    ControlType = "Stop"
	ControlTypeShock   ControlType = "Shock"
	ControlTypeVibrate ControlType = "Vibrate"
	ControlTypeSound   ControlType = "Sound"
)

func (ControlType) AllValues

func (ControlType) AllValues() []ControlType

AllValues returns all ControlType values.

func (*ControlType) Decode

func (s *ControlType) Decode(d *jx.Decoder) error

Decode decodes ControlType from json.

func (ControlType) Encode

func (s ControlType) Encode(e *jx.Encoder)

Encode encodes ControlType as json.

func (ControlType) MarshalJSON

func (s ControlType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ControlType) MarshalText

func (s ControlType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ControlType) SetFake

func (s *ControlType) SetFake()

SetFake set fake values.

func (*ControlType) UnmarshalJSON

func (s *ControlType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ControlType) UnmarshalText

func (s *ControlType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ControlType) Validate

func (s ControlType) Validate() error

type CreateShareCode

type CreateShareCode struct {
	Permissions OptShockerPermissions `json:"permissions"`
	Limits      OptShockerLimits      `json:"limits"`
}

Ref: #/components/schemas/CreateShareCode

func (*CreateShareCode) Decode

func (s *CreateShareCode) Decode(d *jx.Decoder) error

Decode decodes CreateShareCode from json.

func (*CreateShareCode) Encode

func (s *CreateShareCode) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateShareCode) GetLimits

func (s *CreateShareCode) GetLimits() OptShockerLimits

GetLimits returns the value of Limits.

func (*CreateShareCode) GetPermissions

func (s *CreateShareCode) GetPermissions() OptShockerPermissions

GetPermissions returns the value of Permissions.

func (*CreateShareCode) MarshalJSON

func (s *CreateShareCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateShareCode) SetFake

func (s *CreateShareCode) SetFake()

SetFake set fake values.

func (*CreateShareCode) SetLimits

func (s *CreateShareCode) SetLimits(val OptShockerLimits)

SetLimits sets the value of Limits.

func (*CreateShareCode) SetPermissions

func (s *CreateShareCode) SetPermissions(val OptShockerPermissions)

SetPermissions sets the value of Permissions.

func (*CreateShareCode) UnmarshalJSON

func (s *CreateShareCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateShareCode) Validate

func (s *CreateShareCode) Validate() error

type CreateTokenRequest

type CreateTokenRequest struct {
	Name        OptNilString              `json:"name"`
	Permissions OptNilPermissionTypeArray `json:"permissions"`
	ValidUntil  OptNilDate                `json:"validUntil"`
}

Ref: #/components/schemas/CreateTokenRequest

func (*CreateTokenRequest) Decode

func (s *CreateTokenRequest) Decode(d *jx.Decoder) error

Decode decodes CreateTokenRequest from json.

func (*CreateTokenRequest) Encode

func (s *CreateTokenRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTokenRequest) GetName

func (s *CreateTokenRequest) GetName() OptNilString

GetName returns the value of Name.

func (*CreateTokenRequest) GetPermissions

func (s *CreateTokenRequest) GetPermissions() OptNilPermissionTypeArray

GetPermissions returns the value of Permissions.

func (*CreateTokenRequest) GetValidUntil

func (s *CreateTokenRequest) GetValidUntil() OptNilDate

GetValidUntil returns the value of ValidUntil.

func (*CreateTokenRequest) MarshalJSON

func (s *CreateTokenRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTokenRequest) SetFake

func (s *CreateTokenRequest) SetFake()

SetFake set fake values.

func (*CreateTokenRequest) SetName

func (s *CreateTokenRequest) SetName(val OptNilString)

SetName sets the value of Name.

func (*CreateTokenRequest) SetPermissions

func (s *CreateTokenRequest) SetPermissions(val OptNilPermissionTypeArray)

SetPermissions sets the value of Permissions.

func (*CreateTokenRequest) SetValidUntil

func (s *CreateTokenRequest) SetValidUntil(val OptNilDate)

SetValidUntil sets the value of ValidUntil.

func (*CreateTokenRequest) UnmarshalJSON

func (s *CreateTokenRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTokenRequest) Validate

func (s *CreateTokenRequest) Validate() error

type DeviceEdit

type DeviceEdit struct {
	Name OptNilString `json:"name"`
}

Ref: #/components/schemas/DeviceEdit

func (*DeviceEdit) Decode

func (s *DeviceEdit) Decode(d *jx.Decoder) error

Decode decodes DeviceEdit from json.

func (*DeviceEdit) Encode

func (s *DeviceEdit) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeviceEdit) GetName

func (s *DeviceEdit) GetName() OptNilString

GetName returns the value of Name.

func (*DeviceEdit) MarshalJSON

func (s *DeviceEdit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeviceEdit) SetFake

func (s *DeviceEdit) SetFake()

SetFake set fake values.

func (*DeviceEdit) SetName

func (s *DeviceEdit) SetName(val OptNilString)

SetName sets the value of Name.

func (*DeviceEdit) UnmarshalJSON

func (s *DeviceEdit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeviceEdit) Validate

func (s *DeviceEdit) Validate() error

type DeviceGetLiveControlGatewayRes

type DeviceGetLiveControlGatewayRes interface {
	// contains filtered or unexported methods
}

type DevicePairDEPRECATEDParams

type DevicePairDEPRECATEDParams struct {
	// The pair code to pair with.
	PairCode string
}

DevicePairDEPRECATEDParams is parameters of Device_Pair_DEPRECATED operation.

type DevicePairDEPRECATEDRes

type DevicePairDEPRECATEDRes interface {
	// contains filtered or unexported methods
}

type DevicePairParams

type DevicePairParams struct {
	// The pair code to pair with.
	PairCode string
}

DevicePairParams is parameters of Device_Pair operation.

type DevicePairRes

type DevicePairRes interface {
	// contains filtered or unexported methods
}

type DeviceSelfResponse

type DeviceSelfResponse struct {
	ID       OptUUID                   `json:"id"`
	Name     OptNilString              `json:"name"`
	Shockers OptNilMinimalShockerArray `json:"shockers"`
}

Ref: #/components/schemas/DeviceSelfResponse

func (*DeviceSelfResponse) Decode

func (s *DeviceSelfResponse) Decode(d *jx.Decoder) error

Decode decodes DeviceSelfResponse from json.

func (*DeviceSelfResponse) Encode

func (s *DeviceSelfResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DeviceSelfResponse) GetID

func (s *DeviceSelfResponse) GetID() OptUUID

GetID returns the value of ID.

func (*DeviceSelfResponse) GetName

func (s *DeviceSelfResponse) GetName() OptNilString

GetName returns the value of Name.

func (*DeviceSelfResponse) GetShockers

GetShockers returns the value of Shockers.

func (*DeviceSelfResponse) MarshalJSON

func (s *DeviceSelfResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeviceSelfResponse) SetFake

func (s *DeviceSelfResponse) SetFake()

SetFake set fake values.

func (*DeviceSelfResponse) SetID

func (s *DeviceSelfResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*DeviceSelfResponse) SetName

func (s *DeviceSelfResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*DeviceSelfResponse) SetShockers

func (s *DeviceSelfResponse) SetShockers(val OptNilMinimalShockerArray)

SetShockers sets the value of Shockers.

func (*DeviceSelfResponse) UnmarshalJSON

func (s *DeviceSelfResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeviceSelfResponse) Validate

func (s *DeviceSelfResponse) Validate() error

type DeviceSelfResponseBaseResponse

type DeviceSelfResponseBaseResponse struct {
	Message OptNilString          `json:"message"`
	Data    OptDeviceSelfResponse `json:"data"`
}

Ref: #/components/schemas/DeviceSelfResponseBaseResponse

func (*DeviceSelfResponseBaseResponse) Decode

Decode decodes DeviceSelfResponseBaseResponse from json.

func (*DeviceSelfResponseBaseResponse) Encode

Encode implements json.Marshaler.

func (*DeviceSelfResponseBaseResponse) GetData

GetData returns the value of Data.

func (*DeviceSelfResponseBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*DeviceSelfResponseBaseResponse) MarshalJSON

func (s *DeviceSelfResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeviceSelfResponseBaseResponse) SetData

SetData sets the value of Data.

func (*DeviceSelfResponseBaseResponse) SetFake

func (s *DeviceSelfResponseBaseResponse) SetFake()

SetFake set fake values.

func (*DeviceSelfResponseBaseResponse) SetMessage

func (s *DeviceSelfResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*DeviceSelfResponseBaseResponse) UnmarshalJSON

func (s *DeviceSelfResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DeviceSelfResponseBaseResponse) Validate

func (s *DeviceSelfResponseBaseResponse) Validate() error

type DevicesEditDeviceParams

type DevicesEditDeviceParams struct {
	DeviceId uuid.UUID
}

DevicesEditDeviceParams is parameters of Devices_EditDevice operation.

type DevicesEditDeviceRes

type DevicesEditDeviceRes interface {
	// contains filtered or unexported methods
}

type DevicesGetDeviceByIdParams

type DevicesGetDeviceByIdParams struct {
	DeviceId uuid.UUID
}

DevicesGetDeviceByIdParams is parameters of Devices_GetDeviceById operation.

type DevicesGetDeviceByIdRes

type DevicesGetDeviceByIdRes interface {
	// contains filtered or unexported methods
}

type DevicesGetLiveControlGatewayInfoInternalServerError

type DevicesGetLiveControlGatewayInfoInternalServerError struct{}

DevicesGetLiveControlGatewayInfoInternalServerError is response for DevicesGetLiveControlGatewayInfo operation.

type DevicesGetLiveControlGatewayInfoNotFound

type DevicesGetLiveControlGatewayInfoNotFound OpenShockProblem

func (*DevicesGetLiveControlGatewayInfoNotFound) Decode

Decode decodes DevicesGetLiveControlGatewayInfoNotFound from json.

func (*DevicesGetLiveControlGatewayInfoNotFound) Encode

Encode encodes DevicesGetLiveControlGatewayInfoNotFound as json.

func (*DevicesGetLiveControlGatewayInfoNotFound) MarshalJSON

func (s *DevicesGetLiveControlGatewayInfoNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DevicesGetLiveControlGatewayInfoNotFound) SetFake

SetFake set fake values.

func (*DevicesGetLiveControlGatewayInfoNotFound) UnmarshalJSON

func (s *DevicesGetLiveControlGatewayInfoNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DevicesGetLiveControlGatewayInfoParams

type DevicesGetLiveControlGatewayInfoParams struct {
	DeviceId uuid.UUID
}

DevicesGetLiveControlGatewayInfoParams is parameters of Devices_GetLiveControlGatewayInfo operation.

type DevicesGetLiveControlGatewayInfoPreconditionFailed

type DevicesGetLiveControlGatewayInfoPreconditionFailed OpenShockProblem

func (*DevicesGetLiveControlGatewayInfoPreconditionFailed) Decode

Decode decodes DevicesGetLiveControlGatewayInfoPreconditionFailed from json.

func (*DevicesGetLiveControlGatewayInfoPreconditionFailed) Encode

Encode encodes DevicesGetLiveControlGatewayInfoPreconditionFailed as json.

func (*DevicesGetLiveControlGatewayInfoPreconditionFailed) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*DevicesGetLiveControlGatewayInfoPreconditionFailed) SetFake

SetFake set fake values.

func (*DevicesGetLiveControlGatewayInfoPreconditionFailed) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type DevicesGetLiveControlGatewayInfoRes

type DevicesGetLiveControlGatewayInfoRes interface {
	// contains filtered or unexported methods
}

type DevicesGetOtaUpdateHistoryParams

type DevicesGetOtaUpdateHistoryParams struct {
	// Id of the device.
	DeviceId uuid.UUID
}

DevicesGetOtaUpdateHistoryParams is parameters of Devices_GetOtaUpdateHistory operation.

type DevicesGetOtaUpdateHistoryRes

type DevicesGetOtaUpdateHistoryRes interface {
	// contains filtered or unexported methods
}

type DevicesGetPairCodeParams

type DevicesGetPairCodeParams struct {
	DeviceId uuid.UUID
}

DevicesGetPairCodeParams is parameters of Devices_GetPairCode operation.

type DevicesGetPairCodeRes

type DevicesGetPairCodeRes interface {
	// contains filtered or unexported methods
}

type DevicesGetShockersParams

type DevicesGetShockersParams struct {
	// The device id.
	DeviceId uuid.UUID
}

DevicesGetShockersParams is parameters of Devices_GetShockers operation.

type DevicesGetShockersRes

type DevicesGetShockersRes interface {
	// contains filtered or unexported methods
}

type DevicesRegenerateDeviceTokenInternalServerError

type DevicesRegenerateDeviceTokenInternalServerError struct{}

DevicesRegenerateDeviceTokenInternalServerError is response for DevicesRegenerateDeviceToken operation.

type DevicesRegenerateDeviceTokenParams

type DevicesRegenerateDeviceTokenParams struct {
	// The id of the device to regenerate the token for.
	DeviceId uuid.UUID
}

DevicesRegenerateDeviceTokenParams is parameters of Devices_RegenerateDeviceToken operation.

type DevicesRegenerateDeviceTokenRes

type DevicesRegenerateDeviceTokenRes interface {
	// contains filtered or unexported methods
}

type DevicesRemoveDeviceParams

type DevicesRemoveDeviceParams struct {
	// The id of the device to delete.
	DeviceId uuid.UUID
}

DevicesRemoveDeviceParams is parameters of Devices_RemoveDevice operation.

type DevicesRemoveDeviceRes

type DevicesRemoveDeviceRes interface {
	// contains filtered or unexported methods
}

type EditTokenRequest

type EditTokenRequest struct {
	Name        OptNilString              `json:"name"`
	Permissions OptNilPermissionTypeArray `json:"permissions"`
}

Ref: #/components/schemas/EditTokenRequest

func (*EditTokenRequest) Decode

func (s *EditTokenRequest) Decode(d *jx.Decoder) error

Decode decodes EditTokenRequest from json.

func (*EditTokenRequest) Encode

func (s *EditTokenRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EditTokenRequest) GetName

func (s *EditTokenRequest) GetName() OptNilString

GetName returns the value of Name.

func (*EditTokenRequest) GetPermissions

func (s *EditTokenRequest) GetPermissions() OptNilPermissionTypeArray

GetPermissions returns the value of Permissions.

func (*EditTokenRequest) MarshalJSON

func (s *EditTokenRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EditTokenRequest) SetFake

func (s *EditTokenRequest) SetFake()

SetFake set fake values.

func (*EditTokenRequest) SetName

func (s *EditTokenRequest) SetName(val OptNilString)

SetName sets the value of Name.

func (*EditTokenRequest) SetPermissions

func (s *EditTokenRequest) SetPermissions(val OptNilPermissionTypeArray)

SetPermissions sets the value of Permissions.

func (*EditTokenRequest) UnmarshalJSON

func (s *EditTokenRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EditTokenRequest) Validate

func (s *EditTokenRequest) Validate() error

type GenericIni

type GenericIni struct {
	ID    OptUUID      `json:"id"`
	Name  OptNilString `json:"name"`
	Image OptNilURI    `json:"image"`
}

Ref: #/components/schemas/GenericIni

func (*GenericIni) Decode

func (s *GenericIni) Decode(d *jx.Decoder) error

Decode decodes GenericIni from json.

func (*GenericIni) Encode

func (s *GenericIni) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GenericIni) GetID

func (s *GenericIni) GetID() OptUUID

GetID returns the value of ID.

func (*GenericIni) GetImage

func (s *GenericIni) GetImage() OptNilURI

GetImage returns the value of Image.

func (*GenericIni) GetName

func (s *GenericIni) GetName() OptNilString

GetName returns the value of Name.

func (*GenericIni) MarshalJSON

func (s *GenericIni) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GenericIni) SetFake

func (s *GenericIni) SetFake()

SetFake set fake values.

func (*GenericIni) SetID

func (s *GenericIni) SetID(val OptUUID)

SetID sets the value of ID.

func (*GenericIni) SetImage

func (s *GenericIni) SetImage(val OptNilURI)

SetImage sets the value of Image.

func (*GenericIni) SetName

func (s *GenericIni) SetName(val OptNilString)

SetName sets the value of Name.

func (*GenericIni) UnmarshalJSON

func (s *GenericIni) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GuidBaseResponse

type GuidBaseResponse struct {
	Message OptNilString `json:"message"`
	Data    OptUUID      `json:"data"`
}

Ref: #/components/schemas/GuidBaseResponse

func (*GuidBaseResponse) Decode

func (s *GuidBaseResponse) Decode(d *jx.Decoder) error

Decode decodes GuidBaseResponse from json.

func (*GuidBaseResponse) Encode

func (s *GuidBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GuidBaseResponse) GetData

func (s *GuidBaseResponse) GetData() OptUUID

GetData returns the value of Data.

func (*GuidBaseResponse) GetMessage

func (s *GuidBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*GuidBaseResponse) MarshalJSON

func (s *GuidBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GuidBaseResponse) SetData

func (s *GuidBaseResponse) SetData(val OptUUID)

SetData sets the value of Data.

func (*GuidBaseResponse) SetFake

func (s *GuidBaseResponse) SetFake()

SetFake set fake values.

func (*GuidBaseResponse) SetMessage

func (s *GuidBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*GuidBaseResponse) UnmarshalJSON

func (s *GuidBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Invoker

type Invoker interface {
	// AccountLogin invokes Account_Login operation.
	//
	// Authenticate a user.
	//
	// POST /1/account/login
	AccountLogin(ctx context.Context, request OptLogin) (AccountLoginRes, error)
	// AccountLoginV2 invokes Account_LoginV2 operation.
	//
	// Authenticate a user.
	//
	// POST /2/account/login
	AccountLoginV2(ctx context.Context, request OptLoginV2) (AccountLoginV2Res, error)
	// AccountPasswordResetCheckValid invokes Account_PasswordResetCheckValid operation.
	//
	// Check if a password reset is in progress.
	//
	// HEAD /1/account/recover/{passwordResetId}/{secret}
	AccountPasswordResetCheckValid(ctx context.Context, params AccountPasswordResetCheckValidParams) (AccountPasswordResetCheckValidRes, error)
	// AccountPasswordResetComplete invokes Account_PasswordResetComplete operation.
	//
	// Complete a password reset process.
	//
	// POST /1/account/recover/{passwordResetId}/{secret}
	AccountPasswordResetComplete(ctx context.Context, request OptPasswordResetProcessData, params AccountPasswordResetCompleteParams) (AccountPasswordResetCompleteRes, error)
	// AccountPasswordResetInitiate invokes Account_PasswordResetInitiate operation.
	//
	// Initiate a password reset.
	//
	// POST /1/account/reset
	AccountPasswordResetInitiate(ctx context.Context, request OptResetRequest) (*ObjectBaseResponse, error)
	// AccountSignUp invokes Account_SignUp operation.
	//
	// Signs up a new user.
	//
	// POST /1/account/signup
	AccountSignUp(ctx context.Context, request OptSignUp) (AccountSignUpRes, error)
	// AccountSignUpV2 invokes Account_SignUpV2 operation.
	//
	// Signs up a new user.
	//
	// POST /2/account/signup
	AccountSignUpV2(ctx context.Context, request OptSignUpV2) (AccountSignUpV2Res, error)
	// AdminGetOnlineDevices invokes Admin_GetOnlineDevices operation.
	//
	// Gets all online devices.
	//
	// GET /1/admin/monitoring/onlineDevices
	AdminGetOnlineDevices(ctx context.Context) (AdminGetOnlineDevicesRes, error)
	// DeviceGetLiveControlGateway invokes Device_GetLiveControlGateway operation.
	//
	// Gets the best suited LCG node for the client.
	//
	// GET /1/device/assignLCG
	DeviceGetLiveControlGateway(ctx context.Context) (DeviceGetLiveControlGatewayRes, error)
	// DeviceGetSelf invokes Device_GetSelf operation.
	//
	// Gets information about the authenticated device.
	//
	// GET /1/device/self
	DeviceGetSelf(ctx context.Context) (*DeviceSelfResponseBaseResponse, error)
	// DevicePair invokes Device_Pair operation.
	//
	// Pair a device with a pair code.
	//
	// GET /1/device/pair/{pairCode}
	DevicePair(ctx context.Context, params DevicePairParams) (DevicePairRes, error)
	// DevicePairDEPRECATED invokes Device_Pair_DEPRECATED operation.
	//
	// Pair a device with a pair code.
	//
	// GET /1/pair/{pairCode}
	DevicePairDEPRECATED(ctx context.Context, params DevicePairDEPRECATEDParams) (DevicePairDEPRECATEDRes, error)
	// DevicesCreateDevice invokes Devices_CreateDevice operation.
	//
	// Create a new device for the current user.
	//
	// POST /1/devices
	DevicesCreateDevice(ctx context.Context) (*GuidBaseResponse, error)
	// DevicesEditDevice invokes Devices_EditDevice operation.
	//
	// Edit a device.
	//
	// PATCH /1/devices/{deviceId}
	DevicesEditDevice(ctx context.Context, request OptDeviceEdit, params DevicesEditDeviceParams) (DevicesEditDeviceRes, error)
	// DevicesGetDeviceById invokes Devices_GetDeviceById operation.
	//
	// Get a device by its id.
	//
	// GET /1/devices/{deviceId}
	DevicesGetDeviceById(ctx context.Context, params DevicesGetDeviceByIdParams) (DevicesGetDeviceByIdRes, error)
	// DevicesGetLiveControlGatewayInfo invokes Devices_GetLiveControlGatewayInfo operation.
	//
	// Get LCG info for a device if it is online and connected to a LCG node.
	//
	// GET /1/devices/{deviceId}/lcg
	DevicesGetLiveControlGatewayInfo(ctx context.Context, params DevicesGetLiveControlGatewayInfoParams) (DevicesGetLiveControlGatewayInfoRes, error)
	// DevicesGetOtaUpdateHistory invokes Devices_GetOtaUpdateHistory operation.
	//
	// Gets the OTA update history for a device.
	//
	// GET /1/devices/{deviceId}/ota
	DevicesGetOtaUpdateHistory(ctx context.Context, params DevicesGetOtaUpdateHistoryParams) (DevicesGetOtaUpdateHistoryRes, error)
	// DevicesGetPairCode invokes Devices_GetPairCode operation.
	//
	// Get a pair code for a device.
	//
	// GET /1/devices/{deviceId}/pair
	DevicesGetPairCode(ctx context.Context, params DevicesGetPairCodeParams) (DevicesGetPairCodeRes, error)
	// DevicesGetShockers invokes Devices_GetShockers operation.
	//
	// Get all shockers for a device.
	//
	// GET /1/devices/{deviceId}/shockers
	DevicesGetShockers(ctx context.Context, params DevicesGetShockersParams) (DevicesGetShockersRes, error)
	// DevicesListDevices invokes Devices_ListDevices operation.
	//
	// Get all devices for the current user.
	//
	// GET /1/devices
	DevicesListDevices(ctx context.Context) (*ResponseDeviceIEnumerableBaseResponse, error)
	// DevicesRegenerateDeviceToken invokes Devices_RegenerateDeviceToken operation.
	//
	// Regenerate a device token.
	//
	// PUT /1/devices/{deviceId}
	DevicesRegenerateDeviceToken(ctx context.Context, params DevicesRegenerateDeviceTokenParams) (DevicesRegenerateDeviceTokenRes, error)
	// DevicesRemoveDevice invokes Devices_RemoveDevice operation.
	//
	// Remove a device from current user's account.
	//
	// DELETE /1/devices/{deviceId}
	DevicesRemoveDevice(ctx context.Context, params DevicesRemoveDeviceParams) (DevicesRemoveDeviceRes, error)
	// PublicGetOnlineDevicesStatistics invokes Public_GetOnlineDevicesStatistics operation.
	//
	// Gets online devices statistics.
	//
	// GET /1/public/stats
	PublicGetOnlineDevicesStatistics(ctx context.Context) (*StatsResponseBaseResponse, error)
	// PublicGetShareLink invokes Public_GetShareLink operation.
	//
	// Gets information about a public share link.
	//
	// GET /1/public/shares/links/{shareLinkId}
	PublicGetShareLink(ctx context.Context, params PublicGetShareLinkParams) (PublicGetShareLinkRes, error)
	// ShareLinksAddShocker invokes ShareLinks_AddShocker operation.
	//
	// Add a shocker to a share link.
	//
	// POST /1/shares/links/{shareLinkId}/{shockerId}
	ShareLinksAddShocker(ctx context.Context, params ShareLinksAddShockerParams) (ShareLinksAddShockerRes, error)
	// ShareLinksCreateShareLink invokes ShareLinks_CreateShareLink operation.
	//
	// Create a new share link.
	//
	// POST /1/shares/links
	ShareLinksCreateShareLink(ctx context.Context, request OptShareLinkCreate) (*GuidBaseResponse, error)
	// ShareLinksDeleteShareLink invokes ShareLinks_DeleteShareLink operation.
	//
	// Deletes a share link.
	//
	// DELETE /1/shares/links/{shareLinkId}
	ShareLinksDeleteShareLink(ctx context.Context, params ShareLinksDeleteShareLinkParams) (ShareLinksDeleteShareLinkRes, error)
	// ShareLinksEditShocker invokes ShareLinks_EditShocker operation.
	//
	// Edit a shocker in a share link.
	//
	// PATCH /1/shares/links/{shareLinkId}/{shockerId}
	ShareLinksEditShocker(ctx context.Context, request OptShareLinkEditShocker, params ShareLinksEditShockerParams) (ShareLinksEditShockerRes, error)
	// ShareLinksList invokes ShareLinks_List operation.
	//
	// Get all share links for the current user.
	//
	// GET /1/shares/links
	ShareLinksList(ctx context.Context) (*ShareLinkResponseIEnumerableBaseResponse, error)
	// ShareLinksPauseShocker invokes ShareLinks_PauseShocker operation.
	//
	// Pause a shocker in a share link.
	//
	// POST /1/shares/links/{shareLinkId}/{shockerId}/pause
	ShareLinksPauseShocker(ctx context.Context, request OptPauseRequest, params ShareLinksPauseShockerParams) (ShareLinksPauseShockerRes, error)
	// ShareLinksRemoveShocker invokes ShareLinks_RemoveShocker operation.
	//
	// Remove a shocker from a share link.
	//
	// DELETE /1/shares/links/{shareLinkId}/{shockerId}
	ShareLinksRemoveShocker(ctx context.Context, params ShareLinksRemoveShockerParams) (ShareLinksRemoveShockerRes, error)
	// SharesDeleteShareCode invokes Shares_DeleteShareCode operation.
	//
	// Delete a share code.
	//
	// DELETE /1/shares/code/{shareCodeId}
	SharesDeleteShareCode(ctx context.Context, params SharesDeleteShareCodeParams) (SharesDeleteShareCodeRes, error)
	// SharesLinkShareCode invokes Shares_LinkShareCode operation.
	//
	// Link a share code to your account.
	//
	// POST /1/shares/code/{shareCodeId}
	SharesLinkShareCode(ctx context.Context, params SharesLinkShareCodeParams) (SharesLinkShareCodeRes, error)
	// ShockerEditShocker invokes Shocker_EditShocker operation.
	//
	// Edit a shocker.
	//
	// PATCH /1/shockers/{shockerId}
	ShockerEditShocker(ctx context.Context, request OptNewShocker, params ShockerEditShockerParams) (ShockerEditShockerRes, error)
	// ShockerGetShockerById invokes Shocker_GetShockerById operation.
	//
	// Get information about a shocker.
	//
	// GET /1/shockers/{shockerId}
	ShockerGetShockerById(ctx context.Context, params ShockerGetShockerByIdParams) (ShockerGetShockerByIdRes, error)
	// ShockerGetShockerLogs invokes Shocker_GetShockerLogs operation.
	//
	// Get the logs for a shocker.
	//
	// GET /1/shockers/{shockerId}/logs
	ShockerGetShockerLogs(ctx context.Context, params ShockerGetShockerLogsParams) (ShockerGetShockerLogsRes, error)
	// ShockerGetShockerShares invokes Shocker_GetShockerShares operation.
	//
	// Get all shares for a shocker.
	//
	// GET /1/shockers/{shockerId}/shares
	ShockerGetShockerShares(ctx context.Context, params ShockerGetShockerSharesParams) (ShockerGetShockerSharesRes, error)
	// ShockerListSharedShockers invokes Shocker_ListSharedShockers operation.
	//
	// List all shockers shared with the authenticated user.
	//
	// GET /1/shockers/shared
	ShockerListSharedShockers(ctx context.Context) (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse, error)
	// ShockerListShockers invokes Shocker_ListShockers operation.
	//
	// List all shockers belonging to the authenticated user.
	//
	// GET /1/shockers/own
	ShockerListShockers(ctx context.Context) (*ResponseDeviceWithShockersIEnumerableBaseResponse, error)
	// ShockerPauseShocker invokes Shocker_PauseShocker operation.
	//
	// Pause or unpause a shocker.
	//
	// POST /1/shockers/{shockerId}/pause
	ShockerPauseShocker(ctx context.Context, request OptPauseRequest, params ShockerPauseShockerParams) (ShockerPauseShockerRes, error)
	// ShockerRegisterShocker invokes Shocker_RegisterShocker operation.
	//
	// Register a shocker.
	//
	// POST /1/shockers
	ShockerRegisterShocker(ctx context.Context, request OptNewShocker) (ShockerRegisterShockerRes, error)
	// ShockerRemoveShocker invokes Shocker_RemoveShocker operation.
	//
	// Remove a shocker.
	//
	// DELETE /1/shockers/{shockerId}
	ShockerRemoveShocker(ctx context.Context, params ShockerRemoveShockerParams) (ShockerRemoveShockerRes, error)
	// ShockerSendControl invokes Shocker_SendControl operation.
	//
	// Send a control message to shockers.
	//
	// POST /2/shockers/control
	ShockerSendControl(ctx context.Context, request OptControlRequest) (ShockerSendControlRes, error)
	// ShockerSendControlDEPRECATED invokes Shocker_SendControl_DEPRECATED operation.
	//
	// Send a control message to shockers (Deprecated in favor of the /2/shockers/control endpoint).
	//
	// POST /1/shockers/control
	ShockerSendControlDEPRECATED(ctx context.Context, request []Control) (ShockerSendControlDEPRECATEDRes, error)
	// ShockerShockerShareCodeCreate invokes Shocker_ShockerShareCodeCreate operation.
	//
	// Create a share code for a shocker.
	//
	// POST /1/shockers/{shockerId}/shares
	ShockerShockerShareCodeCreate(ctx context.Context, request OptCreateShareCode, params ShockerShockerShareCodeCreateParams) (ShockerShockerShareCodeCreateRes, error)
	// ShockerShockerShareCodeList invokes Shocker_ShockerShareCodeList operation.
	//
	// List all share codes for a shocker.
	//
	// GET /1/shockers/{shockerId}/shareCodes
	ShockerShockerShareCodeList(ctx context.Context, params ShockerShockerShareCodeListParams) (ShockerShockerShareCodeListRes, error)
	// ShockerShockerShareCodePause invokes Shocker_ShockerShareCodePause operation.
	//
	// Pause/Unpause a share code for a shocker.
	//
	// POST /1/shockers/{shockerId}/shares/{sharedWithUserId}/pause
	ShockerShockerShareCodePause(ctx context.Context, request OptPauseRequest, params ShockerShockerShareCodePauseParams) (ShockerShockerShareCodePauseRes, error)
	// ShockerShockerShareCodeRemove invokes Shocker_ShockerShareCodeRemove operation.
	//
	// Remove a share code for a shocker.
	//
	// DELETE /1/shockers/{shockerId}/shares/{sharedWithUserId}
	ShockerShockerShareCodeRemove(ctx context.Context, params ShockerShockerShareCodeRemoveParams) (ShockerShockerShareCodeRemoveRes, error)
	// ShockerShockerShareCodeUpdate invokes Shocker_ShockerShareCodeUpdate operation.
	//
	// Update a share code for a shocker.
	//
	// PATCH /1/shockers/{shockerId}/shares/{sharedWithUserId}
	ShockerShockerShareCodeUpdate(ctx context.Context, request OptCreateShareCode, params ShockerShockerShareCodeUpdateParams) (ShockerShockerShareCodeUpdateRes, error)
	// TokensCreateToken invokes Tokens_CreateToken operation.
	//
	// Create a new token.
	//
	// POST /1/tokens
	TokensCreateToken(ctx context.Context, request OptCreateTokenRequest) (*StringBaseResponse, error)
	// TokensDeleteToken invokes Tokens_DeleteToken operation.
	//
	// Revoke a token from the current user.
	//
	// DELETE /1/tokens/{tokenId}
	TokensDeleteToken(ctx context.Context, params TokensDeleteTokenParams) (TokensDeleteTokenRes, error)
	// TokensEditToken invokes Tokens_EditToken operation.
	//
	// Edit a token.
	//
	// PATCH /1/tokens/{tokenId}
	TokensEditToken(ctx context.Context, request OptEditTokenRequest, params TokensEditTokenParams) (TokensEditTokenRes, error)
	// TokensGetTokenById invokes Tokens_GetTokenById operation.
	//
	// Get a token by id.
	//
	// GET /1/tokens/{tokenId}
	TokensGetTokenById(ctx context.Context, params TokensGetTokenByIdParams) (TokensGetTokenByIdRes, error)
	// TokensListTokens invokes Tokens_ListTokens operation.
	//
	// List all tokens for the current user.
	//
	// GET /1/tokens
	TokensListTokens(ctx context.Context) (*TokenResponseIEnumerableBaseResponse, error)
	// UsersGetSelf invokes Users_GetSelf operation.
	//
	// Get the current user's information.
	//
	// GET /1/users/self
	UsersGetSelf(ctx context.Context) (*SelfResponseBaseResponse, error)
	// VersionGetBackendVersion invokes Version_GetBackendVersion operation.
	//
	// Gets the version of the OpenShock backend.
	//
	// GET /1
	VersionGetBackendVersion(ctx context.Context) (*RootResponseBaseResponse, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type LcgNodeResponse

type LcgNodeResponse struct {
	Fqdn    OptNilString `json:"fqdn"`
	Country OptNilString `json:"country"`
}

Ref: #/components/schemas/LcgNodeResponse

func (*LcgNodeResponse) Decode

func (s *LcgNodeResponse) Decode(d *jx.Decoder) error

Decode decodes LcgNodeResponse from json.

func (*LcgNodeResponse) Encode

func (s *LcgNodeResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LcgNodeResponse) GetCountry

func (s *LcgNodeResponse) GetCountry() OptNilString

GetCountry returns the value of Country.

func (*LcgNodeResponse) GetFqdn

func (s *LcgNodeResponse) GetFqdn() OptNilString

GetFqdn returns the value of Fqdn.

func (*LcgNodeResponse) MarshalJSON

func (s *LcgNodeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LcgNodeResponse) SetCountry

func (s *LcgNodeResponse) SetCountry(val OptNilString)

SetCountry sets the value of Country.

func (*LcgNodeResponse) SetFake

func (s *LcgNodeResponse) SetFake()

SetFake set fake values.

func (*LcgNodeResponse) SetFqdn

func (s *LcgNodeResponse) SetFqdn(val OptNilString)

SetFqdn sets the value of Fqdn.

func (*LcgNodeResponse) UnmarshalJSON

func (s *LcgNodeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LcgNodeResponseBaseResponse

type LcgNodeResponseBaseResponse struct {
	Message OptNilString       `json:"message"`
	Data    OptLcgNodeResponse `json:"data"`
}

Ref: #/components/schemas/LcgNodeResponseBaseResponse

func (*LcgNodeResponseBaseResponse) Decode

Decode decodes LcgNodeResponseBaseResponse from json.

func (*LcgNodeResponseBaseResponse) Encode

func (s *LcgNodeResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LcgNodeResponseBaseResponse) GetData

GetData returns the value of Data.

func (*LcgNodeResponseBaseResponse) GetMessage

func (s *LcgNodeResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*LcgNodeResponseBaseResponse) MarshalJSON

func (s *LcgNodeResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LcgNodeResponseBaseResponse) SetData

SetData sets the value of Data.

func (*LcgNodeResponseBaseResponse) SetFake

func (s *LcgNodeResponseBaseResponse) SetFake()

SetFake set fake values.

func (*LcgNodeResponseBaseResponse) SetMessage

func (s *LcgNodeResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*LcgNodeResponseBaseResponse) UnmarshalJSON

func (s *LcgNodeResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LcgResponse

type LcgResponse struct {
	Gateway OptNilString `json:"gateway"`
	Country OptNilString `json:"country"`
}

Ref: #/components/schemas/LcgResponse

func (*LcgResponse) Decode

func (s *LcgResponse) Decode(d *jx.Decoder) error

Decode decodes LcgResponse from json.

func (*LcgResponse) Encode

func (s *LcgResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LcgResponse) GetCountry

func (s *LcgResponse) GetCountry() OptNilString

GetCountry returns the value of Country.

func (*LcgResponse) GetGateway

func (s *LcgResponse) GetGateway() OptNilString

GetGateway returns the value of Gateway.

func (*LcgResponse) MarshalJSON

func (s *LcgResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LcgResponse) SetCountry

func (s *LcgResponse) SetCountry(val OptNilString)

SetCountry sets the value of Country.

func (*LcgResponse) SetFake

func (s *LcgResponse) SetFake()

SetFake set fake values.

func (*LcgResponse) SetGateway

func (s *LcgResponse) SetGateway(val OptNilString)

SetGateway sets the value of Gateway.

func (*LcgResponse) UnmarshalJSON

func (s *LcgResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LcgResponseBaseResponse

type LcgResponseBaseResponse struct {
	Message OptNilString   `json:"message"`
	Data    OptLcgResponse `json:"data"`
}

Ref: #/components/schemas/LcgResponseBaseResponse

func (*LcgResponseBaseResponse) Decode

func (s *LcgResponseBaseResponse) Decode(d *jx.Decoder) error

Decode decodes LcgResponseBaseResponse from json.

func (*LcgResponseBaseResponse) Encode

func (s *LcgResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LcgResponseBaseResponse) GetData

GetData returns the value of Data.

func (*LcgResponseBaseResponse) GetMessage

func (s *LcgResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*LcgResponseBaseResponse) MarshalJSON

func (s *LcgResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LcgResponseBaseResponse) SetData

func (s *LcgResponseBaseResponse) SetData(val OptLcgResponse)

SetData sets the value of Data.

func (*LcgResponseBaseResponse) SetFake

func (s *LcgResponseBaseResponse) SetFake()

SetFake set fake values.

func (*LcgResponseBaseResponse) SetMessage

func (s *LcgResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*LcgResponseBaseResponse) UnmarshalJSON

func (s *LcgResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LogEntry

type LogEntry struct {
	ID           OptUUID                  `json:"id"`
	CreatedOn    OptDateTime              `json:"createdOn"`
	Type         OptControlType           `json:"type"`
	ControlledBy OptControlLogSenderLight `json:"controlledBy"`
	Intensity    OptInt32                 `json:"intensity"`
	Duration     OptInt32                 `json:"duration"`
}

Ref: #/components/schemas/LogEntry

func (*LogEntry) Decode

func (s *LogEntry) Decode(d *jx.Decoder) error

Decode decodes LogEntry from json.

func (*LogEntry) Encode

func (s *LogEntry) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LogEntry) GetControlledBy

func (s *LogEntry) GetControlledBy() OptControlLogSenderLight

GetControlledBy returns the value of ControlledBy.

func (*LogEntry) GetCreatedOn

func (s *LogEntry) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*LogEntry) GetDuration

func (s *LogEntry) GetDuration() OptInt32

GetDuration returns the value of Duration.

func (*LogEntry) GetID

func (s *LogEntry) GetID() OptUUID

GetID returns the value of ID.

func (*LogEntry) GetIntensity

func (s *LogEntry) GetIntensity() OptInt32

GetIntensity returns the value of Intensity.

func (*LogEntry) GetType

func (s *LogEntry) GetType() OptControlType

GetType returns the value of Type.

func (*LogEntry) MarshalJSON

func (s *LogEntry) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogEntry) SetControlledBy

func (s *LogEntry) SetControlledBy(val OptControlLogSenderLight)

SetControlledBy sets the value of ControlledBy.

func (*LogEntry) SetCreatedOn

func (s *LogEntry) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*LogEntry) SetDuration

func (s *LogEntry) SetDuration(val OptInt32)

SetDuration sets the value of Duration.

func (*LogEntry) SetFake

func (s *LogEntry) SetFake()

SetFake set fake values.

func (*LogEntry) SetID

func (s *LogEntry) SetID(val OptUUID)

SetID sets the value of ID.

func (*LogEntry) SetIntensity

func (s *LogEntry) SetIntensity(val OptInt32)

SetIntensity sets the value of Intensity.

func (*LogEntry) SetType

func (s *LogEntry) SetType(val OptControlType)

SetType sets the value of Type.

func (*LogEntry) UnmarshalJSON

func (s *LogEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LogEntry) Validate

func (s *LogEntry) Validate() error

type LogEntryIEnumerableBaseResponse

type LogEntryIEnumerableBaseResponse struct {
	Message OptNilString        `json:"message"`
	Data    OptNilLogEntryArray `json:"data"`
}

Ref: #/components/schemas/LogEntryIEnumerableBaseResponse

func (*LogEntryIEnumerableBaseResponse) Decode

Decode decodes LogEntryIEnumerableBaseResponse from json.

func (*LogEntryIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*LogEntryIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*LogEntryIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*LogEntryIEnumerableBaseResponse) MarshalJSON

func (s *LogEntryIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LogEntryIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*LogEntryIEnumerableBaseResponse) SetFake

func (s *LogEntryIEnumerableBaseResponse) SetFake()

SetFake set fake values.

func (*LogEntryIEnumerableBaseResponse) SetMessage

func (s *LogEntryIEnumerableBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*LogEntryIEnumerableBaseResponse) UnmarshalJSON

func (s *LogEntryIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LogEntryIEnumerableBaseResponse) Validate

func (s *LogEntryIEnumerableBaseResponse) Validate() error

type Login

type Login struct {
	Password OptNilString `json:"password"`
	Email    OptNilString `json:"email"`
}

Ref: #/components/schemas/Login

func (*Login) Decode

func (s *Login) Decode(d *jx.Decoder) error

Decode decodes Login from json.

func (*Login) Encode

func (s *Login) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Login) GetEmail

func (s *Login) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*Login) GetPassword

func (s *Login) GetPassword() OptNilString

GetPassword returns the value of Password.

func (*Login) MarshalJSON

func (s *Login) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Login) SetEmail

func (s *Login) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*Login) SetFake

func (s *Login) SetFake()

SetFake set fake values.

func (*Login) SetPassword

func (s *Login) SetPassword(val OptNilString)

SetPassword sets the value of Password.

func (*Login) UnmarshalJSON

func (s *Login) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*Login) Validate

func (s *Login) Validate() error

type LoginV2

type LoginV2 struct {
	Password          string `json:"password"`
	Email             string `json:"email"`
	TurnstileResponse string `json:"turnstileResponse"`
}

Ref: #/components/schemas/LoginV2

func (*LoginV2) Decode

func (s *LoginV2) Decode(d *jx.Decoder) error

Decode decodes LoginV2 from json.

func (*LoginV2) Encode

func (s *LoginV2) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LoginV2) GetEmail

func (s *LoginV2) GetEmail() string

GetEmail returns the value of Email.

func (*LoginV2) GetPassword

func (s *LoginV2) GetPassword() string

GetPassword returns the value of Password.

func (*LoginV2) GetTurnstileResponse

func (s *LoginV2) GetTurnstileResponse() string

GetTurnstileResponse returns the value of TurnstileResponse.

func (*LoginV2) MarshalJSON

func (s *LoginV2) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LoginV2) SetEmail

func (s *LoginV2) SetEmail(val string)

SetEmail sets the value of Email.

func (*LoginV2) SetFake

func (s *LoginV2) SetFake()

SetFake set fake values.

func (*LoginV2) SetPassword

func (s *LoginV2) SetPassword(val string)

SetPassword sets the value of Password.

func (*LoginV2) SetTurnstileResponse

func (s *LoginV2) SetTurnstileResponse(val string)

SetTurnstileResponse sets the value of TurnstileResponse.

func (*LoginV2) UnmarshalJSON

func (s *LoginV2) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*LoginV2) Validate

func (s *LoginV2) Validate() error

type MinimalShocker

type MinimalShocker struct {
	ID    OptUUID             `json:"id"`
	RfId  OptInt32            `json:"rfId"`
	Model OptShockerModelType `json:"model"`
}

Ref: #/components/schemas/MinimalShocker

func (*MinimalShocker) Decode

func (s *MinimalShocker) Decode(d *jx.Decoder) error

Decode decodes MinimalShocker from json.

func (*MinimalShocker) Encode

func (s *MinimalShocker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MinimalShocker) GetID

func (s *MinimalShocker) GetID() OptUUID

GetID returns the value of ID.

func (*MinimalShocker) GetModel

func (s *MinimalShocker) GetModel() OptShockerModelType

GetModel returns the value of Model.

func (*MinimalShocker) GetRfId

func (s *MinimalShocker) GetRfId() OptInt32

GetRfId returns the value of RfId.

func (*MinimalShocker) MarshalJSON

func (s *MinimalShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MinimalShocker) SetFake

func (s *MinimalShocker) SetFake()

SetFake set fake values.

func (*MinimalShocker) SetID

func (s *MinimalShocker) SetID(val OptUUID)

SetID sets the value of ID.

func (*MinimalShocker) SetModel

func (s *MinimalShocker) SetModel(val OptShockerModelType)

SetModel sets the value of Model.

func (*MinimalShocker) SetRfId

func (s *MinimalShocker) SetRfId(val OptInt32)

SetRfId sets the value of RfId.

func (*MinimalShocker) UnmarshalJSON

func (s *MinimalShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*MinimalShocker) Validate

func (s *MinimalShocker) Validate() error

type NewShocker

type NewShocker struct {
	Name   OptNilString        `json:"name"`
	RfId   OptInt32            `json:"rfId"`
	Device OptUUID             `json:"device"`
	Model  OptShockerModelType `json:"model"`
}

Ref: #/components/schemas/NewShocker

func (*NewShocker) Decode

func (s *NewShocker) Decode(d *jx.Decoder) error

Decode decodes NewShocker from json.

func (*NewShocker) Encode

func (s *NewShocker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*NewShocker) GetDevice

func (s *NewShocker) GetDevice() OptUUID

GetDevice returns the value of Device.

func (*NewShocker) GetModel

func (s *NewShocker) GetModel() OptShockerModelType

GetModel returns the value of Model.

func (*NewShocker) GetName

func (s *NewShocker) GetName() OptNilString

GetName returns the value of Name.

func (*NewShocker) GetRfId

func (s *NewShocker) GetRfId() OptInt32

GetRfId returns the value of RfId.

func (*NewShocker) MarshalJSON

func (s *NewShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*NewShocker) SetDevice

func (s *NewShocker) SetDevice(val OptUUID)

SetDevice sets the value of Device.

func (*NewShocker) SetFake

func (s *NewShocker) SetFake()

SetFake set fake values.

func (*NewShocker) SetModel

func (s *NewShocker) SetModel(val OptShockerModelType)

SetModel sets the value of Model.

func (*NewShocker) SetName

func (s *NewShocker) SetName(val OptNilString)

SetName sets the value of Name.

func (*NewShocker) SetRfId

func (s *NewShocker) SetRfId(val OptInt32)

SetRfId sets the value of RfId.

func (*NewShocker) UnmarshalJSON

func (s *NewShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*NewShocker) Validate

func (s *NewShocker) Validate() error

type ObjectBaseResponse

type ObjectBaseResponse struct {
	Message OptNilString `json:"message"`
	Data    jx.Raw       `json:"data"`
}

Ref: #/components/schemas/ObjectBaseResponse

func (*ObjectBaseResponse) Decode

func (s *ObjectBaseResponse) Decode(d *jx.Decoder) error

Decode decodes ObjectBaseResponse from json.

func (*ObjectBaseResponse) Encode

func (s *ObjectBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ObjectBaseResponse) GetData

func (s *ObjectBaseResponse) GetData() jx.Raw

GetData returns the value of Data.

func (*ObjectBaseResponse) GetMessage

func (s *ObjectBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*ObjectBaseResponse) MarshalJSON

func (s *ObjectBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ObjectBaseResponse) SetData

func (s *ObjectBaseResponse) SetData(val jx.Raw)

SetData sets the value of Data.

func (*ObjectBaseResponse) SetFake

func (s *ObjectBaseResponse) SetFake()

SetFake set fake values.

func (*ObjectBaseResponse) SetMessage

func (s *ObjectBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*ObjectBaseResponse) UnmarshalJSON

func (s *ObjectBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OpenShockProblem

type OpenShockProblem struct {
	Type     OptNilString `json:"type"`
	Title    OptNilString `json:"title"`
	Status   OptNilInt32  `json:"status"`
	Detail   OptNilString `json:"detail"`
	Instance OptNilString `json:"instance"`
	// Deprecated: schema marks this property as deprecated.
	Message         OptNilString `json:"message"`
	TraceId         OptNilString `json:"traceId"`
	AdditionalProps OpenShockProblemAdditional
}

Ref: #/components/schemas/OpenShockProblem

func (*OpenShockProblem) Decode

func (s *OpenShockProblem) Decode(d *jx.Decoder) error

Decode decodes OpenShockProblem from json.

func (*OpenShockProblem) Encode

func (s *OpenShockProblem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OpenShockProblem) GetAdditionalProps

func (s *OpenShockProblem) GetAdditionalProps() OpenShockProblemAdditional

GetAdditionalProps returns the value of AdditionalProps.

func (*OpenShockProblem) GetDetail

func (s *OpenShockProblem) GetDetail() OptNilString

GetDetail returns the value of Detail.

func (*OpenShockProblem) GetInstance

func (s *OpenShockProblem) GetInstance() OptNilString

GetInstance returns the value of Instance.

func (*OpenShockProblem) GetMessage

func (s *OpenShockProblem) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*OpenShockProblem) GetStatus

func (s *OpenShockProblem) GetStatus() OptNilInt32

GetStatus returns the value of Status.

func (*OpenShockProblem) GetTitle

func (s *OpenShockProblem) GetTitle() OptNilString

GetTitle returns the value of Title.

func (*OpenShockProblem) GetTraceId

func (s *OpenShockProblem) GetTraceId() OptNilString

GetTraceId returns the value of TraceId.

func (*OpenShockProblem) GetType

func (s *OpenShockProblem) GetType() OptNilString

GetType returns the value of Type.

func (*OpenShockProblem) MarshalJSON

func (s *OpenShockProblem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OpenShockProblem) SetAdditionalProps

func (s *OpenShockProblem) SetAdditionalProps(val OpenShockProblemAdditional)

SetAdditionalProps sets the value of AdditionalProps.

func (*OpenShockProblem) SetDetail

func (s *OpenShockProblem) SetDetail(val OptNilString)

SetDetail sets the value of Detail.

func (*OpenShockProblem) SetFake

func (s *OpenShockProblem) SetFake()

SetFake set fake values.

func (*OpenShockProblem) SetInstance

func (s *OpenShockProblem) SetInstance(val OptNilString)

SetInstance sets the value of Instance.

func (*OpenShockProblem) SetMessage

func (s *OpenShockProblem) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*OpenShockProblem) SetStatus

func (s *OpenShockProblem) SetStatus(val OptNilInt32)

SetStatus sets the value of Status.

func (*OpenShockProblem) SetTitle

func (s *OpenShockProblem) SetTitle(val OptNilString)

SetTitle sets the value of Title.

func (*OpenShockProblem) SetTraceId

func (s *OpenShockProblem) SetTraceId(val OptNilString)

SetTraceId sets the value of TraceId.

func (*OpenShockProblem) SetType

func (s *OpenShockProblem) SetType(val OptNilString)

SetType sets the value of Type.

func (*OpenShockProblem) UnmarshalJSON

func (s *OpenShockProblem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OpenShockProblemAdditional

type OpenShockProblemAdditional map[string]jx.Raw

func (*OpenShockProblemAdditional) Decode

Decode decodes OpenShockProblemAdditional from json.

func (OpenShockProblemAdditional) Encode

func (s OpenShockProblemAdditional) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (OpenShockProblemAdditional) MarshalJSON

func (s OpenShockProblemAdditional) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OpenShockProblemAdditional) SetFake

func (s *OpenShockProblemAdditional) SetFake()

SetFake set fake values.

func (*OpenShockProblemAdditional) UnmarshalJSON

func (s *OpenShockProblemAdditional) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OpenShockToken

type OpenShockToken struct {
	APIKey string
}

func (*OpenShockToken) GetAPIKey

func (s *OpenShockToken) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*OpenShockToken) SetAPIKey

func (s *OpenShockToken) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetFake

func (s *OptBool) SetFake()

SetFake set fake values.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptControlLogSenderLight

type OptControlLogSenderLight struct {
	Value ControlLogSenderLight
	Set   bool
}

OptControlLogSenderLight is optional ControlLogSenderLight.

func NewOptControlLogSenderLight

func NewOptControlLogSenderLight(v ControlLogSenderLight) OptControlLogSenderLight

NewOptControlLogSenderLight returns new OptControlLogSenderLight with value set to v.

func (*OptControlLogSenderLight) Decode

func (o *OptControlLogSenderLight) Decode(d *jx.Decoder) error

Decode decodes ControlLogSenderLight from json.

func (OptControlLogSenderLight) Encode

func (o OptControlLogSenderLight) Encode(e *jx.Encoder)

Encode encodes ControlLogSenderLight as json.

func (OptControlLogSenderLight) Get

Get returns value and boolean that denotes whether value was set.

func (OptControlLogSenderLight) IsSet

func (o OptControlLogSenderLight) IsSet() bool

IsSet returns true if OptControlLogSenderLight was set.

func (OptControlLogSenderLight) MarshalJSON

func (s OptControlLogSenderLight) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptControlLogSenderLight) Or

Or returns value if set, or given parameter if does not.

func (*OptControlLogSenderLight) Reset

func (o *OptControlLogSenderLight) Reset()

Reset unsets value.

func (*OptControlLogSenderLight) SetFake

func (s *OptControlLogSenderLight) SetFake()

SetFake set fake values.

func (*OptControlLogSenderLight) SetTo

SetTo sets value to v.

func (*OptControlLogSenderLight) UnmarshalJSON

func (s *OptControlLogSenderLight) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptControlRequest

type OptControlRequest struct {
	Value ControlRequest
	Set   bool
}

OptControlRequest is optional ControlRequest.

func NewOptControlRequest

func NewOptControlRequest(v ControlRequest) OptControlRequest

NewOptControlRequest returns new OptControlRequest with value set to v.

func (*OptControlRequest) Decode

func (o *OptControlRequest) Decode(d *jx.Decoder) error

Decode decodes ControlRequest from json.

func (OptControlRequest) Encode

func (o OptControlRequest) Encode(e *jx.Encoder)

Encode encodes ControlRequest as json.

func (OptControlRequest) Get

func (o OptControlRequest) Get() (v ControlRequest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptControlRequest) IsSet

func (o OptControlRequest) IsSet() bool

IsSet returns true if OptControlRequest was set.

func (OptControlRequest) MarshalJSON

func (s OptControlRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptControlRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptControlRequest) Reset

func (o *OptControlRequest) Reset()

Reset unsets value.

func (*OptControlRequest) SetFake

func (s *OptControlRequest) SetFake()

SetFake set fake values.

func (*OptControlRequest) SetTo

func (o *OptControlRequest) SetTo(v ControlRequest)

SetTo sets value to v.

func (*OptControlRequest) UnmarshalJSON

func (s *OptControlRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptControlType

type OptControlType struct {
	Value ControlType
	Set   bool
}

OptControlType is optional ControlType.

func NewOptControlType

func NewOptControlType(v ControlType) OptControlType

NewOptControlType returns new OptControlType with value set to v.

func (*OptControlType) Decode

func (o *OptControlType) Decode(d *jx.Decoder) error

Decode decodes ControlType from json.

func (OptControlType) Encode

func (o OptControlType) Encode(e *jx.Encoder)

Encode encodes ControlType as json.

func (OptControlType) Get

func (o OptControlType) Get() (v ControlType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptControlType) IsSet

func (o OptControlType) IsSet() bool

IsSet returns true if OptControlType was set.

func (OptControlType) MarshalJSON

func (s OptControlType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptControlType) Or

Or returns value if set, or given parameter if does not.

func (*OptControlType) Reset

func (o *OptControlType) Reset()

Reset unsets value.

func (*OptControlType) SetFake

func (s *OptControlType) SetFake()

SetFake set fake values.

func (*OptControlType) SetTo

func (o *OptControlType) SetTo(v ControlType)

SetTo sets value to v.

func (*OptControlType) UnmarshalJSON

func (s *OptControlType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateShareCode

type OptCreateShareCode struct {
	Value CreateShareCode
	Set   bool
}

OptCreateShareCode is optional CreateShareCode.

func NewOptCreateShareCode

func NewOptCreateShareCode(v CreateShareCode) OptCreateShareCode

NewOptCreateShareCode returns new OptCreateShareCode with value set to v.

func (*OptCreateShareCode) Decode

func (o *OptCreateShareCode) Decode(d *jx.Decoder) error

Decode decodes CreateShareCode from json.

func (OptCreateShareCode) Encode

func (o OptCreateShareCode) Encode(e *jx.Encoder)

Encode encodes CreateShareCode as json.

func (OptCreateShareCode) Get

func (o OptCreateShareCode) Get() (v CreateShareCode, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreateShareCode) IsSet

func (o OptCreateShareCode) IsSet() bool

IsSet returns true if OptCreateShareCode was set.

func (OptCreateShareCode) MarshalJSON

func (s OptCreateShareCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateShareCode) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateShareCode) Reset

func (o *OptCreateShareCode) Reset()

Reset unsets value.

func (*OptCreateShareCode) SetFake

func (s *OptCreateShareCode) SetFake()

SetFake set fake values.

func (*OptCreateShareCode) SetTo

func (o *OptCreateShareCode) SetTo(v CreateShareCode)

SetTo sets value to v.

func (*OptCreateShareCode) UnmarshalJSON

func (s *OptCreateShareCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateTokenRequest

type OptCreateTokenRequest struct {
	Value CreateTokenRequest
	Set   bool
}

OptCreateTokenRequest is optional CreateTokenRequest.

func NewOptCreateTokenRequest

func NewOptCreateTokenRequest(v CreateTokenRequest) OptCreateTokenRequest

NewOptCreateTokenRequest returns new OptCreateTokenRequest with value set to v.

func (*OptCreateTokenRequest) Decode

func (o *OptCreateTokenRequest) Decode(d *jx.Decoder) error

Decode decodes CreateTokenRequest from json.

func (OptCreateTokenRequest) Encode

func (o OptCreateTokenRequest) Encode(e *jx.Encoder)

Encode encodes CreateTokenRequest as json.

func (OptCreateTokenRequest) Get

Get returns value and boolean that denotes whether value was set.

func (OptCreateTokenRequest) IsSet

func (o OptCreateTokenRequest) IsSet() bool

IsSet returns true if OptCreateTokenRequest was set.

func (OptCreateTokenRequest) MarshalJSON

func (s OptCreateTokenRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateTokenRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateTokenRequest) Reset

func (o *OptCreateTokenRequest) Reset()

Reset unsets value.

func (*OptCreateTokenRequest) SetFake

func (s *OptCreateTokenRequest) SetFake()

SetFake set fake values.

func (*OptCreateTokenRequest) SetTo

SetTo sets value to v.

func (*OptCreateTokenRequest) UnmarshalJSON

func (s *OptCreateTokenRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetFake

func (s *OptDateTime) SetFake()

SetFake set fake values.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDeviceEdit

type OptDeviceEdit struct {
	Value DeviceEdit
	Set   bool
}

OptDeviceEdit is optional DeviceEdit.

func NewOptDeviceEdit

func NewOptDeviceEdit(v DeviceEdit) OptDeviceEdit

NewOptDeviceEdit returns new OptDeviceEdit with value set to v.

func (*OptDeviceEdit) Decode

func (o *OptDeviceEdit) Decode(d *jx.Decoder) error

Decode decodes DeviceEdit from json.

func (OptDeviceEdit) Encode

func (o OptDeviceEdit) Encode(e *jx.Encoder)

Encode encodes DeviceEdit as json.

func (OptDeviceEdit) Get

func (o OptDeviceEdit) Get() (v DeviceEdit, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDeviceEdit) IsSet

func (o OptDeviceEdit) IsSet() bool

IsSet returns true if OptDeviceEdit was set.

func (OptDeviceEdit) MarshalJSON

func (s OptDeviceEdit) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDeviceEdit) Or

Or returns value if set, or given parameter if does not.

func (*OptDeviceEdit) Reset

func (o *OptDeviceEdit) Reset()

Reset unsets value.

func (*OptDeviceEdit) SetFake

func (s *OptDeviceEdit) SetFake()

SetFake set fake values.

func (*OptDeviceEdit) SetTo

func (o *OptDeviceEdit) SetTo(v DeviceEdit)

SetTo sets value to v.

func (*OptDeviceEdit) UnmarshalJSON

func (s *OptDeviceEdit) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDeviceSelfResponse

type OptDeviceSelfResponse struct {
	Value DeviceSelfResponse
	Set   bool
}

OptDeviceSelfResponse is optional DeviceSelfResponse.

func NewOptDeviceSelfResponse

func NewOptDeviceSelfResponse(v DeviceSelfResponse) OptDeviceSelfResponse

NewOptDeviceSelfResponse returns new OptDeviceSelfResponse with value set to v.

func (*OptDeviceSelfResponse) Decode

func (o *OptDeviceSelfResponse) Decode(d *jx.Decoder) error

Decode decodes DeviceSelfResponse from json.

func (OptDeviceSelfResponse) Encode

func (o OptDeviceSelfResponse) Encode(e *jx.Encoder)

Encode encodes DeviceSelfResponse as json.

func (OptDeviceSelfResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptDeviceSelfResponse) IsSet

func (o OptDeviceSelfResponse) IsSet() bool

IsSet returns true if OptDeviceSelfResponse was set.

func (OptDeviceSelfResponse) MarshalJSON

func (s OptDeviceSelfResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDeviceSelfResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptDeviceSelfResponse) Reset

func (o *OptDeviceSelfResponse) Reset()

Reset unsets value.

func (*OptDeviceSelfResponse) SetFake

func (s *OptDeviceSelfResponse) SetFake()

SetFake set fake values.

func (*OptDeviceSelfResponse) SetTo

SetTo sets value to v.

func (*OptDeviceSelfResponse) UnmarshalJSON

func (s *OptDeviceSelfResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptEditTokenRequest

type OptEditTokenRequest struct {
	Value EditTokenRequest
	Set   bool
}

OptEditTokenRequest is optional EditTokenRequest.

func NewOptEditTokenRequest

func NewOptEditTokenRequest(v EditTokenRequest) OptEditTokenRequest

NewOptEditTokenRequest returns new OptEditTokenRequest with value set to v.

func (*OptEditTokenRequest) Decode

func (o *OptEditTokenRequest) Decode(d *jx.Decoder) error

Decode decodes EditTokenRequest from json.

func (OptEditTokenRequest) Encode

func (o OptEditTokenRequest) Encode(e *jx.Encoder)

Encode encodes EditTokenRequest as json.

func (OptEditTokenRequest) Get

func (o OptEditTokenRequest) Get() (v EditTokenRequest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptEditTokenRequest) IsSet

func (o OptEditTokenRequest) IsSet() bool

IsSet returns true if OptEditTokenRequest was set.

func (OptEditTokenRequest) MarshalJSON

func (s OptEditTokenRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptEditTokenRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptEditTokenRequest) Reset

func (o *OptEditTokenRequest) Reset()

Reset unsets value.

func (*OptEditTokenRequest) SetFake

func (s *OptEditTokenRequest) SetFake()

SetFake set fake values.

func (*OptEditTokenRequest) SetTo

SetTo sets value to v.

func (*OptEditTokenRequest) UnmarshalJSON

func (s *OptEditTokenRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptGenericIni

type OptGenericIni struct {
	Value GenericIni
	Set   bool
}

OptGenericIni is optional GenericIni.

func NewOptGenericIni

func NewOptGenericIni(v GenericIni) OptGenericIni

NewOptGenericIni returns new OptGenericIni with value set to v.

func (*OptGenericIni) Decode

func (o *OptGenericIni) Decode(d *jx.Decoder) error

Decode decodes GenericIni from json.

func (OptGenericIni) Encode

func (o OptGenericIni) Encode(e *jx.Encoder)

Encode encodes GenericIni as json.

func (OptGenericIni) Get

func (o OptGenericIni) Get() (v GenericIni, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptGenericIni) IsSet

func (o OptGenericIni) IsSet() bool

IsSet returns true if OptGenericIni was set.

func (OptGenericIni) MarshalJSON

func (s OptGenericIni) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptGenericIni) Or

Or returns value if set, or given parameter if does not.

func (*OptGenericIni) Reset

func (o *OptGenericIni) Reset()

Reset unsets value.

func (*OptGenericIni) SetFake

func (s *OptGenericIni) SetFake()

SetFake set fake values.

func (*OptGenericIni) SetTo

func (o *OptGenericIni) SetTo(v GenericIni)

SetTo sets value to v.

func (*OptGenericIni) UnmarshalJSON

func (s *OptGenericIni) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetFake

func (s *OptInt) SetFake()

SetFake set fake values.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetFake

func (s *OptInt32) SetFake()

SetFake set fake values.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLcgNodeResponse

type OptLcgNodeResponse struct {
	Value LcgNodeResponse
	Set   bool
}

OptLcgNodeResponse is optional LcgNodeResponse.

func NewOptLcgNodeResponse

func NewOptLcgNodeResponse(v LcgNodeResponse) OptLcgNodeResponse

NewOptLcgNodeResponse returns new OptLcgNodeResponse with value set to v.

func (*OptLcgNodeResponse) Decode

func (o *OptLcgNodeResponse) Decode(d *jx.Decoder) error

Decode decodes LcgNodeResponse from json.

func (OptLcgNodeResponse) Encode

func (o OptLcgNodeResponse) Encode(e *jx.Encoder)

Encode encodes LcgNodeResponse as json.

func (OptLcgNodeResponse) Get

func (o OptLcgNodeResponse) Get() (v LcgNodeResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLcgNodeResponse) IsSet

func (o OptLcgNodeResponse) IsSet() bool

IsSet returns true if OptLcgNodeResponse was set.

func (OptLcgNodeResponse) MarshalJSON

func (s OptLcgNodeResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLcgNodeResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptLcgNodeResponse) Reset

func (o *OptLcgNodeResponse) Reset()

Reset unsets value.

func (*OptLcgNodeResponse) SetFake

func (s *OptLcgNodeResponse) SetFake()

SetFake set fake values.

func (*OptLcgNodeResponse) SetTo

func (o *OptLcgNodeResponse) SetTo(v LcgNodeResponse)

SetTo sets value to v.

func (*OptLcgNodeResponse) UnmarshalJSON

func (s *OptLcgNodeResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLcgResponse

type OptLcgResponse struct {
	Value LcgResponse
	Set   bool
}

OptLcgResponse is optional LcgResponse.

func NewOptLcgResponse

func NewOptLcgResponse(v LcgResponse) OptLcgResponse

NewOptLcgResponse returns new OptLcgResponse with value set to v.

func (*OptLcgResponse) Decode

func (o *OptLcgResponse) Decode(d *jx.Decoder) error

Decode decodes LcgResponse from json.

func (OptLcgResponse) Encode

func (o OptLcgResponse) Encode(e *jx.Encoder)

Encode encodes LcgResponse as json.

func (OptLcgResponse) Get

func (o OptLcgResponse) Get() (v LcgResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLcgResponse) IsSet

func (o OptLcgResponse) IsSet() bool

IsSet returns true if OptLcgResponse was set.

func (OptLcgResponse) MarshalJSON

func (s OptLcgResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLcgResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptLcgResponse) Reset

func (o *OptLcgResponse) Reset()

Reset unsets value.

func (*OptLcgResponse) SetFake

func (s *OptLcgResponse) SetFake()

SetFake set fake values.

func (*OptLcgResponse) SetTo

func (o *OptLcgResponse) SetTo(v LcgResponse)

SetTo sets value to v.

func (*OptLcgResponse) UnmarshalJSON

func (s *OptLcgResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLogin

type OptLogin struct {
	Value Login
	Set   bool
}

OptLogin is optional Login.

func NewOptLogin

func NewOptLogin(v Login) OptLogin

NewOptLogin returns new OptLogin with value set to v.

func (*OptLogin) Decode

func (o *OptLogin) Decode(d *jx.Decoder) error

Decode decodes Login from json.

func (OptLogin) Encode

func (o OptLogin) Encode(e *jx.Encoder)

Encode encodes Login as json.

func (OptLogin) Get

func (o OptLogin) Get() (v Login, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLogin) IsSet

func (o OptLogin) IsSet() bool

IsSet returns true if OptLogin was set.

func (OptLogin) MarshalJSON

func (s OptLogin) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLogin) Or

func (o OptLogin) Or(d Login) Login

Or returns value if set, or given parameter if does not.

func (*OptLogin) Reset

func (o *OptLogin) Reset()

Reset unsets value.

func (*OptLogin) SetFake

func (s *OptLogin) SetFake()

SetFake set fake values.

func (*OptLogin) SetTo

func (o *OptLogin) SetTo(v Login)

SetTo sets value to v.

func (*OptLogin) UnmarshalJSON

func (s *OptLogin) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptLoginV2

type OptLoginV2 struct {
	Value LoginV2
	Set   bool
}

OptLoginV2 is optional LoginV2.

func NewOptLoginV2

func NewOptLoginV2(v LoginV2) OptLoginV2

NewOptLoginV2 returns new OptLoginV2 with value set to v.

func (*OptLoginV2) Decode

func (o *OptLoginV2) Decode(d *jx.Decoder) error

Decode decodes LoginV2 from json.

func (OptLoginV2) Encode

func (o OptLoginV2) Encode(e *jx.Encoder)

Encode encodes LoginV2 as json.

func (OptLoginV2) Get

func (o OptLoginV2) Get() (v LoginV2, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptLoginV2) IsSet

func (o OptLoginV2) IsSet() bool

IsSet returns true if OptLoginV2 was set.

func (OptLoginV2) MarshalJSON

func (s OptLoginV2) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptLoginV2) Or

func (o OptLoginV2) Or(d LoginV2) LoginV2

Or returns value if set, or given parameter if does not.

func (*OptLoginV2) Reset

func (o *OptLoginV2) Reset()

Reset unsets value.

func (*OptLoginV2) SetFake

func (s *OptLoginV2) SetFake()

SetFake set fake values.

func (*OptLoginV2) SetTo

func (o *OptLoginV2) SetTo(v LoginV2)

SetTo sets value to v.

func (*OptLoginV2) UnmarshalJSON

func (s *OptLoginV2) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNewShocker

type OptNewShocker struct {
	Value NewShocker
	Set   bool
}

OptNewShocker is optional NewShocker.

func NewOptNewShocker

func NewOptNewShocker(v NewShocker) OptNewShocker

NewOptNewShocker returns new OptNewShocker with value set to v.

func (*OptNewShocker) Decode

func (o *OptNewShocker) Decode(d *jx.Decoder) error

Decode decodes NewShocker from json.

func (OptNewShocker) Encode

func (o OptNewShocker) Encode(e *jx.Encoder)

Encode encodes NewShocker as json.

func (OptNewShocker) Get

func (o OptNewShocker) Get() (v NewShocker, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNewShocker) IsSet

func (o OptNewShocker) IsSet() bool

IsSet returns true if OptNewShocker was set.

func (OptNewShocker) MarshalJSON

func (s OptNewShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNewShocker) Or

Or returns value if set, or given parameter if does not.

func (*OptNewShocker) Reset

func (o *OptNewShocker) Reset()

Reset unsets value.

func (*OptNewShocker) SetFake

func (s *OptNewShocker) SetFake()

SetFake set fake values.

func (*OptNewShocker) SetTo

func (o *OptNewShocker) SetTo(v NewShocker)

SetTo sets value to v.

func (*OptNewShocker) UnmarshalJSON

func (s *OptNewShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilAdminOnlineDeviceResponseArray

type OptNilAdminOnlineDeviceResponseArray struct {
	Value []AdminOnlineDeviceResponse
	Set   bool
	Null  bool
}

OptNilAdminOnlineDeviceResponseArray is optional nullable []AdminOnlineDeviceResponse.

func NewOptNilAdminOnlineDeviceResponseArray

func NewOptNilAdminOnlineDeviceResponseArray(v []AdminOnlineDeviceResponse) OptNilAdminOnlineDeviceResponseArray

NewOptNilAdminOnlineDeviceResponseArray returns new OptNilAdminOnlineDeviceResponseArray with value set to v.

func (*OptNilAdminOnlineDeviceResponseArray) Decode

Decode decodes []AdminOnlineDeviceResponse from json.

func (OptNilAdminOnlineDeviceResponseArray) Encode

Encode encodes []AdminOnlineDeviceResponse as json.

func (OptNilAdminOnlineDeviceResponseArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilAdminOnlineDeviceResponseArray) IsNull

IsSet returns true if value is Null.

func (OptNilAdminOnlineDeviceResponseArray) IsSet

IsSet returns true if OptNilAdminOnlineDeviceResponseArray was set.

func (OptNilAdminOnlineDeviceResponseArray) MarshalJSON

func (s OptNilAdminOnlineDeviceResponseArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilAdminOnlineDeviceResponseArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilAdminOnlineDeviceResponseArray) Reset

Reset unsets value.

func (*OptNilAdminOnlineDeviceResponseArray) SetFake

SetFake set fake values.

func (*OptNilAdminOnlineDeviceResponseArray) SetTo

SetTo sets value to v.

func (*OptNilAdminOnlineDeviceResponseArray) SetToNull

func (o *OptNilAdminOnlineDeviceResponseArray) SetToNull()

SetNull sets value to null.

func (*OptNilAdminOnlineDeviceResponseArray) UnmarshalJSON

func (s *OptNilAdminOnlineDeviceResponseArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilBool

type OptNilBool struct {
	Value bool
	Set   bool
	Null  bool
}

OptNilBool is optional nullable bool.

func NewOptNilBool

func NewOptNilBool(v bool) OptNilBool

NewOptNilBool returns new OptNilBool with value set to v.

func (*OptNilBool) Decode

func (o *OptNilBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptNilBool) Encode

func (o OptNilBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptNilBool) Get

func (o OptNilBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilBool) IsNull

func (o OptNilBool) IsNull() bool

IsSet returns true if value is Null.

func (OptNilBool) IsSet

func (o OptNilBool) IsSet() bool

IsSet returns true if OptNilBool was set.

func (OptNilBool) MarshalJSON

func (s OptNilBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilBool) Or

func (o OptNilBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptNilBool) Reset

func (o *OptNilBool) Reset()

Reset unsets value.

func (*OptNilBool) SetFake

func (s *OptNilBool) SetFake()

SetFake set fake values.

func (*OptNilBool) SetTo

func (o *OptNilBool) SetTo(v bool)

SetTo sets value to v.

func (*OptNilBool) SetToNull

func (o *OptNilBool) SetToNull()

SetNull sets value to null.

func (*OptNilBool) UnmarshalJSON

func (s *OptNilBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilControlArray

type OptNilControlArray struct {
	Value []Control
	Set   bool
	Null  bool
}

OptNilControlArray is optional nullable []Control.

func NewOptNilControlArray

func NewOptNilControlArray(v []Control) OptNilControlArray

NewOptNilControlArray returns new OptNilControlArray with value set to v.

func (*OptNilControlArray) Decode

func (o *OptNilControlArray) Decode(d *jx.Decoder) error

Decode decodes []Control from json.

func (OptNilControlArray) Encode

func (o OptNilControlArray) Encode(e *jx.Encoder)

Encode encodes []Control as json.

func (OptNilControlArray) Get

func (o OptNilControlArray) Get() (v []Control, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilControlArray) IsNull

func (o OptNilControlArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilControlArray) IsSet

func (o OptNilControlArray) IsSet() bool

IsSet returns true if OptNilControlArray was set.

func (OptNilControlArray) MarshalJSON

func (s OptNilControlArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilControlArray) Or

func (o OptNilControlArray) Or(d []Control) []Control

Or returns value if set, or given parameter if does not.

func (*OptNilControlArray) Reset

func (o *OptNilControlArray) Reset()

Reset unsets value.

func (*OptNilControlArray) SetFake

func (s *OptNilControlArray) SetFake()

SetFake set fake values.

func (*OptNilControlArray) SetTo

func (o *OptNilControlArray) SetTo(v []Control)

SetTo sets value to v.

func (*OptNilControlArray) SetToNull

func (o *OptNilControlArray) SetToNull()

SetNull sets value to null.

func (*OptNilControlArray) UnmarshalJSON

func (s *OptNilControlArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDate

type OptNilDate struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDate is optional nullable time.Time.

func NewOptNilDate

func NewOptNilDate(v time.Time) OptNilDate

NewOptNilDate returns new OptNilDate with value set to v.

func (*OptNilDate) Decode

func (o *OptNilDate) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDate) Encode

func (o OptNilDate) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDate) Get

func (o OptNilDate) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDate) IsNull

func (o OptNilDate) IsNull() bool

IsSet returns true if value is Null.

func (OptNilDate) IsSet

func (o OptNilDate) IsSet() bool

IsSet returns true if OptNilDate was set.

func (OptNilDate) MarshalJSON

func (s OptNilDate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDate) Or

func (o OptNilDate) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDate) Reset

func (o *OptNilDate) Reset()

Reset unsets value.

func (*OptNilDate) SetFake

func (s *OptNilDate) SetFake()

SetFake set fake values.

func (*OptNilDate) SetTo

func (o *OptNilDate) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDate) SetToNull

func (o *OptNilDate) SetToNull()

SetNull sets value to null.

func (*OptNilDate) UnmarshalJSON

func (s *OptNilDate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilDateTime

type OptNilDateTime struct {
	Value time.Time
	Set   bool
	Null  bool
}

OptNilDateTime is optional nullable time.Time.

func NewOptNilDateTime

func NewOptNilDateTime(v time.Time) OptNilDateTime

NewOptNilDateTime returns new OptNilDateTime with value set to v.

func (*OptNilDateTime) Decode

func (o *OptNilDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptNilDateTime) Encode

func (o OptNilDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptNilDateTime) Get

func (o OptNilDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilDateTime) IsNull

func (o OptNilDateTime) IsNull() bool

IsSet returns true if value is Null.

func (OptNilDateTime) IsSet

func (o OptNilDateTime) IsSet() bool

IsSet returns true if OptNilDateTime was set.

func (OptNilDateTime) MarshalJSON

func (s OptNilDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilDateTime) Or

func (o OptNilDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptNilDateTime) Reset

func (o *OptNilDateTime) Reset()

Reset unsets value.

func (*OptNilDateTime) SetFake

func (s *OptNilDateTime) SetFake()

SetFake set fake values.

func (*OptNilDateTime) SetTo

func (o *OptNilDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptNilDateTime) SetToNull

func (o *OptNilDateTime) SetToNull()

SetNull sets value to null.

func (*OptNilDateTime) UnmarshalJSON

func (s *OptNilDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilInt32

type OptNilInt32 struct {
	Value int32
	Set   bool
	Null  bool
}

OptNilInt32 is optional nullable int32.

func NewOptNilInt32

func NewOptNilInt32(v int32) OptNilInt32

NewOptNilInt32 returns new OptNilInt32 with value set to v.

func (*OptNilInt32) Decode

func (o *OptNilInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptNilInt32) Encode

func (o OptNilInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptNilInt32) Get

func (o OptNilInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilInt32) IsNull

func (o OptNilInt32) IsNull() bool

IsSet returns true if value is Null.

func (OptNilInt32) IsSet

func (o OptNilInt32) IsSet() bool

IsSet returns true if OptNilInt32 was set.

func (OptNilInt32) MarshalJSON

func (s OptNilInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilInt32) Or

func (o OptNilInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptNilInt32) Reset

func (o *OptNilInt32) Reset()

Reset unsets value.

func (*OptNilInt32) SetFake

func (s *OptNilInt32) SetFake()

SetFake set fake values.

func (*OptNilInt32) SetTo

func (o *OptNilInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptNilInt32) SetToNull

func (o *OptNilInt32) SetToNull()

SetNull sets value to null.

func (*OptNilInt32) UnmarshalJSON

func (s *OptNilInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilLogEntryArray

type OptNilLogEntryArray struct {
	Value []LogEntry
	Set   bool
	Null  bool
}

OptNilLogEntryArray is optional nullable []LogEntry.

func NewOptNilLogEntryArray

func NewOptNilLogEntryArray(v []LogEntry) OptNilLogEntryArray

NewOptNilLogEntryArray returns new OptNilLogEntryArray with value set to v.

func (*OptNilLogEntryArray) Decode

func (o *OptNilLogEntryArray) Decode(d *jx.Decoder) error

Decode decodes []LogEntry from json.

func (OptNilLogEntryArray) Encode

func (o OptNilLogEntryArray) Encode(e *jx.Encoder)

Encode encodes []LogEntry as json.

func (OptNilLogEntryArray) Get

func (o OptNilLogEntryArray) Get() (v []LogEntry, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilLogEntryArray) IsNull

func (o OptNilLogEntryArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilLogEntryArray) IsSet

func (o OptNilLogEntryArray) IsSet() bool

IsSet returns true if OptNilLogEntryArray was set.

func (OptNilLogEntryArray) MarshalJSON

func (s OptNilLogEntryArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilLogEntryArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilLogEntryArray) Reset

func (o *OptNilLogEntryArray) Reset()

Reset unsets value.

func (*OptNilLogEntryArray) SetFake

func (s *OptNilLogEntryArray) SetFake()

SetFake set fake values.

func (*OptNilLogEntryArray) SetTo

func (o *OptNilLogEntryArray) SetTo(v []LogEntry)

SetTo sets value to v.

func (*OptNilLogEntryArray) SetToNull

func (o *OptNilLogEntryArray) SetToNull()

SetNull sets value to null.

func (*OptNilLogEntryArray) UnmarshalJSON

func (s *OptNilLogEntryArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilMinimalShockerArray

type OptNilMinimalShockerArray struct {
	Value []MinimalShocker
	Set   bool
	Null  bool
}

OptNilMinimalShockerArray is optional nullable []MinimalShocker.

func NewOptNilMinimalShockerArray

func NewOptNilMinimalShockerArray(v []MinimalShocker) OptNilMinimalShockerArray

NewOptNilMinimalShockerArray returns new OptNilMinimalShockerArray with value set to v.

func (*OptNilMinimalShockerArray) Decode

func (o *OptNilMinimalShockerArray) Decode(d *jx.Decoder) error

Decode decodes []MinimalShocker from json.

func (OptNilMinimalShockerArray) Encode

func (o OptNilMinimalShockerArray) Encode(e *jx.Encoder)

Encode encodes []MinimalShocker as json.

func (OptNilMinimalShockerArray) Get

func (o OptNilMinimalShockerArray) Get() (v []MinimalShocker, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilMinimalShockerArray) IsNull

func (o OptNilMinimalShockerArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilMinimalShockerArray) IsSet

func (o OptNilMinimalShockerArray) IsSet() bool

IsSet returns true if OptNilMinimalShockerArray was set.

func (OptNilMinimalShockerArray) MarshalJSON

func (s OptNilMinimalShockerArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilMinimalShockerArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilMinimalShockerArray) Reset

func (o *OptNilMinimalShockerArray) Reset()

Reset unsets value.

func (*OptNilMinimalShockerArray) SetFake

func (s *OptNilMinimalShockerArray) SetFake()

SetFake set fake values.

func (*OptNilMinimalShockerArray) SetTo

SetTo sets value to v.

func (*OptNilMinimalShockerArray) SetToNull

func (o *OptNilMinimalShockerArray) SetToNull()

SetNull sets value to null.

func (*OptNilMinimalShockerArray) UnmarshalJSON

func (s *OptNilMinimalShockerArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilOtaItemArray

type OptNilOtaItemArray struct {
	Value []OtaItem
	Set   bool
	Null  bool
}

OptNilOtaItemArray is optional nullable []OtaItem.

func NewOptNilOtaItemArray

func NewOptNilOtaItemArray(v []OtaItem) OptNilOtaItemArray

NewOptNilOtaItemArray returns new OptNilOtaItemArray with value set to v.

func (*OptNilOtaItemArray) Decode

func (o *OptNilOtaItemArray) Decode(d *jx.Decoder) error

Decode decodes []OtaItem from json.

func (OptNilOtaItemArray) Encode

func (o OptNilOtaItemArray) Encode(e *jx.Encoder)

Encode encodes []OtaItem as json.

func (OptNilOtaItemArray) Get

func (o OptNilOtaItemArray) Get() (v []OtaItem, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilOtaItemArray) IsNull

func (o OptNilOtaItemArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilOtaItemArray) IsSet

func (o OptNilOtaItemArray) IsSet() bool

IsSet returns true if OptNilOtaItemArray was set.

func (OptNilOtaItemArray) MarshalJSON

func (s OptNilOtaItemArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilOtaItemArray) Or

func (o OptNilOtaItemArray) Or(d []OtaItem) []OtaItem

Or returns value if set, or given parameter if does not.

func (*OptNilOtaItemArray) Reset

func (o *OptNilOtaItemArray) Reset()

Reset unsets value.

func (*OptNilOtaItemArray) SetFake

func (s *OptNilOtaItemArray) SetFake()

SetFake set fake values.

func (*OptNilOtaItemArray) SetTo

func (o *OptNilOtaItemArray) SetTo(v []OtaItem)

SetTo sets value to v.

func (*OptNilOtaItemArray) SetToNull

func (o *OptNilOtaItemArray) SetToNull()

SetNull sets value to null.

func (*OptNilOtaItemArray) UnmarshalJSON

func (s *OptNilOtaItemArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilOwnerShockerResponseArrayArray

type OptNilOwnerShockerResponseArrayArray struct {
	Value [][]OwnerShockerResponse
	Set   bool
	Null  bool
}

OptNilOwnerShockerResponseArrayArray is optional nullable [][]OwnerShockerResponse.

func NewOptNilOwnerShockerResponseArrayArray

func NewOptNilOwnerShockerResponseArrayArray(v [][]OwnerShockerResponse) OptNilOwnerShockerResponseArrayArray

NewOptNilOwnerShockerResponseArrayArray returns new OptNilOwnerShockerResponseArrayArray with value set to v.

func (*OptNilOwnerShockerResponseArrayArray) Decode

Decode decodes [][]OwnerShockerResponse from json.

func (OptNilOwnerShockerResponseArrayArray) Encode

Encode encodes [][]OwnerShockerResponse as json.

func (OptNilOwnerShockerResponseArrayArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilOwnerShockerResponseArrayArray) IsNull

IsSet returns true if value is Null.

func (OptNilOwnerShockerResponseArrayArray) IsSet

IsSet returns true if OptNilOwnerShockerResponseArrayArray was set.

func (OptNilOwnerShockerResponseArrayArray) MarshalJSON

func (s OptNilOwnerShockerResponseArrayArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilOwnerShockerResponseArrayArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilOwnerShockerResponseArrayArray) Reset

Reset unsets value.

func (*OptNilOwnerShockerResponseArrayArray) SetFake

SetFake set fake values.

func (*OptNilOwnerShockerResponseArrayArray) SetTo

SetTo sets value to v.

func (*OptNilOwnerShockerResponseArrayArray) SetToNull

func (o *OptNilOwnerShockerResponseArrayArray) SetToNull()

SetNull sets value to null.

func (*OptNilOwnerShockerResponseArrayArray) UnmarshalJSON

func (s *OptNilOwnerShockerResponseArrayArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilPermissionTypeArray

type OptNilPermissionTypeArray struct {
	Value []PermissionType
	Set   bool
	Null  bool
}

OptNilPermissionTypeArray is optional nullable []PermissionType.

func NewOptNilPermissionTypeArray

func NewOptNilPermissionTypeArray(v []PermissionType) OptNilPermissionTypeArray

NewOptNilPermissionTypeArray returns new OptNilPermissionTypeArray with value set to v.

func (*OptNilPermissionTypeArray) Decode

func (o *OptNilPermissionTypeArray) Decode(d *jx.Decoder) error

Decode decodes []PermissionType from json.

func (OptNilPermissionTypeArray) Encode

func (o OptNilPermissionTypeArray) Encode(e *jx.Encoder)

Encode encodes []PermissionType as json.

func (OptNilPermissionTypeArray) Get

func (o OptNilPermissionTypeArray) Get() (v []PermissionType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilPermissionTypeArray) IsNull

func (o OptNilPermissionTypeArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilPermissionTypeArray) IsSet

func (o OptNilPermissionTypeArray) IsSet() bool

IsSet returns true if OptNilPermissionTypeArray was set.

func (OptNilPermissionTypeArray) MarshalJSON

func (s OptNilPermissionTypeArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilPermissionTypeArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilPermissionTypeArray) Reset

func (o *OptNilPermissionTypeArray) Reset()

Reset unsets value.

func (*OptNilPermissionTypeArray) SetFake

func (s *OptNilPermissionTypeArray) SetFake()

SetFake set fake values.

func (*OptNilPermissionTypeArray) SetTo

SetTo sets value to v.

func (*OptNilPermissionTypeArray) SetToNull

func (o *OptNilPermissionTypeArray) SetToNull()

SetNull sets value to null.

func (*OptNilPermissionTypeArray) UnmarshalJSON

func (s *OptNilPermissionTypeArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilResponseDeviceArray

type OptNilResponseDeviceArray struct {
	Value []ResponseDevice
	Set   bool
	Null  bool
}

OptNilResponseDeviceArray is optional nullable []ResponseDevice.

func NewOptNilResponseDeviceArray

func NewOptNilResponseDeviceArray(v []ResponseDevice) OptNilResponseDeviceArray

NewOptNilResponseDeviceArray returns new OptNilResponseDeviceArray with value set to v.

func (*OptNilResponseDeviceArray) Decode

func (o *OptNilResponseDeviceArray) Decode(d *jx.Decoder) error

Decode decodes []ResponseDevice from json.

func (OptNilResponseDeviceArray) Encode

func (o OptNilResponseDeviceArray) Encode(e *jx.Encoder)

Encode encodes []ResponseDevice as json.

func (OptNilResponseDeviceArray) Get

func (o OptNilResponseDeviceArray) Get() (v []ResponseDevice, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilResponseDeviceArray) IsNull

func (o OptNilResponseDeviceArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilResponseDeviceArray) IsSet

func (o OptNilResponseDeviceArray) IsSet() bool

IsSet returns true if OptNilResponseDeviceArray was set.

func (OptNilResponseDeviceArray) MarshalJSON

func (s OptNilResponseDeviceArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilResponseDeviceArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilResponseDeviceArray) Reset

func (o *OptNilResponseDeviceArray) Reset()

Reset unsets value.

func (*OptNilResponseDeviceArray) SetFake

func (s *OptNilResponseDeviceArray) SetFake()

SetFake set fake values.

func (*OptNilResponseDeviceArray) SetTo

SetTo sets value to v.

func (*OptNilResponseDeviceArray) SetToNull

func (o *OptNilResponseDeviceArray) SetToNull()

SetNull sets value to null.

func (*OptNilResponseDeviceArray) UnmarshalJSON

func (s *OptNilResponseDeviceArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilResponseDeviceWithShockersArray

type OptNilResponseDeviceWithShockersArray struct {
	Value []ResponseDeviceWithShockers
	Set   bool
	Null  bool
}

OptNilResponseDeviceWithShockersArray is optional nullable []ResponseDeviceWithShockers.

func NewOptNilResponseDeviceWithShockersArray

func NewOptNilResponseDeviceWithShockersArray(v []ResponseDeviceWithShockers) OptNilResponseDeviceWithShockersArray

NewOptNilResponseDeviceWithShockersArray returns new OptNilResponseDeviceWithShockersArray with value set to v.

func (*OptNilResponseDeviceWithShockersArray) Decode

Decode decodes []ResponseDeviceWithShockers from json.

func (OptNilResponseDeviceWithShockersArray) Encode

Encode encodes []ResponseDeviceWithShockers as json.

func (OptNilResponseDeviceWithShockersArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilResponseDeviceWithShockersArray) IsNull

IsSet returns true if value is Null.

func (OptNilResponseDeviceWithShockersArray) IsSet

IsSet returns true if OptNilResponseDeviceWithShockersArray was set.

func (OptNilResponseDeviceWithShockersArray) MarshalJSON

func (s OptNilResponseDeviceWithShockersArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilResponseDeviceWithShockersArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilResponseDeviceWithShockersArray) Reset

Reset unsets value.

func (*OptNilResponseDeviceWithShockersArray) SetFake

SetFake set fake values.

func (*OptNilResponseDeviceWithShockersArray) SetTo

SetTo sets value to v.

func (*OptNilResponseDeviceWithShockersArray) SetToNull

SetNull sets value to null.

func (*OptNilResponseDeviceWithShockersArray) UnmarshalJSON

func (s *OptNilResponseDeviceWithShockersArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShareCodeInfoArray

type OptNilShareCodeInfoArray struct {
	Value []ShareCodeInfo
	Set   bool
	Null  bool
}

OptNilShareCodeInfoArray is optional nullable []ShareCodeInfo.

func NewOptNilShareCodeInfoArray

func NewOptNilShareCodeInfoArray(v []ShareCodeInfo) OptNilShareCodeInfoArray

NewOptNilShareCodeInfoArray returns new OptNilShareCodeInfoArray with value set to v.

func (*OptNilShareCodeInfoArray) Decode

func (o *OptNilShareCodeInfoArray) Decode(d *jx.Decoder) error

Decode decodes []ShareCodeInfo from json.

func (OptNilShareCodeInfoArray) Encode

func (o OptNilShareCodeInfoArray) Encode(e *jx.Encoder)

Encode encodes []ShareCodeInfo as json.

func (OptNilShareCodeInfoArray) Get

func (o OptNilShareCodeInfoArray) Get() (v []ShareCodeInfo, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilShareCodeInfoArray) IsNull

func (o OptNilShareCodeInfoArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilShareCodeInfoArray) IsSet

func (o OptNilShareCodeInfoArray) IsSet() bool

IsSet returns true if OptNilShareCodeInfoArray was set.

func (OptNilShareCodeInfoArray) MarshalJSON

func (s OptNilShareCodeInfoArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShareCodeInfoArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShareCodeInfoArray) Reset

func (o *OptNilShareCodeInfoArray) Reset()

Reset unsets value.

func (*OptNilShareCodeInfoArray) SetFake

func (s *OptNilShareCodeInfoArray) SetFake()

SetFake set fake values.

func (*OptNilShareCodeInfoArray) SetTo

SetTo sets value to v.

func (*OptNilShareCodeInfoArray) SetToNull

func (o *OptNilShareCodeInfoArray) SetToNull()

SetNull sets value to null.

func (*OptNilShareCodeInfoArray) UnmarshalJSON

func (s *OptNilShareCodeInfoArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShareInfoArray

type OptNilShareInfoArray struct {
	Value []ShareInfo
	Set   bool
	Null  bool
}

OptNilShareInfoArray is optional nullable []ShareInfo.

func NewOptNilShareInfoArray

func NewOptNilShareInfoArray(v []ShareInfo) OptNilShareInfoArray

NewOptNilShareInfoArray returns new OptNilShareInfoArray with value set to v.

func (*OptNilShareInfoArray) Decode

func (o *OptNilShareInfoArray) Decode(d *jx.Decoder) error

Decode decodes []ShareInfo from json.

func (OptNilShareInfoArray) Encode

func (o OptNilShareInfoArray) Encode(e *jx.Encoder)

Encode encodes []ShareInfo as json.

func (OptNilShareInfoArray) Get

func (o OptNilShareInfoArray) Get() (v []ShareInfo, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilShareInfoArray) IsNull

func (o OptNilShareInfoArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilShareInfoArray) IsSet

func (o OptNilShareInfoArray) IsSet() bool

IsSet returns true if OptNilShareInfoArray was set.

func (OptNilShareInfoArray) MarshalJSON

func (s OptNilShareInfoArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShareInfoArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShareInfoArray) Reset

func (o *OptNilShareInfoArray) Reset()

Reset unsets value.

func (*OptNilShareInfoArray) SetFake

func (s *OptNilShareInfoArray) SetFake()

SetFake set fake values.

func (*OptNilShareInfoArray) SetTo

func (o *OptNilShareInfoArray) SetTo(v []ShareInfo)

SetTo sets value to v.

func (*OptNilShareInfoArray) SetToNull

func (o *OptNilShareInfoArray) SetToNull()

SetNull sets value to null.

func (*OptNilShareInfoArray) UnmarshalJSON

func (s *OptNilShareInfoArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShareLinkDeviceArray

type OptNilShareLinkDeviceArray struct {
	Value []ShareLinkDevice
	Set   bool
	Null  bool
}

OptNilShareLinkDeviceArray is optional nullable []ShareLinkDevice.

func NewOptNilShareLinkDeviceArray

func NewOptNilShareLinkDeviceArray(v []ShareLinkDevice) OptNilShareLinkDeviceArray

NewOptNilShareLinkDeviceArray returns new OptNilShareLinkDeviceArray with value set to v.

func (*OptNilShareLinkDeviceArray) Decode

Decode decodes []ShareLinkDevice from json.

func (OptNilShareLinkDeviceArray) Encode

func (o OptNilShareLinkDeviceArray) Encode(e *jx.Encoder)

Encode encodes []ShareLinkDevice as json.

func (OptNilShareLinkDeviceArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilShareLinkDeviceArray) IsNull

func (o OptNilShareLinkDeviceArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilShareLinkDeviceArray) IsSet

func (o OptNilShareLinkDeviceArray) IsSet() bool

IsSet returns true if OptNilShareLinkDeviceArray was set.

func (OptNilShareLinkDeviceArray) MarshalJSON

func (s OptNilShareLinkDeviceArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShareLinkDeviceArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShareLinkDeviceArray) Reset

func (o *OptNilShareLinkDeviceArray) Reset()

Reset unsets value.

func (*OptNilShareLinkDeviceArray) SetFake

func (s *OptNilShareLinkDeviceArray) SetFake()

SetFake set fake values.

func (*OptNilShareLinkDeviceArray) SetTo

SetTo sets value to v.

func (*OptNilShareLinkDeviceArray) SetToNull

func (o *OptNilShareLinkDeviceArray) SetToNull()

SetNull sets value to null.

func (*OptNilShareLinkDeviceArray) UnmarshalJSON

func (s *OptNilShareLinkDeviceArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShareLinkResponseArray

type OptNilShareLinkResponseArray struct {
	Value []ShareLinkResponse
	Set   bool
	Null  bool
}

OptNilShareLinkResponseArray is optional nullable []ShareLinkResponse.

func NewOptNilShareLinkResponseArray

func NewOptNilShareLinkResponseArray(v []ShareLinkResponse) OptNilShareLinkResponseArray

NewOptNilShareLinkResponseArray returns new OptNilShareLinkResponseArray with value set to v.

func (*OptNilShareLinkResponseArray) Decode

Decode decodes []ShareLinkResponse from json.

func (OptNilShareLinkResponseArray) Encode

Encode encodes []ShareLinkResponse as json.

func (OptNilShareLinkResponseArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilShareLinkResponseArray) IsNull

IsSet returns true if value is Null.

func (OptNilShareLinkResponseArray) IsSet

IsSet returns true if OptNilShareLinkResponseArray was set.

func (OptNilShareLinkResponseArray) MarshalJSON

func (s OptNilShareLinkResponseArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShareLinkResponseArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShareLinkResponseArray) Reset

func (o *OptNilShareLinkResponseArray) Reset()

Reset unsets value.

func (*OptNilShareLinkResponseArray) SetFake

func (s *OptNilShareLinkResponseArray) SetFake()

SetFake set fake values.

func (*OptNilShareLinkResponseArray) SetTo

SetTo sets value to v.

func (*OptNilShareLinkResponseArray) SetToNull

func (o *OptNilShareLinkResponseArray) SetToNull()

SetNull sets value to null.

func (*OptNilShareLinkResponseArray) UnmarshalJSON

func (s *OptNilShareLinkResponseArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShareLinkShockerArray

type OptNilShareLinkShockerArray struct {
	Value []ShareLinkShocker
	Set   bool
	Null  bool
}

OptNilShareLinkShockerArray is optional nullable []ShareLinkShocker.

func NewOptNilShareLinkShockerArray

func NewOptNilShareLinkShockerArray(v []ShareLinkShocker) OptNilShareLinkShockerArray

NewOptNilShareLinkShockerArray returns new OptNilShareLinkShockerArray with value set to v.

func (*OptNilShareLinkShockerArray) Decode

Decode decodes []ShareLinkShocker from json.

func (OptNilShareLinkShockerArray) Encode

func (o OptNilShareLinkShockerArray) Encode(e *jx.Encoder)

Encode encodes []ShareLinkShocker as json.

func (OptNilShareLinkShockerArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilShareLinkShockerArray) IsNull

func (o OptNilShareLinkShockerArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilShareLinkShockerArray) IsSet

IsSet returns true if OptNilShareLinkShockerArray was set.

func (OptNilShareLinkShockerArray) MarshalJSON

func (s OptNilShareLinkShockerArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShareLinkShockerArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShareLinkShockerArray) Reset

func (o *OptNilShareLinkShockerArray) Reset()

Reset unsets value.

func (*OptNilShareLinkShockerArray) SetFake

func (s *OptNilShareLinkShockerArray) SetFake()

SetFake set fake values.

func (*OptNilShareLinkShockerArray) SetTo

SetTo sets value to v.

func (*OptNilShareLinkShockerArray) SetToNull

func (o *OptNilShareLinkShockerArray) SetToNull()

SetNull sets value to null.

func (*OptNilShareLinkShockerArray) UnmarshalJSON

func (s *OptNilShareLinkShockerArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSharedDeviceArray

type OptNilSharedDeviceArray struct {
	Value []SharedDevice
	Set   bool
	Null  bool
}

OptNilSharedDeviceArray is optional nullable []SharedDevice.

func NewOptNilSharedDeviceArray

func NewOptNilSharedDeviceArray(v []SharedDevice) OptNilSharedDeviceArray

NewOptNilSharedDeviceArray returns new OptNilSharedDeviceArray with value set to v.

func (*OptNilSharedDeviceArray) Decode

func (o *OptNilSharedDeviceArray) Decode(d *jx.Decoder) error

Decode decodes []SharedDevice from json.

func (OptNilSharedDeviceArray) Encode

func (o OptNilSharedDeviceArray) Encode(e *jx.Encoder)

Encode encodes []SharedDevice as json.

func (OptNilSharedDeviceArray) Get

func (o OptNilSharedDeviceArray) Get() (v []SharedDevice, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilSharedDeviceArray) IsNull

func (o OptNilSharedDeviceArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilSharedDeviceArray) IsSet

func (o OptNilSharedDeviceArray) IsSet() bool

IsSet returns true if OptNilSharedDeviceArray was set.

func (OptNilSharedDeviceArray) MarshalJSON

func (s OptNilSharedDeviceArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSharedDeviceArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSharedDeviceArray) Reset

func (o *OptNilSharedDeviceArray) Reset()

Reset unsets value.

func (*OptNilSharedDeviceArray) SetFake

func (s *OptNilSharedDeviceArray) SetFake()

SetFake set fake values.

func (*OptNilSharedDeviceArray) SetTo

func (o *OptNilSharedDeviceArray) SetTo(v []SharedDevice)

SetTo sets value to v.

func (*OptNilSharedDeviceArray) SetToNull

func (o *OptNilSharedDeviceArray) SetToNull()

SetNull sets value to null.

func (*OptNilSharedDeviceArray) UnmarshalJSON

func (s *OptNilSharedDeviceArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilSharedShockerArray

type OptNilSharedShockerArray struct {
	Value []SharedShocker
	Set   bool
	Null  bool
}

OptNilSharedShockerArray is optional nullable []SharedShocker.

func NewOptNilSharedShockerArray

func NewOptNilSharedShockerArray(v []SharedShocker) OptNilSharedShockerArray

NewOptNilSharedShockerArray returns new OptNilSharedShockerArray with value set to v.

func (*OptNilSharedShockerArray) Decode

func (o *OptNilSharedShockerArray) Decode(d *jx.Decoder) error

Decode decodes []SharedShocker from json.

func (OptNilSharedShockerArray) Encode

func (o OptNilSharedShockerArray) Encode(e *jx.Encoder)

Encode encodes []SharedShocker as json.

func (OptNilSharedShockerArray) Get

func (o OptNilSharedShockerArray) Get() (v []SharedShocker, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilSharedShockerArray) IsNull

func (o OptNilSharedShockerArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilSharedShockerArray) IsSet

func (o OptNilSharedShockerArray) IsSet() bool

IsSet returns true if OptNilSharedShockerArray was set.

func (OptNilSharedShockerArray) MarshalJSON

func (s OptNilSharedShockerArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilSharedShockerArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilSharedShockerArray) Reset

func (o *OptNilSharedShockerArray) Reset()

Reset unsets value.

func (*OptNilSharedShockerArray) SetFake

func (s *OptNilSharedShockerArray) SetFake()

SetFake set fake values.

func (*OptNilSharedShockerArray) SetTo

SetTo sets value to v.

func (*OptNilSharedShockerArray) SetToNull

func (o *OptNilSharedShockerArray) SetToNull()

SetNull sets value to null.

func (*OptNilSharedShockerArray) UnmarshalJSON

func (s *OptNilSharedShockerArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilShockerResponseArray

type OptNilShockerResponseArray struct {
	Value []ShockerResponse
	Set   bool
	Null  bool
}

OptNilShockerResponseArray is optional nullable []ShockerResponse.

func NewOptNilShockerResponseArray

func NewOptNilShockerResponseArray(v []ShockerResponse) OptNilShockerResponseArray

NewOptNilShockerResponseArray returns new OptNilShockerResponseArray with value set to v.

func (*OptNilShockerResponseArray) Decode

Decode decodes []ShockerResponse from json.

func (OptNilShockerResponseArray) Encode

func (o OptNilShockerResponseArray) Encode(e *jx.Encoder)

Encode encodes []ShockerResponse as json.

func (OptNilShockerResponseArray) Get

Get returns value and boolean that denotes whether value was set.

func (OptNilShockerResponseArray) IsNull

func (o OptNilShockerResponseArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilShockerResponseArray) IsSet

func (o OptNilShockerResponseArray) IsSet() bool

IsSet returns true if OptNilShockerResponseArray was set.

func (OptNilShockerResponseArray) MarshalJSON

func (s OptNilShockerResponseArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilShockerResponseArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilShockerResponseArray) Reset

func (o *OptNilShockerResponseArray) Reset()

Reset unsets value.

func (*OptNilShockerResponseArray) SetFake

func (s *OptNilShockerResponseArray) SetFake()

SetFake set fake values.

func (*OptNilShockerResponseArray) SetTo

SetTo sets value to v.

func (*OptNilShockerResponseArray) SetToNull

func (o *OptNilShockerResponseArray) SetToNull()

SetNull sets value to null.

func (*OptNilShockerResponseArray) UnmarshalJSON

func (s *OptNilShockerResponseArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilString

type OptNilString struct {
	Value string
	Set   bool
	Null  bool
}

OptNilString is optional nullable string.

func NewOptNilString

func NewOptNilString(v string) OptNilString

NewOptNilString returns new OptNilString with value set to v.

func (*OptNilString) Decode

func (o *OptNilString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptNilString) Encode

func (o OptNilString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptNilString) Get

func (o OptNilString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilString) IsNull

func (o OptNilString) IsNull() bool

IsSet returns true if value is Null.

func (OptNilString) IsSet

func (o OptNilString) IsSet() bool

IsSet returns true if OptNilString was set.

func (OptNilString) MarshalJSON

func (s OptNilString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilString) Or

func (o OptNilString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptNilString) Reset

func (o *OptNilString) Reset()

Reset unsets value.

func (*OptNilString) SetFake

func (s *OptNilString) SetFake()

SetFake set fake values.

func (*OptNilString) SetTo

func (o *OptNilString) SetTo(v string)

SetTo sets value to v.

func (*OptNilString) SetToNull

func (o *OptNilString) SetToNull()

SetNull sets value to null.

func (*OptNilString) UnmarshalJSON

func (s *OptNilString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilTokenResponseArray

type OptNilTokenResponseArray struct {
	Value []TokenResponse
	Set   bool
	Null  bool
}

OptNilTokenResponseArray is optional nullable []TokenResponse.

func NewOptNilTokenResponseArray

func NewOptNilTokenResponseArray(v []TokenResponse) OptNilTokenResponseArray

NewOptNilTokenResponseArray returns new OptNilTokenResponseArray with value set to v.

func (*OptNilTokenResponseArray) Decode

func (o *OptNilTokenResponseArray) Decode(d *jx.Decoder) error

Decode decodes []TokenResponse from json.

func (OptNilTokenResponseArray) Encode

func (o OptNilTokenResponseArray) Encode(e *jx.Encoder)

Encode encodes []TokenResponse as json.

func (OptNilTokenResponseArray) Get

func (o OptNilTokenResponseArray) Get() (v []TokenResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilTokenResponseArray) IsNull

func (o OptNilTokenResponseArray) IsNull() bool

IsSet returns true if value is Null.

func (OptNilTokenResponseArray) IsSet

func (o OptNilTokenResponseArray) IsSet() bool

IsSet returns true if OptNilTokenResponseArray was set.

func (OptNilTokenResponseArray) MarshalJSON

func (s OptNilTokenResponseArray) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilTokenResponseArray) Or

Or returns value if set, or given parameter if does not.

func (*OptNilTokenResponseArray) Reset

func (o *OptNilTokenResponseArray) Reset()

Reset unsets value.

func (*OptNilTokenResponseArray) SetFake

func (s *OptNilTokenResponseArray) SetFake()

SetFake set fake values.

func (*OptNilTokenResponseArray) SetTo

SetTo sets value to v.

func (*OptNilTokenResponseArray) SetToNull

func (o *OptNilTokenResponseArray) SetToNull()

SetNull sets value to null.

func (*OptNilTokenResponseArray) UnmarshalJSON

func (s *OptNilTokenResponseArray) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptNilURI

type OptNilURI struct {
	Value url.URL
	Set   bool
	Null  bool
}

OptNilURI is optional nullable url.URL.

func NewOptNilURI

func NewOptNilURI(v url.URL) OptNilURI

NewOptNilURI returns new OptNilURI with value set to v.

func (*OptNilURI) Decode

func (o *OptNilURI) Decode(d *jx.Decoder) error

Decode decodes url.URL from json.

func (OptNilURI) Encode

func (o OptNilURI) Encode(e *jx.Encoder)

Encode encodes url.URL as json.

func (OptNilURI) Get

func (o OptNilURI) Get() (v url.URL, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptNilURI) IsNull

func (o OptNilURI) IsNull() bool

IsSet returns true if value is Null.

func (OptNilURI) IsSet

func (o OptNilURI) IsSet() bool

IsSet returns true if OptNilURI was set.

func (OptNilURI) MarshalJSON

func (s OptNilURI) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptNilURI) Or

func (o OptNilURI) Or(d url.URL) url.URL

Or returns value if set, or given parameter if does not.

func (*OptNilURI) Reset

func (o *OptNilURI) Reset()

Reset unsets value.

func (*OptNilURI) SetFake

func (s *OptNilURI) SetFake()

SetFake set fake values.

func (*OptNilURI) SetTo

func (o *OptNilURI) SetTo(v url.URL)

SetTo sets value to v.

func (*OptNilURI) SetToNull

func (o *OptNilURI) SetToNull()

SetNull sets value to null.

func (*OptNilURI) UnmarshalJSON

func (s *OptNilURI) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptOtaUpdateStatus

type OptOtaUpdateStatus struct {
	Value OtaUpdateStatus
	Set   bool
}

OptOtaUpdateStatus is optional OtaUpdateStatus.

func NewOptOtaUpdateStatus

func NewOptOtaUpdateStatus(v OtaUpdateStatus) OptOtaUpdateStatus

NewOptOtaUpdateStatus returns new OptOtaUpdateStatus with value set to v.

func (*OptOtaUpdateStatus) Decode

func (o *OptOtaUpdateStatus) Decode(d *jx.Decoder) error

Decode decodes OtaUpdateStatus from json.

func (OptOtaUpdateStatus) Encode

func (o OptOtaUpdateStatus) Encode(e *jx.Encoder)

Encode encodes OtaUpdateStatus as json.

func (OptOtaUpdateStatus) Get

func (o OptOtaUpdateStatus) Get() (v OtaUpdateStatus, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptOtaUpdateStatus) IsSet

func (o OptOtaUpdateStatus) IsSet() bool

IsSet returns true if OptOtaUpdateStatus was set.

func (OptOtaUpdateStatus) MarshalJSON

func (s OptOtaUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOtaUpdateStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptOtaUpdateStatus) Reset

func (o *OptOtaUpdateStatus) Reset()

Reset unsets value.

func (*OptOtaUpdateStatus) SetFake

func (s *OptOtaUpdateStatus) SetFake()

SetFake set fake values.

func (*OptOtaUpdateStatus) SetTo

func (o *OptOtaUpdateStatus) SetTo(v OtaUpdateStatus)

SetTo sets value to v.

func (*OptOtaUpdateStatus) UnmarshalJSON

func (s *OptOtaUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPasswordResetProcessData

type OptPasswordResetProcessData struct {
	Value PasswordResetProcessData
	Set   bool
}

OptPasswordResetProcessData is optional PasswordResetProcessData.

func NewOptPasswordResetProcessData

func NewOptPasswordResetProcessData(v PasswordResetProcessData) OptPasswordResetProcessData

NewOptPasswordResetProcessData returns new OptPasswordResetProcessData with value set to v.

func (*OptPasswordResetProcessData) Decode

Decode decodes PasswordResetProcessData from json.

func (OptPasswordResetProcessData) Encode

func (o OptPasswordResetProcessData) Encode(e *jx.Encoder)

Encode encodes PasswordResetProcessData as json.

func (OptPasswordResetProcessData) Get

Get returns value and boolean that denotes whether value was set.

func (OptPasswordResetProcessData) IsSet

IsSet returns true if OptPasswordResetProcessData was set.

func (OptPasswordResetProcessData) MarshalJSON

func (s OptPasswordResetProcessData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPasswordResetProcessData) Or

Or returns value if set, or given parameter if does not.

func (*OptPasswordResetProcessData) Reset

func (o *OptPasswordResetProcessData) Reset()

Reset unsets value.

func (*OptPasswordResetProcessData) SetFake

func (s *OptPasswordResetProcessData) SetFake()

SetFake set fake values.

func (*OptPasswordResetProcessData) SetTo

SetTo sets value to v.

func (*OptPasswordResetProcessData) UnmarshalJSON

func (s *OptPasswordResetProcessData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPauseRequest

type OptPauseRequest struct {
	Value PauseRequest
	Set   bool
}

OptPauseRequest is optional PauseRequest.

func NewOptPauseRequest

func NewOptPauseRequest(v PauseRequest) OptPauseRequest

NewOptPauseRequest returns new OptPauseRequest with value set to v.

func (*OptPauseRequest) Decode

func (o *OptPauseRequest) Decode(d *jx.Decoder) error

Decode decodes PauseRequest from json.

func (OptPauseRequest) Encode

func (o OptPauseRequest) Encode(e *jx.Encoder)

Encode encodes PauseRequest as json.

func (OptPauseRequest) Get

func (o OptPauseRequest) Get() (v PauseRequest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptPauseRequest) IsSet

func (o OptPauseRequest) IsSet() bool

IsSet returns true if OptPauseRequest was set.

func (OptPauseRequest) MarshalJSON

func (s OptPauseRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPauseRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptPauseRequest) Reset

func (o *OptPauseRequest) Reset()

Reset unsets value.

func (*OptPauseRequest) SetFake

func (s *OptPauseRequest) SetFake()

SetFake set fake values.

func (*OptPauseRequest) SetTo

func (o *OptPauseRequest) SetTo(v PauseRequest)

SetTo sets value to v.

func (*OptPauseRequest) UnmarshalJSON

func (s *OptPauseRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptPublicShareLinkResponse

type OptPublicShareLinkResponse struct {
	Value PublicShareLinkResponse
	Set   bool
}

OptPublicShareLinkResponse is optional PublicShareLinkResponse.

func NewOptPublicShareLinkResponse

func NewOptPublicShareLinkResponse(v PublicShareLinkResponse) OptPublicShareLinkResponse

NewOptPublicShareLinkResponse returns new OptPublicShareLinkResponse with value set to v.

func (*OptPublicShareLinkResponse) Decode

Decode decodes PublicShareLinkResponse from json.

func (OptPublicShareLinkResponse) Encode

func (o OptPublicShareLinkResponse) Encode(e *jx.Encoder)

Encode encodes PublicShareLinkResponse as json.

func (OptPublicShareLinkResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptPublicShareLinkResponse) IsSet

func (o OptPublicShareLinkResponse) IsSet() bool

IsSet returns true if OptPublicShareLinkResponse was set.

func (OptPublicShareLinkResponse) MarshalJSON

func (s OptPublicShareLinkResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptPublicShareLinkResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptPublicShareLinkResponse) Reset

func (o *OptPublicShareLinkResponse) Reset()

Reset unsets value.

func (*OptPublicShareLinkResponse) SetFake

func (s *OptPublicShareLinkResponse) SetFake()

SetFake set fake values.

func (*OptPublicShareLinkResponse) SetTo

SetTo sets value to v.

func (*OptPublicShareLinkResponse) UnmarshalJSON

func (s *OptPublicShareLinkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRankType

type OptRankType struct {
	Value RankType
	Set   bool
}

OptRankType is optional RankType.

func NewOptRankType

func NewOptRankType(v RankType) OptRankType

NewOptRankType returns new OptRankType with value set to v.

func (*OptRankType) Decode

func (o *OptRankType) Decode(d *jx.Decoder) error

Decode decodes RankType from json.

func (OptRankType) Encode

func (o OptRankType) Encode(e *jx.Encoder)

Encode encodes RankType as json.

func (OptRankType) Get

func (o OptRankType) Get() (v RankType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRankType) IsSet

func (o OptRankType) IsSet() bool

IsSet returns true if OptRankType was set.

func (OptRankType) MarshalJSON

func (s OptRankType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRankType) Or

func (o OptRankType) Or(d RankType) RankType

Or returns value if set, or given parameter if does not.

func (*OptRankType) Reset

func (o *OptRankType) Reset()

Reset unsets value.

func (*OptRankType) SetFake

func (s *OptRankType) SetFake()

SetFake set fake values.

func (*OptRankType) SetTo

func (o *OptRankType) SetTo(v RankType)

SetTo sets value to v.

func (*OptRankType) UnmarshalJSON

func (s *OptRankType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptResetRequest

type OptResetRequest struct {
	Value ResetRequest
	Set   bool
}

OptResetRequest is optional ResetRequest.

func NewOptResetRequest

func NewOptResetRequest(v ResetRequest) OptResetRequest

NewOptResetRequest returns new OptResetRequest with value set to v.

func (*OptResetRequest) Decode

func (o *OptResetRequest) Decode(d *jx.Decoder) error

Decode decodes ResetRequest from json.

func (OptResetRequest) Encode

func (o OptResetRequest) Encode(e *jx.Encoder)

Encode encodes ResetRequest as json.

func (OptResetRequest) Get

func (o OptResetRequest) Get() (v ResetRequest, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptResetRequest) IsSet

func (o OptResetRequest) IsSet() bool

IsSet returns true if OptResetRequest was set.

func (OptResetRequest) MarshalJSON

func (s OptResetRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptResetRequest) Or

Or returns value if set, or given parameter if does not.

func (*OptResetRequest) Reset

func (o *OptResetRequest) Reset()

Reset unsets value.

func (*OptResetRequest) SetFake

func (s *OptResetRequest) SetFake()

SetFake set fake values.

func (*OptResetRequest) SetTo

func (o *OptResetRequest) SetTo(v ResetRequest)

SetTo sets value to v.

func (*OptResetRequest) UnmarshalJSON

func (s *OptResetRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptResponseDeviceWithToken

type OptResponseDeviceWithToken struct {
	Value ResponseDeviceWithToken
	Set   bool
}

OptResponseDeviceWithToken is optional ResponseDeviceWithToken.

func NewOptResponseDeviceWithToken

func NewOptResponseDeviceWithToken(v ResponseDeviceWithToken) OptResponseDeviceWithToken

NewOptResponseDeviceWithToken returns new OptResponseDeviceWithToken with value set to v.

func (*OptResponseDeviceWithToken) Decode

Decode decodes ResponseDeviceWithToken from json.

func (OptResponseDeviceWithToken) Encode

func (o OptResponseDeviceWithToken) Encode(e *jx.Encoder)

Encode encodes ResponseDeviceWithToken as json.

func (OptResponseDeviceWithToken) Get

Get returns value and boolean that denotes whether value was set.

func (OptResponseDeviceWithToken) IsSet

func (o OptResponseDeviceWithToken) IsSet() bool

IsSet returns true if OptResponseDeviceWithToken was set.

func (OptResponseDeviceWithToken) MarshalJSON

func (s OptResponseDeviceWithToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptResponseDeviceWithToken) Or

Or returns value if set, or given parameter if does not.

func (*OptResponseDeviceWithToken) Reset

func (o *OptResponseDeviceWithToken) Reset()

Reset unsets value.

func (*OptResponseDeviceWithToken) SetFake

func (s *OptResponseDeviceWithToken) SetFake()

SetFake set fake values.

func (*OptResponseDeviceWithToken) SetTo

SetTo sets value to v.

func (*OptResponseDeviceWithToken) UnmarshalJSON

func (s *OptResponseDeviceWithToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptRootResponse

type OptRootResponse struct {
	Value RootResponse
	Set   bool
}

OptRootResponse is optional RootResponse.

func NewOptRootResponse

func NewOptRootResponse(v RootResponse) OptRootResponse

NewOptRootResponse returns new OptRootResponse with value set to v.

func (*OptRootResponse) Decode

func (o *OptRootResponse) Decode(d *jx.Decoder) error

Decode decodes RootResponse from json.

func (OptRootResponse) Encode

func (o OptRootResponse) Encode(e *jx.Encoder)

Encode encodes RootResponse as json.

func (OptRootResponse) Get

func (o OptRootResponse) Get() (v RootResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptRootResponse) IsSet

func (o OptRootResponse) IsSet() bool

IsSet returns true if OptRootResponse was set.

func (OptRootResponse) MarshalJSON

func (s OptRootResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptRootResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptRootResponse) Reset

func (o *OptRootResponse) Reset()

Reset unsets value.

func (*OptRootResponse) SetFake

func (s *OptRootResponse) SetFake()

SetFake set fake values.

func (*OptRootResponse) SetTo

func (o *OptRootResponse) SetTo(v RootResponse)

SetTo sets value to v.

func (*OptRootResponse) UnmarshalJSON

func (s *OptRootResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSelfResponse

type OptSelfResponse struct {
	Value SelfResponse
	Set   bool
}

OptSelfResponse is optional SelfResponse.

func NewOptSelfResponse

func NewOptSelfResponse(v SelfResponse) OptSelfResponse

NewOptSelfResponse returns new OptSelfResponse with value set to v.

func (*OptSelfResponse) Decode

func (o *OptSelfResponse) Decode(d *jx.Decoder) error

Decode decodes SelfResponse from json.

func (OptSelfResponse) Encode

func (o OptSelfResponse) Encode(e *jx.Encoder)

Encode encodes SelfResponse as json.

func (OptSelfResponse) Get

func (o OptSelfResponse) Get() (v SelfResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSelfResponse) IsSet

func (o OptSelfResponse) IsSet() bool

IsSet returns true if OptSelfResponse was set.

func (OptSelfResponse) MarshalJSON

func (s OptSelfResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSelfResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptSelfResponse) Reset

func (o *OptSelfResponse) Reset()

Reset unsets value.

func (*OptSelfResponse) SetFake

func (s *OptSelfResponse) SetFake()

SetFake set fake values.

func (*OptSelfResponse) SetTo

func (o *OptSelfResponse) SetTo(v SelfResponse)

SetTo sets value to v.

func (*OptSelfResponse) UnmarshalJSON

func (s *OptSelfResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShareLinkCreate

type OptShareLinkCreate struct {
	Value ShareLinkCreate
	Set   bool
}

OptShareLinkCreate is optional ShareLinkCreate.

func NewOptShareLinkCreate

func NewOptShareLinkCreate(v ShareLinkCreate) OptShareLinkCreate

NewOptShareLinkCreate returns new OptShareLinkCreate with value set to v.

func (*OptShareLinkCreate) Decode

func (o *OptShareLinkCreate) Decode(d *jx.Decoder) error

Decode decodes ShareLinkCreate from json.

func (OptShareLinkCreate) Encode

func (o OptShareLinkCreate) Encode(e *jx.Encoder)

Encode encodes ShareLinkCreate as json.

func (OptShareLinkCreate) Get

func (o OptShareLinkCreate) Get() (v ShareLinkCreate, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptShareLinkCreate) IsSet

func (o OptShareLinkCreate) IsSet() bool

IsSet returns true if OptShareLinkCreate was set.

func (OptShareLinkCreate) MarshalJSON

func (s OptShareLinkCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShareLinkCreate) Or

Or returns value if set, or given parameter if does not.

func (*OptShareLinkCreate) Reset

func (o *OptShareLinkCreate) Reset()

Reset unsets value.

func (*OptShareLinkCreate) SetFake

func (s *OptShareLinkCreate) SetFake()

SetFake set fake values.

func (*OptShareLinkCreate) SetTo

func (o *OptShareLinkCreate) SetTo(v ShareLinkCreate)

SetTo sets value to v.

func (*OptShareLinkCreate) UnmarshalJSON

func (s *OptShareLinkCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShareLinkEditShocker

type OptShareLinkEditShocker struct {
	Value ShareLinkEditShocker
	Set   bool
}

OptShareLinkEditShocker is optional ShareLinkEditShocker.

func NewOptShareLinkEditShocker

func NewOptShareLinkEditShocker(v ShareLinkEditShocker) OptShareLinkEditShocker

NewOptShareLinkEditShocker returns new OptShareLinkEditShocker with value set to v.

func (*OptShareLinkEditShocker) Decode

func (o *OptShareLinkEditShocker) Decode(d *jx.Decoder) error

Decode decodes ShareLinkEditShocker from json.

func (OptShareLinkEditShocker) Encode

func (o OptShareLinkEditShocker) Encode(e *jx.Encoder)

Encode encodes ShareLinkEditShocker as json.

func (OptShareLinkEditShocker) Get

Get returns value and boolean that denotes whether value was set.

func (OptShareLinkEditShocker) IsSet

func (o OptShareLinkEditShocker) IsSet() bool

IsSet returns true if OptShareLinkEditShocker was set.

func (OptShareLinkEditShocker) MarshalJSON

func (s OptShareLinkEditShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShareLinkEditShocker) Or

Or returns value if set, or given parameter if does not.

func (*OptShareLinkEditShocker) Reset

func (o *OptShareLinkEditShocker) Reset()

Reset unsets value.

func (*OptShareLinkEditShocker) SetFake

func (s *OptShareLinkEditShocker) SetFake()

SetFake set fake values.

func (*OptShareLinkEditShocker) SetTo

SetTo sets value to v.

func (*OptShareLinkEditShocker) UnmarshalJSON

func (s *OptShareLinkEditShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShareLinkResponse

type OptShareLinkResponse struct {
	Value ShareLinkResponse
	Set   bool
}

OptShareLinkResponse is optional ShareLinkResponse.

func NewOptShareLinkResponse

func NewOptShareLinkResponse(v ShareLinkResponse) OptShareLinkResponse

NewOptShareLinkResponse returns new OptShareLinkResponse with value set to v.

func (*OptShareLinkResponse) Decode

func (o *OptShareLinkResponse) Decode(d *jx.Decoder) error

Decode decodes ShareLinkResponse from json.

func (OptShareLinkResponse) Encode

func (o OptShareLinkResponse) Encode(e *jx.Encoder)

Encode encodes ShareLinkResponse as json.

func (OptShareLinkResponse) Get

Get returns value and boolean that denotes whether value was set.

func (OptShareLinkResponse) IsSet

func (o OptShareLinkResponse) IsSet() bool

IsSet returns true if OptShareLinkResponse was set.

func (OptShareLinkResponse) MarshalJSON

func (s OptShareLinkResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShareLinkResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptShareLinkResponse) Reset

func (o *OptShareLinkResponse) Reset()

Reset unsets value.

func (*OptShareLinkResponse) SetFake

func (s *OptShareLinkResponse) SetFake()

SetFake set fake values.

func (*OptShareLinkResponse) SetTo

SetTo sets value to v.

func (*OptShareLinkResponse) UnmarshalJSON

func (s *OptShareLinkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShockerLimits

type OptShockerLimits struct {
	Value ShockerLimits
	Set   bool
}

OptShockerLimits is optional ShockerLimits.

func NewOptShockerLimits

func NewOptShockerLimits(v ShockerLimits) OptShockerLimits

NewOptShockerLimits returns new OptShockerLimits with value set to v.

func (*OptShockerLimits) Decode

func (o *OptShockerLimits) Decode(d *jx.Decoder) error

Decode decodes ShockerLimits from json.

func (OptShockerLimits) Encode

func (o OptShockerLimits) Encode(e *jx.Encoder)

Encode encodes ShockerLimits as json.

func (OptShockerLimits) Get

func (o OptShockerLimits) Get() (v ShockerLimits, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptShockerLimits) IsSet

func (o OptShockerLimits) IsSet() bool

IsSet returns true if OptShockerLimits was set.

func (OptShockerLimits) MarshalJSON

func (s OptShockerLimits) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShockerLimits) Or

Or returns value if set, or given parameter if does not.

func (*OptShockerLimits) Reset

func (o *OptShockerLimits) Reset()

Reset unsets value.

func (*OptShockerLimits) SetFake

func (s *OptShockerLimits) SetFake()

SetFake set fake values.

func (*OptShockerLimits) SetTo

func (o *OptShockerLimits) SetTo(v ShockerLimits)

SetTo sets value to v.

func (*OptShockerLimits) UnmarshalJSON

func (s *OptShockerLimits) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShockerModelType

type OptShockerModelType struct {
	Value ShockerModelType
	Set   bool
}

OptShockerModelType is optional ShockerModelType.

func NewOptShockerModelType

func NewOptShockerModelType(v ShockerModelType) OptShockerModelType

NewOptShockerModelType returns new OptShockerModelType with value set to v.

func (*OptShockerModelType) Decode

func (o *OptShockerModelType) Decode(d *jx.Decoder) error

Decode decodes ShockerModelType from json.

func (OptShockerModelType) Encode

func (o OptShockerModelType) Encode(e *jx.Encoder)

Encode encodes ShockerModelType as json.

func (OptShockerModelType) Get

func (o OptShockerModelType) Get() (v ShockerModelType, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptShockerModelType) IsSet

func (o OptShockerModelType) IsSet() bool

IsSet returns true if OptShockerModelType was set.

func (OptShockerModelType) MarshalJSON

func (s OptShockerModelType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShockerModelType) Or

Or returns value if set, or given parameter if does not.

func (*OptShockerModelType) Reset

func (o *OptShockerModelType) Reset()

Reset unsets value.

func (*OptShockerModelType) SetFake

func (s *OptShockerModelType) SetFake()

SetFake set fake values.

func (*OptShockerModelType) SetTo

SetTo sets value to v.

func (*OptShockerModelType) UnmarshalJSON

func (s *OptShockerModelType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShockerPermissions

type OptShockerPermissions struct {
	Value ShockerPermissions
	Set   bool
}

OptShockerPermissions is optional ShockerPermissions.

func NewOptShockerPermissions

func NewOptShockerPermissions(v ShockerPermissions) OptShockerPermissions

NewOptShockerPermissions returns new OptShockerPermissions with value set to v.

func (*OptShockerPermissions) Decode

func (o *OptShockerPermissions) Decode(d *jx.Decoder) error

Decode decodes ShockerPermissions from json.

func (OptShockerPermissions) Encode

func (o OptShockerPermissions) Encode(e *jx.Encoder)

Encode encodes ShockerPermissions as json.

func (OptShockerPermissions) Get

Get returns value and boolean that denotes whether value was set.

func (OptShockerPermissions) IsSet

func (o OptShockerPermissions) IsSet() bool

IsSet returns true if OptShockerPermissions was set.

func (OptShockerPermissions) MarshalJSON

func (s OptShockerPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShockerPermissions) Or

Or returns value if set, or given parameter if does not.

func (*OptShockerPermissions) Reset

func (o *OptShockerPermissions) Reset()

Reset unsets value.

func (*OptShockerPermissions) SetFake

func (s *OptShockerPermissions) SetFake()

SetFake set fake values.

func (*OptShockerPermissions) SetTo

SetTo sets value to v.

func (*OptShockerPermissions) UnmarshalJSON

func (s *OptShockerPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptShockerWithDevice

type OptShockerWithDevice struct {
	Value ShockerWithDevice
	Set   bool
}

OptShockerWithDevice is optional ShockerWithDevice.

func NewOptShockerWithDevice

func NewOptShockerWithDevice(v ShockerWithDevice) OptShockerWithDevice

NewOptShockerWithDevice returns new OptShockerWithDevice with value set to v.

func (*OptShockerWithDevice) Decode

func (o *OptShockerWithDevice) Decode(d *jx.Decoder) error

Decode decodes ShockerWithDevice from json.

func (OptShockerWithDevice) Encode

func (o OptShockerWithDevice) Encode(e *jx.Encoder)

Encode encodes ShockerWithDevice as json.

func (OptShockerWithDevice) Get

Get returns value and boolean that denotes whether value was set.

func (OptShockerWithDevice) IsSet

func (o OptShockerWithDevice) IsSet() bool

IsSet returns true if OptShockerWithDevice was set.

func (OptShockerWithDevice) MarshalJSON

func (s OptShockerWithDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptShockerWithDevice) Or

Or returns value if set, or given parameter if does not.

func (*OptShockerWithDevice) Reset

func (o *OptShockerWithDevice) Reset()

Reset unsets value.

func (*OptShockerWithDevice) SetFake

func (s *OptShockerWithDevice) SetFake()

SetFake set fake values.

func (*OptShockerWithDevice) SetTo

SetTo sets value to v.

func (*OptShockerWithDevice) UnmarshalJSON

func (s *OptShockerWithDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSignUp

type OptSignUp struct {
	Value SignUp
	Set   bool
}

OptSignUp is optional SignUp.

func NewOptSignUp

func NewOptSignUp(v SignUp) OptSignUp

NewOptSignUp returns new OptSignUp with value set to v.

func (*OptSignUp) Decode

func (o *OptSignUp) Decode(d *jx.Decoder) error

Decode decodes SignUp from json.

func (OptSignUp) Encode

func (o OptSignUp) Encode(e *jx.Encoder)

Encode encodes SignUp as json.

func (OptSignUp) Get

func (o OptSignUp) Get() (v SignUp, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSignUp) IsSet

func (o OptSignUp) IsSet() bool

IsSet returns true if OptSignUp was set.

func (OptSignUp) MarshalJSON

func (s OptSignUp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSignUp) Or

func (o OptSignUp) Or(d SignUp) SignUp

Or returns value if set, or given parameter if does not.

func (*OptSignUp) Reset

func (o *OptSignUp) Reset()

Reset unsets value.

func (*OptSignUp) SetFake

func (s *OptSignUp) SetFake()

SetFake set fake values.

func (*OptSignUp) SetTo

func (o *OptSignUp) SetTo(v SignUp)

SetTo sets value to v.

func (*OptSignUp) UnmarshalJSON

func (s *OptSignUp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSignUpV2

type OptSignUpV2 struct {
	Value SignUpV2
	Set   bool
}

OptSignUpV2 is optional SignUpV2.

func NewOptSignUpV2

func NewOptSignUpV2(v SignUpV2) OptSignUpV2

NewOptSignUpV2 returns new OptSignUpV2 with value set to v.

func (*OptSignUpV2) Decode

func (o *OptSignUpV2) Decode(d *jx.Decoder) error

Decode decodes SignUpV2 from json.

func (OptSignUpV2) Encode

func (o OptSignUpV2) Encode(e *jx.Encoder)

Encode encodes SignUpV2 as json.

func (OptSignUpV2) Get

func (o OptSignUpV2) Get() (v SignUpV2, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSignUpV2) IsSet

func (o OptSignUpV2) IsSet() bool

IsSet returns true if OptSignUpV2 was set.

func (OptSignUpV2) MarshalJSON

func (s OptSignUpV2) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSignUpV2) Or

func (o OptSignUpV2) Or(d SignUpV2) SignUpV2

Or returns value if set, or given parameter if does not.

func (*OptSignUpV2) Reset

func (o *OptSignUpV2) Reset()

Reset unsets value.

func (*OptSignUpV2) SetFake

func (s *OptSignUpV2) SetFake()

SetFake set fake values.

func (*OptSignUpV2) SetTo

func (o *OptSignUpV2) SetTo(v SignUpV2)

SetTo sets value to v.

func (*OptSignUpV2) UnmarshalJSON

func (s *OptSignUpV2) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptStatsResponse

type OptStatsResponse struct {
	Value StatsResponse
	Set   bool
}

OptStatsResponse is optional StatsResponse.

func NewOptStatsResponse

func NewOptStatsResponse(v StatsResponse) OptStatsResponse

NewOptStatsResponse returns new OptStatsResponse with value set to v.

func (*OptStatsResponse) Decode

func (o *OptStatsResponse) Decode(d *jx.Decoder) error

Decode decodes StatsResponse from json.

func (OptStatsResponse) Encode

func (o OptStatsResponse) Encode(e *jx.Encoder)

Encode encodes StatsResponse as json.

func (OptStatsResponse) Get

func (o OptStatsResponse) Get() (v StatsResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptStatsResponse) IsSet

func (o OptStatsResponse) IsSet() bool

IsSet returns true if OptStatsResponse was set.

func (OptStatsResponse) MarshalJSON

func (s OptStatsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptStatsResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptStatsResponse) Reset

func (o *OptStatsResponse) Reset()

Reset unsets value.

func (*OptStatsResponse) SetFake

func (s *OptStatsResponse) SetFake()

SetFake set fake values.

func (*OptStatsResponse) SetTo

func (o *OptStatsResponse) SetTo(v StatsResponse)

SetTo sets value to v.

func (*OptStatsResponse) UnmarshalJSON

func (s *OptStatsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptTokenResponse

type OptTokenResponse struct {
	Value TokenResponse
	Set   bool
}

OptTokenResponse is optional TokenResponse.

func NewOptTokenResponse

func NewOptTokenResponse(v TokenResponse) OptTokenResponse

NewOptTokenResponse returns new OptTokenResponse with value set to v.

func (*OptTokenResponse) Decode

func (o *OptTokenResponse) Decode(d *jx.Decoder) error

Decode decodes TokenResponse from json.

func (OptTokenResponse) Encode

func (o OptTokenResponse) Encode(e *jx.Encoder)

Encode encodes TokenResponse as json.

func (OptTokenResponse) Get

func (o OptTokenResponse) Get() (v TokenResponse, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptTokenResponse) IsSet

func (o OptTokenResponse) IsSet() bool

IsSet returns true if OptTokenResponse was set.

func (OptTokenResponse) MarshalJSON

func (s OptTokenResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptTokenResponse) Or

Or returns value if set, or given parameter if does not.

func (*OptTokenResponse) Reset

func (o *OptTokenResponse) Reset()

Reset unsets value.

func (*OptTokenResponse) SetFake

func (s *OptTokenResponse) SetFake()

SetFake set fake values.

func (*OptTokenResponse) SetTo

func (o *OptTokenResponse) SetTo(v TokenResponse)

SetTo sets value to v.

func (*OptTokenResponse) UnmarshalJSON

func (s *OptTokenResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUUID

type OptUUID struct {
	Value uuid.UUID
	Set   bool
}

OptUUID is optional uuid.UUID.

func NewOptUUID

func NewOptUUID(v uuid.UUID) OptUUID

NewOptUUID returns new OptUUID with value set to v.

func (*OptUUID) Decode

func (o *OptUUID) Decode(d *jx.Decoder) error

Decode decodes uuid.UUID from json.

func (OptUUID) Encode

func (o OptUUID) Encode(e *jx.Encoder)

Encode encodes uuid.UUID as json.

func (OptUUID) Get

func (o OptUUID) Get() (v uuid.UUID, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptUUID) IsSet

func (o OptUUID) IsSet() bool

IsSet returns true if OptUUID was set.

func (OptUUID) MarshalJSON

func (s OptUUID) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUUID) Or

func (o OptUUID) Or(d uuid.UUID) uuid.UUID

Or returns value if set, or given parameter if does not.

func (*OptUUID) Reset

func (o *OptUUID) Reset()

Reset unsets value.

func (*OptUUID) SetFake

func (s *OptUUID) SetFake()

SetFake set fake values.

func (*OptUUID) SetTo

func (o *OptUUID) SetTo(v uuid.UUID)

SetTo sets value to v.

func (*OptUUID) UnmarshalJSON

func (s *OptUUID) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ClientOption
}

Option is config option.

type OtaItem

type OtaItem struct {
	ID        OptInt32           `json:"id"`
	StartedAt OptDateTime        `json:"startedAt"`
	Status    OptOtaUpdateStatus `json:"status"`
	Version   OptNilString       `json:"version"`
	Message   OptNilString       `json:"message"`
}

Ref: #/components/schemas/OtaItem

func (*OtaItem) Decode

func (s *OtaItem) Decode(d *jx.Decoder) error

Decode decodes OtaItem from json.

func (*OtaItem) Encode

func (s *OtaItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OtaItem) GetID

func (s *OtaItem) GetID() OptInt32

GetID returns the value of ID.

func (*OtaItem) GetMessage

func (s *OtaItem) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*OtaItem) GetStartedAt

func (s *OtaItem) GetStartedAt() OptDateTime

GetStartedAt returns the value of StartedAt.

func (*OtaItem) GetStatus

func (s *OtaItem) GetStatus() OptOtaUpdateStatus

GetStatus returns the value of Status.

func (*OtaItem) GetVersion

func (s *OtaItem) GetVersion() OptNilString

GetVersion returns the value of Version.

func (*OtaItem) MarshalJSON

func (s *OtaItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OtaItem) SetFake

func (s *OtaItem) SetFake()

SetFake set fake values.

func (*OtaItem) SetID

func (s *OtaItem) SetID(val OptInt32)

SetID sets the value of ID.

func (*OtaItem) SetMessage

func (s *OtaItem) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*OtaItem) SetStartedAt

func (s *OtaItem) SetStartedAt(val OptDateTime)

SetStartedAt sets the value of StartedAt.

func (*OtaItem) SetStatus

func (s *OtaItem) SetStatus(val OptOtaUpdateStatus)

SetStatus sets the value of Status.

func (*OtaItem) SetVersion

func (s *OtaItem) SetVersion(val OptNilString)

SetVersion sets the value of Version.

func (*OtaItem) UnmarshalJSON

func (s *OtaItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OtaItem) Validate

func (s *OtaItem) Validate() error

type OtaItemIReadOnlyCollectionBaseResponse

type OtaItemIReadOnlyCollectionBaseResponse struct {
	Message OptNilString       `json:"message"`
	Data    OptNilOtaItemArray `json:"data"`
}

Ref: #/components/schemas/OtaItemIReadOnlyCollectionBaseResponse

func (*OtaItemIReadOnlyCollectionBaseResponse) Decode

Decode decodes OtaItemIReadOnlyCollectionBaseResponse from json.

func (*OtaItemIReadOnlyCollectionBaseResponse) Encode

Encode implements json.Marshaler.

func (*OtaItemIReadOnlyCollectionBaseResponse) GetData

GetData returns the value of Data.

func (*OtaItemIReadOnlyCollectionBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*OtaItemIReadOnlyCollectionBaseResponse) MarshalJSON

func (s *OtaItemIReadOnlyCollectionBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OtaItemIReadOnlyCollectionBaseResponse) SetData

SetData sets the value of Data.

func (*OtaItemIReadOnlyCollectionBaseResponse) SetFake

SetFake set fake values.

func (*OtaItemIReadOnlyCollectionBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*OtaItemIReadOnlyCollectionBaseResponse) UnmarshalJSON

func (s *OtaItemIReadOnlyCollectionBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OtaItemIReadOnlyCollectionBaseResponse) Validate

type OtaUpdateStatus

type OtaUpdateStatus string

Ref: #/components/schemas/OtaUpdateStatus

const (
	OtaUpdateStatusStarted  OtaUpdateStatus = "Started"
	OtaUpdateStatusRunning  OtaUpdateStatus = "Running"
	OtaUpdateStatusFinished OtaUpdateStatus = "Finished"
	OtaUpdateStatusError    OtaUpdateStatus = "Error"
	OtaUpdateStatusTimeout  OtaUpdateStatus = "Timeout"
)

func (OtaUpdateStatus) AllValues

func (OtaUpdateStatus) AllValues() []OtaUpdateStatus

AllValues returns all OtaUpdateStatus values.

func (*OtaUpdateStatus) Decode

func (s *OtaUpdateStatus) Decode(d *jx.Decoder) error

Decode decodes OtaUpdateStatus from json.

func (OtaUpdateStatus) Encode

func (s OtaUpdateStatus) Encode(e *jx.Encoder)

Encode encodes OtaUpdateStatus as json.

func (OtaUpdateStatus) MarshalJSON

func (s OtaUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OtaUpdateStatus) MarshalText

func (s OtaUpdateStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*OtaUpdateStatus) SetFake

func (s *OtaUpdateStatus) SetFake()

SetFake set fake values.

func (*OtaUpdateStatus) UnmarshalJSON

func (s *OtaUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OtaUpdateStatus) UnmarshalText

func (s *OtaUpdateStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (OtaUpdateStatus) Validate

func (s OtaUpdateStatus) Validate() error

type OwnerShockerResponse

type OwnerShockerResponse struct {
	ID      OptUUID                 `json:"id"`
	Name    OptNilString            `json:"name"`
	Devices OptNilSharedDeviceArray `json:"devices"`
}

Ref: #/components/schemas/OwnerShockerResponse

func (*OwnerShockerResponse) Decode

func (s *OwnerShockerResponse) Decode(d *jx.Decoder) error

Decode decodes OwnerShockerResponse from json.

func (*OwnerShockerResponse) Encode

func (s *OwnerShockerResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*OwnerShockerResponse) GetDevices

GetDevices returns the value of Devices.

func (*OwnerShockerResponse) GetID

func (s *OwnerShockerResponse) GetID() OptUUID

GetID returns the value of ID.

func (*OwnerShockerResponse) GetName

func (s *OwnerShockerResponse) GetName() OptNilString

GetName returns the value of Name.

func (*OwnerShockerResponse) MarshalJSON

func (s *OwnerShockerResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OwnerShockerResponse) SetDevices

func (s *OwnerShockerResponse) SetDevices(val OptNilSharedDeviceArray)

SetDevices sets the value of Devices.

func (*OwnerShockerResponse) SetFake

func (s *OwnerShockerResponse) SetFake()

SetFake set fake values.

func (*OwnerShockerResponse) SetID

func (s *OwnerShockerResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*OwnerShockerResponse) SetName

func (s *OwnerShockerResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*OwnerShockerResponse) UnmarshalJSON

func (s *OwnerShockerResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OwnerShockerResponse) Validate

func (s *OwnerShockerResponse) Validate() error

type OwnerShockerResponseIEnumerableIEnumerableBaseResponse

type OwnerShockerResponseIEnumerableIEnumerableBaseResponse struct {
	Message OptNilString                         `json:"message"`
	Data    OptNilOwnerShockerResponseArrayArray `json:"data"`
}

Ref: #/components/schemas/OwnerShockerResponseIEnumerableIEnumerableBaseResponse

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) Decode

Decode decodes OwnerShockerResponseIEnumerableIEnumerableBaseResponse from json.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*OwnerShockerResponseIEnumerableIEnumerableBaseResponse) Validate

type PasswordResetProcessData

type PasswordResetProcessData struct {
	Password OptNilString `json:"password"`
}

Ref: #/components/schemas/PasswordResetProcessData

func (*PasswordResetProcessData) Decode

func (s *PasswordResetProcessData) Decode(d *jx.Decoder) error

Decode decodes PasswordResetProcessData from json.

func (*PasswordResetProcessData) Encode

func (s *PasswordResetProcessData) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PasswordResetProcessData) GetPassword

func (s *PasswordResetProcessData) GetPassword() OptNilString

GetPassword returns the value of Password.

func (*PasswordResetProcessData) MarshalJSON

func (s *PasswordResetProcessData) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PasswordResetProcessData) SetFake

func (s *PasswordResetProcessData) SetFake()

SetFake set fake values.

func (*PasswordResetProcessData) SetPassword

func (s *PasswordResetProcessData) SetPassword(val OptNilString)

SetPassword sets the value of Password.

func (*PasswordResetProcessData) UnmarshalJSON

func (s *PasswordResetProcessData) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PauseReasonBaseResponse

type PauseReasonBaseResponse struct {
	Message OptNilString `json:"message"`
	// An integer representing the reason(s) for the shocker being paused, expressed as a bitfield where
	// reasons are OR'd together.
	// Each bit corresponds to:
	// - 1: Shocker
	// - 2: Share
	// - 4: ShareLink
	// For example, a value of 6 (2 | 4) indicates both 'Share' and 'ShareLink' reasons.
	Data OptInt `json:"data"`
}

Ref: #/components/schemas/PauseReasonBaseResponse

func (*PauseReasonBaseResponse) Decode

func (s *PauseReasonBaseResponse) Decode(d *jx.Decoder) error

Decode decodes PauseReasonBaseResponse from json.

func (*PauseReasonBaseResponse) Encode

func (s *PauseReasonBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PauseReasonBaseResponse) GetData

func (s *PauseReasonBaseResponse) GetData() OptInt

GetData returns the value of Data.

func (*PauseReasonBaseResponse) GetMessage

func (s *PauseReasonBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*PauseReasonBaseResponse) MarshalJSON

func (s *PauseReasonBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PauseReasonBaseResponse) SetData

func (s *PauseReasonBaseResponse) SetData(val OptInt)

SetData sets the value of Data.

func (*PauseReasonBaseResponse) SetFake

func (s *PauseReasonBaseResponse) SetFake()

SetFake set fake values.

func (*PauseReasonBaseResponse) SetMessage

func (s *PauseReasonBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*PauseReasonBaseResponse) UnmarshalJSON

func (s *PauseReasonBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PauseRequest

type PauseRequest struct {
	Pause OptBool `json:"pause"`
}

Ref: #/components/schemas/PauseRequest

func (*PauseRequest) Decode

func (s *PauseRequest) Decode(d *jx.Decoder) error

Decode decodes PauseRequest from json.

func (*PauseRequest) Encode

func (s *PauseRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PauseRequest) GetPause

func (s *PauseRequest) GetPause() OptBool

GetPause returns the value of Pause.

func (*PauseRequest) MarshalJSON

func (s *PauseRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PauseRequest) SetFake

func (s *PauseRequest) SetFake()

SetFake set fake values.

func (*PauseRequest) SetPause

func (s *PauseRequest) SetPause(val OptBool)

SetPause sets the value of Pause.

func (*PauseRequest) UnmarshalJSON

func (s *PauseRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PermissionType

type PermissionType string

Ref: #/components/schemas/PermissionType

const (
	PermissionTypeShockersUse PermissionType = "Shockers_Use"
)

func (PermissionType) AllValues

func (PermissionType) AllValues() []PermissionType

AllValues returns all PermissionType values.

func (*PermissionType) Decode

func (s *PermissionType) Decode(d *jx.Decoder) error

Decode decodes PermissionType from json.

func (PermissionType) Encode

func (s PermissionType) Encode(e *jx.Encoder)

Encode encodes PermissionType as json.

func (PermissionType) MarshalJSON

func (s PermissionType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (PermissionType) MarshalText

func (s PermissionType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*PermissionType) SetFake

func (s *PermissionType) SetFake()

SetFake set fake values.

func (*PermissionType) UnmarshalJSON

func (s *PermissionType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PermissionType) UnmarshalText

func (s *PermissionType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (PermissionType) Validate

func (s PermissionType) Validate() error

type PublicGetShareLinkParams

type PublicGetShareLinkParams struct {
	ShareLinkId uuid.UUID
}

PublicGetShareLinkParams is parameters of Public_GetShareLink operation.

type PublicGetShareLinkRes

type PublicGetShareLinkRes interface {
	// contains filtered or unexported methods
}

type PublicShareLinkResponse

type PublicShareLinkResponse struct {
	ID        OptUUID                    `json:"id"`
	Name      OptNilString               `json:"name"`
	CreatedOn OptDateTime                `json:"createdOn"`
	ExpiresOn OptNilDateTime             `json:"expiresOn"`
	Author    OptGenericIni              `json:"author"`
	Devices   OptNilShareLinkDeviceArray `json:"devices"`
}

Ref: #/components/schemas/PublicShareLinkResponse

func (*PublicShareLinkResponse) Decode

func (s *PublicShareLinkResponse) Decode(d *jx.Decoder) error

Decode decodes PublicShareLinkResponse from json.

func (*PublicShareLinkResponse) Encode

func (s *PublicShareLinkResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PublicShareLinkResponse) GetAuthor

func (s *PublicShareLinkResponse) GetAuthor() OptGenericIni

GetAuthor returns the value of Author.

func (*PublicShareLinkResponse) GetCreatedOn

func (s *PublicShareLinkResponse) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*PublicShareLinkResponse) GetDevices

GetDevices returns the value of Devices.

func (*PublicShareLinkResponse) GetExpiresOn

func (s *PublicShareLinkResponse) GetExpiresOn() OptNilDateTime

GetExpiresOn returns the value of ExpiresOn.

func (*PublicShareLinkResponse) GetID

func (s *PublicShareLinkResponse) GetID() OptUUID

GetID returns the value of ID.

func (*PublicShareLinkResponse) GetName

GetName returns the value of Name.

func (*PublicShareLinkResponse) MarshalJSON

func (s *PublicShareLinkResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PublicShareLinkResponse) SetAuthor

func (s *PublicShareLinkResponse) SetAuthor(val OptGenericIni)

SetAuthor sets the value of Author.

func (*PublicShareLinkResponse) SetCreatedOn

func (s *PublicShareLinkResponse) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*PublicShareLinkResponse) SetDevices

SetDevices sets the value of Devices.

func (*PublicShareLinkResponse) SetExpiresOn

func (s *PublicShareLinkResponse) SetExpiresOn(val OptNilDateTime)

SetExpiresOn sets the value of ExpiresOn.

func (*PublicShareLinkResponse) SetFake

func (s *PublicShareLinkResponse) SetFake()

SetFake set fake values.

func (*PublicShareLinkResponse) SetID

func (s *PublicShareLinkResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*PublicShareLinkResponse) SetName

func (s *PublicShareLinkResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*PublicShareLinkResponse) UnmarshalJSON

func (s *PublicShareLinkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PublicShareLinkResponse) Validate

func (s *PublicShareLinkResponse) Validate() error

type PublicShareLinkResponseBaseResponse

type PublicShareLinkResponseBaseResponse struct {
	Message OptNilString               `json:"message"`
	Data    OptPublicShareLinkResponse `json:"data"`
}

Ref: #/components/schemas/PublicShareLinkResponseBaseResponse

func (*PublicShareLinkResponseBaseResponse) Decode

Decode decodes PublicShareLinkResponseBaseResponse from json.

func (*PublicShareLinkResponseBaseResponse) Encode

Encode implements json.Marshaler.

func (*PublicShareLinkResponseBaseResponse) GetData

GetData returns the value of Data.

func (*PublicShareLinkResponseBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*PublicShareLinkResponseBaseResponse) MarshalJSON

func (s *PublicShareLinkResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PublicShareLinkResponseBaseResponse) SetData

SetData sets the value of Data.

func (*PublicShareLinkResponseBaseResponse) SetFake

SetFake set fake values.

func (*PublicShareLinkResponseBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*PublicShareLinkResponseBaseResponse) UnmarshalJSON

func (s *PublicShareLinkResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PublicShareLinkResponseBaseResponse) Validate

type RankType

type RankType string

Ref: #/components/schemas/RankType

const (
	RankTypeUser    RankType = "User"
	RankTypeSupport RankType = "Support"
	RankTypeStaff   RankType = "Staff"
	RankTypeAdmin   RankType = "Admin"
	RankTypeSystem  RankType = "System"
)

func (RankType) AllValues

func (RankType) AllValues() []RankType

AllValues returns all RankType values.

func (*RankType) Decode

func (s *RankType) Decode(d *jx.Decoder) error

Decode decodes RankType from json.

func (RankType) Encode

func (s RankType) Encode(e *jx.Encoder)

Encode encodes RankType as json.

func (RankType) MarshalJSON

func (s RankType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (RankType) MarshalText

func (s RankType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*RankType) SetFake

func (s *RankType) SetFake()

SetFake set fake values.

func (*RankType) UnmarshalJSON

func (s *RankType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*RankType) UnmarshalText

func (s *RankType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (RankType) Validate

func (s RankType) Validate() error

type ResetRequest

type ResetRequest struct {
	Email OptNilString `json:"email"`
}

Ref: #/components/schemas/ResetRequest

func (*ResetRequest) Decode

func (s *ResetRequest) Decode(d *jx.Decoder) error

Decode decodes ResetRequest from json.

func (*ResetRequest) Encode

func (s *ResetRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResetRequest) GetEmail

func (s *ResetRequest) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*ResetRequest) MarshalJSON

func (s *ResetRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResetRequest) SetEmail

func (s *ResetRequest) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*ResetRequest) SetFake

func (s *ResetRequest) SetFake()

SetFake set fake values.

func (*ResetRequest) UnmarshalJSON

func (s *ResetRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ResponseDevice

type ResponseDevice struct {
	ID        OptUUID      `json:"id"`
	Name      OptNilString `json:"name"`
	CreatedOn OptDateTime  `json:"createdOn"`
}

Ref: #/components/schemas/ResponseDevice

func (*ResponseDevice) Decode

func (s *ResponseDevice) Decode(d *jx.Decoder) error

Decode decodes ResponseDevice from json.

func (*ResponseDevice) Encode

func (s *ResponseDevice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResponseDevice) GetCreatedOn

func (s *ResponseDevice) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ResponseDevice) GetID

func (s *ResponseDevice) GetID() OptUUID

GetID returns the value of ID.

func (*ResponseDevice) GetName

func (s *ResponseDevice) GetName() OptNilString

GetName returns the value of Name.

func (*ResponseDevice) MarshalJSON

func (s *ResponseDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDevice) SetCreatedOn

func (s *ResponseDevice) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ResponseDevice) SetFake

func (s *ResponseDevice) SetFake()

SetFake set fake values.

func (*ResponseDevice) SetID

func (s *ResponseDevice) SetID(val OptUUID)

SetID sets the value of ID.

func (*ResponseDevice) SetName

func (s *ResponseDevice) SetName(val OptNilString)

SetName sets the value of Name.

func (*ResponseDevice) UnmarshalJSON

func (s *ResponseDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ResponseDeviceIEnumerableBaseResponse

type ResponseDeviceIEnumerableBaseResponse struct {
	Message OptNilString              `json:"message"`
	Data    OptNilResponseDeviceArray `json:"data"`
}

Ref: #/components/schemas/ResponseDeviceIEnumerableBaseResponse

func (*ResponseDeviceIEnumerableBaseResponse) Decode

Decode decodes ResponseDeviceIEnumerableBaseResponse from json.

func (*ResponseDeviceIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ResponseDeviceIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ResponseDeviceIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ResponseDeviceIEnumerableBaseResponse) MarshalJSON

func (s *ResponseDeviceIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDeviceIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ResponseDeviceIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*ResponseDeviceIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ResponseDeviceIEnumerableBaseResponse) UnmarshalJSON

func (s *ResponseDeviceIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ResponseDeviceIEnumerableBaseResponse) Validate

type ResponseDeviceWithShockers

type ResponseDeviceWithShockers struct {
	ID        OptUUID                    `json:"id"`
	Name      OptNilString               `json:"name"`
	CreatedOn OptDateTime                `json:"createdOn"`
	Shockers  OptNilShockerResponseArray `json:"shockers"`
}

Ref: #/components/schemas/ResponseDeviceWithShockers

func (*ResponseDeviceWithShockers) Decode

Decode decodes ResponseDeviceWithShockers from json.

func (*ResponseDeviceWithShockers) Encode

func (s *ResponseDeviceWithShockers) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResponseDeviceWithShockers) GetCreatedOn

func (s *ResponseDeviceWithShockers) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ResponseDeviceWithShockers) GetID

GetID returns the value of ID.

func (*ResponseDeviceWithShockers) GetName

GetName returns the value of Name.

func (*ResponseDeviceWithShockers) GetShockers

GetShockers returns the value of Shockers.

func (*ResponseDeviceWithShockers) MarshalJSON

func (s *ResponseDeviceWithShockers) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDeviceWithShockers) SetCreatedOn

func (s *ResponseDeviceWithShockers) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ResponseDeviceWithShockers) SetFake

func (s *ResponseDeviceWithShockers) SetFake()

SetFake set fake values.

func (*ResponseDeviceWithShockers) SetID

func (s *ResponseDeviceWithShockers) SetID(val OptUUID)

SetID sets the value of ID.

func (*ResponseDeviceWithShockers) SetName

func (s *ResponseDeviceWithShockers) SetName(val OptNilString)

SetName sets the value of Name.

func (*ResponseDeviceWithShockers) SetShockers

SetShockers sets the value of Shockers.

func (*ResponseDeviceWithShockers) UnmarshalJSON

func (s *ResponseDeviceWithShockers) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ResponseDeviceWithShockers) Validate

func (s *ResponseDeviceWithShockers) Validate() error

type ResponseDeviceWithShockersIEnumerableBaseResponse

type ResponseDeviceWithShockersIEnumerableBaseResponse struct {
	Message OptNilString                          `json:"message"`
	Data    OptNilResponseDeviceWithShockersArray `json:"data"`
}

Ref: #/components/schemas/ResponseDeviceWithShockersIEnumerableBaseResponse

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) Decode

Decode decodes ResponseDeviceWithShockersIEnumerableBaseResponse from json.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ResponseDeviceWithShockersIEnumerableBaseResponse) Validate

type ResponseDeviceWithToken

type ResponseDeviceWithToken struct {
	ID        OptUUID      `json:"id"`
	Name      OptNilString `json:"name"`
	CreatedOn OptDateTime  `json:"createdOn"`
	Token     OptNilString `json:"token"`
}

Ref: #/components/schemas/ResponseDeviceWithToken

func (*ResponseDeviceWithToken) Decode

func (s *ResponseDeviceWithToken) Decode(d *jx.Decoder) error

Decode decodes ResponseDeviceWithToken from json.

func (*ResponseDeviceWithToken) Encode

func (s *ResponseDeviceWithToken) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ResponseDeviceWithToken) GetCreatedOn

func (s *ResponseDeviceWithToken) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ResponseDeviceWithToken) GetID

func (s *ResponseDeviceWithToken) GetID() OptUUID

GetID returns the value of ID.

func (*ResponseDeviceWithToken) GetName

GetName returns the value of Name.

func (*ResponseDeviceWithToken) GetToken

func (s *ResponseDeviceWithToken) GetToken() OptNilString

GetToken returns the value of Token.

func (*ResponseDeviceWithToken) MarshalJSON

func (s *ResponseDeviceWithToken) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDeviceWithToken) SetCreatedOn

func (s *ResponseDeviceWithToken) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ResponseDeviceWithToken) SetFake

func (s *ResponseDeviceWithToken) SetFake()

SetFake set fake values.

func (*ResponseDeviceWithToken) SetID

func (s *ResponseDeviceWithToken) SetID(val OptUUID)

SetID sets the value of ID.

func (*ResponseDeviceWithToken) SetName

func (s *ResponseDeviceWithToken) SetName(val OptNilString)

SetName sets the value of Name.

func (*ResponseDeviceWithToken) SetToken

func (s *ResponseDeviceWithToken) SetToken(val OptNilString)

SetToken sets the value of Token.

func (*ResponseDeviceWithToken) UnmarshalJSON

func (s *ResponseDeviceWithToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ResponseDeviceWithTokenBaseResponse

type ResponseDeviceWithTokenBaseResponse struct {
	Message OptNilString               `json:"message"`
	Data    OptResponseDeviceWithToken `json:"data"`
}

Ref: #/components/schemas/ResponseDeviceWithTokenBaseResponse

func (*ResponseDeviceWithTokenBaseResponse) Decode

Decode decodes ResponseDeviceWithTokenBaseResponse from json.

func (*ResponseDeviceWithTokenBaseResponse) Encode

Encode implements json.Marshaler.

func (*ResponseDeviceWithTokenBaseResponse) GetData

GetData returns the value of Data.

func (*ResponseDeviceWithTokenBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ResponseDeviceWithTokenBaseResponse) MarshalJSON

func (s *ResponseDeviceWithTokenBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ResponseDeviceWithTokenBaseResponse) SetData

SetData sets the value of Data.

func (*ResponseDeviceWithTokenBaseResponse) SetFake

SetFake set fake values.

func (*ResponseDeviceWithTokenBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ResponseDeviceWithTokenBaseResponse) UnmarshalJSON

func (s *ResponseDeviceWithTokenBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RootResponse

type RootResponse struct {
	Version     OptNilString `json:"version"`
	Commit      OptNilString `json:"commit"`
	CurrentTime OptDateTime  `json:"currentTime"`
}

Ref: #/components/schemas/RootResponse

func (*RootResponse) Decode

func (s *RootResponse) Decode(d *jx.Decoder) error

Decode decodes RootResponse from json.

func (*RootResponse) Encode

func (s *RootResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RootResponse) GetCommit

func (s *RootResponse) GetCommit() OptNilString

GetCommit returns the value of Commit.

func (*RootResponse) GetCurrentTime

func (s *RootResponse) GetCurrentTime() OptDateTime

GetCurrentTime returns the value of CurrentTime.

func (*RootResponse) GetVersion

func (s *RootResponse) GetVersion() OptNilString

GetVersion returns the value of Version.

func (*RootResponse) MarshalJSON

func (s *RootResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RootResponse) SetCommit

func (s *RootResponse) SetCommit(val OptNilString)

SetCommit sets the value of Commit.

func (*RootResponse) SetCurrentTime

func (s *RootResponse) SetCurrentTime(val OptDateTime)

SetCurrentTime sets the value of CurrentTime.

func (*RootResponse) SetFake

func (s *RootResponse) SetFake()

SetFake set fake values.

func (*RootResponse) SetVersion

func (s *RootResponse) SetVersion(val OptNilString)

SetVersion sets the value of Version.

func (*RootResponse) UnmarshalJSON

func (s *RootResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type RootResponseBaseResponse

type RootResponseBaseResponse struct {
	Message OptNilString    `json:"message"`
	Data    OptRootResponse `json:"data"`
}

Ref: #/components/schemas/RootResponseBaseResponse

func (*RootResponseBaseResponse) Decode

func (s *RootResponseBaseResponse) Decode(d *jx.Decoder) error

Decode decodes RootResponseBaseResponse from json.

func (*RootResponseBaseResponse) Encode

func (s *RootResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*RootResponseBaseResponse) GetData

GetData returns the value of Data.

func (*RootResponseBaseResponse) GetMessage

func (s *RootResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*RootResponseBaseResponse) MarshalJSON

func (s *RootResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*RootResponseBaseResponse) SetData

func (s *RootResponseBaseResponse) SetData(val OptRootResponse)

SetData sets the value of Data.

func (*RootResponseBaseResponse) SetFake

func (s *RootResponseBaseResponse) SetFake()

SetFake set fake values.

func (*RootResponseBaseResponse) SetMessage

func (s *RootResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*RootResponseBaseResponse) UnmarshalJSON

func (s *RootResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SecuritySource

type SecuritySource interface {
	// OpenShockToken provides OpenShockToken security value.
	// API Token Authorization header.
	OpenShockToken(ctx context.Context, operationName string, client *Client) (OpenShockToken, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type SelfResponse

type SelfResponse struct {
	ID    OptUUID      `json:"id"`
	Name  OptNilString `json:"name"`
	Email OptNilString `json:"email"`
	Image OptNilURI    `json:"image"`
	Rank  OptRankType  `json:"rank"`
}

Ref: #/components/schemas/SelfResponse

func (*SelfResponse) Decode

func (s *SelfResponse) Decode(d *jx.Decoder) error

Decode decodes SelfResponse from json.

func (*SelfResponse) Encode

func (s *SelfResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SelfResponse) GetEmail

func (s *SelfResponse) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*SelfResponse) GetID

func (s *SelfResponse) GetID() OptUUID

GetID returns the value of ID.

func (*SelfResponse) GetImage

func (s *SelfResponse) GetImage() OptNilURI

GetImage returns the value of Image.

func (*SelfResponse) GetName

func (s *SelfResponse) GetName() OptNilString

GetName returns the value of Name.

func (*SelfResponse) GetRank

func (s *SelfResponse) GetRank() OptRankType

GetRank returns the value of Rank.

func (*SelfResponse) MarshalJSON

func (s *SelfResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SelfResponse) SetEmail

func (s *SelfResponse) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*SelfResponse) SetFake

func (s *SelfResponse) SetFake()

SetFake set fake values.

func (*SelfResponse) SetID

func (s *SelfResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*SelfResponse) SetImage

func (s *SelfResponse) SetImage(val OptNilURI)

SetImage sets the value of Image.

func (*SelfResponse) SetName

func (s *SelfResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*SelfResponse) SetRank

func (s *SelfResponse) SetRank(val OptRankType)

SetRank sets the value of Rank.

func (*SelfResponse) UnmarshalJSON

func (s *SelfResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SelfResponse) Validate

func (s *SelfResponse) Validate() error

type SelfResponseBaseResponse

type SelfResponseBaseResponse struct {
	Message OptNilString    `json:"message"`
	Data    OptSelfResponse `json:"data"`
}

Ref: #/components/schemas/SelfResponseBaseResponse

func (*SelfResponseBaseResponse) Decode

func (s *SelfResponseBaseResponse) Decode(d *jx.Decoder) error

Decode decodes SelfResponseBaseResponse from json.

func (*SelfResponseBaseResponse) Encode

func (s *SelfResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SelfResponseBaseResponse) GetData

GetData returns the value of Data.

func (*SelfResponseBaseResponse) GetMessage

func (s *SelfResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*SelfResponseBaseResponse) MarshalJSON

func (s *SelfResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SelfResponseBaseResponse) SetData

func (s *SelfResponseBaseResponse) SetData(val OptSelfResponse)

SetData sets the value of Data.

func (*SelfResponseBaseResponse) SetFake

func (s *SelfResponseBaseResponse) SetFake()

SetFake set fake values.

func (*SelfResponseBaseResponse) SetMessage

func (s *SelfResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*SelfResponseBaseResponse) UnmarshalJSON

func (s *SelfResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SelfResponseBaseResponse) Validate

func (s *SelfResponseBaseResponse) Validate() error

type ShareCodeInfo

type ShareCodeInfo struct {
	ID        OptUUID     `json:"id"`
	CreatedOn OptDateTime `json:"createdOn"`
}

Ref: #/components/schemas/ShareCodeInfo

func (*ShareCodeInfo) Decode

func (s *ShareCodeInfo) Decode(d *jx.Decoder) error

Decode decodes ShareCodeInfo from json.

func (*ShareCodeInfo) Encode

func (s *ShareCodeInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareCodeInfo) GetCreatedOn

func (s *ShareCodeInfo) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ShareCodeInfo) GetID

func (s *ShareCodeInfo) GetID() OptUUID

GetID returns the value of ID.

func (*ShareCodeInfo) MarshalJSON

func (s *ShareCodeInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareCodeInfo) SetCreatedOn

func (s *ShareCodeInfo) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ShareCodeInfo) SetFake

func (s *ShareCodeInfo) SetFake()

SetFake set fake values.

func (*ShareCodeInfo) SetID

func (s *ShareCodeInfo) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShareCodeInfo) UnmarshalJSON

func (s *ShareCodeInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareCodeInfoIEnumerableBaseResponse

type ShareCodeInfoIEnumerableBaseResponse struct {
	Message OptNilString             `json:"message"`
	Data    OptNilShareCodeInfoArray `json:"data"`
}

Ref: #/components/schemas/ShareCodeInfoIEnumerableBaseResponse

func (*ShareCodeInfoIEnumerableBaseResponse) Decode

Decode decodes ShareCodeInfoIEnumerableBaseResponse from json.

func (*ShareCodeInfoIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShareCodeInfoIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ShareCodeInfoIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShareCodeInfoIEnumerableBaseResponse) MarshalJSON

func (s *ShareCodeInfoIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareCodeInfoIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ShareCodeInfoIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*ShareCodeInfoIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ShareCodeInfoIEnumerableBaseResponse) UnmarshalJSON

func (s *ShareCodeInfoIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareCodeInfoIEnumerableBaseResponse) Validate

type ShareInfo

type ShareInfo struct {
	SharedWith  OptGenericIni         `json:"sharedWith"`
	CreatedOn   OptDateTime           `json:"createdOn"`
	Permissions OptShockerPermissions `json:"permissions"`
	Limits      OptShockerLimits      `json:"limits"`
	Paused      OptBool               `json:"paused"`
}

Ref: #/components/schemas/ShareInfo

func (*ShareInfo) Decode

func (s *ShareInfo) Decode(d *jx.Decoder) error

Decode decodes ShareInfo from json.

func (*ShareInfo) Encode

func (s *ShareInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareInfo) GetCreatedOn

func (s *ShareInfo) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ShareInfo) GetLimits

func (s *ShareInfo) GetLimits() OptShockerLimits

GetLimits returns the value of Limits.

func (*ShareInfo) GetPaused

func (s *ShareInfo) GetPaused() OptBool

GetPaused returns the value of Paused.

func (*ShareInfo) GetPermissions

func (s *ShareInfo) GetPermissions() OptShockerPermissions

GetPermissions returns the value of Permissions.

func (*ShareInfo) GetSharedWith

func (s *ShareInfo) GetSharedWith() OptGenericIni

GetSharedWith returns the value of SharedWith.

func (*ShareInfo) MarshalJSON

func (s *ShareInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareInfo) SetCreatedOn

func (s *ShareInfo) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ShareInfo) SetFake

func (s *ShareInfo) SetFake()

SetFake set fake values.

func (*ShareInfo) SetLimits

func (s *ShareInfo) SetLimits(val OptShockerLimits)

SetLimits sets the value of Limits.

func (*ShareInfo) SetPaused

func (s *ShareInfo) SetPaused(val OptBool)

SetPaused sets the value of Paused.

func (*ShareInfo) SetPermissions

func (s *ShareInfo) SetPermissions(val OptShockerPermissions)

SetPermissions sets the value of Permissions.

func (*ShareInfo) SetSharedWith

func (s *ShareInfo) SetSharedWith(val OptGenericIni)

SetSharedWith sets the value of SharedWith.

func (*ShareInfo) UnmarshalJSON

func (s *ShareInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareInfo) Validate

func (s *ShareInfo) Validate() error

type ShareInfoIEnumerableBaseResponse

type ShareInfoIEnumerableBaseResponse struct {
	Message OptNilString         `json:"message"`
	Data    OptNilShareInfoArray `json:"data"`
}

Ref: #/components/schemas/ShareInfoIEnumerableBaseResponse

func (*ShareInfoIEnumerableBaseResponse) Decode

Decode decodes ShareInfoIEnumerableBaseResponse from json.

func (*ShareInfoIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShareInfoIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ShareInfoIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShareInfoIEnumerableBaseResponse) MarshalJSON

func (s *ShareInfoIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareInfoIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ShareInfoIEnumerableBaseResponse) SetFake

func (s *ShareInfoIEnumerableBaseResponse) SetFake()

SetFake set fake values.

func (*ShareInfoIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ShareInfoIEnumerableBaseResponse) UnmarshalJSON

func (s *ShareInfoIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareInfoIEnumerableBaseResponse) Validate

type ShareLinkCreate

type ShareLinkCreate struct {
	Name      OptNilString   `json:"name"`
	ExpiresOn OptNilDateTime `json:"expiresOn"`
}

Ref: #/components/schemas/ShareLinkCreate

func (*ShareLinkCreate) Decode

func (s *ShareLinkCreate) Decode(d *jx.Decoder) error

Decode decodes ShareLinkCreate from json.

func (*ShareLinkCreate) Encode

func (s *ShareLinkCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareLinkCreate) GetExpiresOn

func (s *ShareLinkCreate) GetExpiresOn() OptNilDateTime

GetExpiresOn returns the value of ExpiresOn.

func (*ShareLinkCreate) GetName

func (s *ShareLinkCreate) GetName() OptNilString

GetName returns the value of Name.

func (*ShareLinkCreate) MarshalJSON

func (s *ShareLinkCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkCreate) SetExpiresOn

func (s *ShareLinkCreate) SetExpiresOn(val OptNilDateTime)

SetExpiresOn sets the value of ExpiresOn.

func (*ShareLinkCreate) SetFake

func (s *ShareLinkCreate) SetFake()

SetFake set fake values.

func (*ShareLinkCreate) SetName

func (s *ShareLinkCreate) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShareLinkCreate) UnmarshalJSON

func (s *ShareLinkCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareLinkDevice

type ShareLinkDevice struct {
	ID       OptUUID                     `json:"id"`
	Name     OptNilString                `json:"name"`
	Shockers OptNilShareLinkShockerArray `json:"shockers"`
}

Ref: #/components/schemas/ShareLinkDevice

func (*ShareLinkDevice) Decode

func (s *ShareLinkDevice) Decode(d *jx.Decoder) error

Decode decodes ShareLinkDevice from json.

func (*ShareLinkDevice) Encode

func (s *ShareLinkDevice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareLinkDevice) GetID

func (s *ShareLinkDevice) GetID() OptUUID

GetID returns the value of ID.

func (*ShareLinkDevice) GetName

func (s *ShareLinkDevice) GetName() OptNilString

GetName returns the value of Name.

func (*ShareLinkDevice) GetShockers

GetShockers returns the value of Shockers.

func (*ShareLinkDevice) MarshalJSON

func (s *ShareLinkDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkDevice) SetFake

func (s *ShareLinkDevice) SetFake()

SetFake set fake values.

func (*ShareLinkDevice) SetID

func (s *ShareLinkDevice) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShareLinkDevice) SetName

func (s *ShareLinkDevice) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShareLinkDevice) SetShockers

func (s *ShareLinkDevice) SetShockers(val OptNilShareLinkShockerArray)

SetShockers sets the value of Shockers.

func (*ShareLinkDevice) UnmarshalJSON

func (s *ShareLinkDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareLinkDevice) Validate

func (s *ShareLinkDevice) Validate() error

type ShareLinkEditShocker

type ShareLinkEditShocker struct {
	Permissions OptShockerPermissions `json:"permissions"`
	Limits      OptShockerLimits      `json:"limits"`
	Cooldown    OptNilInt32           `json:"cooldown"`
}

Ref: #/components/schemas/ShareLinkEditShocker

func (*ShareLinkEditShocker) Decode

func (s *ShareLinkEditShocker) Decode(d *jx.Decoder) error

Decode decodes ShareLinkEditShocker from json.

func (*ShareLinkEditShocker) Encode

func (s *ShareLinkEditShocker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareLinkEditShocker) GetCooldown

func (s *ShareLinkEditShocker) GetCooldown() OptNilInt32

GetCooldown returns the value of Cooldown.

func (*ShareLinkEditShocker) GetLimits

func (s *ShareLinkEditShocker) GetLimits() OptShockerLimits

GetLimits returns the value of Limits.

func (*ShareLinkEditShocker) GetPermissions

func (s *ShareLinkEditShocker) GetPermissions() OptShockerPermissions

GetPermissions returns the value of Permissions.

func (*ShareLinkEditShocker) MarshalJSON

func (s *ShareLinkEditShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkEditShocker) SetCooldown

func (s *ShareLinkEditShocker) SetCooldown(val OptNilInt32)

SetCooldown sets the value of Cooldown.

func (*ShareLinkEditShocker) SetFake

func (s *ShareLinkEditShocker) SetFake()

SetFake set fake values.

func (*ShareLinkEditShocker) SetLimits

func (s *ShareLinkEditShocker) SetLimits(val OptShockerLimits)

SetLimits sets the value of Limits.

func (*ShareLinkEditShocker) SetPermissions

func (s *ShareLinkEditShocker) SetPermissions(val OptShockerPermissions)

SetPermissions sets the value of Permissions.

func (*ShareLinkEditShocker) UnmarshalJSON

func (s *ShareLinkEditShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareLinkEditShocker) Validate

func (s *ShareLinkEditShocker) Validate() error

type ShareLinkResponse

type ShareLinkResponse struct {
	ID        OptUUID        `json:"id"`
	Name      OptNilString   `json:"name"`
	CreatedOn OptDateTime    `json:"createdOn"`
	ExpiresOn OptNilDateTime `json:"expiresOn"`
}

Ref: #/components/schemas/ShareLinkResponse

func (*ShareLinkResponse) Decode

func (s *ShareLinkResponse) Decode(d *jx.Decoder) error

Decode decodes ShareLinkResponse from json.

func (*ShareLinkResponse) Encode

func (s *ShareLinkResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareLinkResponse) GetCreatedOn

func (s *ShareLinkResponse) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ShareLinkResponse) GetExpiresOn

func (s *ShareLinkResponse) GetExpiresOn() OptNilDateTime

GetExpiresOn returns the value of ExpiresOn.

func (*ShareLinkResponse) GetID

func (s *ShareLinkResponse) GetID() OptUUID

GetID returns the value of ID.

func (*ShareLinkResponse) GetName

func (s *ShareLinkResponse) GetName() OptNilString

GetName returns the value of Name.

func (*ShareLinkResponse) MarshalJSON

func (s *ShareLinkResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkResponse) SetCreatedOn

func (s *ShareLinkResponse) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ShareLinkResponse) SetExpiresOn

func (s *ShareLinkResponse) SetExpiresOn(val OptNilDateTime)

SetExpiresOn sets the value of ExpiresOn.

func (*ShareLinkResponse) SetFake

func (s *ShareLinkResponse) SetFake()

SetFake set fake values.

func (*ShareLinkResponse) SetID

func (s *ShareLinkResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShareLinkResponse) SetName

func (s *ShareLinkResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShareLinkResponse) UnmarshalJSON

func (s *ShareLinkResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareLinkResponseBaseResponse

type ShareLinkResponseBaseResponse struct {
	Message OptNilString         `json:"message"`
	Data    OptShareLinkResponse `json:"data"`
}

Ref: #/components/schemas/ShareLinkResponseBaseResponse

func (*ShareLinkResponseBaseResponse) Decode

Decode decodes ShareLinkResponseBaseResponse from json.

func (*ShareLinkResponseBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShareLinkResponseBaseResponse) GetData

GetData returns the value of Data.

func (*ShareLinkResponseBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShareLinkResponseBaseResponse) MarshalJSON

func (s *ShareLinkResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkResponseBaseResponse) SetData

SetData sets the value of Data.

func (*ShareLinkResponseBaseResponse) SetFake

func (s *ShareLinkResponseBaseResponse) SetFake()

SetFake set fake values.

func (*ShareLinkResponseBaseResponse) SetMessage

func (s *ShareLinkResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*ShareLinkResponseBaseResponse) UnmarshalJSON

func (s *ShareLinkResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareLinkResponseIEnumerableBaseResponse

type ShareLinkResponseIEnumerableBaseResponse struct {
	Message OptNilString                 `json:"message"`
	Data    OptNilShareLinkResponseArray `json:"data"`
}

Ref: #/components/schemas/ShareLinkResponseIEnumerableBaseResponse

func (*ShareLinkResponseIEnumerableBaseResponse) Decode

Decode decodes ShareLinkResponseIEnumerableBaseResponse from json.

func (*ShareLinkResponseIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShareLinkResponseIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ShareLinkResponseIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShareLinkResponseIEnumerableBaseResponse) MarshalJSON

func (s *ShareLinkResponseIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkResponseIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ShareLinkResponseIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*ShareLinkResponseIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ShareLinkResponseIEnumerableBaseResponse) UnmarshalJSON

func (s *ShareLinkResponseIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareLinkResponseIEnumerableBaseResponse) Validate

type ShareLinkShocker

type ShareLinkShocker struct {
	ID          OptUUID               `json:"id"`
	Name        OptNilString          `json:"name"`
	Permissions OptShockerPermissions `json:"permissions"`
	Limits      OptShockerLimits      `json:"limits"`
	// An integer representing the reason(s) for the shocker being paused, expressed as a bitfield where
	// reasons are OR'd together.
	// Each bit corresponds to:
	// - 1: Shocker
	// - 2: Share
	// - 4: ShareLink
	// For example, a value of 6 (2 | 4) indicates both 'Share' and 'ShareLink' reasons.
	Paused OptInt `json:"paused"`
}

Ref: #/components/schemas/ShareLinkShocker

func (*ShareLinkShocker) Decode

func (s *ShareLinkShocker) Decode(d *jx.Decoder) error

Decode decodes ShareLinkShocker from json.

func (*ShareLinkShocker) Encode

func (s *ShareLinkShocker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShareLinkShocker) GetID

func (s *ShareLinkShocker) GetID() OptUUID

GetID returns the value of ID.

func (*ShareLinkShocker) GetLimits

func (s *ShareLinkShocker) GetLimits() OptShockerLimits

GetLimits returns the value of Limits.

func (*ShareLinkShocker) GetName

func (s *ShareLinkShocker) GetName() OptNilString

GetName returns the value of Name.

func (*ShareLinkShocker) GetPaused

func (s *ShareLinkShocker) GetPaused() OptInt

GetPaused returns the value of Paused.

func (*ShareLinkShocker) GetPermissions

func (s *ShareLinkShocker) GetPermissions() OptShockerPermissions

GetPermissions returns the value of Permissions.

func (*ShareLinkShocker) MarshalJSON

func (s *ShareLinkShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinkShocker) SetFake

func (s *ShareLinkShocker) SetFake()

SetFake set fake values.

func (*ShareLinkShocker) SetID

func (s *ShareLinkShocker) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShareLinkShocker) SetLimits

func (s *ShareLinkShocker) SetLimits(val OptShockerLimits)

SetLimits sets the value of Limits.

func (*ShareLinkShocker) SetName

func (s *ShareLinkShocker) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShareLinkShocker) SetPaused

func (s *ShareLinkShocker) SetPaused(val OptInt)

SetPaused sets the value of Paused.

func (*ShareLinkShocker) SetPermissions

func (s *ShareLinkShocker) SetPermissions(val OptShockerPermissions)

SetPermissions sets the value of Permissions.

func (*ShareLinkShocker) UnmarshalJSON

func (s *ShareLinkShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShareLinkShocker) Validate

func (s *ShareLinkShocker) Validate() error

type ShareLinksAddShockerConflict

type ShareLinksAddShockerConflict OpenShockProblem

func (*ShareLinksAddShockerConflict) Decode

Decode decodes ShareLinksAddShockerConflict from json.

func (*ShareLinksAddShockerConflict) Encode

func (s *ShareLinksAddShockerConflict) Encode(e *jx.Encoder)

Encode encodes ShareLinksAddShockerConflict as json.

func (*ShareLinksAddShockerConflict) MarshalJSON

func (s *ShareLinksAddShockerConflict) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinksAddShockerConflict) SetFake

func (s *ShareLinksAddShockerConflict) SetFake()

SetFake set fake values.

func (*ShareLinksAddShockerConflict) UnmarshalJSON

func (s *ShareLinksAddShockerConflict) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareLinksAddShockerNotFound

type ShareLinksAddShockerNotFound OpenShockProblem

func (*ShareLinksAddShockerNotFound) Decode

Decode decodes ShareLinksAddShockerNotFound from json.

func (*ShareLinksAddShockerNotFound) Encode

func (s *ShareLinksAddShockerNotFound) Encode(e *jx.Encoder)

Encode encodes ShareLinksAddShockerNotFound as json.

func (*ShareLinksAddShockerNotFound) MarshalJSON

func (s *ShareLinksAddShockerNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShareLinksAddShockerNotFound) SetFake

func (s *ShareLinksAddShockerNotFound) SetFake()

SetFake set fake values.

func (*ShareLinksAddShockerNotFound) UnmarshalJSON

func (s *ShareLinksAddShockerNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShareLinksAddShockerParams

type ShareLinksAddShockerParams struct {
	ShareLinkId uuid.UUID
	ShockerId   uuid.UUID
}

ShareLinksAddShockerParams is parameters of ShareLinks_AddShocker operation.

type ShareLinksAddShockerRes

type ShareLinksAddShockerRes interface {
	// contains filtered or unexported methods
}

type ShareLinksDeleteShareLinkParams

type ShareLinksDeleteShareLinkParams struct {
	ShareLinkId uuid.UUID
}

ShareLinksDeleteShareLinkParams is parameters of ShareLinks_DeleteShareLink operation.

type ShareLinksDeleteShareLinkRes

type ShareLinksDeleteShareLinkRes interface {
	// contains filtered or unexported methods
}

type ShareLinksEditShockerBadRequest

type ShareLinksEditShockerBadRequest struct{}

ShareLinksEditShockerBadRequest is response for ShareLinksEditShocker operation.

type ShareLinksEditShockerParams

type ShareLinksEditShockerParams struct {
	ShareLinkId uuid.UUID
	ShockerId   uuid.UUID
}

ShareLinksEditShockerParams is parameters of ShareLinks_EditShocker operation.

type ShareLinksEditShockerRes

type ShareLinksEditShockerRes interface {
	// contains filtered or unexported methods
}

type ShareLinksPauseShockerBadRequest

type ShareLinksPauseShockerBadRequest struct{}

ShareLinksPauseShockerBadRequest is response for ShareLinksPauseShocker operation.

type ShareLinksPauseShockerParams

type ShareLinksPauseShockerParams struct {
	ShareLinkId uuid.UUID
	ShockerId   uuid.UUID
}

ShareLinksPauseShockerParams is parameters of ShareLinks_PauseShocker operation.

type ShareLinksPauseShockerRes

type ShareLinksPauseShockerRes interface {
	// contains filtered or unexported methods
}

type ShareLinksRemoveShockerBadRequest

type ShareLinksRemoveShockerBadRequest struct{}

ShareLinksRemoveShockerBadRequest is response for ShareLinksRemoveShocker operation.

type ShareLinksRemoveShockerParams

type ShareLinksRemoveShockerParams struct {
	ShareLinkId uuid.UUID
	ShockerId   uuid.UUID
}

ShareLinksRemoveShockerParams is parameters of ShareLinks_RemoveShocker operation.

type ShareLinksRemoveShockerRes

type ShareLinksRemoveShockerRes interface {
	// contains filtered or unexported methods
}

type SharedDevice

type SharedDevice struct {
	ID       OptUUID                  `json:"id"`
	Name     OptNilString             `json:"name"`
	Shockers OptNilSharedShockerArray `json:"shockers"`
}

Ref: #/components/schemas/SharedDevice

func (*SharedDevice) Decode

func (s *SharedDevice) Decode(d *jx.Decoder) error

Decode decodes SharedDevice from json.

func (*SharedDevice) Encode

func (s *SharedDevice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SharedDevice) GetID

func (s *SharedDevice) GetID() OptUUID

GetID returns the value of ID.

func (*SharedDevice) GetName

func (s *SharedDevice) GetName() OptNilString

GetName returns the value of Name.

func (*SharedDevice) GetShockers

func (s *SharedDevice) GetShockers() OptNilSharedShockerArray

GetShockers returns the value of Shockers.

func (*SharedDevice) MarshalJSON

func (s *SharedDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharedDevice) SetFake

func (s *SharedDevice) SetFake()

SetFake set fake values.

func (*SharedDevice) SetID

func (s *SharedDevice) SetID(val OptUUID)

SetID sets the value of ID.

func (*SharedDevice) SetName

func (s *SharedDevice) SetName(val OptNilString)

SetName sets the value of Name.

func (*SharedDevice) SetShockers

func (s *SharedDevice) SetShockers(val OptNilSharedShockerArray)

SetShockers sets the value of Shockers.

func (*SharedDevice) UnmarshalJSON

func (s *SharedDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SharedDevice) Validate

func (s *SharedDevice) Validate() error

type SharedShocker

type SharedShocker struct {
	ID          OptUUID               `json:"id"`
	Name        OptNilString          `json:"name"`
	IsPaused    OptBool               `json:"isPaused"`
	Permissions OptShockerPermissions `json:"permissions"`
	Limits      OptShockerLimits      `json:"limits"`
}

Ref: #/components/schemas/SharedShocker

func (*SharedShocker) Decode

func (s *SharedShocker) Decode(d *jx.Decoder) error

Decode decodes SharedShocker from json.

func (*SharedShocker) Encode

func (s *SharedShocker) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SharedShocker) GetID

func (s *SharedShocker) GetID() OptUUID

GetID returns the value of ID.

func (*SharedShocker) GetIsPaused

func (s *SharedShocker) GetIsPaused() OptBool

GetIsPaused returns the value of IsPaused.

func (*SharedShocker) GetLimits

func (s *SharedShocker) GetLimits() OptShockerLimits

GetLimits returns the value of Limits.

func (*SharedShocker) GetName

func (s *SharedShocker) GetName() OptNilString

GetName returns the value of Name.

func (*SharedShocker) GetPermissions

func (s *SharedShocker) GetPermissions() OptShockerPermissions

GetPermissions returns the value of Permissions.

func (*SharedShocker) MarshalJSON

func (s *SharedShocker) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharedShocker) SetFake

func (s *SharedShocker) SetFake()

SetFake set fake values.

func (*SharedShocker) SetID

func (s *SharedShocker) SetID(val OptUUID)

SetID sets the value of ID.

func (*SharedShocker) SetIsPaused

func (s *SharedShocker) SetIsPaused(val OptBool)

SetIsPaused sets the value of IsPaused.

func (*SharedShocker) SetLimits

func (s *SharedShocker) SetLimits(val OptShockerLimits)

SetLimits sets the value of Limits.

func (*SharedShocker) SetName

func (s *SharedShocker) SetName(val OptNilString)

SetName sets the value of Name.

func (*SharedShocker) SetPermissions

func (s *SharedShocker) SetPermissions(val OptShockerPermissions)

SetPermissions sets the value of Permissions.

func (*SharedShocker) UnmarshalJSON

func (s *SharedShocker) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SharedShocker) Validate

func (s *SharedShocker) Validate() error

type SharesDeleteShareCodeParams

type SharesDeleteShareCodeParams struct {
	ShareCodeId uuid.UUID
}

SharesDeleteShareCodeParams is parameters of Shares_DeleteShareCode operation.

type SharesDeleteShareCodeRes

type SharesDeleteShareCodeRes interface {
	// contains filtered or unexported methods
}

type SharesLinkShareCodeBadRequest

type SharesLinkShareCodeBadRequest OpenShockProblem

func (*SharesLinkShareCodeBadRequest) Decode

Decode decodes SharesLinkShareCodeBadRequest from json.

func (*SharesLinkShareCodeBadRequest) Encode

Encode encodes SharesLinkShareCodeBadRequest as json.

func (*SharesLinkShareCodeBadRequest) MarshalJSON

func (s *SharesLinkShareCodeBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharesLinkShareCodeBadRequest) SetFake

func (s *SharesLinkShareCodeBadRequest) SetFake()

SetFake set fake values.

func (*SharesLinkShareCodeBadRequest) UnmarshalJSON

func (s *SharesLinkShareCodeBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SharesLinkShareCodeInternalServerError

type SharesLinkShareCodeInternalServerError struct{}

SharesLinkShareCodeInternalServerError is response for SharesLinkShareCode operation.

type SharesLinkShareCodeNotFound

type SharesLinkShareCodeNotFound OpenShockProblem

func (*SharesLinkShareCodeNotFound) Decode

Decode decodes SharesLinkShareCodeNotFound from json.

func (*SharesLinkShareCodeNotFound) Encode

func (s *SharesLinkShareCodeNotFound) Encode(e *jx.Encoder)

Encode encodes SharesLinkShareCodeNotFound as json.

func (*SharesLinkShareCodeNotFound) MarshalJSON

func (s *SharesLinkShareCodeNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SharesLinkShareCodeNotFound) SetFake

func (s *SharesLinkShareCodeNotFound) SetFake()

SetFake set fake values.

func (*SharesLinkShareCodeNotFound) UnmarshalJSON

func (s *SharesLinkShareCodeNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SharesLinkShareCodeParams

type SharesLinkShareCodeParams struct {
	ShareCodeId uuid.UUID
}

SharesLinkShareCodeParams is parameters of Shares_LinkShareCode operation.

type SharesLinkShareCodeRes

type SharesLinkShareCodeRes interface {
	// contains filtered or unexported methods
}

type ShockerEditShockerParams

type ShockerEditShockerParams struct {
	ShockerId uuid.UUID
}

ShockerEditShockerParams is parameters of Shocker_EditShocker operation.

type ShockerEditShockerRes

type ShockerEditShockerRes interface {
	// contains filtered or unexported methods
}

type ShockerGetShockerByIdParams

type ShockerGetShockerByIdParams struct {
	ShockerId uuid.UUID
}

ShockerGetShockerByIdParams is parameters of Shocker_GetShockerById operation.

type ShockerGetShockerByIdRes

type ShockerGetShockerByIdRes interface {
	// contains filtered or unexported methods
}

type ShockerGetShockerLogsParams

type ShockerGetShockerLogsParams struct {
	ShockerId uuid.UUID
	Offset    OptInt32
	Limit     OptInt32
}

ShockerGetShockerLogsParams is parameters of Shocker_GetShockerLogs operation.

type ShockerGetShockerLogsRes

type ShockerGetShockerLogsRes interface {
	// contains filtered or unexported methods
}

type ShockerGetShockerSharesParams

type ShockerGetShockerSharesParams struct {
	// Id of the shocker.
	ShockerId uuid.UUID
}

ShockerGetShockerSharesParams is parameters of Shocker_GetShockerShares operation.

type ShockerGetShockerSharesRes

type ShockerGetShockerSharesRes interface {
	// contains filtered or unexported methods
}

type ShockerLimits

type ShockerLimits struct {
	Intensity OptNilInt32 `json:"intensity"`
	Duration  OptNilInt32 `json:"duration"`
}

Ref: #/components/schemas/ShockerLimits

func (*ShockerLimits) Decode

func (s *ShockerLimits) Decode(d *jx.Decoder) error

Decode decodes ShockerLimits from json.

func (*ShockerLimits) Encode

func (s *ShockerLimits) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShockerLimits) GetDuration

func (s *ShockerLimits) GetDuration() OptNilInt32

GetDuration returns the value of Duration.

func (*ShockerLimits) GetIntensity

func (s *ShockerLimits) GetIntensity() OptNilInt32

GetIntensity returns the value of Intensity.

func (*ShockerLimits) MarshalJSON

func (s *ShockerLimits) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerLimits) SetDuration

func (s *ShockerLimits) SetDuration(val OptNilInt32)

SetDuration sets the value of Duration.

func (*ShockerLimits) SetFake

func (s *ShockerLimits) SetFake()

SetFake set fake values.

func (*ShockerLimits) SetIntensity

func (s *ShockerLimits) SetIntensity(val OptNilInt32)

SetIntensity sets the value of Intensity.

func (*ShockerLimits) UnmarshalJSON

func (s *ShockerLimits) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerLimits) Validate

func (s *ShockerLimits) Validate() error

type ShockerModelType

type ShockerModelType string

Ref: #/components/schemas/ShockerModelType

const (
	ShockerModelTypeCaiXianlin     ShockerModelType = "CaiXianlin"
	ShockerModelTypePetTrainer     ShockerModelType = "PetTrainer"
	ShockerModelTypePetrainer998DR ShockerModelType = "Petrainer998DR"
)

func (ShockerModelType) AllValues

func (ShockerModelType) AllValues() []ShockerModelType

AllValues returns all ShockerModelType values.

func (*ShockerModelType) Decode

func (s *ShockerModelType) Decode(d *jx.Decoder) error

Decode decodes ShockerModelType from json.

func (ShockerModelType) Encode

func (s ShockerModelType) Encode(e *jx.Encoder)

Encode encodes ShockerModelType as json.

func (ShockerModelType) MarshalJSON

func (s ShockerModelType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (ShockerModelType) MarshalText

func (s ShockerModelType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*ShockerModelType) SetFake

func (s *ShockerModelType) SetFake()

SetFake set fake values.

func (*ShockerModelType) UnmarshalJSON

func (s *ShockerModelType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerModelType) UnmarshalText

func (s *ShockerModelType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (ShockerModelType) Validate

func (s ShockerModelType) Validate() error

type ShockerPauseShockerParams

type ShockerPauseShockerParams struct {
	ShockerId uuid.UUID
}

ShockerPauseShockerParams is parameters of Shocker_PauseShocker operation.

type ShockerPauseShockerRes

type ShockerPauseShockerRes interface {
	// contains filtered or unexported methods
}

type ShockerPermissions

type ShockerPermissions struct {
	Vibrate OptBool `json:"vibrate"`
	Sound   OptBool `json:"sound"`
	Shock   OptBool `json:"shock"`
	Live    OptBool `json:"live"`
}

Ref: #/components/schemas/ShockerPermissions

func (*ShockerPermissions) Decode

func (s *ShockerPermissions) Decode(d *jx.Decoder) error

Decode decodes ShockerPermissions from json.

func (*ShockerPermissions) Encode

func (s *ShockerPermissions) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShockerPermissions) GetLive

func (s *ShockerPermissions) GetLive() OptBool

GetLive returns the value of Live.

func (*ShockerPermissions) GetShock

func (s *ShockerPermissions) GetShock() OptBool

GetShock returns the value of Shock.

func (*ShockerPermissions) GetSound

func (s *ShockerPermissions) GetSound() OptBool

GetSound returns the value of Sound.

func (*ShockerPermissions) GetVibrate

func (s *ShockerPermissions) GetVibrate() OptBool

GetVibrate returns the value of Vibrate.

func (*ShockerPermissions) MarshalJSON

func (s *ShockerPermissions) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerPermissions) SetFake

func (s *ShockerPermissions) SetFake()

SetFake set fake values.

func (*ShockerPermissions) SetLive

func (s *ShockerPermissions) SetLive(val OptBool)

SetLive sets the value of Live.

func (*ShockerPermissions) SetShock

func (s *ShockerPermissions) SetShock(val OptBool)

SetShock sets the value of Shock.

func (*ShockerPermissions) SetSound

func (s *ShockerPermissions) SetSound(val OptBool)

SetSound sets the value of Sound.

func (*ShockerPermissions) SetVibrate

func (s *ShockerPermissions) SetVibrate(val OptBool)

SetVibrate sets the value of Vibrate.

func (*ShockerPermissions) UnmarshalJSON

func (s *ShockerPermissions) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerRegisterShockerBadRequest

type ShockerRegisterShockerBadRequest OpenShockProblem

func (*ShockerRegisterShockerBadRequest) Decode

Decode decodes ShockerRegisterShockerBadRequest from json.

func (*ShockerRegisterShockerBadRequest) Encode

Encode encodes ShockerRegisterShockerBadRequest as json.

func (*ShockerRegisterShockerBadRequest) MarshalJSON

func (s *ShockerRegisterShockerBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerRegisterShockerBadRequest) SetFake

func (s *ShockerRegisterShockerBadRequest) SetFake()

SetFake set fake values.

func (*ShockerRegisterShockerBadRequest) UnmarshalJSON

func (s *ShockerRegisterShockerBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerRegisterShockerNotFound

type ShockerRegisterShockerNotFound OpenShockProblem

func (*ShockerRegisterShockerNotFound) Decode

Decode decodes ShockerRegisterShockerNotFound from json.

func (*ShockerRegisterShockerNotFound) Encode

Encode encodes ShockerRegisterShockerNotFound as json.

func (*ShockerRegisterShockerNotFound) MarshalJSON

func (s *ShockerRegisterShockerNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerRegisterShockerNotFound) SetFake

func (s *ShockerRegisterShockerNotFound) SetFake()

SetFake set fake values.

func (*ShockerRegisterShockerNotFound) UnmarshalJSON

func (s *ShockerRegisterShockerNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerRegisterShockerRes

type ShockerRegisterShockerRes interface {
	// contains filtered or unexported methods
}

type ShockerRemoveShockerParams

type ShockerRemoveShockerParams struct {
	ShockerId uuid.UUID
}

ShockerRemoveShockerParams is parameters of Shocker_RemoveShocker operation.

type ShockerRemoveShockerRes

type ShockerRemoveShockerRes interface {
	// contains filtered or unexported methods
}

type ShockerResponse

type ShockerResponse struct {
	ID        OptUUID             `json:"id"`
	RfId      OptInt32            `json:"rfId"`
	Model     OptShockerModelType `json:"model"`
	Name      OptNilString        `json:"name"`
	IsPaused  OptBool             `json:"isPaused"`
	CreatedOn OptDateTime         `json:"createdOn"`
}

Ref: #/components/schemas/ShockerResponse

func (*ShockerResponse) Decode

func (s *ShockerResponse) Decode(d *jx.Decoder) error

Decode decodes ShockerResponse from json.

func (*ShockerResponse) Encode

func (s *ShockerResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShockerResponse) GetCreatedOn

func (s *ShockerResponse) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ShockerResponse) GetID

func (s *ShockerResponse) GetID() OptUUID

GetID returns the value of ID.

func (*ShockerResponse) GetIsPaused

func (s *ShockerResponse) GetIsPaused() OptBool

GetIsPaused returns the value of IsPaused.

func (*ShockerResponse) GetModel

func (s *ShockerResponse) GetModel() OptShockerModelType

GetModel returns the value of Model.

func (*ShockerResponse) GetName

func (s *ShockerResponse) GetName() OptNilString

GetName returns the value of Name.

func (*ShockerResponse) GetRfId

func (s *ShockerResponse) GetRfId() OptInt32

GetRfId returns the value of RfId.

func (*ShockerResponse) MarshalJSON

func (s *ShockerResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerResponse) SetCreatedOn

func (s *ShockerResponse) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ShockerResponse) SetFake

func (s *ShockerResponse) SetFake()

SetFake set fake values.

func (*ShockerResponse) SetID

func (s *ShockerResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShockerResponse) SetIsPaused

func (s *ShockerResponse) SetIsPaused(val OptBool)

SetIsPaused sets the value of IsPaused.

func (*ShockerResponse) SetModel

func (s *ShockerResponse) SetModel(val OptShockerModelType)

SetModel sets the value of Model.

func (*ShockerResponse) SetName

func (s *ShockerResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShockerResponse) SetRfId

func (s *ShockerResponse) SetRfId(val OptInt32)

SetRfId sets the value of RfId.

func (*ShockerResponse) UnmarshalJSON

func (s *ShockerResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerResponse) Validate

func (s *ShockerResponse) Validate() error

type ShockerResponseIEnumerableBaseResponse

type ShockerResponseIEnumerableBaseResponse struct {
	Message OptNilString               `json:"message"`
	Data    OptNilShockerResponseArray `json:"data"`
}

Ref: #/components/schemas/ShockerResponseIEnumerableBaseResponse

func (*ShockerResponseIEnumerableBaseResponse) Decode

Decode decodes ShockerResponseIEnumerableBaseResponse from json.

func (*ShockerResponseIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShockerResponseIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*ShockerResponseIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShockerResponseIEnumerableBaseResponse) MarshalJSON

func (s *ShockerResponseIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerResponseIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*ShockerResponseIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*ShockerResponseIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*ShockerResponseIEnumerableBaseResponse) UnmarshalJSON

func (s *ShockerResponseIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerResponseIEnumerableBaseResponse) Validate

type ShockerSendControlDEPRECATEDForbidden

type ShockerSendControlDEPRECATEDForbidden OpenShockProblem

func (*ShockerSendControlDEPRECATEDForbidden) Decode

Decode decodes ShockerSendControlDEPRECATEDForbidden from json.

func (*ShockerSendControlDEPRECATEDForbidden) Encode

Encode encodes ShockerSendControlDEPRECATEDForbidden as json.

func (*ShockerSendControlDEPRECATEDForbidden) MarshalJSON

func (s *ShockerSendControlDEPRECATEDForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlDEPRECATEDForbidden) SetFake

SetFake set fake values.

func (*ShockerSendControlDEPRECATEDForbidden) UnmarshalJSON

func (s *ShockerSendControlDEPRECATEDForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlDEPRECATEDNotFound

type ShockerSendControlDEPRECATEDNotFound OpenShockProblem

func (*ShockerSendControlDEPRECATEDNotFound) Decode

Decode decodes ShockerSendControlDEPRECATEDNotFound from json.

func (*ShockerSendControlDEPRECATEDNotFound) Encode

Encode encodes ShockerSendControlDEPRECATEDNotFound as json.

func (*ShockerSendControlDEPRECATEDNotFound) MarshalJSON

func (s *ShockerSendControlDEPRECATEDNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlDEPRECATEDNotFound) SetFake

SetFake set fake values.

func (*ShockerSendControlDEPRECATEDNotFound) UnmarshalJSON

func (s *ShockerSendControlDEPRECATEDNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlDEPRECATEDPreconditionFailed

type ShockerSendControlDEPRECATEDPreconditionFailed OpenShockProblem

func (*ShockerSendControlDEPRECATEDPreconditionFailed) Decode

Decode decodes ShockerSendControlDEPRECATEDPreconditionFailed from json.

func (*ShockerSendControlDEPRECATEDPreconditionFailed) Encode

Encode encodes ShockerSendControlDEPRECATEDPreconditionFailed as json.

func (*ShockerSendControlDEPRECATEDPreconditionFailed) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlDEPRECATEDPreconditionFailed) SetFake

SetFake set fake values.

func (*ShockerSendControlDEPRECATEDPreconditionFailed) UnmarshalJSON

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlDEPRECATEDRes

type ShockerSendControlDEPRECATEDRes interface {
	// contains filtered or unexported methods
}

type ShockerSendControlForbidden

type ShockerSendControlForbidden OpenShockProblem

func (*ShockerSendControlForbidden) Decode

Decode decodes ShockerSendControlForbidden from json.

func (*ShockerSendControlForbidden) Encode

func (s *ShockerSendControlForbidden) Encode(e *jx.Encoder)

Encode encodes ShockerSendControlForbidden as json.

func (*ShockerSendControlForbidden) MarshalJSON

func (s *ShockerSendControlForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlForbidden) SetFake

func (s *ShockerSendControlForbidden) SetFake()

SetFake set fake values.

func (*ShockerSendControlForbidden) UnmarshalJSON

func (s *ShockerSendControlForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlNotFound

type ShockerSendControlNotFound OpenShockProblem

func (*ShockerSendControlNotFound) Decode

Decode decodes ShockerSendControlNotFound from json.

func (*ShockerSendControlNotFound) Encode

func (s *ShockerSendControlNotFound) Encode(e *jx.Encoder)

Encode encodes ShockerSendControlNotFound as json.

func (*ShockerSendControlNotFound) MarshalJSON

func (s *ShockerSendControlNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlNotFound) SetFake

func (s *ShockerSendControlNotFound) SetFake()

SetFake set fake values.

func (*ShockerSendControlNotFound) UnmarshalJSON

func (s *ShockerSendControlNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlPreconditionFailed

type ShockerSendControlPreconditionFailed OpenShockProblem

func (*ShockerSendControlPreconditionFailed) Decode

Decode decodes ShockerSendControlPreconditionFailed from json.

func (*ShockerSendControlPreconditionFailed) Encode

Encode encodes ShockerSendControlPreconditionFailed as json.

func (*ShockerSendControlPreconditionFailed) MarshalJSON

func (s *ShockerSendControlPreconditionFailed) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerSendControlPreconditionFailed) SetFake

SetFake set fake values.

func (*ShockerSendControlPreconditionFailed) UnmarshalJSON

func (s *ShockerSendControlPreconditionFailed) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ShockerSendControlRes

type ShockerSendControlRes interface {
	// contains filtered or unexported methods
}

type ShockerShockerShareCodeCreateParams

type ShockerShockerShareCodeCreateParams struct {
	ShockerId uuid.UUID
}

ShockerShockerShareCodeCreateParams is parameters of Shocker_ShockerShareCodeCreate operation.

type ShockerShockerShareCodeCreateRes

type ShockerShockerShareCodeCreateRes interface {
	// contains filtered or unexported methods
}

type ShockerShockerShareCodeListParams

type ShockerShockerShareCodeListParams struct {
	ShockerId uuid.UUID
}

ShockerShockerShareCodeListParams is parameters of Shocker_ShockerShareCodeList operation.

type ShockerShockerShareCodeListRes

type ShockerShockerShareCodeListRes interface {
	// contains filtered or unexported methods
}

type ShockerShockerShareCodePauseParams

type ShockerShockerShareCodePauseParams struct {
	ShockerId        uuid.UUID
	SharedWithUserId uuid.UUID
}

ShockerShockerShareCodePauseParams is parameters of Shocker_ShockerShareCodePause operation.

type ShockerShockerShareCodePauseRes

type ShockerShockerShareCodePauseRes interface {
	// contains filtered or unexported methods
}

type ShockerShockerShareCodeRemoveParams

type ShockerShockerShareCodeRemoveParams struct {
	ShockerId        uuid.UUID
	SharedWithUserId uuid.UUID
}

ShockerShockerShareCodeRemoveParams is parameters of Shocker_ShockerShareCodeRemove operation.

type ShockerShockerShareCodeRemoveRes

type ShockerShockerShareCodeRemoveRes interface {
	// contains filtered or unexported methods
}

type ShockerShockerShareCodeUpdateParams

type ShockerShockerShareCodeUpdateParams struct {
	ShockerId        uuid.UUID
	SharedWithUserId uuid.UUID
}

ShockerShockerShareCodeUpdateParams is parameters of Shocker_ShockerShareCodeUpdate operation.

type ShockerShockerShareCodeUpdateRes

type ShockerShockerShareCodeUpdateRes interface {
	// contains filtered or unexported methods
}

type ShockerWithDevice

type ShockerWithDevice struct {
	ID        OptUUID             `json:"id"`
	RfId      OptInt32            `json:"rfId"`
	Model     OptShockerModelType `json:"model"`
	Name      OptNilString        `json:"name"`
	IsPaused  OptBool             `json:"isPaused"`
	CreatedOn OptDateTime         `json:"createdOn"`
	Device    OptUUID             `json:"device"`
}

Ref: #/components/schemas/ShockerWithDevice

func (*ShockerWithDevice) Decode

func (s *ShockerWithDevice) Decode(d *jx.Decoder) error

Decode decodes ShockerWithDevice from json.

func (*ShockerWithDevice) Encode

func (s *ShockerWithDevice) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ShockerWithDevice) GetCreatedOn

func (s *ShockerWithDevice) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*ShockerWithDevice) GetDevice

func (s *ShockerWithDevice) GetDevice() OptUUID

GetDevice returns the value of Device.

func (*ShockerWithDevice) GetID

func (s *ShockerWithDevice) GetID() OptUUID

GetID returns the value of ID.

func (*ShockerWithDevice) GetIsPaused

func (s *ShockerWithDevice) GetIsPaused() OptBool

GetIsPaused returns the value of IsPaused.

func (*ShockerWithDevice) GetModel

func (s *ShockerWithDevice) GetModel() OptShockerModelType

GetModel returns the value of Model.

func (*ShockerWithDevice) GetName

func (s *ShockerWithDevice) GetName() OptNilString

GetName returns the value of Name.

func (*ShockerWithDevice) GetRfId

func (s *ShockerWithDevice) GetRfId() OptInt32

GetRfId returns the value of RfId.

func (*ShockerWithDevice) MarshalJSON

func (s *ShockerWithDevice) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerWithDevice) SetCreatedOn

func (s *ShockerWithDevice) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*ShockerWithDevice) SetDevice

func (s *ShockerWithDevice) SetDevice(val OptUUID)

SetDevice sets the value of Device.

func (*ShockerWithDevice) SetFake

func (s *ShockerWithDevice) SetFake()

SetFake set fake values.

func (*ShockerWithDevice) SetID

func (s *ShockerWithDevice) SetID(val OptUUID)

SetID sets the value of ID.

func (*ShockerWithDevice) SetIsPaused

func (s *ShockerWithDevice) SetIsPaused(val OptBool)

SetIsPaused sets the value of IsPaused.

func (*ShockerWithDevice) SetModel

func (s *ShockerWithDevice) SetModel(val OptShockerModelType)

SetModel sets the value of Model.

func (*ShockerWithDevice) SetName

func (s *ShockerWithDevice) SetName(val OptNilString)

SetName sets the value of Name.

func (*ShockerWithDevice) SetRfId

func (s *ShockerWithDevice) SetRfId(val OptInt32)

SetRfId sets the value of RfId.

func (*ShockerWithDevice) UnmarshalJSON

func (s *ShockerWithDevice) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerWithDevice) Validate

func (s *ShockerWithDevice) Validate() error

type ShockerWithDeviceBaseResponse

type ShockerWithDeviceBaseResponse struct {
	Message OptNilString         `json:"message"`
	Data    OptShockerWithDevice `json:"data"`
}

Ref: #/components/schemas/ShockerWithDeviceBaseResponse

func (*ShockerWithDeviceBaseResponse) Decode

Decode decodes ShockerWithDeviceBaseResponse from json.

func (*ShockerWithDeviceBaseResponse) Encode

Encode implements json.Marshaler.

func (*ShockerWithDeviceBaseResponse) GetData

GetData returns the value of Data.

func (*ShockerWithDeviceBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*ShockerWithDeviceBaseResponse) MarshalJSON

func (s *ShockerWithDeviceBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ShockerWithDeviceBaseResponse) SetData

SetData sets the value of Data.

func (*ShockerWithDeviceBaseResponse) SetFake

func (s *ShockerWithDeviceBaseResponse) SetFake()

SetFake set fake values.

func (*ShockerWithDeviceBaseResponse) SetMessage

func (s *ShockerWithDeviceBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*ShockerWithDeviceBaseResponse) UnmarshalJSON

func (s *ShockerWithDeviceBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*ShockerWithDeviceBaseResponse) Validate

func (s *ShockerWithDeviceBaseResponse) Validate() error

type SignUp

type SignUp struct {
	Username OptNilString `json:"username"`
	Password OptNilString `json:"password"`
	Email    OptNilString `json:"email"`
}

Ref: #/components/schemas/SignUp

func (*SignUp) Decode

func (s *SignUp) Decode(d *jx.Decoder) error

Decode decodes SignUp from json.

func (*SignUp) Encode

func (s *SignUp) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SignUp) GetEmail

func (s *SignUp) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*SignUp) GetPassword

func (s *SignUp) GetPassword() OptNilString

GetPassword returns the value of Password.

func (*SignUp) GetUsername

func (s *SignUp) GetUsername() OptNilString

GetUsername returns the value of Username.

func (*SignUp) MarshalJSON

func (s *SignUp) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SignUp) SetEmail

func (s *SignUp) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*SignUp) SetFake

func (s *SignUp) SetFake()

SetFake set fake values.

func (*SignUp) SetPassword

func (s *SignUp) SetPassword(val OptNilString)

SetPassword sets the value of Password.

func (*SignUp) SetUsername

func (s *SignUp) SetUsername(val OptNilString)

SetUsername sets the value of Username.

func (*SignUp) UnmarshalJSON

func (s *SignUp) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SignUp) Validate

func (s *SignUp) Validate() error

type SignUpV2

type SignUpV2 struct {
	Username          OptNilString `json:"username"`
	Password          OptNilString `json:"password"`
	Email             OptNilString `json:"email"`
	TurnstileResponse string       `json:"turnstileResponse"`
}

Ref: #/components/schemas/SignUpV2

func (*SignUpV2) Decode

func (s *SignUpV2) Decode(d *jx.Decoder) error

Decode decodes SignUpV2 from json.

func (*SignUpV2) Encode

func (s *SignUpV2) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SignUpV2) GetEmail

func (s *SignUpV2) GetEmail() OptNilString

GetEmail returns the value of Email.

func (*SignUpV2) GetPassword

func (s *SignUpV2) GetPassword() OptNilString

GetPassword returns the value of Password.

func (*SignUpV2) GetTurnstileResponse

func (s *SignUpV2) GetTurnstileResponse() string

GetTurnstileResponse returns the value of TurnstileResponse.

func (*SignUpV2) GetUsername

func (s *SignUpV2) GetUsername() OptNilString

GetUsername returns the value of Username.

func (*SignUpV2) MarshalJSON

func (s *SignUpV2) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SignUpV2) SetEmail

func (s *SignUpV2) SetEmail(val OptNilString)

SetEmail sets the value of Email.

func (*SignUpV2) SetFake

func (s *SignUpV2) SetFake()

SetFake set fake values.

func (*SignUpV2) SetPassword

func (s *SignUpV2) SetPassword(val OptNilString)

SetPassword sets the value of Password.

func (*SignUpV2) SetTurnstileResponse

func (s *SignUpV2) SetTurnstileResponse(val string)

SetTurnstileResponse sets the value of TurnstileResponse.

func (*SignUpV2) SetUsername

func (s *SignUpV2) SetUsername(val OptNilString)

SetUsername sets the value of Username.

func (*SignUpV2) UnmarshalJSON

func (s *SignUpV2) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SignUpV2) Validate

func (s *SignUpV2) Validate() error

type StatsResponse

type StatsResponse struct {
	DevicesOnline OptInt32 `json:"devicesOnline"`
}

Ref: #/components/schemas/StatsResponse

func (*StatsResponse) Decode

func (s *StatsResponse) Decode(d *jx.Decoder) error

Decode decodes StatsResponse from json.

func (*StatsResponse) Encode

func (s *StatsResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StatsResponse) GetDevicesOnline

func (s *StatsResponse) GetDevicesOnline() OptInt32

GetDevicesOnline returns the value of DevicesOnline.

func (*StatsResponse) MarshalJSON

func (s *StatsResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StatsResponse) SetDevicesOnline

func (s *StatsResponse) SetDevicesOnline(val OptInt32)

SetDevicesOnline sets the value of DevicesOnline.

func (*StatsResponse) SetFake

func (s *StatsResponse) SetFake()

SetFake set fake values.

func (*StatsResponse) UnmarshalJSON

func (s *StatsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StatsResponseBaseResponse

type StatsResponseBaseResponse struct {
	Message OptNilString     `json:"message"`
	Data    OptStatsResponse `json:"data"`
}

Ref: #/components/schemas/StatsResponseBaseResponse

func (*StatsResponseBaseResponse) Decode

func (s *StatsResponseBaseResponse) Decode(d *jx.Decoder) error

Decode decodes StatsResponseBaseResponse from json.

func (*StatsResponseBaseResponse) Encode

func (s *StatsResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StatsResponseBaseResponse) GetData

GetData returns the value of Data.

func (*StatsResponseBaseResponse) GetMessage

func (s *StatsResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*StatsResponseBaseResponse) MarshalJSON

func (s *StatsResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StatsResponseBaseResponse) SetData

SetData sets the value of Data.

func (*StatsResponseBaseResponse) SetFake

func (s *StatsResponseBaseResponse) SetFake()

SetFake set fake values.

func (*StatsResponseBaseResponse) SetMessage

func (s *StatsResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*StatsResponseBaseResponse) UnmarshalJSON

func (s *StatsResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type StringBaseResponse

type StringBaseResponse struct {
	Message OptNilString `json:"message"`
	Data    OptNilString `json:"data"`
}

Ref: #/components/schemas/StringBaseResponse

func (*StringBaseResponse) Decode

func (s *StringBaseResponse) Decode(d *jx.Decoder) error

Decode decodes StringBaseResponse from json.

func (*StringBaseResponse) Encode

func (s *StringBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*StringBaseResponse) GetData

func (s *StringBaseResponse) GetData() OptNilString

GetData returns the value of Data.

func (*StringBaseResponse) GetMessage

func (s *StringBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*StringBaseResponse) MarshalJSON

func (s *StringBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*StringBaseResponse) SetData

func (s *StringBaseResponse) SetData(val OptNilString)

SetData sets the value of Data.

func (*StringBaseResponse) SetFake

func (s *StringBaseResponse) SetFake()

SetFake set fake values.

func (*StringBaseResponse) SetMessage

func (s *StringBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*StringBaseResponse) UnmarshalJSON

func (s *StringBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TokenResponse

type TokenResponse struct {
	ID          OptUUID                   `json:"id"`
	Name        OptNilString              `json:"name"`
	CreatedOn   OptDateTime               `json:"createdOn"`
	CreatedByIp OptNilString              `json:"createdByIp"`
	ValidUntil  OptNilDate                `json:"validUntil"`
	Permissions OptNilPermissionTypeArray `json:"permissions"`
}

Ref: #/components/schemas/TokenResponse

func (*TokenResponse) Decode

func (s *TokenResponse) Decode(d *jx.Decoder) error

Decode decodes TokenResponse from json.

func (*TokenResponse) Encode

func (s *TokenResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TokenResponse) GetCreatedByIp

func (s *TokenResponse) GetCreatedByIp() OptNilString

GetCreatedByIp returns the value of CreatedByIp.

func (*TokenResponse) GetCreatedOn

func (s *TokenResponse) GetCreatedOn() OptDateTime

GetCreatedOn returns the value of CreatedOn.

func (*TokenResponse) GetID

func (s *TokenResponse) GetID() OptUUID

GetID returns the value of ID.

func (*TokenResponse) GetName

func (s *TokenResponse) GetName() OptNilString

GetName returns the value of Name.

func (*TokenResponse) GetPermissions

func (s *TokenResponse) GetPermissions() OptNilPermissionTypeArray

GetPermissions returns the value of Permissions.

func (*TokenResponse) GetValidUntil

func (s *TokenResponse) GetValidUntil() OptNilDate

GetValidUntil returns the value of ValidUntil.

func (*TokenResponse) MarshalJSON

func (s *TokenResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokenResponse) SetCreatedByIp

func (s *TokenResponse) SetCreatedByIp(val OptNilString)

SetCreatedByIp sets the value of CreatedByIp.

func (*TokenResponse) SetCreatedOn

func (s *TokenResponse) SetCreatedOn(val OptDateTime)

SetCreatedOn sets the value of CreatedOn.

func (*TokenResponse) SetFake

func (s *TokenResponse) SetFake()

SetFake set fake values.

func (*TokenResponse) SetID

func (s *TokenResponse) SetID(val OptUUID)

SetID sets the value of ID.

func (*TokenResponse) SetName

func (s *TokenResponse) SetName(val OptNilString)

SetName sets the value of Name.

func (*TokenResponse) SetPermissions

func (s *TokenResponse) SetPermissions(val OptNilPermissionTypeArray)

SetPermissions sets the value of Permissions.

func (*TokenResponse) SetValidUntil

func (s *TokenResponse) SetValidUntil(val OptNilDate)

SetValidUntil sets the value of ValidUntil.

func (*TokenResponse) UnmarshalJSON

func (s *TokenResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokenResponse) Validate

func (s *TokenResponse) Validate() error

type TokenResponseBaseResponse

type TokenResponseBaseResponse struct {
	Message OptNilString     `json:"message"`
	Data    OptTokenResponse `json:"data"`
}

Ref: #/components/schemas/TokenResponseBaseResponse

func (*TokenResponseBaseResponse) Decode

func (s *TokenResponseBaseResponse) Decode(d *jx.Decoder) error

Decode decodes TokenResponseBaseResponse from json.

func (*TokenResponseBaseResponse) Encode

func (s *TokenResponseBaseResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TokenResponseBaseResponse) GetData

GetData returns the value of Data.

func (*TokenResponseBaseResponse) GetMessage

func (s *TokenResponseBaseResponse) GetMessage() OptNilString

GetMessage returns the value of Message.

func (*TokenResponseBaseResponse) MarshalJSON

func (s *TokenResponseBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokenResponseBaseResponse) SetData

SetData sets the value of Data.

func (*TokenResponseBaseResponse) SetFake

func (s *TokenResponseBaseResponse) SetFake()

SetFake set fake values.

func (*TokenResponseBaseResponse) SetMessage

func (s *TokenResponseBaseResponse) SetMessage(val OptNilString)

SetMessage sets the value of Message.

func (*TokenResponseBaseResponse) UnmarshalJSON

func (s *TokenResponseBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokenResponseBaseResponse) Validate

func (s *TokenResponseBaseResponse) Validate() error

type TokenResponseIEnumerableBaseResponse

type TokenResponseIEnumerableBaseResponse struct {
	Message OptNilString             `json:"message"`
	Data    OptNilTokenResponseArray `json:"data"`
}

Ref: #/components/schemas/TokenResponseIEnumerableBaseResponse

func (*TokenResponseIEnumerableBaseResponse) Decode

Decode decodes TokenResponseIEnumerableBaseResponse from json.

func (*TokenResponseIEnumerableBaseResponse) Encode

Encode implements json.Marshaler.

func (*TokenResponseIEnumerableBaseResponse) GetData

GetData returns the value of Data.

func (*TokenResponseIEnumerableBaseResponse) GetMessage

GetMessage returns the value of Message.

func (*TokenResponseIEnumerableBaseResponse) MarshalJSON

func (s *TokenResponseIEnumerableBaseResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TokenResponseIEnumerableBaseResponse) SetData

SetData sets the value of Data.

func (*TokenResponseIEnumerableBaseResponse) SetFake

SetFake set fake values.

func (*TokenResponseIEnumerableBaseResponse) SetMessage

SetMessage sets the value of Message.

func (*TokenResponseIEnumerableBaseResponse) UnmarshalJSON

func (s *TokenResponseIEnumerableBaseResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TokenResponseIEnumerableBaseResponse) Validate

type TokensDeleteTokenParams

type TokensDeleteTokenParams struct {
	TokenId uuid.UUID
}

TokensDeleteTokenParams is parameters of Tokens_DeleteToken operation.

type TokensDeleteTokenRes

type TokensDeleteTokenRes interface {
	// contains filtered or unexported methods
}

type TokensEditTokenParams

type TokensEditTokenParams struct {
	TokenId uuid.UUID
}

TokensEditTokenParams is parameters of Tokens_EditToken operation.

type TokensEditTokenRes

type TokensEditTokenRes interface {
	// contains filtered or unexported methods
}

type TokensGetTokenByIdParams

type TokensGetTokenByIdParams struct {
	TokenId uuid.UUID
}

TokensGetTokenByIdParams is parameters of Tokens_GetTokenById operation.

type TokensGetTokenByIdRes

type TokensGetTokenByIdRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL