Files
yovision/Sense/internal/mtx/generated/client.gen.go
T
QiuSW 5208891e02
Harness governance / validate (push) Has been cancelled
Harness governance / validate (pull_request) Has been cancelled
feat(sense): establish M1 offline intake skeleton
2026-08-04 15:45:50 +08:00

11279 lines
365 KiB
Go

// Package mediamtxapi provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
package mediamtxapi
import (
"bytes"
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"github.com/oapi-codegen/runtime"
openapi_types "github.com/oapi-codegen/runtime/types"
)
// Defines values for AlwaysAvailableTrackCodec.
const (
AlwaysAvailableTrackCodecAV1 AlwaysAvailableTrackCodec = "AV1"
AlwaysAvailableTrackCodecG711 AlwaysAvailableTrackCodec = "G711"
AlwaysAvailableTrackCodecH264 AlwaysAvailableTrackCodec = "H264"
AlwaysAvailableTrackCodecH265 AlwaysAvailableTrackCodec = "H265"
AlwaysAvailableTrackCodecLPCM AlwaysAvailableTrackCodec = "LPCM"
AlwaysAvailableTrackCodecMPEG4Audio AlwaysAvailableTrackCodec = "MPEG4Audio"
AlwaysAvailableTrackCodecOpus AlwaysAvailableTrackCodec = "Opus"
AlwaysAvailableTrackCodecVP9 AlwaysAvailableTrackCodec = "VP9"
)
// Valid indicates whether the value is a known member of the AlwaysAvailableTrackCodec enum.
func (e AlwaysAvailableTrackCodec) Valid() bool {
switch e {
case AlwaysAvailableTrackCodecAV1:
return true
case AlwaysAvailableTrackCodecG711:
return true
case AlwaysAvailableTrackCodecH264:
return true
case AlwaysAvailableTrackCodecH265:
return true
case AlwaysAvailableTrackCodecLPCM:
return true
case AlwaysAvailableTrackCodecMPEG4Audio:
return true
case AlwaysAvailableTrackCodecOpus:
return true
case AlwaysAvailableTrackCodecVP9:
return true
default:
return false
}
}
// Defines values for AuthAction.
const (
AuthActionApi AuthAction = "api"
AuthActionMetrics AuthAction = "metrics"
AuthActionPlayback AuthAction = "playback"
AuthActionPprof AuthAction = "pprof"
AuthActionPublish AuthAction = "publish"
AuthActionRead AuthAction = "read"
)
// Valid indicates whether the value is a known member of the AuthAction enum.
func (e AuthAction) Valid() bool {
switch e {
case AuthActionApi:
return true
case AuthActionMetrics:
return true
case AuthActionPlayback:
return true
case AuthActionPprof:
return true
case AuthActionPublish:
return true
case AuthActionRead:
return true
default:
return false
}
}
// Defines values for AuthMethod.
const (
Http AuthMethod = "http"
Internal AuthMethod = "internal"
Jwt AuthMethod = "jwt"
)
// Valid indicates whether the value is a known member of the AuthMethod enum.
func (e AuthMethod) Valid() bool {
switch e {
case Http:
return true
case Internal:
return true
case Jwt:
return true
default:
return false
}
}
// Defines values for Encryption.
const (
No Encryption = "no"
Optional Encryption = "optional"
Strict Encryption = "strict"
)
// Valid indicates whether the value is a known member of the Encryption enum.
func (e Encryption) Valid() bool {
switch e {
case No:
return true
case Optional:
return true
case Strict:
return true
default:
return false
}
}
// Defines values for ErrorStatus.
const (
ErrorStatusError ErrorStatus = "error"
)
// Valid indicates whether the value is a known member of the ErrorStatus enum.
func (e ErrorStatus) Valid() bool {
switch e {
case ErrorStatusError:
return true
default:
return false
}
}
// Defines values for GlobalConfProtocols.
const (
GlobalConfProtocolsMulticast GlobalConfProtocols = "multicast"
GlobalConfProtocolsTcp GlobalConfProtocols = "tcp"
GlobalConfProtocolsUdp GlobalConfProtocols = "udp"
)
// Valid indicates whether the value is a known member of the GlobalConfProtocols enum.
func (e GlobalConfProtocols) Valid() bool {
switch e {
case GlobalConfProtocolsMulticast:
return true
case GlobalConfProtocolsTcp:
return true
case GlobalConfProtocolsUdp:
return true
default:
return false
}
}
// Defines values for GlobalConfRtspTransports.
const (
GlobalConfRtspTransportsMulticast GlobalConfRtspTransports = "multicast"
GlobalConfRtspTransportsTcp GlobalConfRtspTransports = "tcp"
GlobalConfRtspTransportsUdp GlobalConfRtspTransports = "udp"
)
// Valid indicates whether the value is a known member of the GlobalConfRtspTransports enum.
func (e GlobalConfRtspTransports) Valid() bool {
switch e {
case GlobalConfRtspTransportsMulticast:
return true
case GlobalConfRtspTransportsTcp:
return true
case GlobalConfRtspTransportsUdp:
return true
default:
return false
}
}
// Defines values for HLSVariant.
const (
HLSVariantFmp4 HLSVariant = "fmp4"
HLSVariantLowLatency HLSVariant = "lowLatency"
HLSVariantMpegts HLSVariant = "mpegts"
)
// Valid indicates whether the value is a known member of the HLSVariant enum.
func (e HLSVariant) Valid() bool {
switch e {
case HLSVariantFmp4:
return true
case HLSVariantLowLatency:
return true
case HLSVariantMpegts:
return true
default:
return false
}
}
// Defines values for LogDestination.
const (
File LogDestination = "file"
Stdout LogDestination = "stdout"
Syslog LogDestination = "syslog"
)
// Valid indicates whether the value is a known member of the LogDestination enum.
func (e LogDestination) Valid() bool {
switch e {
case File:
return true
case Stdout:
return true
case Syslog:
return true
default:
return false
}
}
// Defines values for LogLevel.
const (
LogLevelDebug LogLevel = "debug"
LogLevelError LogLevel = "error"
LogLevelInfo LogLevel = "info"
LogLevelWarn LogLevel = "warn"
)
// Valid indicates whether the value is a known member of the LogLevel enum.
func (e LogLevel) Valid() bool {
switch e {
case LogLevelDebug:
return true
case LogLevelError:
return true
case LogLevelInfo:
return true
case LogLevelWarn:
return true
default:
return false
}
}
// Defines values for MoQSessionState.
const (
MoQSessionStateIdle MoQSessionState = "idle"
MoQSessionStatePublish MoQSessionState = "publish"
MoQSessionStateRead MoQSessionState = "read"
)
// Valid indicates whether the value is a known member of the MoQSessionState enum.
func (e MoQSessionState) Valid() bool {
switch e {
case MoQSessionStateIdle:
return true
case MoQSessionStatePublish:
return true
case MoQSessionStateRead:
return true
default:
return false
}
}
// Defines values for MoQVersion.
const (
Moqt18 MoQVersion = "moqt-18"
Moqt19 MoQVersion = "moqt-19"
)
// Valid indicates whether the value is a known member of the MoQVersion enum.
func (e MoQVersion) Valid() bool {
switch e {
case Moqt18:
return true
case Moqt19:
return true
default:
return false
}
}
// Defines values for OKStatus.
const (
Ok OKStatus = "ok"
)
// Valid indicates whether the value is a known member of the OKStatus enum.
func (e OKStatus) Valid() bool {
switch e {
case Ok:
return true
default:
return false
}
}
// Defines values for PathReaderType.
const (
PathReaderTypeHidden PathReaderType = "hidden"
PathReaderTypeHlsSession PathReaderType = "hlsSession"
PathReaderTypeMoqSession PathReaderType = "moqSession"
PathReaderTypeRtmpConn PathReaderType = "rtmpConn"
PathReaderTypeRtmpsConn PathReaderType = "rtmpsConn"
PathReaderTypeRtspConn PathReaderType = "rtspConn"
PathReaderTypeRtspSession PathReaderType = "rtspSession"
PathReaderTypeRtspsConn PathReaderType = "rtspsConn"
PathReaderTypeRtspsSession PathReaderType = "rtspsSession"
PathReaderTypeSrtConn PathReaderType = "srtConn"
PathReaderTypeWebRTCSession PathReaderType = "webRTCSession"
)
// Valid indicates whether the value is a known member of the PathReaderType enum.
func (e PathReaderType) Valid() bool {
switch e {
case PathReaderTypeHidden:
return true
case PathReaderTypeHlsSession:
return true
case PathReaderTypeMoqSession:
return true
case PathReaderTypeRtmpConn:
return true
case PathReaderTypeRtmpsConn:
return true
case PathReaderTypeRtspConn:
return true
case PathReaderTypeRtspSession:
return true
case PathReaderTypeRtspsConn:
return true
case PathReaderTypeRtspsSession:
return true
case PathReaderTypeSrtConn:
return true
case PathReaderTypeWebRTCSession:
return true
default:
return false
}
}
// Defines values for PathSourceType.
const (
PathSourceTypeHlsSource PathSourceType = "hlsSource"
PathSourceTypeMoqSession PathSourceType = "moqSession"
PathSourceTypeMpegtsSource PathSourceType = "mpegtsSource"
PathSourceTypeRedirect PathSourceType = "redirect"
PathSourceTypeRpiCameraSource PathSourceType = "rpiCameraSource"
PathSourceTypeRtmpConn PathSourceType = "rtmpConn"
PathSourceTypeRtmpSource PathSourceType = "rtmpSource"
PathSourceTypeRtmpsConn PathSourceType = "rtmpsConn"
PathSourceTypeRtpSource PathSourceType = "rtpSource"
PathSourceTypeRtspSession PathSourceType = "rtspSession"
PathSourceTypeRtspSource PathSourceType = "rtspSource"
PathSourceTypeRtspsSession PathSourceType = "rtspsSession"
PathSourceTypeSrtConn PathSourceType = "srtConn"
PathSourceTypeSrtSource PathSourceType = "srtSource"
PathSourceTypeWebRTCSession PathSourceType = "webRTCSession"
PathSourceTypeWebRTCSource PathSourceType = "webRTCSource"
)
// Valid indicates whether the value is a known member of the PathSourceType enum.
func (e PathSourceType) Valid() bool {
switch e {
case PathSourceTypeHlsSource:
return true
case PathSourceTypeMoqSession:
return true
case PathSourceTypeMpegtsSource:
return true
case PathSourceTypeRedirect:
return true
case PathSourceTypeRpiCameraSource:
return true
case PathSourceTypeRtmpConn:
return true
case PathSourceTypeRtmpSource:
return true
case PathSourceTypeRtmpsConn:
return true
case PathSourceTypeRtpSource:
return true
case PathSourceTypeRtspSession:
return true
case PathSourceTypeRtspSource:
return true
case PathSourceTypeRtspsSession:
return true
case PathSourceTypeSrtConn:
return true
case PathSourceTypeSrtSource:
return true
case PathSourceTypeWebRTCSession:
return true
case PathSourceTypeWebRTCSource:
return true
default:
return false
}
}
// Defines values for PathTrackCodec.
const (
PathTrackCodecAC3 PathTrackCodec = "AC3"
PathTrackCodecAV1 PathTrackCodec = "AV1"
PathTrackCodecFLAC PathTrackCodec = "FLAC"
PathTrackCodecG711 PathTrackCodec = "G711"
PathTrackCodecG722 PathTrackCodec = "G722"
PathTrackCodecG726 PathTrackCodec = "G726"
PathTrackCodecGeneric PathTrackCodec = "Generic"
PathTrackCodecH264 PathTrackCodec = "H264"
PathTrackCodecH265 PathTrackCodec = "H265"
PathTrackCodecKLV PathTrackCodec = "KLV"
PathTrackCodecLPCM PathTrackCodec = "LPCM"
PathTrackCodecMJPEG PathTrackCodec = "M-JPEG"
PathTrackCodecMPEG12Audio PathTrackCodec = "MPEG-1/2 Audio"
PathTrackCodecMPEG12Video PathTrackCodec = "MPEG-1/2 Video"
PathTrackCodecMPEG4Audio PathTrackCodec = "MPEG-4 Audio"
PathTrackCodecMPEG4AudioLATM PathTrackCodec = "MPEG-4 Audio LATM"
PathTrackCodecMPEG4Video PathTrackCodec = "MPEG-4 Video"
PathTrackCodecMPEGTS PathTrackCodec = "MPEG-TS"
PathTrackCodecOpus PathTrackCodec = "Opus"
PathTrackCodecSpeex PathTrackCodec = "Speex"
PathTrackCodecVP8 PathTrackCodec = "VP8"
PathTrackCodecVP9 PathTrackCodec = "VP9"
PathTrackCodecVorbis PathTrackCodec = "Vorbis"
)
// Valid indicates whether the value is a known member of the PathTrackCodec enum.
func (e PathTrackCodec) Valid() bool {
switch e {
case PathTrackCodecAC3:
return true
case PathTrackCodecAV1:
return true
case PathTrackCodecFLAC:
return true
case PathTrackCodecG711:
return true
case PathTrackCodecG722:
return true
case PathTrackCodecG726:
return true
case PathTrackCodecGeneric:
return true
case PathTrackCodecH264:
return true
case PathTrackCodecH265:
return true
case PathTrackCodecKLV:
return true
case PathTrackCodecLPCM:
return true
case PathTrackCodecMJPEG:
return true
case PathTrackCodecMPEG12Audio:
return true
case PathTrackCodecMPEG12Video:
return true
case PathTrackCodecMPEG4Audio:
return true
case PathTrackCodecMPEG4AudioLATM:
return true
case PathTrackCodecMPEG4Video:
return true
case PathTrackCodecMPEGTS:
return true
case PathTrackCodecOpus:
return true
case PathTrackCodecSpeex:
return true
case PathTrackCodecVP8:
return true
case PathTrackCodecVP9:
return true
case PathTrackCodecVorbis:
return true
default:
return false
}
}
// Defines values for RTMPConnState.
const (
RTMPConnStateIdle RTMPConnState = "idle"
RTMPConnStatePublish RTMPConnState = "publish"
RTMPConnStateRead RTMPConnState = "read"
)
// Valid indicates whether the value is a known member of the RTMPConnState enum.
func (e RTMPConnState) Valid() bool {
switch e {
case RTMPConnStateIdle:
return true
case RTMPConnStatePublish:
return true
case RTMPConnStateRead:
return true
default:
return false
}
}
// Defines values for RTSPAuthMethod.
const (
Basic RTSPAuthMethod = "basic"
Digest RTSPAuthMethod = "digest"
)
// Valid indicates whether the value is a known member of the RTSPAuthMethod enum.
func (e RTSPAuthMethod) Valid() bool {
switch e {
case Basic:
return true
case Digest:
return true
default:
return false
}
}
// Defines values for RTSPRangeType.
const (
Clock RTSPRangeType = "clock"
Empty RTSPRangeType = ""
Npt RTSPRangeType = "npt"
Smpte RTSPRangeType = "smpte"
)
// Valid indicates whether the value is a known member of the RTSPRangeType enum.
func (e RTSPRangeType) Valid() bool {
switch e {
case Clock:
return true
case Empty:
return true
case Npt:
return true
case Smpte:
return true
default:
return false
}
}
// Defines values for RTSPSessionState.
const (
RTSPSessionStateIdle RTSPSessionState = "idle"
RTSPSessionStatePublish RTSPSessionState = "publish"
RTSPSessionStateRead RTSPSessionState = "read"
)
// Valid indicates whether the value is a known member of the RTSPSessionState enum.
func (e RTSPSessionState) Valid() bool {
switch e {
case RTSPSessionStateIdle:
return true
case RTSPSessionStatePublish:
return true
case RTSPSessionStateRead:
return true
default:
return false
}
}
// Defines values for RTSPTransport.
const (
RTSPTransportAutomatic RTSPTransport = "automatic"
RTSPTransportMulticast RTSPTransport = "multicast"
RTSPTransportTcp RTSPTransport = "tcp"
RTSPTransportUdp RTSPTransport = "udp"
)
// Valid indicates whether the value is a known member of the RTSPTransport enum.
func (e RTSPTransport) Valid() bool {
switch e {
case RTSPTransportAutomatic:
return true
case RTSPTransportMulticast:
return true
case RTSPTransportTcp:
return true
case RTSPTransportUdp:
return true
default:
return false
}
}
// Defines values for RecordFormat.
const (
RecordFormatFmp4 RecordFormat = "fmp4"
RecordFormatMpegts RecordFormat = "mpegts"
)
// Valid indicates whether the value is a known member of the RecordFormat enum.
func (e RecordFormat) Valid() bool {
switch e {
case RecordFormatFmp4:
return true
case RecordFormatMpegts:
return true
default:
return false
}
}
// Defines values for SRTConnState.
const (
SRTConnStateIdle SRTConnState = "idle"
SRTConnStatePublish SRTConnState = "publish"
SRTConnStateRead SRTConnState = "read"
)
// Valid indicates whether the value is a known member of the SRTConnState enum.
func (e SRTConnState) Valid() bool {
switch e {
case SRTConnStateIdle:
return true
case SRTConnStatePublish:
return true
case SRTConnStateRead:
return true
default:
return false
}
}
// Defines values for WebRTCSessionState.
const (
WebRTCSessionStatePublish WebRTCSessionState = "publish"
WebRTCSessionStateRead WebRTCSessionState = "read"
)
// Valid indicates whether the value is a known member of the WebRTCSessionState enum.
func (e WebRTCSessionState) Valid() bool {
switch e {
case WebRTCSessionStatePublish:
return true
case WebRTCSessionStateRead:
return true
default:
return false
}
}
// AlwaysAvailableTrack defines model for AlwaysAvailableTrack.
type AlwaysAvailableTrack struct {
ChannelCount *int64 `json:"channelCount,omitempty"`
Codec *AlwaysAvailableTrackCodec `json:"codec,omitempty"`
MuLaw *bool `json:"muLaw,omitempty"`
SampleRate *int64 `json:"sampleRate,omitempty"`
}
// AlwaysAvailableTrackCodec defines model for AlwaysAvailableTrackCodec.
type AlwaysAvailableTrackCodec string
// AuthAction defines model for AuthAction.
type AuthAction string
// AuthInternalUser defines model for AuthInternalUser.
type AuthInternalUser struct {
Ips *[]string `json:"ips,omitempty"`
Pass *string `json:"pass,omitempty"`
Permissions *[]AuthInternalUserPermission `json:"permissions,omitempty"`
User *string `json:"user,omitempty"`
}
// AuthInternalUserPermission defines model for AuthInternalUserPermission.
type AuthInternalUserPermission struct {
Action *AuthAction `json:"action,omitempty"`
Path *string `json:"path,omitempty"`
}
// AuthMethod defines model for AuthMethod.
type AuthMethod string
// Encryption defines model for Encryption.
type Encryption string
// Error defines model for Error.
type Error struct {
Error *string `json:"error,omitempty"`
Status *ErrorStatus `json:"status,omitempty"`
}
// ErrorStatus defines model for ErrorStatus.
type ErrorStatus string
// GlobalConf defines model for GlobalConf.
type GlobalConf struct {
// Api Control API
Api *bool `json:"api,omitempty"`
ApiAddress *string `json:"apiAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ApiAllowOrigin *string `json:"apiAllowOrigin,omitempty"`
ApiAllowOrigins *[]string `json:"apiAllowOrigins,omitempty"`
ApiEncryption *bool `json:"apiEncryption,omitempty"`
ApiServerCert *string `json:"apiServerCert,omitempty"`
ApiServerKey *string `json:"apiServerKey,omitempty"`
ApiTrustedProxies *[]string `json:"apiTrustedProxies,omitempty"`
AuthHTTPAddress *string `json:"authHTTPAddress,omitempty"`
AuthHTTPExclude *[]AuthInternalUserPermission `json:"authHTTPExclude,omitempty"`
AuthHTTPFingerprint *string `json:"authHTTPFingerprint,omitempty"`
AuthInternalUsers *[]AuthInternalUser `json:"authInternalUsers,omitempty"`
AuthJWTAudience *string `json:"authJWTAudience,omitempty"`
AuthJWTClaimKey *string `json:"authJWTClaimKey,omitempty"`
AuthJWTExclude *[]AuthInternalUserPermission `json:"authJWTExclude,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AuthJWTInHTTPQuery *bool `json:"authJWTInHTTPQuery,omitempty"`
AuthJWTIssuer *string `json:"authJWTIssuer,omitempty"`
AuthJWTJWKS *string `json:"authJWTJWKS,omitempty"`
AuthJWTJWKSFingerprint *string `json:"authJWTJWKSFingerprint,omitempty"`
AuthMethod *AuthMethod `json:"authMethod,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
AuthMethods *[]RTSPAuthMethod `json:"authMethods,omitempty"`
DumpPackets *bool `json:"dumpPackets,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Encryption *Encryption `json:"encryption,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ExternalAuthenticationURL *string `json:"externalAuthenticationURL,omitempty"`
// Hls HLS server
Hls *bool `json:"hls,omitempty"`
HlsAddress *string `json:"hlsAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
HlsAllowOrigin *string `json:"hlsAllowOrigin,omitempty"`
HlsAllowOrigins *[]string `json:"hlsAllowOrigins,omitempty"`
HlsAlwaysRemux *bool `json:"hlsAlwaysRemux,omitempty"`
HlsCDNSecret *string `json:"hlsCDNSecret,omitempty"`
HlsDirectory *string `json:"hlsDirectory,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
HlsDisable *bool `json:"hlsDisable,omitempty"`
HlsEncryption *bool `json:"hlsEncryption,omitempty"`
HlsMuxerCloseAfter *string `json:"hlsMuxerCloseAfter,omitempty"`
HlsPartDuration *string `json:"hlsPartDuration,omitempty"`
HlsSegmentCount *int64 `json:"hlsSegmentCount,omitempty"`
HlsSegmentDuration *string `json:"hlsSegmentDuration,omitempty"`
HlsSegmentMaxSize *string `json:"hlsSegmentMaxSize,omitempty"`
HlsServerCert *string `json:"hlsServerCert,omitempty"`
HlsServerKey *string `json:"hlsServerKey,omitempty"`
HlsTrustedProxies *[]string `json:"hlsTrustedProxies,omitempty"`
HlsVariant *HLSVariant `json:"hlsVariant,omitempty"`
LogDestinations *[]LogDestination `json:"logDestinations,omitempty"`
LogFile *string `json:"logFile,omitempty"`
LogLevel *LogLevel `json:"logLevel,omitempty"`
LogStructured *bool `json:"logStructured,omitempty"`
// Metrics Metrics
Metrics *bool `json:"metrics,omitempty"`
MetricsAddress *string `json:"metricsAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MetricsAllowOrigin *string `json:"metricsAllowOrigin,omitempty"`
MetricsAllowOrigins *[]string `json:"metricsAllowOrigins,omitempty"`
MetricsEncryption *bool `json:"metricsEncryption,omitempty"`
MetricsServerCert *string `json:"metricsServerCert,omitempty"`
MetricsServerKey *string `json:"metricsServerKey,omitempty"`
MetricsTrustedProxies *[]string `json:"metricsTrustedProxies,omitempty"`
// Moq MoQ server
Moq *bool `json:"moq,omitempty"`
MoqAllowOrigins *[]string `json:"moqAllowOrigins,omitempty"`
MoqHTTP2Address *string `json:"moqHTTP2Address,omitempty"`
MoqHTTP3Address *string `json:"moqHTTP3Address,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MoqHTTPS2Address *string `json:"moqHTTPS2Address,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MoqHTTPS3Address *string `json:"moqHTTPS3Address,omitempty"`
MoqServerCert *string `json:"moqServerCert,omitempty"`
MoqServerKey *string `json:"moqServerKey,omitempty"`
MoqTrustedProxies *[]string `json:"moqTrustedProxies,omitempty"`
MulticastIPRange *string `json:"multicastIPRange,omitempty"`
MulticastRTCPPort *int64 `json:"multicastRTCPPort,omitempty"`
MulticastRTPPort *int64 `json:"multicastRTPPort,omitempty"`
MulticastSRTCPPort *int64 `json:"multicastSRTCPPort,omitempty"`
MulticastSRTPPort *int64 `json:"multicastSRTPPort,omitempty"`
// Playback Playback
Playback *bool `json:"playback,omitempty"`
PlaybackAddress *string `json:"playbackAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PlaybackAllowOrigin *string `json:"playbackAllowOrigin,omitempty"`
PlaybackAllowOrigins *[]string `json:"playbackAllowOrigins,omitempty"`
PlaybackEncryption *bool `json:"playbackEncryption,omitempty"`
PlaybackServerCert *string `json:"playbackServerCert,omitempty"`
PlaybackServerKey *string `json:"playbackServerKey,omitempty"`
PlaybackTrustedProxies *[]string `json:"playbackTrustedProxies,omitempty"`
// Pprof PPROF
Pprof *bool `json:"pprof,omitempty"`
PprofAddress *string `json:"pprofAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PprofAllowOrigin *string `json:"pprofAllowOrigin,omitempty"`
PprofAllowOrigins *[]string `json:"pprofAllowOrigins,omitempty"`
PprofEncryption *bool `json:"pprofEncryption,omitempty"`
PprofServerCert *string `json:"pprofServerCert,omitempty"`
PprofServerKey *string `json:"pprofServerKey,omitempty"`
PprofTrustedProxies *[]string `json:"pprofTrustedProxies,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Protocols *[]GlobalConfProtocols `json:"protocols,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ReadBufferCount *int64 `json:"readBufferCount,omitempty"`
ReadTimeout *string `json:"readTimeout,omitempty"`
// Record Record (deprecated)
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Record *bool `json:"record,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RecordDeleteAfter *string `json:"recordDeleteAfter,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RecordFormat *RecordFormat `json:"recordFormat,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RecordPartDuration *string `json:"recordPartDuration,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RecordPath *string `json:"recordPath,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RecordSegmentDuration *string `json:"recordSegmentDuration,omitempty"`
RtcpAddress *string `json:"rtcpAddress,omitempty"`
// Rtmp RTMP server
Rtmp *bool `json:"rtmp,omitempty"`
RtmpAddress *string `json:"rtmpAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtmpDisable *bool `json:"rtmpDisable,omitempty"`
RtmpEncryption *Encryption `json:"rtmpEncryption,omitempty"`
RtmpServerCert *string `json:"rtmpServerCert,omitempty"`
RtmpServerKey *string `json:"rtmpServerKey,omitempty"`
RtmpTrustedProxies *[]string `json:"rtmpTrustedProxies,omitempty"`
RtmpsAddress *string `json:"rtmpsAddress,omitempty"`
RtpAddress *string `json:"rtpAddress,omitempty"`
// Rtsp RTSP server
Rtsp *bool `json:"rtsp,omitempty"`
RtspAddress *string `json:"rtspAddress,omitempty"`
RtspAuthMethods *[]RTSPAuthMethod `json:"rtspAuthMethods,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtspDisable *bool `json:"rtspDisable,omitempty"`
RtspEncryption *Encryption `json:"rtspEncryption,omitempty"`
RtspServerCert *string `json:"rtspServerCert,omitempty"`
RtspServerKey *string `json:"rtspServerKey,omitempty"`
RtspTransports *[]GlobalConfRtspTransports `json:"rtspTransports,omitempty"`
RtspTrustedProxies *[]string `json:"rtspTrustedProxies,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtspUDPReadBufferSize *uint64 `json:"rtspUDPReadBufferSize,omitempty"`
RtspsAddress *string `json:"rtspsAddress,omitempty"`
RunOnConnect *string `json:"runOnConnect,omitempty"`
RunOnConnectRestart *bool `json:"runOnConnectRestart,omitempty"`
RunOnDisconnect *string `json:"runOnDisconnect,omitempty"`
// Srt SRT server
Srt *bool `json:"srt,omitempty"`
SrtAddress *string `json:"srtAddress,omitempty"`
SrtcpAddress *string `json:"srtcpAddress,omitempty"`
SrtpAddress *string `json:"srtpAddress,omitempty"`
SysLogPrefix *string `json:"sysLogPrefix,omitempty"`
UdpMaxPayloadSize *int64 `json:"udpMaxPayloadSize,omitempty"`
UdpReadBufferSize *uint64 `json:"udpReadBufferSize,omitempty"`
// Webrtc WebRTC server
Webrtc *bool `json:"webrtc,omitempty"`
WebrtcAdditionalHosts *[]string `json:"webrtcAdditionalHosts,omitempty"`
WebrtcAddress *string `json:"webrtcAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcAllowOrigin *string `json:"webrtcAllowOrigin,omitempty"`
WebrtcAllowOrigins *[]string `json:"webrtcAllowOrigins,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcDisable *bool `json:"webrtcDisable,omitempty"`
WebrtcEncryption *bool `json:"webrtcEncryption,omitempty"`
WebrtcHandshakeTimeout *string `json:"webrtcHandshakeTimeout,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcICEHostNAT1To1IPs *[]string `json:"webrtcICEHostNAT1To1IPs,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcICEServers *[]string `json:"webrtcICEServers,omitempty"`
WebrtcICEServers2 *[]WebRTCICEServer `json:"webrtcICEServers2,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcICETCPMuxAddress *string `json:"webrtcICETCPMuxAddress,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
WebrtcICEUDPMuxAddress *string `json:"webrtcICEUDPMuxAddress,omitempty"`
WebrtcIPsFromInterfaces *bool `json:"webrtcIPsFromInterfaces,omitempty"`
WebrtcIPsFromInterfacesList *[]string `json:"webrtcIPsFromInterfacesList,omitempty"`
WebrtcLocalTCPAddress *string `json:"webrtcLocalTCPAddress,omitempty"`
WebrtcLocalUDPAddress *string `json:"webrtcLocalUDPAddress,omitempty"`
WebrtcSTUNGatherTimeout *string `json:"webrtcSTUNGatherTimeout,omitempty"`
WebrtcServerCert *string `json:"webrtcServerCert,omitempty"`
WebrtcServerKey *string `json:"webrtcServerKey,omitempty"`
WebrtcTrackGatherTimeout *string `json:"webrtcTrackGatherTimeout,omitempty"`
WebrtcTrustedProxies *[]string `json:"webrtcTrustedProxies,omitempty"`
WriteQueueSize *int64 `json:"writeQueueSize,omitempty"`
WriteTimeout *string `json:"writeTimeout,omitempty"`
}
// GlobalConfProtocols defines model for GlobalConf.Protocols.
type GlobalConfProtocols string
// GlobalConfRtspTransports defines model for GlobalConf.RtspTransports.
type GlobalConfRtspTransports string
// HLSMuxer defines model for HLSMuxer.
type HLSMuxer struct {
// BytesSent deprecated
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
Created *string `json:"created,omitempty"`
LastRequest *string `json:"lastRequest,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
OutboundFramesDiscarded *uint64 `json:"outboundFramesDiscarded,omitempty"`
Path *string `json:"path,omitempty"`
}
// HLSMuxerList defines model for HLSMuxerList.
type HLSMuxerList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]HLSMuxer `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// HLSSession defines model for HLSSession.
type HLSSession struct {
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
IsCDN *bool `json:"isCDN,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
Path *string `json:"path,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
User *string `json:"user,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
}
// HLSSessionList defines model for HLSSessionList.
type HLSSessionList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]HLSSession `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// HLSVariant defines model for HLSVariant.
type HLSVariant string
// Info defines model for Info.
type Info struct {
Started *string `json:"started,omitempty"`
Version *string `json:"version,omitempty"`
}
// LogDestination defines model for LogDestination.
type LogDestination string
// LogLevel defines model for LogLevel.
type LogLevel string
// MoQSession defines model for MoQSession.
type MoQSession struct {
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
Path *string `json:"path,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
State *MoQSessionState `json:"state,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
Version *MoQVersion `json:"version,omitempty"`
}
// MoQSessionList defines model for MoQSessionList.
type MoQSessionList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]MoQSession `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// MoQSessionState defines model for MoQSessionState.
type MoQSessionState string
// MoQVersion defines model for MoQVersion.
type MoQVersion string
// OK defines model for OK.
type OK struct {
Status *OKStatus `json:"status,omitempty"`
}
// OKStatus defines model for OKStatus.
type OKStatus string
// Path defines model for Path.
type Path struct {
Available *bool `json:"available,omitempty"`
AvailableTime *string `json:"availableTime,omitempty"`
// BytesReceived deprecated
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
ConfName *string `json:"confName,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
InboundFramesInError *uint64 `json:"inboundFramesInError,omitempty"`
Name *string `json:"name,omitempty"`
Online *bool `json:"online,omitempty"`
OnlineTime *string `json:"onlineTime,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
Readers *[]PathReader `json:"readers,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Ready *bool `json:"ready,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ReadyTime *string `json:"readyTime,omitempty"`
Source *PathSource `json:"source,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Tracks *[]PathTrackCodec `json:"tracks,omitempty"`
Tracks2 *[]PathTrack `json:"tracks2,omitempty"`
}
// PathConf defines model for PathConf.
type PathConf struct {
// AlwaysAvailable Always available
AlwaysAvailable *bool `json:"alwaysAvailable,omitempty"`
AlwaysAvailableFile *string `json:"alwaysAvailableFile,omitempty"`
AlwaysAvailableTracks *[]AlwaysAvailableTrack `json:"alwaysAvailableTracks,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
DisablePublisherOverride *bool `json:"disablePublisherOverride,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Fallback *string `json:"fallback,omitempty"`
MaxReaders *int64 `json:"maxReaders,omitempty"`
// MpegtsUDPReadBufferSize MPEG-TS source
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
MpegtsUDPReadBufferSize *uint64 `json:"mpegtsUDPReadBufferSize,omitempty"`
// Name filled by Validate()
Name *string `json:"name,omitempty"`
// OverridePublisher Publisher source
OverridePublisher *bool `json:"overridePublisher,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
Playback *bool `json:"playback,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PublishIPs *[]string `json:"publishIPs,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PublishPass *string `json:"publishPass,omitempty"`
// PublishUser Authentication (deprecated)
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
PublishUser *string `json:"publishUser,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ReadIPs *[]string `json:"readIPs,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ReadPass *string `json:"readPass,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ReadUser *string `json:"readUser,omitempty"`
// Record Record
Record *bool `json:"record,omitempty"`
RecordDeleteAfter *string `json:"recordDeleteAfter,omitempty"`
RecordFormat *RecordFormat `json:"recordFormat,omitempty"`
RecordMaxPartSize *string `json:"recordMaxPartSize,omitempty"`
RecordPartDuration *string `json:"recordPartDuration,omitempty"`
RecordPath *string `json:"recordPath,omitempty"`
RecordSegmentDuration *string `json:"recordSegmentDuration,omitempty"`
RpiCameraAWB *string `json:"rpiCameraAWB,omitempty"`
RpiCameraAWBGains *[]float64 `json:"rpiCameraAWBGains,omitempty"`
RpiCameraAfMode *string `json:"rpiCameraAfMode,omitempty"`
RpiCameraAfRange *string `json:"rpiCameraAfRange,omitempty"`
RpiCameraAfSpeed *string `json:"rpiCameraAfSpeed,omitempty"`
RpiCameraAfWindow *string `json:"rpiCameraAfWindow,omitempty"`
RpiCameraBitrate *uint64 `json:"rpiCameraBitrate,omitempty"`
RpiCameraBrightness *float64 `json:"rpiCameraBrightness,omitempty"`
// RpiCameraCamID Raspberry Pi Camera source
RpiCameraCamID *uint64 `json:"rpiCameraCamID,omitempty"`
RpiCameraCodec *string `json:"rpiCameraCodec,omitempty"`
RpiCameraContrast *float64 `json:"rpiCameraContrast,omitempty"`
RpiCameraDenoise *string `json:"rpiCameraDenoise,omitempty"`
RpiCameraEV *float64 `json:"rpiCameraEV,omitempty"`
RpiCameraExposure *string `json:"rpiCameraExposure,omitempty"`
RpiCameraFPS *float64 `json:"rpiCameraFPS,omitempty"`
RpiCameraFlickerPeriod *uint64 `json:"rpiCameraFlickerPeriod,omitempty"`
RpiCameraGain *float64 `json:"rpiCameraGain,omitempty"`
RpiCameraH264Level *string `json:"rpiCameraH264Level,omitempty"`
RpiCameraH264Profile *string `json:"rpiCameraH264Profile,omitempty"`
RpiCameraHDR *bool `json:"rpiCameraHDR,omitempty"`
RpiCameraHFlip *bool `json:"rpiCameraHFlip,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraHardwareH264Level *string `json:"rpiCameraHardwareH264Level,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraHardwareH264Profile *string `json:"rpiCameraHardwareH264Profile,omitempty"`
RpiCameraHeight *uint64 `json:"rpiCameraHeight,omitempty"`
RpiCameraIDRPeriod *uint64 `json:"rpiCameraIDRPeriod,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraJPEGQuality *uint64 `json:"rpiCameraJPEGQuality,omitempty"`
RpiCameraLensPosition *float64 `json:"rpiCameraLensPosition,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraLevel *string `json:"rpiCameraLevel,omitempty"`
RpiCameraMJPEGQuality *uint64 `json:"rpiCameraMJPEGQuality,omitempty"`
RpiCameraMetering *string `json:"rpiCameraMetering,omitempty"`
RpiCameraMode *string `json:"rpiCameraMode,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraProfile *string `json:"rpiCameraProfile,omitempty"`
RpiCameraROI *string `json:"rpiCameraROI,omitempty"`
RpiCameraSaturation *float64 `json:"rpiCameraSaturation,omitempty"`
RpiCameraSecondary *bool `json:"rpiCameraSecondary,omitempty"`
RpiCameraSharpness *float64 `json:"rpiCameraSharpness,omitempty"`
RpiCameraShutter *uint64 `json:"rpiCameraShutter,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraSoftwareH264Level *string `json:"rpiCameraSoftwareH264Level,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RpiCameraSoftwareH264Profile *string `json:"rpiCameraSoftwareH264Profile,omitempty"`
RpiCameraTextOverlay *string `json:"rpiCameraTextOverlay,omitempty"`
RpiCameraTextOverlayEnable *bool `json:"rpiCameraTextOverlayEnable,omitempty"`
RpiCameraTuningFile *string `json:"rpiCameraTuningFile,omitempty"`
RpiCameraVFlip *bool `json:"rpiCameraVFlip,omitempty"`
RpiCameraWidth *uint64 `json:"rpiCameraWidth,omitempty"`
// RtpSDP RTP source
RtpSDP *string `json:"rtpSDP,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpUDPReadBufferSize *uint64 `json:"rtpUDPReadBufferSize,omitempty"`
RtspAnyPort *bool `json:"rtspAnyPort,omitempty"`
RtspDemuxMpegts *bool `json:"rtspDemuxMpegts,omitempty"`
RtspRangeStart *string `json:"rtspRangeStart,omitempty"`
RtspRangeType *RTSPRangeType `json:"rtspRangeType,omitempty"`
RtspScale *string `json:"rtspScale,omitempty"`
RtspTransport *RTSPTransport `json:"rtspTransport,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtspUDPReadBufferSize *uint64 `json:"rtspUDPReadBufferSize,omitempty"`
RtspUDPSourcePortRange *[]uint64 `json:"rtspUDPSourcePortRange,omitempty"`
RunOnAvailable *string `json:"runOnAvailable,omitempty"`
RunOnAvailableRestart *bool `json:"runOnAvailableRestart,omitempty"`
RunOnDemand *string `json:"runOnDemand,omitempty"`
RunOnDemandCloseAfter *string `json:"runOnDemandCloseAfter,omitempty"`
RunOnDemandRestart *bool `json:"runOnDemandRestart,omitempty"`
RunOnDemandStartTimeout *string `json:"runOnDemandStartTimeout,omitempty"`
// RunOnInit Hooks
RunOnInit *string `json:"runOnInit,omitempty"`
RunOnInitRestart *bool `json:"runOnInitRestart,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RunOnNotReady *string `json:"runOnNotReady,omitempty"`
RunOnOffline *string `json:"runOnOffline,omitempty"`
RunOnOnline *string `json:"runOnOnline,omitempty"`
RunOnOnlineRestart *bool `json:"runOnOnlineRestart,omitempty"`
RunOnRead *string `json:"runOnRead,omitempty"`
RunOnReadRestart *bool `json:"runOnReadRestart,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RunOnReady *string `json:"runOnReady,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RunOnReadyRestart *bool `json:"runOnReadyRestart,omitempty"`
RunOnRecordSegmentComplete *string `json:"runOnRecordSegmentComplete,omitempty"`
RunOnRecordSegmentCreate *string `json:"runOnRecordSegmentCreate,omitempty"`
RunOnUnDemand *string `json:"runOnUnDemand,omitempty"`
RunOnUnavailable *string `json:"runOnUnavailable,omitempty"`
RunOnUnread *string `json:"runOnUnread,omitempty"`
// Source General
Source *string `json:"source,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SourceAnyPortEnable *bool `json:"sourceAnyPortEnable,omitempty"`
SourceFingerprint *string `json:"sourceFingerprint,omitempty"`
SourceOnDemand *bool `json:"sourceOnDemand,omitempty"`
SourceOnDemandCloseAfter *string `json:"sourceOnDemandCloseAfter,omitempty"`
SourceOnDemandStartTimeout *string `json:"sourceOnDemandStartTimeout,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
SourceProtocol *RTSPTransport `json:"sourceProtocol,omitempty"`
// SourceRedirect Redirect source
SourceRedirect *string `json:"sourceRedirect,omitempty"`
SrtPublishPassphrase *string `json:"srtPublishPassphrase,omitempty"`
SrtReadPassphrase *string `json:"srtReadPassphrase,omitempty"`
UseAbsoluteTimestamp *bool `json:"useAbsoluteTimestamp,omitempty"`
// WhepBearerToken WHEP source
WhepBearerToken *string `json:"whepBearerToken,omitempty"`
WhepHandshakeTimeout *string `json:"whepHandshakeTimeout,omitempty"`
WhepSTUNGatherTimeout *string `json:"whepSTUNGatherTimeout,omitempty"`
WhepTrackGatherTimeout *string `json:"whepTrackGatherTimeout,omitempty"`
}
// PathConfList defines model for PathConfList.
type PathConfList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]PathConf `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// PathList defines model for PathList.
type PathList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]Path `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// PathReader defines model for PathReader.
type PathReader struct {
Id *string `json:"id,omitempty"`
Type *PathReaderType `json:"type,omitempty"`
}
// PathReaderType defines model for PathReaderType.
type PathReaderType string
// PathSource defines model for PathSource.
type PathSource struct {
Id *string `json:"id,omitempty"`
Type *PathSourceType `json:"type,omitempty"`
}
// PathSourceType defines model for PathSourceType.
type PathSourceType string
// PathTrack defines model for PathTrack.
type PathTrack struct {
Codec *PathTrackCodec `json:"codec,omitempty"`
CodecProps *PathTrackCodecProps `json:"codecProps,omitempty"`
}
// PathTrackCodec defines model for PathTrackCodec.
type PathTrackCodec string
// PathTrackCodecProps defines model for PathTrackCodecProps.
type PathTrackCodecProps struct {
union json.RawMessage
}
// PathTrackCodecPropsAC3 defines model for PathTrackCodecPropsAC3.
type PathTrackCodecPropsAC3 struct {
ChannelCount *int64 `json:"channelCount,omitempty"`
SampleRate *int64 `json:"sampleRate,omitempty"`
}
// PathTrackCodecPropsAV1 defines model for PathTrackCodecPropsAV1.
type PathTrackCodecPropsAV1 struct {
Height *int64 `json:"height,omitempty"`
Level *int64 `json:"level,omitempty"`
Profile *int64 `json:"profile,omitempty"`
Tier *int64 `json:"tier,omitempty"`
Width *int64 `json:"width,omitempty"`
}
// PathTrackCodecPropsG711 defines model for PathTrackCodecPropsG711.
type PathTrackCodecPropsG711 struct {
ChannelCount *int64 `json:"channelCount,omitempty"`
MuLaw *bool `json:"muLaw,omitempty"`
SampleRate *int64 `json:"sampleRate,omitempty"`
}
// PathTrackCodecPropsH264 defines model for PathTrackCodecPropsH264.
type PathTrackCodecPropsH264 struct {
Height *int64 `json:"height,omitempty"`
Level *string `json:"level,omitempty"`
Profile *string `json:"profile,omitempty"`
Width *int64 `json:"width,omitempty"`
}
// PathTrackCodecPropsH265 defines model for PathTrackCodecPropsH265.
type PathTrackCodecPropsH265 struct {
Height *int64 `json:"height,omitempty"`
Level *string `json:"level,omitempty"`
Profile *string `json:"profile,omitempty"`
Width *int64 `json:"width,omitempty"`
}
// PathTrackCodecPropsLPCM defines model for PathTrackCodecPropsLPCM.
type PathTrackCodecPropsLPCM struct {
BitDepth *int64 `json:"bitDepth,omitempty"`
ChannelCount *int64 `json:"channelCount,omitempty"`
SampleRate *int64 `json:"sampleRate,omitempty"`
}
// PathTrackCodecPropsMPEG4Audio defines model for PathTrackCodecPropsMPEG4Audio.
type PathTrackCodecPropsMPEG4Audio struct {
ChannelCount *int64 `json:"channelCount,omitempty"`
SampleRate *int64 `json:"sampleRate,omitempty"`
}
// PathTrackCodecPropsOpus defines model for PathTrackCodecPropsOpus.
type PathTrackCodecPropsOpus struct {
ChannelCount *int64 `json:"channelCount,omitempty"`
}
// PathTrackCodecPropsVP9 defines model for PathTrackCodecPropsVP9.
type PathTrackCodecPropsVP9 struct {
Profile *int64 `json:"profile,omitempty"`
}
// RTMPConn defines model for RTMPConn.
type RTMPConn struct {
// BytesReceived deprecated
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
OutboundFramesDiscarded *uint64 `json:"outboundFramesDiscarded,omitempty"`
Path *string `json:"path,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
State *RTMPConnState `json:"state,omitempty"`
User *string `json:"user,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
}
// RTMPConnList defines model for RTMPConnList.
type RTMPConnList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]RTMPConn `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// RTMPConnState defines model for RTMPConnState.
type RTMPConnState string
// RTSPAuthMethod defines model for RTSPAuthMethod.
type RTSPAuthMethod string
// RTSPConn defines model for RTSPConn.
type RTSPConn struct {
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
Session *openapi_types.UUID `json:"session,omitempty"`
Tunnel *string `json:"tunnel,omitempty"`
}
// RTSPConnList defines model for RTSPConnList.
type RTSPConnList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]RTSPConn `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// RTSPRangeType defines model for RTSPRangeType.
type RTSPRangeType string
// RTSPSession defines model for RTSPSession.
type RTSPSession struct {
// BytesReceived deprecated
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
Conns *[]openapi_types.UUID `json:"conns,omitempty"`
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
InboundRTCPPackets *uint64 `json:"inboundRTCPPackets,omitempty"`
InboundRTCPPacketsInError *uint64 `json:"inboundRTCPPacketsInError,omitempty"`
InboundRTPPackets *uint64 `json:"inboundRTPPackets,omitempty"`
InboundRTPPacketsInError *uint64 `json:"inboundRTPPacketsInError,omitempty"`
InboundRTPPacketsJitter *float64 `json:"inboundRTPPacketsJitter,omitempty"`
InboundRTPPacketsLost *uint64 `json:"inboundRTPPacketsLost,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
OutboundRTCPPackets *uint64 `json:"outboundRTCPPackets,omitempty"`
OutboundRTPPackets *uint64 `json:"outboundRTPPackets,omitempty"`
OutboundRTPPacketsDiscarded *uint64 `json:"outboundRTPPacketsDiscarded,omitempty"`
OutboundRTPPacketsReportedLost *uint64 `json:"outboundRTPPacketsReportedLost,omitempty"`
Path *string `json:"path,omitempty"`
Profile *string `json:"profile,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtcpPacketsInError *uint64 `json:"rtcpPacketsInError,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtcpPacketsReceived *uint64 `json:"rtcpPacketsReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtcpPacketsSent *uint64 `json:"rtcpPacketsSent,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsInError *uint64 `json:"rtpPacketsInError,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsJitter *float64 `json:"rtpPacketsJitter,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsLost *uint64 `json:"rtpPacketsLost,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsReceived *uint64 `json:"rtpPacketsReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsSent *uint64 `json:"rtpPacketsSent,omitempty"`
State *RTSPSessionState `json:"state,omitempty"`
Transport *string `json:"transport,omitempty"`
User *string `json:"user,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
}
// RTSPSessionList defines model for RTSPSessionList.
type RTSPSessionList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]RTSPSession `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// RTSPSessionState defines model for RTSPSessionState.
type RTSPSessionState string
// RTSPTransport defines model for RTSPTransport.
type RTSPTransport string
// RecordFormat defines model for RecordFormat.
type RecordFormat string
// Recording defines model for Recording.
type Recording struct {
Name *string `json:"name,omitempty"`
Segments *[]RecordingSegment `json:"segments,omitempty"`
}
// RecordingList defines model for RecordingList.
type RecordingList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]Recording `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// RecordingSegment defines model for RecordingSegment.
type RecordingSegment struct {
Start *string `json:"start,omitempty"`
}
// SRTConn defines model for SRTConn.
type SRTConn struct {
// ByteMSS Maximum Segment Size (MSS), in bytes
ByteMSS *uint64 `json:"byteMSS,omitempty"`
// BytesAvailReceiveBuf The available space in the receiver's buffer, in bytes
BytesAvailReceiveBuf *uint64 `json:"bytesAvailReceiveBuf,omitempty"`
// BytesAvailSendBuf The available space in the sender's buffer, in bytes
BytesAvailSendBuf *uint64 `json:"bytesAvailSendBuf,omitempty"`
// BytesReceiveBuf Instantaneous (current) value of packetsRcvBuf, expressed in bytes, including payload and all headers (IP, TCP, SRT)
BytesReceiveBuf *uint64 `json:"bytesReceiveBuf,omitempty"`
// BytesReceived Same as packetsReceived, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// BytesReceivedBelated Same as PacketsReceivedBelated, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceivedBelated *uint64 `json:"bytesReceivedBelated,omitempty"`
// BytesReceivedDrop Same as packetsReceivedDrop, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceivedDrop *uint64 `json:"bytesReceivedDrop,omitempty"`
// BytesReceivedLoss Same as packetsReceivedLoss, but expressed in bytes, including payload and all the headers (IP, TCP, SRT), bytes for the presently missing (either reordered or lost) packets' payloads are estimated based on the average packet size
BytesReceivedLoss *uint64 `json:"bytesReceivedLoss,omitempty"`
// BytesReceivedRetrans Same as packetsReceivedRetrans, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceivedRetrans *uint64 `json:"bytesReceivedRetrans,omitempty"`
// BytesReceivedUndecrypt Same as packetsReceivedUndecrypt, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceivedUndecrypt *uint64 `json:"bytesReceivedUndecrypt,omitempty"`
// BytesReceivedUnique Same as packetsReceivedUnique, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesReceivedUnique *uint64 `json:"bytesReceivedUnique,omitempty"`
// BytesRetrans Same as packetsRetrans, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesRetrans *uint64 `json:"bytesRetrans,omitempty"`
// BytesSendBuf Instantaneous (current) value of packetsSndBuf, but expressed in bytes, including payload and all headers (IP, TCP, SRT)
BytesSendBuf *uint64 `json:"bytesSendBuf,omitempty"`
// BytesSendDrop Same as packetsSendDrop, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesSendDrop *uint64 `json:"bytesSendDrop,omitempty"`
// BytesSent Same as packetsSent, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesSent *uint64 `json:"bytesSent,omitempty"`
// BytesSentUnique Same as packetsSentUnique, but expressed in bytes, including payload and all the headers (IP, TCP, SRT)
BytesSentUnique *uint64 `json:"bytesSentUnique,omitempty"`
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
// MbpsLinkCapacity Estimated capacity of the network link, in Mbps
MbpsLinkCapacity *float64 `json:"mbpsLinkCapacity,omitempty"`
// MbpsMaxBW Transmission bandwidth limit, in Mbps
MbpsMaxBW *float64 `json:"mbpsMaxBW,omitempty"`
// MbpsReceiveRate Current receiving bandwidth, in Mbps
MbpsReceiveRate *float64 `json:"mbpsReceiveRate,omitempty"`
// MbpsSendRate Current transmission bandwidth, in Mbps
MbpsSendRate *float64 `json:"mbpsSendRate,omitempty"`
// MsRTT Smoothed round-trip time (SRTT), an exponentially-weighted moving average (EWMA) of an endpoint's RTT samples, in milliseconds
MsRTT *float64 `json:"msRTT,omitempty"`
// MsReceiveBuf The timespan (msec) of acknowledged packets in the receiver's buffer
MsReceiveBuf *uint64 `json:"msReceiveBuf,omitempty"`
// MsReceiveTsbPdDelay Timestamp-based Packet Delivery Delay value set on the socket via SRTO_RCVLATENCY or SRTO_LATENCY
MsReceiveTsbPdDelay *uint64 `json:"msReceiveTsbPdDelay,omitempty"`
// MsSendBuf The timespan (msec) of packets in the sender's buffer (unacknowledged packets)
MsSendBuf *uint64 `json:"msSendBuf,omitempty"`
// MsSendTsbPdDelay Timestamp-based Packet Delivery Delay value of the peer
MsSendTsbPdDelay *uint64 `json:"msSendTsbPdDelay,omitempty"`
OutboundFramesDiscarded *uint64 `json:"outboundFramesDiscarded,omitempty"`
// PacketsFlightSize The number of packets in flight
PacketsFlightSize *uint64 `json:"packetsFlightSize,omitempty"`
// PacketsFlowWindow The maximum number of packets that can be "in flight"
PacketsFlowWindow *uint64 `json:"packetsFlowWindow,omitempty"`
// PacketsReceiveBuf The number of acknowledged packets in receiver's buffer
PacketsReceiveBuf *uint64 `json:"packetsReceiveBuf,omitempty"`
// PacketsReceived The total number of received DATA packets, including retransmitted packets
PacketsReceived *uint64 `json:"packetsReceived,omitempty"`
// PacketsReceivedACK The total number of received ACK (Acknowledgement) control packets
PacketsReceivedACK *uint64 `json:"packetsReceivedACK,omitempty"`
// PacketsReceivedAvgBelatedTime Accumulated difference between the current time and the time-to-play of a packet that is received late
PacketsReceivedAvgBelatedTime *uint64 `json:"packetsReceivedAvgBelatedTime,omitempty"`
PacketsReceivedBelated *uint64 `json:"packetsReceivedBelated,omitempty"`
// PacketsReceivedDrop The total number of dropped by the SRT receiver and, as a result, not delivered to the upstream application DATA packets
PacketsReceivedDrop *uint64 `json:"packetsReceivedDrop,omitempty"`
// PacketsReceivedKM The total number of received KM (Key Material) control packets
PacketsReceivedKM *uint64 `json:"packetsReceivedKM,omitempty"`
// PacketsReceivedLoss The total number of SRT DATA packets detected as presently missing (either reordered or lost) at the receiver side
PacketsReceivedLoss *uint64 `json:"packetsReceivedLoss,omitempty"`
// PacketsReceivedLossRate Percentage of retransmitted data vs. received data
PacketsReceivedLossRate *float64 `json:"packetsReceivedLossRate,omitempty"`
// PacketsReceivedNAK The total number of received NAK (Negative Acknowledgement) control packets
PacketsReceivedNAK *uint64 `json:"packetsReceivedNAK,omitempty"`
// PacketsReceivedRetrans The total number of retransmitted packets registered at the receiver side
PacketsReceivedRetrans *uint64 `json:"packetsReceivedRetrans,omitempty"`
// PacketsReceivedUndecrypt The total number of packets that failed to be decrypted at the receiver side
PacketsReceivedUndecrypt *uint64 `json:"packetsReceivedUndecrypt,omitempty"`
// PacketsReceivedUnique The total number of unique original, retransmitted or recovered by the packet filter DATA packets received in time, decrypted without errors and, as a result, scheduled for delivery to the upstream application by the SRT receiver.
PacketsReceivedUnique *uint64 `json:"packetsReceivedUnique,omitempty"`
// PacketsReorderTolerance Instant value of the packet reorder tolerance
PacketsReorderTolerance *uint64 `json:"packetsReorderTolerance,omitempty"`
// PacketsRetrans The total number of retransmitted packets sent by the SRT sender
PacketsRetrans *uint64 `json:"packetsRetrans,omitempty"`
// PacketsSendBuf The number of packets in the sender's buffer that are already scheduled for sending or even possibly sent, but not yet acknowledged
PacketsSendBuf *uint64 `json:"packetsSendBuf,omitempty"`
// PacketsSendDrop The total number of dropped by the SRT sender DATA packets that have no chance to be delivered in time
PacketsSendDrop *uint64 `json:"packetsSendDrop,omitempty"`
// PacketsSendLoss The total number of data packets considered or reported as lost at the sender side. Does not correspond to the packets detected as lost at the receiver side.
PacketsSendLoss *uint64 `json:"packetsSendLoss,omitempty"`
// PacketsSendLossRate Percentage of resent data vs. sent data
PacketsSendLossRate *float64 `json:"packetsSendLossRate,omitempty"`
// PacketsSent The total number of sent DATA packets, including retransmitted packets
PacketsSent *uint64 `json:"packetsSent,omitempty"`
// PacketsSentACK The total number of sent ACK (Acknowledgement) control packets
PacketsSentACK *uint64 `json:"packetsSentACK,omitempty"`
// PacketsSentKM The total number of sent KM (Key Material) control packets
PacketsSentKM *uint64 `json:"packetsSentKM,omitempty"`
// PacketsSentNAK The total number of sent NAK (Negative Acknowledgement) control packets
PacketsSentNAK *uint64 `json:"packetsSentNAK,omitempty"`
// PacketsSentUnique The total number of unique DATA packets sent by the SRT sender
PacketsSentUnique *uint64 `json:"packetsSentUnique,omitempty"`
Path *string `json:"path,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
State *SRTConnState `json:"state,omitempty"`
// UsPacketsSendPeriod Current minimum time interval between which consecutive packets are sent, in microseconds
UsPacketsSendPeriod *float64 `json:"usPacketsSendPeriod,omitempty"`
// UsSndDuration The total accumulated time in microseconds, during which the SRT sender has some data to transmit, including packets that have been sent, but not yet acknowledged
UsSndDuration *uint64 `json:"usSndDuration,omitempty"`
User *string `json:"user,omitempty"`
}
// SRTConnList defines model for SRTConnList.
type SRTConnList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]SRTConn `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// SRTConnState defines model for SRTConnState.
type SRTConnState string
// WebRTCICEServer defines model for WebRTCICEServer.
type WebRTCICEServer struct {
ClientOnly *bool `json:"clientOnly,omitempty"`
Password *string `json:"password,omitempty"`
Url *string `json:"url,omitempty"`
Username *string `json:"username,omitempty"`
}
// WebRTCSession defines model for WebRTCSession.
type WebRTCSession struct {
// BytesReceived deprecated
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesReceived *uint64 `json:"bytesReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
BytesSent *uint64 `json:"bytesSent,omitempty"`
Created *string `json:"created,omitempty"`
Id *openapi_types.UUID `json:"id,omitempty"`
InboundBytes *uint64 `json:"inboundBytes,omitempty"`
InboundRTCPPackets *uint64 `json:"inboundRTCPPackets,omitempty"`
InboundRTPPackets *uint64 `json:"inboundRTPPackets,omitempty"`
InboundRTPPacketsJitter *float64 `json:"inboundRTPPacketsJitter,omitempty"`
InboundRTPPacketsLost *uint64 `json:"inboundRTPPacketsLost,omitempty"`
LocalCandidate *string `json:"localCandidate,omitempty"`
OutboundBytes *uint64 `json:"outboundBytes,omitempty"`
OutboundFramesDiscarded *uint64 `json:"outboundFramesDiscarded,omitempty"`
OutboundRTCPPackets *uint64 `json:"outboundRTCPPackets,omitempty"`
OutboundRTPPackets *uint64 `json:"outboundRTPPackets,omitempty"`
Path *string `json:"path,omitempty"`
PeerConnectionEstablished *bool `json:"peerConnectionEstablished,omitempty"`
Query *string `json:"query,omitempty"`
RemoteAddr *string `json:"remoteAddr,omitempty"`
RemoteCandidate *string `json:"remoteCandidate,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtcpPacketsReceived *uint64 `json:"rtcpPacketsReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtcpPacketsSent *uint64 `json:"rtcpPacketsSent,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsJitter *float64 `json:"rtpPacketsJitter,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsLost *uint64 `json:"rtpPacketsLost,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsReceived *uint64 `json:"rtpPacketsReceived,omitempty"`
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
RtpPacketsSent *uint64 `json:"rtpPacketsSent,omitempty"`
State *WebRTCSessionState `json:"state,omitempty"`
User *string `json:"user,omitempty"`
UserAgent *string `json:"userAgent,omitempty"`
}
// WebRTCSessionList defines model for WebRTCSessionList.
type WebRTCSessionList struct {
ItemCount *int64 `json:"itemCount,omitempty"`
Items *[]WebRTCSession `json:"items,omitempty"`
PageCount *int64 `json:"pageCount,omitempty"`
}
// WebRTCSessionState defines model for WebRTCSessionState.
type WebRTCSessionState string
// ConfigPathsListParams defines parameters for ConfigPathsList.
type ConfigPathsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// HlsMuxersListParams defines parameters for HlsMuxersList.
type HlsMuxersListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// HlssessionsListParams defines parameters for HlssessionsList.
type HlssessionsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// MoqSessionsListParams defines parameters for MoqSessionsList.
type MoqSessionsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// PathsListParams defines parameters for PathsList.
type PathsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RecordingsDeleteSegmentParams defines parameters for RecordingsDeleteSegment.
type RecordingsDeleteSegmentParams struct {
// Path path.
Path string `form:"path" json:"path"`
// Start starting date of the segment.
Start string `form:"start" json:"start"`
}
// RecordingsListParams defines parameters for RecordingsList.
type RecordingsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtmpConnsListParams defines parameters for RtmpConnsList.
type RtmpConnsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtmpsConnsListParams defines parameters for RtmpsConnsList.
type RtmpsConnsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtspConnsListParams defines parameters for RtspConnsList.
type RtspConnsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtspsConnsListParams defines parameters for RtspsConnsList.
type RtspsConnsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtspSessionsListParams defines parameters for RtspSessionsList.
type RtspSessionsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// RtspsSessionsListParams defines parameters for RtspsSessionsList.
type RtspsSessionsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// SrtConnsListParams defines parameters for SrtConnsList.
type SrtConnsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// WebrtcSessionsListParams defines parameters for WebrtcSessionsList.
type WebrtcSessionsListParams struct {
// Page page number.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// ItemsPerPage items per page.
ItemsPerPage *int `form:"itemsPerPage,omitempty" json:"itemsPerPage,omitempty"`
}
// ConfigGlobalSetJSONRequestBody defines body for ConfigGlobalSet for application/json ContentType.
type ConfigGlobalSetJSONRequestBody = GlobalConf
// ConfigPathDefaultsPatchJSONRequestBody defines body for ConfigPathDefaultsPatch for application/json ContentType.
type ConfigPathDefaultsPatchJSONRequestBody = PathConf
// ConfigPathsAddJSONRequestBody defines body for ConfigPathsAdd for application/json ContentType.
type ConfigPathsAddJSONRequestBody = PathConf
// ConfigPathsPatchJSONRequestBody defines body for ConfigPathsPatch for application/json ContentType.
type ConfigPathsPatchJSONRequestBody = PathConf
// ConfigPathsReplaceJSONRequestBody defines body for ConfigPathsReplace for application/json ContentType.
type ConfigPathsReplaceJSONRequestBody = PathConf
// AsPathTrackCodecPropsAV1 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsAV1
func (t PathTrackCodecProps) AsPathTrackCodecPropsAV1() (PathTrackCodecPropsAV1, error) {
var body PathTrackCodecPropsAV1
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsAV1 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsAV1
func (t *PathTrackCodecProps) FromPathTrackCodecPropsAV1(v PathTrackCodecPropsAV1) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsAV1 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsAV1
func (t *PathTrackCodecProps) MergePathTrackCodecPropsAV1(v PathTrackCodecPropsAV1) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsVP9 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsVP9
func (t PathTrackCodecProps) AsPathTrackCodecPropsVP9() (PathTrackCodecPropsVP9, error) {
var body PathTrackCodecPropsVP9
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsVP9 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsVP9
func (t *PathTrackCodecProps) FromPathTrackCodecPropsVP9(v PathTrackCodecPropsVP9) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsVP9 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsVP9
func (t *PathTrackCodecProps) MergePathTrackCodecPropsVP9(v PathTrackCodecPropsVP9) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsH265 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsH265
func (t PathTrackCodecProps) AsPathTrackCodecPropsH265() (PathTrackCodecPropsH265, error) {
var body PathTrackCodecPropsH265
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsH265 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsH265
func (t *PathTrackCodecProps) FromPathTrackCodecPropsH265(v PathTrackCodecPropsH265) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsH265 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsH265
func (t *PathTrackCodecProps) MergePathTrackCodecPropsH265(v PathTrackCodecPropsH265) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsH264 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsH264
func (t PathTrackCodecProps) AsPathTrackCodecPropsH264() (PathTrackCodecPropsH264, error) {
var body PathTrackCodecPropsH264
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsH264 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsH264
func (t *PathTrackCodecProps) FromPathTrackCodecPropsH264(v PathTrackCodecPropsH264) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsH264 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsH264
func (t *PathTrackCodecProps) MergePathTrackCodecPropsH264(v PathTrackCodecPropsH264) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsOpus returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsOpus
func (t PathTrackCodecProps) AsPathTrackCodecPropsOpus() (PathTrackCodecPropsOpus, error) {
var body PathTrackCodecPropsOpus
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsOpus overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsOpus
func (t *PathTrackCodecProps) FromPathTrackCodecPropsOpus(v PathTrackCodecPropsOpus) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsOpus performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsOpus
func (t *PathTrackCodecProps) MergePathTrackCodecPropsOpus(v PathTrackCodecPropsOpus) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsMPEG4Audio returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsMPEG4Audio
func (t PathTrackCodecProps) AsPathTrackCodecPropsMPEG4Audio() (PathTrackCodecPropsMPEG4Audio, error) {
var body PathTrackCodecPropsMPEG4Audio
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsMPEG4Audio overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsMPEG4Audio
func (t *PathTrackCodecProps) FromPathTrackCodecPropsMPEG4Audio(v PathTrackCodecPropsMPEG4Audio) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsMPEG4Audio performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsMPEG4Audio
func (t *PathTrackCodecProps) MergePathTrackCodecPropsMPEG4Audio(v PathTrackCodecPropsMPEG4Audio) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsAC3 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsAC3
func (t PathTrackCodecProps) AsPathTrackCodecPropsAC3() (PathTrackCodecPropsAC3, error) {
var body PathTrackCodecPropsAC3
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsAC3 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsAC3
func (t *PathTrackCodecProps) FromPathTrackCodecPropsAC3(v PathTrackCodecPropsAC3) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsAC3 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsAC3
func (t *PathTrackCodecProps) MergePathTrackCodecPropsAC3(v PathTrackCodecPropsAC3) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsG711 returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsG711
func (t PathTrackCodecProps) AsPathTrackCodecPropsG711() (PathTrackCodecPropsG711, error) {
var body PathTrackCodecPropsG711
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsG711 overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsG711
func (t *PathTrackCodecProps) FromPathTrackCodecPropsG711(v PathTrackCodecPropsG711) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsG711 performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsG711
func (t *PathTrackCodecProps) MergePathTrackCodecPropsG711(v PathTrackCodecPropsG711) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
// AsPathTrackCodecPropsLPCM returns the union data inside the PathTrackCodecProps as a PathTrackCodecPropsLPCM
func (t PathTrackCodecProps) AsPathTrackCodecPropsLPCM() (PathTrackCodecPropsLPCM, error) {
var body PathTrackCodecPropsLPCM
err := json.Unmarshal(t.union, &body)
return body, err
}
// FromPathTrackCodecPropsLPCM overwrites any union data inside the PathTrackCodecProps as the provided PathTrackCodecPropsLPCM
func (t *PathTrackCodecProps) FromPathTrackCodecPropsLPCM(v PathTrackCodecPropsLPCM) error {
b, err := json.Marshal(v)
t.union = b
return err
}
// MergePathTrackCodecPropsLPCM performs a merge with any union data inside the PathTrackCodecProps, using the provided PathTrackCodecPropsLPCM
func (t *PathTrackCodecProps) MergePathTrackCodecPropsLPCM(v PathTrackCodecPropsLPCM) error {
b, err := json.Marshal(v)
if err != nil {
return err
}
merged, err := runtime.JSONMerge(t.union, b)
t.union = merged
return err
}
func (t PathTrackCodecProps) MarshalJSON() ([]byte, error) {
b, err := t.union.MarshalJSON()
return b, err
}
func (t *PathTrackCodecProps) UnmarshalJSON(b []byte) error {
err := t.union.UnmarshalJSON(b)
return err
}
// RequestEditorFn is the function signature for the RequestEditor callback function
type RequestEditorFn func(ctx context.Context, req *http.Request) error
// Doer performs HTTP requests.
//
// The standard http.Client implements this interface.
type HttpRequestDoer interface {
Do(req *http.Request) (*http.Response, error)
}
// Client which conforms to the OpenAPI3 specification for this service.
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
// ClientOption allows setting custom parameters during construction
type ClientOption func(*Client) error
// Creates a new Client, with reasonable defaults
func NewClient(server string, opts ...ClientOption) (*Client, error) {
// create a client with sane default values
client := Client{
Server: server,
}
// mutate client and add all optional params
for _, o := range opts {
if err := o(&client); err != nil {
return nil, err
}
}
// ensure the server URL always has a trailing slash
if !strings.HasSuffix(client.Server, "/") {
client.Server += "/"
}
// create httpClient, if not already present
if client.Client == nil {
client.Client = &http.Client{}
}
return &client, nil
}
// WithHTTPClient allows overriding the default Doer, which is
// automatically created using http.Client. This is useful for tests.
func WithHTTPClient(doer HttpRequestDoer) ClientOption {
return func(c *Client) error {
c.Client = doer
return nil
}
}
// WithRequestEditorFn allows setting up a callback function, which will be
// called right before sending the request. This can be used to mutate the request.
func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
return func(c *Client) error {
c.RequestEditors = append(c.RequestEditors, fn)
return nil
}
}
// The interface specification for the client above.
type ClientInterface interface {
// AuthJwksRefresh Manually refreshes the JWT JWKS.
//
// Corresponds with POST /v3/auth/jwks/refresh (the `AuthJwksRefresh` operationId).
AuthJwksRefresh(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigGlobalGet returns the global configuration.
//
// Corresponds with GET /v3/config/global/get (the `ConfigGlobalGet` operationId).
ConfigGlobalGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigGlobalSetWithBody patches the global configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
ConfigGlobalSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigGlobalSet patches the global configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
ConfigGlobalSet(ctx context.Context, body ConfigGlobalSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathDefaultsGet returns the default path configuration.
//
// Corresponds with GET /v3/config/pathdefaults/get (the `ConfigPathDefaultsGet` operationId).
ConfigPathDefaultsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathDefaultsPatchWithBody patches the default path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
ConfigPathDefaultsPatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathDefaultsPatch patches the default path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
ConfigPathDefaultsPatch(ctx context.Context, body ConfigPathDefaultsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsAddWithBody adds a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
ConfigPathsAddWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsAdd adds a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
ConfigPathsAdd(ctx context.Context, name string, body ConfigPathsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsDelete removes a path configuration.
//
// Corresponds with DELETE /v3/config/paths/delete/{name} (the `ConfigPathsDelete` operationId).
ConfigPathsDelete(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsGet returns a path configuration.
//
// Corresponds with GET /v3/config/paths/get/{name} (the `ConfigPathsGet` operationId).
ConfigPathsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsList returns all path configurations.
//
// Corresponds with GET /v3/config/paths/list (the `ConfigPathsList` operationId).
ConfigPathsList(ctx context.Context, params *ConfigPathsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsPatchWithBody patches a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
ConfigPathsPatchWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsPatch patches a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
ConfigPathsPatch(ctx context.Context, name string, body ConfigPathsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsReplaceWithBody replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
ConfigPathsReplaceWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ConfigPathsReplace replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
ConfigPathsReplace(ctx context.Context, name string, body ConfigPathsReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HlsMuxersGet returns a HLS muxer.
//
// Corresponds with GET /v3/hlsmuxers/get/{name} (the `HlsMuxersGet` operationId).
HlsMuxersGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HlsMuxersList returns all HLS muxers.
//
// Corresponds with GET /v3/hlsmuxers/list (the `HlsMuxersList` operationId).
HlsMuxersList(ctx context.Context, params *HlsMuxersListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// HlssessionsGet returns a HLS session.
//
// Corresponds with GET /v3/hlssessions/get/{id} (the `HlssessionsGet` operationId).
HlssessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HlssessionsKick kicks out a HLS session from the server.
//
// Corresponds with POST /v3/hlssessions/kick/{id} (the `HlssessionsKick` operationId).
HlssessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HlssessionsList returns all HLS sessions.
//
// Corresponds with GET /v3/hlssessions/list (the `HlssessionsList` operationId).
HlssessionsList(ctx context.Context, params *HlssessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// Info returns informations about the instance.
//
// Corresponds with GET /v3/info (the `Info` operationId).
Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoqSessionsGet returns a MoQ session.
//
// Corresponds with GET /v3/moqsessions/get/{id} (the `MoqSessionsGet` operationId).
MoqSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoqSessionsKick kicks out a MoQ session from the server.
//
// Corresponds with POST /v3/moqsessions/kick/{id} (the `MoqSessionsKick` operationId).
MoqSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoqSessionsList returns all MoQ sessions.
//
// Corresponds with GET /v3/moqsessions/list (the `MoqSessionsList` operationId).
MoqSessionsList(ctx context.Context, params *MoqSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PathsGet returns a path.
//
// Corresponds with GET /v3/paths/get/{name} (the `PathsGet` operationId).
PathsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PathsList returns all paths.
//
// Corresponds with GET /v3/paths/list (the `PathsList` operationId).
PathsList(ctx context.Context, params *PathsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordingsDeleteSegment deletes a recording segment.
//
// Corresponds with DELETE /v3/recordings/deletesegment (the `RecordingsDeleteSegment` operationId).
RecordingsDeleteSegment(ctx context.Context, params *RecordingsDeleteSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordingsGet returns recordings of a path.
//
// Corresponds with GET /v3/recordings/get/{name} (the `RecordingsGet` operationId).
RecordingsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordingsList returns all recordings, splitted by path.
//
// Corresponds with GET /v3/recordings/list (the `RecordingsList` operationId).
RecordingsList(ctx context.Context, params *RecordingsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpConnectionsGet returns a RTMP connection.
//
// Corresponds with GET /v3/rtmpconns/get/{id} (the `RtmpConnectionsGet` operationId).
RtmpConnectionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpConnsKick kicks out a RTMP connection from the server.
//
// Corresponds with POST /v3/rtmpconns/kick/{id} (the `RtmpConnsKick` operationId).
RtmpConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpConnsList returns all RTMP connections.
//
// Corresponds with GET /v3/rtmpconns/list (the `RtmpConnsList` operationId).
RtmpConnsList(ctx context.Context, params *RtmpConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpsConnectionsGet returns a RTMPS connection.
//
// Corresponds with GET /v3/rtmpsconns/get/{id} (the `RtmpsConnectionsGet` operationId).
RtmpsConnectionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpsConnsKick kicks out a RTMPS connection from the server.
//
// Corresponds with POST /v3/rtmpsconns/kick/{id} (the `RtmpsConnsKick` operationId).
RtmpsConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtmpsConnsList returns all RTMPS connections.
//
// Corresponds with GET /v3/rtmpsconns/list (the `RtmpsConnsList` operationId).
RtmpsConnsList(ctx context.Context, params *RtmpsConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspConnsGet returns a RTSP connection.
//
// Corresponds with GET /v3/rtspconns/get/{id} (the `RtspConnsGet` operationId).
RtspConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspConnsList returns all RTSP connections.
//
// Corresponds with GET /v3/rtspconns/list (the `RtspConnsList` operationId).
RtspConnsList(ctx context.Context, params *RtspConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspsConnsGet returns a RTSPS connection.
//
// Corresponds with GET /v3/rtspsconns/get/{id} (the `RtspsConnsGet` operationId).
RtspsConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspsConnsList returns all RTSPS connections.
//
// Corresponds with GET /v3/rtspsconns/list (the `RtspsConnsList` operationId).
RtspsConnsList(ctx context.Context, params *RtspsConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspSessionsGet returns a RTSP session.
//
// Corresponds with GET /v3/rtspsessions/get/{id} (the `RtspSessionsGet` operationId).
RtspSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspSessionsKick kicks out a RTSP session from the server.
//
// Corresponds with POST /v3/rtspsessions/kick/{id} (the `RtspSessionsKick` operationId).
RtspSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspSessionsList returns all RTSP sessions.
//
// Corresponds with GET /v3/rtspsessions/list (the `RtspSessionsList` operationId).
RtspSessionsList(ctx context.Context, params *RtspSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspsSessionsGet returns a RTSPS session.
//
// Corresponds with GET /v3/rtspssessions/get/{id} (the `RtspsSessionsGet` operationId).
RtspsSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspsSessionsKick kicks out a RTSPS session from the server.
//
// Corresponds with POST /v3/rtspssessions/kick/{id} (the `RtspsSessionsKick` operationId).
RtspsSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RtspsSessionsList returns all RTSPS sessions.
//
// Corresponds with GET /v3/rtspssessions/list (the `RtspsSessionsList` operationId).
RtspsSessionsList(ctx context.Context, params *RtspsSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SrtConnsGet returns a SRT connection.
//
// Corresponds with GET /v3/srtconns/get/{id} (the `SrtConnsGet` operationId).
SrtConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SrtConnsKick kicks out a SRT connection from the server.
//
// Corresponds with POST /v3/srtconns/kick/{id} (the `SrtConnsKick` operationId).
SrtConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SrtConnsList returns all SRT connections.
//
// Corresponds with GET /v3/srtconns/list (the `SrtConnsList` operationId).
SrtConnsList(ctx context.Context, params *SrtConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// WebrtcSessionsGet returns a WebRTC session.
//
// Corresponds with GET /v3/webrtcsessions/get/{id} (the `WebrtcSessionsGet` operationId).
WebrtcSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// WebrtcSessionsKick kicks out a WebRTC session from the server.
//
// Corresponds with POST /v3/webrtcsessions/kick/{id} (the `WebrtcSessionsKick` operationId).
WebrtcSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// WebrtcSessionsList returns all WebRTC sessions.
//
// Corresponds with GET /v3/webrtcsessions/list (the `WebrtcSessionsList` operationId).
WebrtcSessionsList(ctx context.Context, params *WebrtcSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
// AuthJwksRefresh Manually refreshes the JWT JWKS.
//
// Corresponds with POST /v3/auth/jwks/refresh (the `AuthJwksRefresh` operationId).
func (c *Client) AuthJwksRefresh(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewAuthJwksRefreshRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigGlobalGet returns the global configuration.
//
// Corresponds with GET /v3/config/global/get (the `ConfigGlobalGet` operationId).
func (c *Client) ConfigGlobalGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigGlobalGetRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigGlobalSetWithBody patches the global configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
func (c *Client) ConfigGlobalSetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigGlobalSetRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigGlobalSet patches the global configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
func (c *Client) ConfigGlobalSet(ctx context.Context, body ConfigGlobalSetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigGlobalSetRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathDefaultsGet returns the default path configuration.
//
// Corresponds with GET /v3/config/pathdefaults/get (the `ConfigPathDefaultsGet` operationId).
func (c *Client) ConfigPathDefaultsGet(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathDefaultsGetRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathDefaultsPatchWithBody patches the default path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
func (c *Client) ConfigPathDefaultsPatchWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathDefaultsPatchRequestWithBody(c.Server, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathDefaultsPatch patches the default path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
func (c *Client) ConfigPathDefaultsPatch(ctx context.Context, body ConfigPathDefaultsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathDefaultsPatchRequest(c.Server, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsAddWithBody adds a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
func (c *Client) ConfigPathsAddWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsAddRequestWithBody(c.Server, name, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsAdd adds a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
func (c *Client) ConfigPathsAdd(ctx context.Context, name string, body ConfigPathsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsAddRequest(c.Server, name, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsDelete removes a path configuration.
//
// Corresponds with DELETE /v3/config/paths/delete/{name} (the `ConfigPathsDelete` operationId).
func (c *Client) ConfigPathsDelete(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsDeleteRequest(c.Server, name)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsGet returns a path configuration.
//
// Corresponds with GET /v3/config/paths/get/{name} (the `ConfigPathsGet` operationId).
func (c *Client) ConfigPathsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsGetRequest(c.Server, name)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsList returns all path configurations.
//
// Corresponds with GET /v3/config/paths/list (the `ConfigPathsList` operationId).
func (c *Client) ConfigPathsList(ctx context.Context, params *ConfigPathsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsPatchWithBody patches a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
func (c *Client) ConfigPathsPatchWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsPatchRequestWithBody(c.Server, name, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsPatch patches a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
func (c *Client) ConfigPathsPatch(ctx context.Context, name string, body ConfigPathsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsPatchRequest(c.Server, name, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsReplaceWithBody replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
func (c *Client) ConfigPathsReplaceWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsReplaceRequestWithBody(c.Server, name, contentType, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// ConfigPathsReplace replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
func (c *Client) ConfigPathsReplace(ctx context.Context, name string, body ConfigPathsReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewConfigPathsReplaceRequest(c.Server, name, body)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// HlsMuxersGet returns a HLS muxer.
//
// Corresponds with GET /v3/hlsmuxers/get/{name} (the `HlsMuxersGet` operationId).
func (c *Client) HlsMuxersGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewHlsMuxersGetRequest(c.Server, name)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// HlsMuxersList returns all HLS muxers.
//
// Corresponds with GET /v3/hlsmuxers/list (the `HlsMuxersList` operationId).
func (c *Client) HlsMuxersList(ctx context.Context, params *HlsMuxersListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewHlsMuxersListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// HlssessionsGet returns a HLS session.
//
// Corresponds with GET /v3/hlssessions/get/{id} (the `HlssessionsGet` operationId).
func (c *Client) HlssessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewHlssessionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// HlssessionsKick kicks out a HLS session from the server.
//
// Corresponds with POST /v3/hlssessions/kick/{id} (the `HlssessionsKick` operationId).
func (c *Client) HlssessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewHlssessionsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// HlssessionsList returns all HLS sessions.
//
// Corresponds with GET /v3/hlssessions/list (the `HlssessionsList` operationId).
func (c *Client) HlssessionsList(ctx context.Context, params *HlssessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewHlssessionsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// Info returns informations about the instance.
//
// Corresponds with GET /v3/info (the `Info` operationId).
func (c *Client) Info(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewInfoRequest(c.Server)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// MoqSessionsGet returns a MoQ session.
//
// Corresponds with GET /v3/moqsessions/get/{id} (the `MoqSessionsGet` operationId).
func (c *Client) MoqSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewMoqSessionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// MoqSessionsKick kicks out a MoQ session from the server.
//
// Corresponds with POST /v3/moqsessions/kick/{id} (the `MoqSessionsKick` operationId).
func (c *Client) MoqSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewMoqSessionsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// MoqSessionsList returns all MoQ sessions.
//
// Corresponds with GET /v3/moqsessions/list (the `MoqSessionsList` operationId).
func (c *Client) MoqSessionsList(ctx context.Context, params *MoqSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewMoqSessionsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// PathsGet returns a path.
//
// Corresponds with GET /v3/paths/get/{name} (the `PathsGet` operationId).
func (c *Client) PathsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPathsGetRequest(c.Server, name)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// PathsList returns all paths.
//
// Corresponds with GET /v3/paths/list (the `PathsList` operationId).
func (c *Client) PathsList(ctx context.Context, params *PathsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewPathsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RecordingsDeleteSegment deletes a recording segment.
//
// Corresponds with DELETE /v3/recordings/deletesegment (the `RecordingsDeleteSegment` operationId).
func (c *Client) RecordingsDeleteSegment(ctx context.Context, params *RecordingsDeleteSegmentParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRecordingsDeleteSegmentRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RecordingsGet returns recordings of a path.
//
// Corresponds with GET /v3/recordings/get/{name} (the `RecordingsGet` operationId).
func (c *Client) RecordingsGet(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRecordingsGetRequest(c.Server, name)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RecordingsList returns all recordings, splitted by path.
//
// Corresponds with GET /v3/recordings/list (the `RecordingsList` operationId).
func (c *Client) RecordingsList(ctx context.Context, params *RecordingsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRecordingsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpConnectionsGet returns a RTMP connection.
//
// Corresponds with GET /v3/rtmpconns/get/{id} (the `RtmpConnectionsGet` operationId).
func (c *Client) RtmpConnectionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpConnectionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpConnsKick kicks out a RTMP connection from the server.
//
// Corresponds with POST /v3/rtmpconns/kick/{id} (the `RtmpConnsKick` operationId).
func (c *Client) RtmpConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpConnsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpConnsList returns all RTMP connections.
//
// Corresponds with GET /v3/rtmpconns/list (the `RtmpConnsList` operationId).
func (c *Client) RtmpConnsList(ctx context.Context, params *RtmpConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpConnsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpsConnectionsGet returns a RTMPS connection.
//
// Corresponds with GET /v3/rtmpsconns/get/{id} (the `RtmpsConnectionsGet` operationId).
func (c *Client) RtmpsConnectionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpsConnectionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpsConnsKick kicks out a RTMPS connection from the server.
//
// Corresponds with POST /v3/rtmpsconns/kick/{id} (the `RtmpsConnsKick` operationId).
func (c *Client) RtmpsConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpsConnsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtmpsConnsList returns all RTMPS connections.
//
// Corresponds with GET /v3/rtmpsconns/list (the `RtmpsConnsList` operationId).
func (c *Client) RtmpsConnsList(ctx context.Context, params *RtmpsConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtmpsConnsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspConnsGet returns a RTSP connection.
//
// Corresponds with GET /v3/rtspconns/get/{id} (the `RtspConnsGet` operationId).
func (c *Client) RtspConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspConnsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspConnsList returns all RTSP connections.
//
// Corresponds with GET /v3/rtspconns/list (the `RtspConnsList` operationId).
func (c *Client) RtspConnsList(ctx context.Context, params *RtspConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspConnsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspsConnsGet returns a RTSPS connection.
//
// Corresponds with GET /v3/rtspsconns/get/{id} (the `RtspsConnsGet` operationId).
func (c *Client) RtspsConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspsConnsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspsConnsList returns all RTSPS connections.
//
// Corresponds with GET /v3/rtspsconns/list (the `RtspsConnsList` operationId).
func (c *Client) RtspsConnsList(ctx context.Context, params *RtspsConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspsConnsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspSessionsGet returns a RTSP session.
//
// Corresponds with GET /v3/rtspsessions/get/{id} (the `RtspSessionsGet` operationId).
func (c *Client) RtspSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspSessionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspSessionsKick kicks out a RTSP session from the server.
//
// Corresponds with POST /v3/rtspsessions/kick/{id} (the `RtspSessionsKick` operationId).
func (c *Client) RtspSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspSessionsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspSessionsList returns all RTSP sessions.
//
// Corresponds with GET /v3/rtspsessions/list (the `RtspSessionsList` operationId).
func (c *Client) RtspSessionsList(ctx context.Context, params *RtspSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspSessionsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspsSessionsGet returns a RTSPS session.
//
// Corresponds with GET /v3/rtspssessions/get/{id} (the `RtspsSessionsGet` operationId).
func (c *Client) RtspsSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspsSessionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspsSessionsKick kicks out a RTSPS session from the server.
//
// Corresponds with POST /v3/rtspssessions/kick/{id} (the `RtspsSessionsKick` operationId).
func (c *Client) RtspsSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspsSessionsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// RtspsSessionsList returns all RTSPS sessions.
//
// Corresponds with GET /v3/rtspssessions/list (the `RtspsSessionsList` operationId).
func (c *Client) RtspsSessionsList(ctx context.Context, params *RtspsSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewRtspsSessionsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// SrtConnsGet returns a SRT connection.
//
// Corresponds with GET /v3/srtconns/get/{id} (the `SrtConnsGet` operationId).
func (c *Client) SrtConnsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewSrtConnsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// SrtConnsKick kicks out a SRT connection from the server.
//
// Corresponds with POST /v3/srtconns/kick/{id} (the `SrtConnsKick` operationId).
func (c *Client) SrtConnsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewSrtConnsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// SrtConnsList returns all SRT connections.
//
// Corresponds with GET /v3/srtconns/list (the `SrtConnsList` operationId).
func (c *Client) SrtConnsList(ctx context.Context, params *SrtConnsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewSrtConnsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// WebrtcSessionsGet returns a WebRTC session.
//
// Corresponds with GET /v3/webrtcsessions/get/{id} (the `WebrtcSessionsGet` operationId).
func (c *Client) WebrtcSessionsGet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewWebrtcSessionsGetRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// WebrtcSessionsKick kicks out a WebRTC session from the server.
//
// Corresponds with POST /v3/webrtcsessions/kick/{id} (the `WebrtcSessionsKick` operationId).
func (c *Client) WebrtcSessionsKick(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewWebrtcSessionsKickRequest(c.Server, id)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// WebrtcSessionsList returns all WebRTC sessions.
//
// Corresponds with GET /v3/webrtcsessions/list (the `WebrtcSessionsList` operationId).
func (c *Client) WebrtcSessionsList(ctx context.Context, params *WebrtcSessionsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
req, err := NewWebrtcSessionsListRequest(c.Server, params)
if err != nil {
return nil, err
}
req = req.WithContext(ctx)
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
return nil, err
}
return c.Client.Do(req)
}
// NewAuthJwksRefreshRequest constructs an http.Request for the AuthJwksRefresh method
func NewAuthJwksRefreshRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/auth/jwks/refresh")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigGlobalGetRequest constructs an http.Request for the ConfigGlobalGet method
func NewConfigGlobalGetRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/global/get")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigGlobalSetRequest calls the generic ConfigGlobalSet builder with application/json body
func NewConfigGlobalSetRequest(server string, body ConfigGlobalSetJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigGlobalSetRequestWithBody(server, "application/json", bodyReader)
}
// NewConfigGlobalSetRequestWithBody constructs an http.Request for the ConfigGlobalSet method, with any body, and a specified content type
func NewConfigGlobalSetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/global/patch")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewConfigPathDefaultsGetRequest constructs an http.Request for the ConfigPathDefaultsGet method
func NewConfigPathDefaultsGetRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/pathdefaults/get")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigPathDefaultsPatchRequest calls the generic ConfigPathDefaultsPatch builder with application/json body
func NewConfigPathDefaultsPatchRequest(server string, body ConfigPathDefaultsPatchJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigPathDefaultsPatchRequestWithBody(server, "application/json", bodyReader)
}
// NewConfigPathDefaultsPatchRequestWithBody constructs an http.Request for the ConfigPathDefaultsPatch method, with any body, and a specified content type
func NewConfigPathDefaultsPatchRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/pathdefaults/patch")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewConfigPathsAddRequest calls the generic ConfigPathsAdd builder with application/json body
func NewConfigPathsAddRequest(server string, name string, body ConfigPathsAddJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigPathsAddRequestWithBody(server, name, "application/json", bodyReader)
}
// NewConfigPathsAddRequestWithBody constructs an http.Request for the ConfigPathsAdd method, with any body, and a specified content type
func NewConfigPathsAddRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/add/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewConfigPathsDeleteRequest constructs an http.Request for the ConfigPathsDelete method
func NewConfigPathsDeleteRequest(server string, name string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/delete/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigPathsGetRequest constructs an http.Request for the ConfigPathsGet method
func NewConfigPathsGetRequest(server string, name string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigPathsListRequest constructs an http.Request for the ConfigPathsList method
func NewConfigPathsListRequest(server string, params *ConfigPathsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewConfigPathsPatchRequest calls the generic ConfigPathsPatch builder with application/json body
func NewConfigPathsPatchRequest(server string, name string, body ConfigPathsPatchJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigPathsPatchRequestWithBody(server, name, "application/json", bodyReader)
}
// NewConfigPathsPatchRequestWithBody constructs an http.Request for the ConfigPathsPatch method, with any body, and a specified content type
func NewConfigPathsPatchRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/patch/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewConfigPathsReplaceRequest calls the generic ConfigPathsReplace builder with application/json body
func NewConfigPathsReplaceRequest(server string, name string, body ConfigPathsReplaceJSONRequestBody) (*http.Request, error) {
var bodyReader io.Reader
buf, err := json.Marshal(body)
if err != nil {
return nil, err
}
bodyReader = bytes.NewReader(buf)
return NewConfigPathsReplaceRequestWithBody(server, name, "application/json", bodyReader)
}
// NewConfigPathsReplaceRequestWithBody constructs an http.Request for the ConfigPathsReplace method, with any body, and a specified content type
func NewConfigPathsReplaceRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/config/paths/replace/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), body)
if err != nil {
return nil, err
}
req.Header.Add("Content-Type", contentType)
return req, nil
}
// NewHlsMuxersGetRequest constructs an http.Request for the HlsMuxersGet method
func NewHlsMuxersGetRequest(server string, name string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/hlsmuxers/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewHlsMuxersListRequest constructs an http.Request for the HlsMuxersList method
func NewHlsMuxersListRequest(server string, params *HlsMuxersListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/hlsmuxers/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewHlssessionsGetRequest constructs an http.Request for the HlssessionsGet method
func NewHlssessionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/hlssessions/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewHlssessionsKickRequest constructs an http.Request for the HlssessionsKick method
func NewHlssessionsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/hlssessions/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewHlssessionsListRequest constructs an http.Request for the HlssessionsList method
func NewHlssessionsListRequest(server string, params *HlssessionsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/hlssessions/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewInfoRequest constructs an http.Request for the Info method
func NewInfoRequest(server string) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/info")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewMoqSessionsGetRequest constructs an http.Request for the MoqSessionsGet method
func NewMoqSessionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/moqsessions/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewMoqSessionsKickRequest constructs an http.Request for the MoqSessionsKick method
func NewMoqSessionsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/moqsessions/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewMoqSessionsListRequest constructs an http.Request for the MoqSessionsList method
func NewMoqSessionsListRequest(server string, params *MoqSessionsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/moqsessions/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewPathsGetRequest constructs an http.Request for the PathsGet method
func NewPathsGetRequest(server string, name string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/paths/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewPathsListRequest constructs an http.Request for the PathsList method
func NewPathsListRequest(server string, params *PathsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/paths/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRecordingsDeleteSegmentRequest constructs an http.Request for the RecordingsDeleteSegment method
func NewRecordingsDeleteSegmentRequest(server string, params *RecordingsDeleteSegmentParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/recordings/deletesegment")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "path", params.Path, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRecordingsGetRequest constructs an http.Request for the RecordingsGet method
func NewRecordingsGetRequest(server string, name string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/recordings/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRecordingsListRequest constructs an http.Request for the RecordingsList method
func NewRecordingsListRequest(server string, params *RecordingsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/recordings/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpConnectionsGetRequest constructs an http.Request for the RtmpConnectionsGet method
func NewRtmpConnectionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpconns/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpConnsKickRequest constructs an http.Request for the RtmpConnsKick method
func NewRtmpConnsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpconns/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpConnsListRequest constructs an http.Request for the RtmpConnsList method
func NewRtmpConnsListRequest(server string, params *RtmpConnsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpconns/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpsConnectionsGetRequest constructs an http.Request for the RtmpsConnectionsGet method
func NewRtmpsConnectionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpsconns/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpsConnsKickRequest constructs an http.Request for the RtmpsConnsKick method
func NewRtmpsConnsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpsconns/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtmpsConnsListRequest constructs an http.Request for the RtmpsConnsList method
func NewRtmpsConnsListRequest(server string, params *RtmpsConnsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtmpsconns/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspConnsGetRequest constructs an http.Request for the RtspConnsGet method
func NewRtspConnsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspconns/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspConnsListRequest constructs an http.Request for the RtspConnsList method
func NewRtspConnsListRequest(server string, params *RtspConnsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspconns/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspsConnsGetRequest constructs an http.Request for the RtspsConnsGet method
func NewRtspsConnsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspsconns/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspsConnsListRequest constructs an http.Request for the RtspsConnsList method
func NewRtspsConnsListRequest(server string, params *RtspsConnsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspsconns/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspSessionsGetRequest constructs an http.Request for the RtspSessionsGet method
func NewRtspSessionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspsessions/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspSessionsKickRequest constructs an http.Request for the RtspSessionsKick method
func NewRtspSessionsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspsessions/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspSessionsListRequest constructs an http.Request for the RtspSessionsList method
func NewRtspSessionsListRequest(server string, params *RtspSessionsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspsessions/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspsSessionsGetRequest constructs an http.Request for the RtspsSessionsGet method
func NewRtspsSessionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspssessions/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspsSessionsKickRequest constructs an http.Request for the RtspsSessionsKick method
func NewRtspsSessionsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspssessions/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewRtspsSessionsListRequest constructs an http.Request for the RtspsSessionsList method
func NewRtspsSessionsListRequest(server string, params *RtspsSessionsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/rtspssessions/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewSrtConnsGetRequest constructs an http.Request for the SrtConnsGet method
func NewSrtConnsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/srtconns/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewSrtConnsKickRequest constructs an http.Request for the SrtConnsKick method
func NewSrtConnsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/srtconns/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewSrtConnsListRequest constructs an http.Request for the SrtConnsList method
func NewSrtConnsListRequest(server string, params *SrtConnsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/srtconns/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewWebrtcSessionsGetRequest constructs an http.Request for the WebrtcSessionsGet method
func NewWebrtcSessionsGetRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/webrtcsessions/get/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewWebrtcSessionsKickRequest constructs an http.Request for the WebrtcSessionsKick method
func NewWebrtcSessionsKickRequest(server string, id string) (*http.Request, error) {
var err error
var pathParam0 string
pathParam0, err = runtime.StyleParamWithOptions("simple", false, "id", id, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""})
if err != nil {
return nil, err
}
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/webrtcsessions/kick/%s", pathParam0)
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
// NewWebrtcSessionsListRequest constructs an http.Request for the WebrtcSessionsList method
func NewWebrtcSessionsListRequest(server string, params *WebrtcSessionsListParams) (*http.Request, error) {
var err error
serverURL, err := url.Parse(server)
if err != nil {
return nil, err
}
operationPath := fmt.Sprintf("/v3/webrtcsessions/list")
if operationPath[0] == '/' {
operationPath = "." + operationPath
}
queryURL, err := serverURL.Parse(operationPath)
if err != nil {
return nil, err
}
if params != nil {
// queryValues collects non-styled parameters (passthrough, JSON)
// that are safe to round-trip through url.Values.Encode().
queryValues := queryURL.Query()
// rawQueryFragments collects pre-encoded query fragments from
// styled parameters, preserving literal commas as delimiters
// per the OpenAPI spec (e.g. "color=blue,black,brown").
var rawQueryFragments []string
if params.Page != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if params.ItemsPerPage != nil {
if queryFrag, err := runtime.StyleParamWithOptions("form", true, "itemsPerPage", *params.ItemsPerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil {
return nil, err
} else {
for _, qp := range strings.Split(queryFrag, "&") {
rawQueryFragments = append(rawQueryFragments, qp)
}
}
}
if encoded := queryValues.Encode(); encoded != "" {
rawQueryFragments = append(rawQueryFragments, encoded)
}
queryURL.RawQuery = strings.Join(rawQueryFragments, "&")
}
req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil)
if err != nil {
return nil, err
}
return req, nil
}
func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
for _, r := range c.RequestEditors {
if err := r(ctx, req); err != nil {
return err
}
}
for _, r := range additionalEditors {
if err := r(ctx, req); err != nil {
return err
}
}
return nil
}
// ClientWithResponses builds on ClientInterface to offer response payloads
type ClientWithResponses struct {
ClientInterface
}
// NewClientWithResponses creates a new ClientWithResponses, which wraps
// Client with return type handling
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
client, err := NewClient(server, opts...)
if err != nil {
return nil, err
}
return &ClientWithResponses{client}, nil
}
// WithBaseURL overrides the baseURL.
func WithBaseURL(baseURL string) ClientOption {
return func(c *Client) error {
newBaseURL, err := url.Parse(baseURL)
if err != nil {
return err
}
c.Server = newBaseURL.String()
return nil
}
}
// ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClientWithResponsesInterface interface {
// AuthJwksRefreshWithResponse Manually refreshes the JWT JWKS.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/auth/jwks/refresh (the `AuthJwksRefresh` operationId).
AuthJwksRefreshWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthJwksRefreshResponse, error)
// ConfigGlobalGetWithResponse returns the global configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/global/get (the `ConfigGlobalGet` operationId).
ConfigGlobalGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigGlobalGetResponse, error)
// ConfigGlobalSetWithBodyWithResponse patches the global configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
ConfigGlobalSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigGlobalSetResponse, error)
// ConfigGlobalSetWithResponse patches the global configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
ConfigGlobalSetWithResponse(ctx context.Context, body ConfigGlobalSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigGlobalSetResponse, error)
// ConfigPathDefaultsGetWithResponse returns the default path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/pathdefaults/get (the `ConfigPathDefaultsGet` operationId).
ConfigPathDefaultsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsGetResponse, error)
// ConfigPathDefaultsPatchWithBodyWithResponse patches the default path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
ConfigPathDefaultsPatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsPatchResponse, error)
// ConfigPathDefaultsPatchWithResponse patches the default path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
ConfigPathDefaultsPatchWithResponse(ctx context.Context, body ConfigPathDefaultsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsPatchResponse, error)
// ConfigPathsAddWithBodyWithResponse adds a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
ConfigPathsAddWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsAddResponse, error)
// ConfigPathsAddWithResponse adds a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
ConfigPathsAddWithResponse(ctx context.Context, name string, body ConfigPathsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsAddResponse, error)
// ConfigPathsDeleteWithResponse removes a path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v3/config/paths/delete/{name} (the `ConfigPathsDelete` operationId).
ConfigPathsDeleteWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ConfigPathsDeleteResponse, error)
// ConfigPathsGetWithResponse returns a path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/paths/get/{name} (the `ConfigPathsGet` operationId).
ConfigPathsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ConfigPathsGetResponse, error)
// ConfigPathsListWithResponse returns all path configurations.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/paths/list (the `ConfigPathsList` operationId).
ConfigPathsListWithResponse(ctx context.Context, params *ConfigPathsListParams, reqEditors ...RequestEditorFn) (*ConfigPathsListResponse, error)
// ConfigPathsPatchWithBodyWithResponse patches a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
ConfigPathsPatchWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsPatchResponse, error)
// ConfigPathsPatchWithResponse patches a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
ConfigPathsPatchWithResponse(ctx context.Context, name string, body ConfigPathsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsPatchResponse, error)
// ConfigPathsReplaceWithBodyWithResponse replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
ConfigPathsReplaceWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsReplaceResponse, error)
// ConfigPathsReplaceWithResponse replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
ConfigPathsReplaceWithResponse(ctx context.Context, name string, body ConfigPathsReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsReplaceResponse, error)
// HlsMuxersGetWithResponse returns a HLS muxer.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlsmuxers/get/{name} (the `HlsMuxersGet` operationId).
HlsMuxersGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*HlsMuxersGetResponse, error)
// HlsMuxersListWithResponse returns all HLS muxers.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlsmuxers/list (the `HlsMuxersList` operationId).
HlsMuxersListWithResponse(ctx context.Context, params *HlsMuxersListParams, reqEditors ...RequestEditorFn) (*HlsMuxersListResponse, error)
// HlssessionsGetWithResponse returns a HLS session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlssessions/get/{id} (the `HlssessionsGet` operationId).
HlssessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*HlssessionsGetResponse, error)
// HlssessionsKickWithResponse kicks out a HLS session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/hlssessions/kick/{id} (the `HlssessionsKick` operationId).
HlssessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*HlssessionsKickResponse, error)
// HlssessionsListWithResponse returns all HLS sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlssessions/list (the `HlssessionsList` operationId).
HlssessionsListWithResponse(ctx context.Context, params *HlssessionsListParams, reqEditors ...RequestEditorFn) (*HlssessionsListResponse, error)
// InfoWithResponse returns informations about the instance.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/info (the `Info` operationId).
InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InfoResponse, error)
// MoqSessionsGetWithResponse returns a MoQ session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/moqsessions/get/{id} (the `MoqSessionsGet` operationId).
MoqSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MoqSessionsGetResponse, error)
// MoqSessionsKickWithResponse kicks out a MoQ session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/moqsessions/kick/{id} (the `MoqSessionsKick` operationId).
MoqSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MoqSessionsKickResponse, error)
// MoqSessionsListWithResponse returns all MoQ sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/moqsessions/list (the `MoqSessionsList` operationId).
MoqSessionsListWithResponse(ctx context.Context, params *MoqSessionsListParams, reqEditors ...RequestEditorFn) (*MoqSessionsListResponse, error)
// PathsGetWithResponse returns a path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/paths/get/{name} (the `PathsGet` operationId).
PathsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PathsGetResponse, error)
// PathsListWithResponse returns all paths.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/paths/list (the `PathsList` operationId).
PathsListWithResponse(ctx context.Context, params *PathsListParams, reqEditors ...RequestEditorFn) (*PathsListResponse, error)
// RecordingsDeleteSegmentWithResponse deletes a recording segment.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v3/recordings/deletesegment (the `RecordingsDeleteSegment` operationId).
RecordingsDeleteSegmentWithResponse(ctx context.Context, params *RecordingsDeleteSegmentParams, reqEditors ...RequestEditorFn) (*RecordingsDeleteSegmentResponse, error)
// RecordingsGetWithResponse returns recordings of a path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/recordings/get/{name} (the `RecordingsGet` operationId).
RecordingsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*RecordingsGetResponse, error)
// RecordingsListWithResponse returns all recordings, splitted by path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/recordings/list (the `RecordingsList` operationId).
RecordingsListWithResponse(ctx context.Context, params *RecordingsListParams, reqEditors ...RequestEditorFn) (*RecordingsListResponse, error)
// RtmpConnectionsGetWithResponse returns a RTMP connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpconns/get/{id} (the `RtmpConnectionsGet` operationId).
RtmpConnectionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpConnectionsGetResponse, error)
// RtmpConnsKickWithResponse kicks out a RTMP connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtmpconns/kick/{id} (the `RtmpConnsKick` operationId).
RtmpConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpConnsKickResponse, error)
// RtmpConnsListWithResponse returns all RTMP connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpconns/list (the `RtmpConnsList` operationId).
RtmpConnsListWithResponse(ctx context.Context, params *RtmpConnsListParams, reqEditors ...RequestEditorFn) (*RtmpConnsListResponse, error)
// RtmpsConnectionsGetWithResponse returns a RTMPS connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpsconns/get/{id} (the `RtmpsConnectionsGet` operationId).
RtmpsConnectionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpsConnectionsGetResponse, error)
// RtmpsConnsKickWithResponse kicks out a RTMPS connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtmpsconns/kick/{id} (the `RtmpsConnsKick` operationId).
RtmpsConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpsConnsKickResponse, error)
// RtmpsConnsListWithResponse returns all RTMPS connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpsconns/list (the `RtmpsConnsList` operationId).
RtmpsConnsListWithResponse(ctx context.Context, params *RtmpsConnsListParams, reqEditors ...RequestEditorFn) (*RtmpsConnsListResponse, error)
// RtspConnsGetWithResponse returns a RTSP connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspconns/get/{id} (the `RtspConnsGet` operationId).
RtspConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspConnsGetResponse, error)
// RtspConnsListWithResponse returns all RTSP connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspconns/list (the `RtspConnsList` operationId).
RtspConnsListWithResponse(ctx context.Context, params *RtspConnsListParams, reqEditors ...RequestEditorFn) (*RtspConnsListResponse, error)
// RtspsConnsGetWithResponse returns a RTSPS connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsconns/get/{id} (the `RtspsConnsGet` operationId).
RtspsConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsConnsGetResponse, error)
// RtspsConnsListWithResponse returns all RTSPS connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsconns/list (the `RtspsConnsList` operationId).
RtspsConnsListWithResponse(ctx context.Context, params *RtspsConnsListParams, reqEditors ...RequestEditorFn) (*RtspsConnsListResponse, error)
// RtspSessionsGetWithResponse returns a RTSP session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsessions/get/{id} (the `RtspSessionsGet` operationId).
RtspSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspSessionsGetResponse, error)
// RtspSessionsKickWithResponse kicks out a RTSP session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtspsessions/kick/{id} (the `RtspSessionsKick` operationId).
RtspSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspSessionsKickResponse, error)
// RtspSessionsListWithResponse returns all RTSP sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsessions/list (the `RtspSessionsList` operationId).
RtspSessionsListWithResponse(ctx context.Context, params *RtspSessionsListParams, reqEditors ...RequestEditorFn) (*RtspSessionsListResponse, error)
// RtspsSessionsGetWithResponse returns a RTSPS session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspssessions/get/{id} (the `RtspsSessionsGet` operationId).
RtspsSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsSessionsGetResponse, error)
// RtspsSessionsKickWithResponse kicks out a RTSPS session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtspssessions/kick/{id} (the `RtspsSessionsKick` operationId).
RtspsSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsSessionsKickResponse, error)
// RtspsSessionsListWithResponse returns all RTSPS sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspssessions/list (the `RtspsSessionsList` operationId).
RtspsSessionsListWithResponse(ctx context.Context, params *RtspsSessionsListParams, reqEditors ...RequestEditorFn) (*RtspsSessionsListResponse, error)
// SrtConnsGetWithResponse returns a SRT connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/srtconns/get/{id} (the `SrtConnsGet` operationId).
SrtConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SrtConnsGetResponse, error)
// SrtConnsKickWithResponse kicks out a SRT connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/srtconns/kick/{id} (the `SrtConnsKick` operationId).
SrtConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SrtConnsKickResponse, error)
// SrtConnsListWithResponse returns all SRT connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/srtconns/list (the `SrtConnsList` operationId).
SrtConnsListWithResponse(ctx context.Context, params *SrtConnsListParams, reqEditors ...RequestEditorFn) (*SrtConnsListResponse, error)
// WebrtcSessionsGetWithResponse returns a WebRTC session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/webrtcsessions/get/{id} (the `WebrtcSessionsGet` operationId).
WebrtcSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebrtcSessionsGetResponse, error)
// WebrtcSessionsKickWithResponse kicks out a WebRTC session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/webrtcsessions/kick/{id} (the `WebrtcSessionsKick` operationId).
WebrtcSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebrtcSessionsKickResponse, error)
// WebrtcSessionsListWithResponse returns all WebRTC sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/webrtcsessions/list (the `WebrtcSessionsList` operationId).
WebrtcSessionsListWithResponse(ctx context.Context, params *WebrtcSessionsListParams, reqEditors ...RequestEditorFn) (*WebrtcSessionsListResponse, error)
}
type AuthJwksRefreshResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r AuthJwksRefreshResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r AuthJwksRefreshResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r AuthJwksRefreshResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r AuthJwksRefreshResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r AuthJwksRefreshResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r AuthJwksRefreshResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigGlobalGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *GlobalConf
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigGlobalGetResponse) GetJSON200() *GlobalConf {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigGlobalGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigGlobalGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigGlobalGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigGlobalGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigGlobalGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigGlobalGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigGlobalSetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigGlobalSetResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigGlobalSetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigGlobalSetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigGlobalSetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigGlobalSetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigGlobalSetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigGlobalSetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathDefaultsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PathConf
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathDefaultsGetResponse) GetJSON200() *PathConf {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathDefaultsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathDefaultsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathDefaultsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathDefaultsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathDefaultsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathDefaultsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathDefaultsPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathDefaultsPatchResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathDefaultsPatchResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathDefaultsPatchResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathDefaultsPatchResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathDefaultsPatchResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathDefaultsPatchResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathDefaultsPatchResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsAddResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsAddResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsAddResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsAddResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsAddResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsAddResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsAddResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsAddResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsDeleteResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsDeleteResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsDeleteResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r ConfigPathsDeleteResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsDeleteResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsDeleteResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsDeleteResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsDeleteResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsDeleteResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PathConf
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsGetResponse) GetJSON200() *PathConf {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r ConfigPathsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PathConfList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsListResponse) GetJSON200() *PathConfList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsPatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsPatchResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsPatchResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r ConfigPathsPatchResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsPatchResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsPatchResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsPatchResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsPatchResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsPatchResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type ConfigPathsReplaceResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r ConfigPathsReplaceResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r ConfigPathsReplaceResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r ConfigPathsReplaceResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r ConfigPathsReplaceResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r ConfigPathsReplaceResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r ConfigPathsReplaceResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r ConfigPathsReplaceResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r ConfigPathsReplaceResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type HlsMuxersGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HLSMuxer
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r HlsMuxersGetResponse) GetJSON200() *HLSMuxer {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r HlsMuxersGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r HlsMuxersGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r HlsMuxersGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r HlsMuxersGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r HlsMuxersGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r HlsMuxersGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r HlsMuxersGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type HlsMuxersListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HLSMuxerList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r HlsMuxersListResponse) GetJSON200() *HLSMuxerList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r HlsMuxersListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r HlsMuxersListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r HlsMuxersListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r HlsMuxersListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r HlsMuxersListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r HlsMuxersListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type HlssessionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HLSSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r HlssessionsGetResponse) GetJSON200() *HLSSession {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r HlssessionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r HlssessionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r HlssessionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r HlssessionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r HlssessionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r HlssessionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r HlssessionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type HlssessionsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r HlssessionsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r HlssessionsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r HlssessionsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r HlssessionsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r HlssessionsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r HlssessionsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r HlssessionsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r HlssessionsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type HlssessionsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *HLSSessionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r HlssessionsListResponse) GetJSON200() *HLSSessionList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r HlssessionsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r HlssessionsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r HlssessionsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r HlssessionsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r HlssessionsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r HlssessionsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type InfoResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Info
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r InfoResponse) GetJSON200() *Info {
return r.JSON200
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r InfoResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r InfoResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r InfoResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r InfoResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r InfoResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type MoqSessionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MoQSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r MoqSessionsGetResponse) GetJSON200() *MoQSession {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r MoqSessionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r MoqSessionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r MoqSessionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r MoqSessionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r MoqSessionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r MoqSessionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r MoqSessionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type MoqSessionsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r MoqSessionsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r MoqSessionsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r MoqSessionsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r MoqSessionsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r MoqSessionsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r MoqSessionsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r MoqSessionsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r MoqSessionsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type MoqSessionsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MoQSessionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r MoqSessionsListResponse) GetJSON200() *MoQSessionList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r MoqSessionsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r MoqSessionsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r MoqSessionsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r MoqSessionsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r MoqSessionsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r MoqSessionsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type PathsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Path
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r PathsGetResponse) GetJSON200() *Path {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r PathsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r PathsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r PathsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r PathsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r PathsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r PathsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r PathsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type PathsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PathList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r PathsListResponse) GetJSON200() *PathList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r PathsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r PathsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r PathsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r PathsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r PathsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r PathsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RecordingsDeleteSegmentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RecordingsDeleteSegmentResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RecordingsDeleteSegmentResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RecordingsDeleteSegmentResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RecordingsDeleteSegmentResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RecordingsDeleteSegmentResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RecordingsDeleteSegmentResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RecordingsDeleteSegmentResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RecordingsDeleteSegmentResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RecordingsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Recording
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RecordingsGetResponse) GetJSON200() *Recording {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RecordingsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RecordingsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RecordingsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RecordingsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RecordingsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RecordingsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RecordingsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RecordingsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RecordingList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RecordingsListResponse) GetJSON200() *RecordingList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RecordingsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RecordingsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RecordingsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RecordingsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RecordingsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RecordingsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpConnectionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTMPConn
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpConnectionsGetResponse) GetJSON200() *RTMPConn {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpConnectionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtmpConnectionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpConnectionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpConnectionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpConnectionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpConnectionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpConnectionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpConnsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpConnsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpConnsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtmpConnsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpConnsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpConnsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpConnsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpConnsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpConnsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpConnsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTMPConnList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpConnsListResponse) GetJSON200() *RTMPConnList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpConnsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpConnsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpConnsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpConnsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpConnsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpConnsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpsConnectionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTMPConn
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpsConnectionsGetResponse) GetJSON200() *RTMPConn {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpsConnectionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtmpsConnectionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpsConnectionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpsConnectionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpsConnectionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpsConnectionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpsConnectionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpsConnsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpsConnsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpsConnsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtmpsConnsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpsConnsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpsConnsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpsConnsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpsConnsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpsConnsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtmpsConnsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTMPConnList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtmpsConnsListResponse) GetJSON200() *RTMPConnList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtmpsConnsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtmpsConnsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtmpsConnsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtmpsConnsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtmpsConnsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtmpsConnsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspConnsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPConn
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspConnsGetResponse) GetJSON200() *RTSPConn {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspConnsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspConnsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspConnsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspConnsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspConnsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspConnsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspConnsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspConnsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPConnList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspConnsListResponse) GetJSON200() *RTSPConnList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspConnsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspConnsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspConnsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspConnsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspConnsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspConnsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspsConnsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPConn
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspsConnsGetResponse) GetJSON200() *RTSPConn {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspsConnsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspsConnsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspsConnsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspsConnsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspsConnsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspsConnsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspsConnsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspsConnsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPConnList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspsConnsListResponse) GetJSON200() *RTSPConnList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspsConnsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspsConnsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspsConnsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspsConnsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspsConnsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspsConnsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspSessionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspSessionsGetResponse) GetJSON200() *RTSPSession {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspSessionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspSessionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspSessionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspSessionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspSessionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspSessionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspSessionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspSessionsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspSessionsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspSessionsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspSessionsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspSessionsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspSessionsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspSessionsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspSessionsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspSessionsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspSessionsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPSessionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspSessionsListResponse) GetJSON200() *RTSPSessionList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspSessionsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspSessionsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspSessionsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspSessionsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspSessionsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspSessionsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspsSessionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspsSessionsGetResponse) GetJSON200() *RTSPSession {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspsSessionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspsSessionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspsSessionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspsSessionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspsSessionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspsSessionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspsSessionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspsSessionsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspsSessionsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspsSessionsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r RtspsSessionsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspsSessionsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspsSessionsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspsSessionsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspsSessionsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspsSessionsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type RtspsSessionsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *RTSPSessionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r RtspsSessionsListResponse) GetJSON200() *RTSPSessionList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r RtspsSessionsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r RtspsSessionsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r RtspsSessionsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r RtspsSessionsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r RtspsSessionsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r RtspsSessionsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type SrtConnsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SRTConn
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r SrtConnsGetResponse) GetJSON200() *SRTConn {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r SrtConnsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r SrtConnsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r SrtConnsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r SrtConnsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r SrtConnsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r SrtConnsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r SrtConnsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type SrtConnsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r SrtConnsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r SrtConnsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r SrtConnsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r SrtConnsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r SrtConnsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r SrtConnsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r SrtConnsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r SrtConnsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type SrtConnsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SRTConnList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r SrtConnsListResponse) GetJSON200() *SRTConnList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r SrtConnsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r SrtConnsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r SrtConnsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r SrtConnsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r SrtConnsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r SrtConnsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type WebrtcSessionsGetResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WebRTCSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r WebrtcSessionsGetResponse) GetJSON200() *WebRTCSession {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r WebrtcSessionsGetResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r WebrtcSessionsGetResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r WebrtcSessionsGetResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r WebrtcSessionsGetResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r WebrtcSessionsGetResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r WebrtcSessionsGetResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r WebrtcSessionsGetResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type WebrtcSessionsKickResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OK
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r WebrtcSessionsKickResponse) GetJSON200() *OK {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r WebrtcSessionsKickResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON404 returns the response for an HTTP 404 `application/json` response
func (r WebrtcSessionsKickResponse) GetJSON404() *Error {
return r.JSON404
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r WebrtcSessionsKickResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r WebrtcSessionsKickResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r WebrtcSessionsKickResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r WebrtcSessionsKickResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r WebrtcSessionsKickResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
type WebrtcSessionsListResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WebRTCSessionList
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *Error
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *Error
}
// GetJSON200 returns the response for an HTTP 200 `application/json` response
func (r WebrtcSessionsListResponse) GetJSON200() *WebRTCSessionList {
return r.JSON200
}
// GetJSON400 returns the response for an HTTP 400 `application/json` response
func (r WebrtcSessionsListResponse) GetJSON400() *Error {
return r.JSON400
}
// GetJSON500 returns the response for an HTTP 500 `application/json` response
func (r WebrtcSessionsListResponse) GetJSON500() *Error {
return r.JSON500
}
// GetBody returns the raw response body bytes
func (r WebrtcSessionsListResponse) GetBody() []byte {
return r.Body
}
// Status returns HTTPResponse.Status
func (r WebrtcSessionsListResponse) Status() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Status
}
return http.StatusText(0)
}
// StatusCode returns HTTPResponse.StatusCode
func (r WebrtcSessionsListResponse) StatusCode() int {
if r.HTTPResponse != nil {
return r.HTTPResponse.StatusCode
}
return 0
}
// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (r WebrtcSessionsListResponse) ContentType() string {
if r.HTTPResponse != nil {
return r.HTTPResponse.Header.Get("Content-Type")
}
return ""
}
// AuthJwksRefreshWithResponse Manually refreshes the JWT JWKS.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/auth/jwks/refresh (the `AuthJwksRefresh` operationId).
func (c *ClientWithResponses) AuthJwksRefreshWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthJwksRefreshResponse, error) {
rsp, err := c.AuthJwksRefresh(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseAuthJwksRefreshResponse(rsp)
}
// ConfigGlobalGetWithResponse returns the global configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/global/get (the `ConfigGlobalGet` operationId).
func (c *ClientWithResponses) ConfigGlobalGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigGlobalGetResponse, error) {
rsp, err := c.ConfigGlobalGet(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigGlobalGetResponse(rsp)
}
// ConfigGlobalSetWithBodyWithResponse patches the global configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
func (c *ClientWithResponses) ConfigGlobalSetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigGlobalSetResponse, error) {
rsp, err := c.ConfigGlobalSetWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigGlobalSetResponse(rsp)
}
// ConfigGlobalSetWithResponse patches the global configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/global/patch (the `ConfigGlobalSet` operationId).
func (c *ClientWithResponses) ConfigGlobalSetWithResponse(ctx context.Context, body ConfigGlobalSetJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigGlobalSetResponse, error) {
rsp, err := c.ConfigGlobalSet(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigGlobalSetResponse(rsp)
}
// ConfigPathDefaultsGetWithResponse returns the default path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/pathdefaults/get (the `ConfigPathDefaultsGet` operationId).
func (c *ClientWithResponses) ConfigPathDefaultsGetWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsGetResponse, error) {
rsp, err := c.ConfigPathDefaultsGet(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathDefaultsGetResponse(rsp)
}
// ConfigPathDefaultsPatchWithBodyWithResponse patches the default path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
func (c *ClientWithResponses) ConfigPathDefaultsPatchWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsPatchResponse, error) {
rsp, err := c.ConfigPathDefaultsPatchWithBody(ctx, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathDefaultsPatchResponse(rsp)
}
// ConfigPathDefaultsPatchWithResponse patches the default path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/pathdefaults/patch (the `ConfigPathDefaultsPatch` operationId).
func (c *ClientWithResponses) ConfigPathDefaultsPatchWithResponse(ctx context.Context, body ConfigPathDefaultsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathDefaultsPatchResponse, error) {
rsp, err := c.ConfigPathDefaultsPatch(ctx, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathDefaultsPatchResponse(rsp)
}
// ConfigPathsAddWithBodyWithResponse adds a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
func (c *ClientWithResponses) ConfigPathsAddWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsAddResponse, error) {
rsp, err := c.ConfigPathsAddWithBody(ctx, name, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsAddResponse(rsp)
}
// ConfigPathsAddWithResponse adds a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/add/{name} (the `ConfigPathsAdd` operationId).
func (c *ClientWithResponses) ConfigPathsAddWithResponse(ctx context.Context, name string, body ConfigPathsAddJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsAddResponse, error) {
rsp, err := c.ConfigPathsAdd(ctx, name, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsAddResponse(rsp)
}
// ConfigPathsDeleteWithResponse removes a path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v3/config/paths/delete/{name} (the `ConfigPathsDelete` operationId).
func (c *ClientWithResponses) ConfigPathsDeleteWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ConfigPathsDeleteResponse, error) {
rsp, err := c.ConfigPathsDelete(ctx, name, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsDeleteResponse(rsp)
}
// ConfigPathsGetWithResponse returns a path configuration.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/paths/get/{name} (the `ConfigPathsGet` operationId).
func (c *ClientWithResponses) ConfigPathsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*ConfigPathsGetResponse, error) {
rsp, err := c.ConfigPathsGet(ctx, name, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsGetResponse(rsp)
}
// ConfigPathsListWithResponse returns all path configurations.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/config/paths/list (the `ConfigPathsList` operationId).
func (c *ClientWithResponses) ConfigPathsListWithResponse(ctx context.Context, params *ConfigPathsListParams, reqEditors ...RequestEditorFn) (*ConfigPathsListResponse, error) {
rsp, err := c.ConfigPathsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsListResponse(rsp)
}
// ConfigPathsPatchWithBodyWithResponse patches a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
func (c *ClientWithResponses) ConfigPathsPatchWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsPatchResponse, error) {
rsp, err := c.ConfigPathsPatchWithBody(ctx, name, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsPatchResponse(rsp)
}
// ConfigPathsPatchWithResponse patches a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /v3/config/paths/patch/{name} (the `ConfigPathsPatch` operationId).
func (c *ClientWithResponses) ConfigPathsPatchWithResponse(ctx context.Context, name string, body ConfigPathsPatchJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsPatchResponse, error) {
rsp, err := c.ConfigPathsPatch(ctx, name, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsPatchResponse(rsp)
}
// ConfigPathsReplaceWithBodyWithResponse replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
func (c *ClientWithResponses) ConfigPathsReplaceWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConfigPathsReplaceResponse, error) {
rsp, err := c.ConfigPathsReplaceWithBody(ctx, name, contentType, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsReplaceResponse(rsp)
}
// ConfigPathsReplaceWithResponse replaces all values of a path configuration.
//
// all fields are optional.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/config/paths/replace/{name} (the `ConfigPathsReplace` operationId).
func (c *ClientWithResponses) ConfigPathsReplaceWithResponse(ctx context.Context, name string, body ConfigPathsReplaceJSONRequestBody, reqEditors ...RequestEditorFn) (*ConfigPathsReplaceResponse, error) {
rsp, err := c.ConfigPathsReplace(ctx, name, body, reqEditors...)
if err != nil {
return nil, err
}
return ParseConfigPathsReplaceResponse(rsp)
}
// HlsMuxersGetWithResponse returns a HLS muxer.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlsmuxers/get/{name} (the `HlsMuxersGet` operationId).
func (c *ClientWithResponses) HlsMuxersGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*HlsMuxersGetResponse, error) {
rsp, err := c.HlsMuxersGet(ctx, name, reqEditors...)
if err != nil {
return nil, err
}
return ParseHlsMuxersGetResponse(rsp)
}
// HlsMuxersListWithResponse returns all HLS muxers.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlsmuxers/list (the `HlsMuxersList` operationId).
func (c *ClientWithResponses) HlsMuxersListWithResponse(ctx context.Context, params *HlsMuxersListParams, reqEditors ...RequestEditorFn) (*HlsMuxersListResponse, error) {
rsp, err := c.HlsMuxersList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseHlsMuxersListResponse(rsp)
}
// HlssessionsGetWithResponse returns a HLS session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlssessions/get/{id} (the `HlssessionsGet` operationId).
func (c *ClientWithResponses) HlssessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*HlssessionsGetResponse, error) {
rsp, err := c.HlssessionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseHlssessionsGetResponse(rsp)
}
// HlssessionsKickWithResponse kicks out a HLS session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/hlssessions/kick/{id} (the `HlssessionsKick` operationId).
func (c *ClientWithResponses) HlssessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*HlssessionsKickResponse, error) {
rsp, err := c.HlssessionsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseHlssessionsKickResponse(rsp)
}
// HlssessionsListWithResponse returns all HLS sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/hlssessions/list (the `HlssessionsList` operationId).
func (c *ClientWithResponses) HlssessionsListWithResponse(ctx context.Context, params *HlssessionsListParams, reqEditors ...RequestEditorFn) (*HlssessionsListResponse, error) {
rsp, err := c.HlssessionsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseHlssessionsListResponse(rsp)
}
// InfoWithResponse returns informations about the instance.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/info (the `Info` operationId).
func (c *ClientWithResponses) InfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InfoResponse, error) {
rsp, err := c.Info(ctx, reqEditors...)
if err != nil {
return nil, err
}
return ParseInfoResponse(rsp)
}
// MoqSessionsGetWithResponse returns a MoQ session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/moqsessions/get/{id} (the `MoqSessionsGet` operationId).
func (c *ClientWithResponses) MoqSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MoqSessionsGetResponse, error) {
rsp, err := c.MoqSessionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseMoqSessionsGetResponse(rsp)
}
// MoqSessionsKickWithResponse kicks out a MoQ session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/moqsessions/kick/{id} (the `MoqSessionsKick` operationId).
func (c *ClientWithResponses) MoqSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*MoqSessionsKickResponse, error) {
rsp, err := c.MoqSessionsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseMoqSessionsKickResponse(rsp)
}
// MoqSessionsListWithResponse returns all MoQ sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/moqsessions/list (the `MoqSessionsList` operationId).
func (c *ClientWithResponses) MoqSessionsListWithResponse(ctx context.Context, params *MoqSessionsListParams, reqEditors ...RequestEditorFn) (*MoqSessionsListResponse, error) {
rsp, err := c.MoqSessionsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseMoqSessionsListResponse(rsp)
}
// PathsGetWithResponse returns a path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/paths/get/{name} (the `PathsGet` operationId).
func (c *ClientWithResponses) PathsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PathsGetResponse, error) {
rsp, err := c.PathsGet(ctx, name, reqEditors...)
if err != nil {
return nil, err
}
return ParsePathsGetResponse(rsp)
}
// PathsListWithResponse returns all paths.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/paths/list (the `PathsList` operationId).
func (c *ClientWithResponses) PathsListWithResponse(ctx context.Context, params *PathsListParams, reqEditors ...RequestEditorFn) (*PathsListResponse, error) {
rsp, err := c.PathsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParsePathsListResponse(rsp)
}
// RecordingsDeleteSegmentWithResponse deletes a recording segment.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v3/recordings/deletesegment (the `RecordingsDeleteSegment` operationId).
func (c *ClientWithResponses) RecordingsDeleteSegmentWithResponse(ctx context.Context, params *RecordingsDeleteSegmentParams, reqEditors ...RequestEditorFn) (*RecordingsDeleteSegmentResponse, error) {
rsp, err := c.RecordingsDeleteSegment(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRecordingsDeleteSegmentResponse(rsp)
}
// RecordingsGetWithResponse returns recordings of a path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/recordings/get/{name} (the `RecordingsGet` operationId).
func (c *ClientWithResponses) RecordingsGetWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*RecordingsGetResponse, error) {
rsp, err := c.RecordingsGet(ctx, name, reqEditors...)
if err != nil {
return nil, err
}
return ParseRecordingsGetResponse(rsp)
}
// RecordingsListWithResponse returns all recordings, splitted by path.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/recordings/list (the `RecordingsList` operationId).
func (c *ClientWithResponses) RecordingsListWithResponse(ctx context.Context, params *RecordingsListParams, reqEditors ...RequestEditorFn) (*RecordingsListResponse, error) {
rsp, err := c.RecordingsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRecordingsListResponse(rsp)
}
// RtmpConnectionsGetWithResponse returns a RTMP connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpconns/get/{id} (the `RtmpConnectionsGet` operationId).
func (c *ClientWithResponses) RtmpConnectionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpConnectionsGetResponse, error) {
rsp, err := c.RtmpConnectionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpConnectionsGetResponse(rsp)
}
// RtmpConnsKickWithResponse kicks out a RTMP connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtmpconns/kick/{id} (the `RtmpConnsKick` operationId).
func (c *ClientWithResponses) RtmpConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpConnsKickResponse, error) {
rsp, err := c.RtmpConnsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpConnsKickResponse(rsp)
}
// RtmpConnsListWithResponse returns all RTMP connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpconns/list (the `RtmpConnsList` operationId).
func (c *ClientWithResponses) RtmpConnsListWithResponse(ctx context.Context, params *RtmpConnsListParams, reqEditors ...RequestEditorFn) (*RtmpConnsListResponse, error) {
rsp, err := c.RtmpConnsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpConnsListResponse(rsp)
}
// RtmpsConnectionsGetWithResponse returns a RTMPS connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpsconns/get/{id} (the `RtmpsConnectionsGet` operationId).
func (c *ClientWithResponses) RtmpsConnectionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpsConnectionsGetResponse, error) {
rsp, err := c.RtmpsConnectionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpsConnectionsGetResponse(rsp)
}
// RtmpsConnsKickWithResponse kicks out a RTMPS connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtmpsconns/kick/{id} (the `RtmpsConnsKick` operationId).
func (c *ClientWithResponses) RtmpsConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtmpsConnsKickResponse, error) {
rsp, err := c.RtmpsConnsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpsConnsKickResponse(rsp)
}
// RtmpsConnsListWithResponse returns all RTMPS connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtmpsconns/list (the `RtmpsConnsList` operationId).
func (c *ClientWithResponses) RtmpsConnsListWithResponse(ctx context.Context, params *RtmpsConnsListParams, reqEditors ...RequestEditorFn) (*RtmpsConnsListResponse, error) {
rsp, err := c.RtmpsConnsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtmpsConnsListResponse(rsp)
}
// RtspConnsGetWithResponse returns a RTSP connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspconns/get/{id} (the `RtspConnsGet` operationId).
func (c *ClientWithResponses) RtspConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspConnsGetResponse, error) {
rsp, err := c.RtspConnsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspConnsGetResponse(rsp)
}
// RtspConnsListWithResponse returns all RTSP connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspconns/list (the `RtspConnsList` operationId).
func (c *ClientWithResponses) RtspConnsListWithResponse(ctx context.Context, params *RtspConnsListParams, reqEditors ...RequestEditorFn) (*RtspConnsListResponse, error) {
rsp, err := c.RtspConnsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspConnsListResponse(rsp)
}
// RtspsConnsGetWithResponse returns a RTSPS connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsconns/get/{id} (the `RtspsConnsGet` operationId).
func (c *ClientWithResponses) RtspsConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsConnsGetResponse, error) {
rsp, err := c.RtspsConnsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspsConnsGetResponse(rsp)
}
// RtspsConnsListWithResponse returns all RTSPS connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsconns/list (the `RtspsConnsList` operationId).
func (c *ClientWithResponses) RtspsConnsListWithResponse(ctx context.Context, params *RtspsConnsListParams, reqEditors ...RequestEditorFn) (*RtspsConnsListResponse, error) {
rsp, err := c.RtspsConnsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspsConnsListResponse(rsp)
}
// RtspSessionsGetWithResponse returns a RTSP session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsessions/get/{id} (the `RtspSessionsGet` operationId).
func (c *ClientWithResponses) RtspSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspSessionsGetResponse, error) {
rsp, err := c.RtspSessionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspSessionsGetResponse(rsp)
}
// RtspSessionsKickWithResponse kicks out a RTSP session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtspsessions/kick/{id} (the `RtspSessionsKick` operationId).
func (c *ClientWithResponses) RtspSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspSessionsKickResponse, error) {
rsp, err := c.RtspSessionsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspSessionsKickResponse(rsp)
}
// RtspSessionsListWithResponse returns all RTSP sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspsessions/list (the `RtspSessionsList` operationId).
func (c *ClientWithResponses) RtspSessionsListWithResponse(ctx context.Context, params *RtspSessionsListParams, reqEditors ...RequestEditorFn) (*RtspSessionsListResponse, error) {
rsp, err := c.RtspSessionsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspSessionsListResponse(rsp)
}
// RtspsSessionsGetWithResponse returns a RTSPS session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspssessions/get/{id} (the `RtspsSessionsGet` operationId).
func (c *ClientWithResponses) RtspsSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsSessionsGetResponse, error) {
rsp, err := c.RtspsSessionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspsSessionsGetResponse(rsp)
}
// RtspsSessionsKickWithResponse kicks out a RTSPS session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/rtspssessions/kick/{id} (the `RtspsSessionsKick` operationId).
func (c *ClientWithResponses) RtspsSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RtspsSessionsKickResponse, error) {
rsp, err := c.RtspsSessionsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspsSessionsKickResponse(rsp)
}
// RtspsSessionsListWithResponse returns all RTSPS sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/rtspssessions/list (the `RtspsSessionsList` operationId).
func (c *ClientWithResponses) RtspsSessionsListWithResponse(ctx context.Context, params *RtspsSessionsListParams, reqEditors ...RequestEditorFn) (*RtspsSessionsListResponse, error) {
rsp, err := c.RtspsSessionsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseRtspsSessionsListResponse(rsp)
}
// SrtConnsGetWithResponse returns a SRT connection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/srtconns/get/{id} (the `SrtConnsGet` operationId).
func (c *ClientWithResponses) SrtConnsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SrtConnsGetResponse, error) {
rsp, err := c.SrtConnsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseSrtConnsGetResponse(rsp)
}
// SrtConnsKickWithResponse kicks out a SRT connection from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/srtconns/kick/{id} (the `SrtConnsKick` operationId).
func (c *ClientWithResponses) SrtConnsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SrtConnsKickResponse, error) {
rsp, err := c.SrtConnsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseSrtConnsKickResponse(rsp)
}
// SrtConnsListWithResponse returns all SRT connections.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/srtconns/list (the `SrtConnsList` operationId).
func (c *ClientWithResponses) SrtConnsListWithResponse(ctx context.Context, params *SrtConnsListParams, reqEditors ...RequestEditorFn) (*SrtConnsListResponse, error) {
rsp, err := c.SrtConnsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseSrtConnsListResponse(rsp)
}
// WebrtcSessionsGetWithResponse returns a WebRTC session.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/webrtcsessions/get/{id} (the `WebrtcSessionsGet` operationId).
func (c *ClientWithResponses) WebrtcSessionsGetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebrtcSessionsGetResponse, error) {
rsp, err := c.WebrtcSessionsGet(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseWebrtcSessionsGetResponse(rsp)
}
// WebrtcSessionsKickWithResponse kicks out a WebRTC session from the server.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v3/webrtcsessions/kick/{id} (the `WebrtcSessionsKick` operationId).
func (c *ClientWithResponses) WebrtcSessionsKickWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*WebrtcSessionsKickResponse, error) {
rsp, err := c.WebrtcSessionsKick(ctx, id, reqEditors...)
if err != nil {
return nil, err
}
return ParseWebrtcSessionsKickResponse(rsp)
}
// WebrtcSessionsListWithResponse returns all WebRTC sessions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v3/webrtcsessions/list (the `WebrtcSessionsList` operationId).
func (c *ClientWithResponses) WebrtcSessionsListWithResponse(ctx context.Context, params *WebrtcSessionsListParams, reqEditors ...RequestEditorFn) (*WebrtcSessionsListResponse, error) {
rsp, err := c.WebrtcSessionsList(ctx, params, reqEditors...)
if err != nil {
return nil, err
}
return ParseWebrtcSessionsListResponse(rsp)
}
// ParseAuthJwksRefreshResponse parses an HTTP response from a AuthJwksRefreshWithResponse call
func ParseAuthJwksRefreshResponse(rsp *http.Response) (*AuthJwksRefreshResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &AuthJwksRefreshResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigGlobalGetResponse parses an HTTP response from a ConfigGlobalGetWithResponse call
func ParseConfigGlobalGetResponse(rsp *http.Response) (*ConfigGlobalGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigGlobalGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest GlobalConf
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigGlobalSetResponse parses an HTTP response from a ConfigGlobalSetWithResponse call
func ParseConfigGlobalSetResponse(rsp *http.Response) (*ConfigGlobalSetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigGlobalSetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathDefaultsGetResponse parses an HTTP response from a ConfigPathDefaultsGetWithResponse call
func ParseConfigPathDefaultsGetResponse(rsp *http.Response) (*ConfigPathDefaultsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathDefaultsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PathConf
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathDefaultsPatchResponse parses an HTTP response from a ConfigPathDefaultsPatchWithResponse call
func ParseConfigPathDefaultsPatchResponse(rsp *http.Response) (*ConfigPathDefaultsPatchResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathDefaultsPatchResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsAddResponse parses an HTTP response from a ConfigPathsAddWithResponse call
func ParseConfigPathsAddResponse(rsp *http.Response) (*ConfigPathsAddResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsAddResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsDeleteResponse parses an HTTP response from a ConfigPathsDeleteWithResponse call
func ParseConfigPathsDeleteResponse(rsp *http.Response) (*ConfigPathsDeleteResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsDeleteResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsGetResponse parses an HTTP response from a ConfigPathsGetWithResponse call
func ParseConfigPathsGetResponse(rsp *http.Response) (*ConfigPathsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PathConf
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsListResponse parses an HTTP response from a ConfigPathsListWithResponse call
func ParseConfigPathsListResponse(rsp *http.Response) (*ConfigPathsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PathConfList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsPatchResponse parses an HTTP response from a ConfigPathsPatchWithResponse call
func ParseConfigPathsPatchResponse(rsp *http.Response) (*ConfigPathsPatchResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsPatchResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseConfigPathsReplaceResponse parses an HTTP response from a ConfigPathsReplaceWithResponse call
func ParseConfigPathsReplaceResponse(rsp *http.Response) (*ConfigPathsReplaceResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &ConfigPathsReplaceResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseHlsMuxersGetResponse parses an HTTP response from a HlsMuxersGetWithResponse call
func ParseHlsMuxersGetResponse(rsp *http.Response) (*HlsMuxersGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &HlsMuxersGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest HLSMuxer
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseHlsMuxersListResponse parses an HTTP response from a HlsMuxersListWithResponse call
func ParseHlsMuxersListResponse(rsp *http.Response) (*HlsMuxersListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &HlsMuxersListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest HLSMuxerList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseHlssessionsGetResponse parses an HTTP response from a HlssessionsGetWithResponse call
func ParseHlssessionsGetResponse(rsp *http.Response) (*HlssessionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &HlssessionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest HLSSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseHlssessionsKickResponse parses an HTTP response from a HlssessionsKickWithResponse call
func ParseHlssessionsKickResponse(rsp *http.Response) (*HlssessionsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &HlssessionsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseHlssessionsListResponse parses an HTTP response from a HlssessionsListWithResponse call
func ParseHlssessionsListResponse(rsp *http.Response) (*HlssessionsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &HlssessionsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest HLSSessionList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseInfoResponse parses an HTTP response from a InfoWithResponse call
func ParseInfoResponse(rsp *http.Response) (*InfoResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &InfoResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest Info
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseMoqSessionsGetResponse parses an HTTP response from a MoqSessionsGetWithResponse call
func ParseMoqSessionsGetResponse(rsp *http.Response) (*MoqSessionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &MoqSessionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MoQSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseMoqSessionsKickResponse parses an HTTP response from a MoqSessionsKickWithResponse call
func ParseMoqSessionsKickResponse(rsp *http.Response) (*MoqSessionsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &MoqSessionsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseMoqSessionsListResponse parses an HTTP response from a MoqSessionsListWithResponse call
func ParseMoqSessionsListResponse(rsp *http.Response) (*MoqSessionsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &MoqSessionsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest MoQSessionList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParsePathsGetResponse parses an HTTP response from a PathsGetWithResponse call
func ParsePathsGetResponse(rsp *http.Response) (*PathsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &PathsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest Path
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParsePathsListResponse parses an HTTP response from a PathsListWithResponse call
func ParsePathsListResponse(rsp *http.Response) (*PathsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &PathsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest PathList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRecordingsDeleteSegmentResponse parses an HTTP response from a RecordingsDeleteSegmentWithResponse call
func ParseRecordingsDeleteSegmentResponse(rsp *http.Response) (*RecordingsDeleteSegmentResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RecordingsDeleteSegmentResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRecordingsGetResponse parses an HTTP response from a RecordingsGetWithResponse call
func ParseRecordingsGetResponse(rsp *http.Response) (*RecordingsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RecordingsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest Recording
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRecordingsListResponse parses an HTTP response from a RecordingsListWithResponse call
func ParseRecordingsListResponse(rsp *http.Response) (*RecordingsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RecordingsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RecordingList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpConnectionsGetResponse parses an HTTP response from a RtmpConnectionsGetWithResponse call
func ParseRtmpConnectionsGetResponse(rsp *http.Response) (*RtmpConnectionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpConnectionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTMPConn
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpConnsKickResponse parses an HTTP response from a RtmpConnsKickWithResponse call
func ParseRtmpConnsKickResponse(rsp *http.Response) (*RtmpConnsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpConnsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpConnsListResponse parses an HTTP response from a RtmpConnsListWithResponse call
func ParseRtmpConnsListResponse(rsp *http.Response) (*RtmpConnsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpConnsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTMPConnList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpsConnectionsGetResponse parses an HTTP response from a RtmpsConnectionsGetWithResponse call
func ParseRtmpsConnectionsGetResponse(rsp *http.Response) (*RtmpsConnectionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpsConnectionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTMPConn
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpsConnsKickResponse parses an HTTP response from a RtmpsConnsKickWithResponse call
func ParseRtmpsConnsKickResponse(rsp *http.Response) (*RtmpsConnsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpsConnsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtmpsConnsListResponse parses an HTTP response from a RtmpsConnsListWithResponse call
func ParseRtmpsConnsListResponse(rsp *http.Response) (*RtmpsConnsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtmpsConnsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTMPConnList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspConnsGetResponse parses an HTTP response from a RtspConnsGetWithResponse call
func ParseRtspConnsGetResponse(rsp *http.Response) (*RtspConnsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspConnsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPConn
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspConnsListResponse parses an HTTP response from a RtspConnsListWithResponse call
func ParseRtspConnsListResponse(rsp *http.Response) (*RtspConnsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspConnsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPConnList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspsConnsGetResponse parses an HTTP response from a RtspsConnsGetWithResponse call
func ParseRtspsConnsGetResponse(rsp *http.Response) (*RtspsConnsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspsConnsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPConn
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspsConnsListResponse parses an HTTP response from a RtspsConnsListWithResponse call
func ParseRtspsConnsListResponse(rsp *http.Response) (*RtspsConnsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspsConnsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPConnList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspSessionsGetResponse parses an HTTP response from a RtspSessionsGetWithResponse call
func ParseRtspSessionsGetResponse(rsp *http.Response) (*RtspSessionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspSessionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspSessionsKickResponse parses an HTTP response from a RtspSessionsKickWithResponse call
func ParseRtspSessionsKickResponse(rsp *http.Response) (*RtspSessionsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspSessionsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspSessionsListResponse parses an HTTP response from a RtspSessionsListWithResponse call
func ParseRtspSessionsListResponse(rsp *http.Response) (*RtspSessionsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspSessionsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPSessionList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspsSessionsGetResponse parses an HTTP response from a RtspsSessionsGetWithResponse call
func ParseRtspsSessionsGetResponse(rsp *http.Response) (*RtspsSessionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspsSessionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspsSessionsKickResponse parses an HTTP response from a RtspsSessionsKickWithResponse call
func ParseRtspsSessionsKickResponse(rsp *http.Response) (*RtspsSessionsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspsSessionsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseRtspsSessionsListResponse parses an HTTP response from a RtspsSessionsListWithResponse call
func ParseRtspsSessionsListResponse(rsp *http.Response) (*RtspsSessionsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &RtspsSessionsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest RTSPSessionList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseSrtConnsGetResponse parses an HTTP response from a SrtConnsGetWithResponse call
func ParseSrtConnsGetResponse(rsp *http.Response) (*SrtConnsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &SrtConnsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest SRTConn
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseSrtConnsKickResponse parses an HTTP response from a SrtConnsKickWithResponse call
func ParseSrtConnsKickResponse(rsp *http.Response) (*SrtConnsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &SrtConnsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseSrtConnsListResponse parses an HTTP response from a SrtConnsListWithResponse call
func ParseSrtConnsListResponse(rsp *http.Response) (*SrtConnsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &SrtConnsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest SRTConnList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseWebrtcSessionsGetResponse parses an HTTP response from a WebrtcSessionsGetWithResponse call
func ParseWebrtcSessionsGetResponse(rsp *http.Response) (*WebrtcSessionsGetResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &WebrtcSessionsGetResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest WebRTCSession
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseWebrtcSessionsKickResponse parses an HTTP response from a WebrtcSessionsKickWithResponse call
func ParseWebrtcSessionsKickResponse(rsp *http.Response) (*WebrtcSessionsKickResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &WebrtcSessionsKickResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest OK
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON404 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}
// ParseWebrtcSessionsListResponse parses an HTTP response from a WebrtcSessionsListWithResponse call
func ParseWebrtcSessionsListResponse(rsp *http.Response) (*WebrtcSessionsListResponse, error) {
bodyBytes, err := io.ReadAll(rsp.Body)
defer func() { _ = rsp.Body.Close() }()
if err != nil {
return nil, err
}
response := &WebrtcSessionsListResponse{
Body: bodyBytes,
HTTPResponse: rsp,
}
switch {
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
var dest WebRTCSessionList
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON200 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON400 = &dest
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500:
var dest Error
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
return nil, err
}
response.JSON500 = &dest
}
return response, nil
}