live

package module
v0.0.0-...-f18e262 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: MIT Imports: 20 Imported by: 0

README

Go API client for live

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 2.0
  • Package version: 2.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import live "github.com/hamidfzm/arvancloud-go/live"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), live.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), live.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), live.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), live.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://napi.arvancloud.ir/live/2.0

Class Method HTTP request Description
AnalyticsAPI AnalyticsPlayCountGet Get /analytics/play-count Return appropriate play count
AnalyticsAPI AnalyticsTrafficGet Get /analytics/traffic Return appropriate traffic
AnalyticsAPI AnalyticsWatchTimeGet Get /analytics/watch-time Return appropriate watch time
DomainAPI DomainGet Get /domain Return User Domain.
DomainAPI DomainPost Post /domain Set subdomain for LIVE service.
GeneralReportAPI ReportGeoGet Get /report/geo Return Domain Geo Report.
GeneralReportAPI ReportStatisticsGet Get /report/statistics Return Domain statistics report.
GeneralReportAPI ReportTrafficsGet Get /report/traffics Return Domain Traffic.
GeneralReportAPI ReportUserAgentGet Get /report/user-agent Return User Agent.
GeneralReportAPI ReportVisitorsGet Get /report/visitors Return Domain Visitors.
StreamAPI StreamsGet Get /streams Return all streams.
StreamAPI StreamsPost Post /streams Store a newly created stream.
StreamAPI StreamsStreamDelete Delete /streams/{stream} Remove the specified stream.
StreamAPI StreamsStreamGet Get /streams/{stream} Return the specified stream.
StreamAPI StreamsStreamPatch Patch /streams/{stream} Update the specified stream.
StreamAPI StreamsStreamStartRecordGet Get /streams/{stream}/start-record Start record live stream.
StreamAPI StreamsStreamStopRecordGet Get /streams/{stream}/stop-record Stop record live stream.
WatermarkAPI WatermarksGet Get /watermarks Return all watermarks.
WatermarkAPI WatermarksPost Post /watermarks Store a newly created Watermark.
WatermarkAPI WatermarksWatermarkDelete Delete /watermarks/{watermark} Remove the specified watermark.
WatermarkAPI WatermarksWatermarkGet Get /watermarks/{watermark} Return the specified watermark.
WatermarkAPI WatermarksWatermarkPatch Patch /watermarks/{watermark} Update the specified watermark.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

api_key
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		sw.ContextAPIKeys,
		map[string]sw.APIKey{
			"Authorization": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	AnalyticsAPI *AnalyticsAPIService

	DomainAPI *DomainAPIService

	GeneralReportAPI *GeneralReportAPIService

	StreamAPI *StreamAPIService

	WatermarkAPI *WatermarkAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the Arvan LIVE API v2.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AnalyticsAPIService

type AnalyticsAPIService service

AnalyticsAPIService AnalyticsAPI service

func (*AnalyticsAPIService) AnalyticsPlayCountGet

AnalyticsPlayCountGet Return appropriate play count

Interval constraint

  • Max 'daily' : 30d

  • Max 'hourly' : 2d

  • Max 'minutely' : 2h <br/> Period constraint

  • Max : 30d <br/> Since and until constraint

  • Max of date format : 30d

  • Max of date-time format : 2d

  • The format of both should be the same either as date-time or as date. <br/> Aggregate constraint

  • It should be used with group_by or interval.

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnalyticsPlayCountGetRequest

func (*AnalyticsAPIService) AnalyticsPlayCountGetExecute

func (a *AnalyticsAPIService) AnalyticsPlayCountGetExecute(r ApiAnalyticsPlayCountGetRequest) (*http.Response, error)

Execute executes the request

func (*AnalyticsAPIService) AnalyticsTrafficGet

AnalyticsTrafficGet Return appropriate traffic

Interval constraint

  • Max 'daily' : 30d

  • Max 'hourly' : 2d

  • Max 'minutely' : 2h <br/> Period constraint

  • Max : 30d <br/> Since and until constraint

  • Max of date format : 30d

  • Max of date-time format : 2d

  • The format of both should be the same either as date-time or as date. <br/> Aggregate constraint

  • It should be used with group_by or interval.

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnalyticsTrafficGetRequest

func (*AnalyticsAPIService) AnalyticsTrafficGetExecute

func (a *AnalyticsAPIService) AnalyticsTrafficGetExecute(r ApiAnalyticsTrafficGetRequest) (*http.Response, error)

Execute executes the request

func (*AnalyticsAPIService) AnalyticsWatchTimeGet

AnalyticsWatchTimeGet Return appropriate watch time

Interval constraint

  • Max 'daily' : 30d

  • Max 'hourly' : 2d

  • Max 'minutely' : 2h <br/> Period constraint

  • Max : 30d <br/> Since and until constraint

  • Max of date format : 30d

  • Max of date-time format : 2d

  • The format of both should be the same either as date-time or as date. <br/> Aggregate constraint

  • It should be used with group_by or interval.

    @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return ApiAnalyticsWatchTimeGetRequest

func (*AnalyticsAPIService) AnalyticsWatchTimeGetExecute

func (a *AnalyticsAPIService) AnalyticsWatchTimeGetExecute(r ApiAnalyticsWatchTimeGetRequest) (*http.Response, error)

Execute executes the request

type ApiAnalyticsPlayCountGetRequest

type ApiAnalyticsPlayCountGetRequest struct {
	ApiService *AnalyticsAPIService
	// contains filtered or unexported fields
}

func (ApiAnalyticsPlayCountGetRequest) Aggregate

Enum: &#39;SUM&#39; &#39;AVG&#39; &#39;MIN&#39; &#39;MAX&#39; &#39;COUNT&#39;

func (ApiAnalyticsPlayCountGetRequest) Execute

func (ApiAnalyticsPlayCountGetRequest) FiltersAsn

Filter by asn numbers

func (ApiAnalyticsPlayCountGetRequest) FiltersClientFamily

func (r ApiAnalyticsPlayCountGetRequest) FiltersClientFamily(filtersClientFamily []string) ApiAnalyticsPlayCountGetRequest

Filter by client family

func (ApiAnalyticsPlayCountGetRequest) FiltersClientType

func (r ApiAnalyticsPlayCountGetRequest) FiltersClientType(filtersClientType []string) ApiAnalyticsPlayCountGetRequest

Filter by client type

func (ApiAnalyticsPlayCountGetRequest) FiltersCountry

func (r ApiAnalyticsPlayCountGetRequest) FiltersCountry(filtersCountry []string) ApiAnalyticsPlayCountGetRequest

Filter by country IDs

func (ApiAnalyticsPlayCountGetRequest) FiltersDeviceBrand

func (r ApiAnalyticsPlayCountGetRequest) FiltersDeviceBrand(filtersDeviceBrand []string) ApiAnalyticsPlayCountGetRequest

Filter by device brand

func (ApiAnalyticsPlayCountGetRequest) FiltersDeviceModel

func (r ApiAnalyticsPlayCountGetRequest) FiltersDeviceModel(filtersDeviceModel []string) ApiAnalyticsPlayCountGetRequest

Filter by device model

func (ApiAnalyticsPlayCountGetRequest) FiltersDeviceType

func (r ApiAnalyticsPlayCountGetRequest) FiltersDeviceType(filtersDeviceType []string) ApiAnalyticsPlayCountGetRequest

Filter by device type

func (ApiAnalyticsPlayCountGetRequest) FiltersOsFamily

func (r ApiAnalyticsPlayCountGetRequest) FiltersOsFamily(filtersOsFamily []string) ApiAnalyticsPlayCountGetRequest

Filter by os family

func (ApiAnalyticsPlayCountGetRequest) FiltersResolution

func (r ApiAnalyticsPlayCountGetRequest) FiltersResolution(filtersResolution []string) ApiAnalyticsPlayCountGetRequest

Filter by resolution

func (ApiAnalyticsPlayCountGetRequest) FiltersStream

Filter by stream IDs

func (ApiAnalyticsPlayCountGetRequest) GroupBy

Enum: &#39;channel&#39; &#39;video&#39; &#39;country&#39; &#39;asn&#39;

func (ApiAnalyticsPlayCountGetRequest) Interval

Enum: &#39;minutely&#39; &#39;hourly&#39; &#39;daily&#39;

func (ApiAnalyticsPlayCountGetRequest) Limit

Limit the number of entities

func (ApiAnalyticsPlayCountGetRequest) Offset

Define offset of entities

func (ApiAnalyticsPlayCountGetRequest) OrderByName

Enum: watch_time

func (ApiAnalyticsPlayCountGetRequest) OrderByOrder

Enum: &#39;ASC&#39; &#39;DESC&#39;

func (ApiAnalyticsPlayCountGetRequest) Period

Enum: &#39;1h&#39; &#39;2h&#39; &#39;3h&#39; &#39;6h&#39; &#39;12h&#39; &#39;24h&#39; &#39;3d&#39; &#39;7d&#39; &#39;14d&#39; &#39;1m&#39;

func (ApiAnalyticsPlayCountGetRequest) Since

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

func (ApiAnalyticsPlayCountGetRequest) Timezone

Timezone ex: Asia/Tehran

func (ApiAnalyticsPlayCountGetRequest) Until

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

type ApiAnalyticsTrafficGetRequest

type ApiAnalyticsTrafficGetRequest struct {
	ApiService *AnalyticsAPIService
	// contains filtered or unexported fields
}

func (ApiAnalyticsTrafficGetRequest) Aggregate

Enum: &#39;SUM&#39; &#39;AVG&#39; &#39;MIN&#39; &#39;MAX&#39; &#39;COUNT&#39;

func (ApiAnalyticsTrafficGetRequest) Execute

func (ApiAnalyticsTrafficGetRequest) FiltersAsn

Filter by asn numbers

func (ApiAnalyticsTrafficGetRequest) FiltersClientFamily

func (r ApiAnalyticsTrafficGetRequest) FiltersClientFamily(filtersClientFamily []string) ApiAnalyticsTrafficGetRequest

Filter by client family

func (ApiAnalyticsTrafficGetRequest) FiltersClientType

func (r ApiAnalyticsTrafficGetRequest) FiltersClientType(filtersClientType []string) ApiAnalyticsTrafficGetRequest

Filter by client type

func (ApiAnalyticsTrafficGetRequest) FiltersCountry

func (r ApiAnalyticsTrafficGetRequest) FiltersCountry(filtersCountry []string) ApiAnalyticsTrafficGetRequest

Filter by country IDs

func (ApiAnalyticsTrafficGetRequest) FiltersDeviceBrand

func (r ApiAnalyticsTrafficGetRequest) FiltersDeviceBrand(filtersDeviceBrand []string) ApiAnalyticsTrafficGetRequest

Filter by device brand

func (ApiAnalyticsTrafficGetRequest) FiltersDeviceModel

func (r ApiAnalyticsTrafficGetRequest) FiltersDeviceModel(filtersDeviceModel []string) ApiAnalyticsTrafficGetRequest

Filter by device model

func (ApiAnalyticsTrafficGetRequest) FiltersDeviceType

func (r ApiAnalyticsTrafficGetRequest) FiltersDeviceType(filtersDeviceType []string) ApiAnalyticsTrafficGetRequest

Filter by device type

func (ApiAnalyticsTrafficGetRequest) FiltersOsFamily

func (r ApiAnalyticsTrafficGetRequest) FiltersOsFamily(filtersOsFamily []string) ApiAnalyticsTrafficGetRequest

Filter by os family

func (ApiAnalyticsTrafficGetRequest) FiltersResolution

func (r ApiAnalyticsTrafficGetRequest) FiltersResolution(filtersResolution []string) ApiAnalyticsTrafficGetRequest

Filter by resolution

func (ApiAnalyticsTrafficGetRequest) FiltersStream

func (r ApiAnalyticsTrafficGetRequest) FiltersStream(filtersStream []string) ApiAnalyticsTrafficGetRequest

Filter by stream IDs

func (ApiAnalyticsTrafficGetRequest) GroupBy

Enum: &#39;channel&#39; &#39;video&#39; &#39;country&#39; &#39;asn&#39; &#39;referer&#39;

func (ApiAnalyticsTrafficGetRequest) Interval

Enum: &#39;minutely&#39; &#39;hourly&#39; &#39;daily&#39;

func (ApiAnalyticsTrafficGetRequest) Limit

Limit the number of entities

func (ApiAnalyticsTrafficGetRequest) Offset

Define offset of entities

func (ApiAnalyticsTrafficGetRequest) OrderByName

Enum: traffic

func (ApiAnalyticsTrafficGetRequest) OrderByOrder

Enum: &#39;ASC&#39; &#39;DESC&#39;

func (ApiAnalyticsTrafficGetRequest) Period

Enum: &#39;1h&#39; &#39;2h&#39; &#39;3h&#39; &#39;6h&#39; &#39;12h&#39; &#39;24h&#39; &#39;3d&#39; &#39;7d&#39; &#39;14d&#39; &#39;1m&#39;

func (ApiAnalyticsTrafficGetRequest) Since

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

func (ApiAnalyticsTrafficGetRequest) Timezone

Timezone ex: Asia/Tehran

func (ApiAnalyticsTrafficGetRequest) Until

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

type ApiAnalyticsWatchTimeGetRequest

type ApiAnalyticsWatchTimeGetRequest struct {
	ApiService *AnalyticsAPIService
	// contains filtered or unexported fields
}

func (ApiAnalyticsWatchTimeGetRequest) Aggregate

Enum: &#39;SUM&#39; &#39;AVG&#39; &#39;MIN&#39; &#39;MAX&#39; &#39;COUNT&#39;

func (ApiAnalyticsWatchTimeGetRequest) Execute

func (ApiAnalyticsWatchTimeGetRequest) FiltersAsn

Filter by asn numbers

func (ApiAnalyticsWatchTimeGetRequest) FiltersClientFamily

func (r ApiAnalyticsWatchTimeGetRequest) FiltersClientFamily(filtersClientFamily []string) ApiAnalyticsWatchTimeGetRequest

Filter by client family

func (ApiAnalyticsWatchTimeGetRequest) FiltersClientType

func (r ApiAnalyticsWatchTimeGetRequest) FiltersClientType(filtersClientType []string) ApiAnalyticsWatchTimeGetRequest

Filter by client type

func (ApiAnalyticsWatchTimeGetRequest) FiltersCountry

func (r ApiAnalyticsWatchTimeGetRequest) FiltersCountry(filtersCountry []string) ApiAnalyticsWatchTimeGetRequest

Filter by country IDs

func (ApiAnalyticsWatchTimeGetRequest) FiltersDeviceBrand

func (r ApiAnalyticsWatchTimeGetRequest) FiltersDeviceBrand(filtersDeviceBrand []string) ApiAnalyticsWatchTimeGetRequest

Filter by device brand

func (ApiAnalyticsWatchTimeGetRequest) FiltersDeviceModel

func (r ApiAnalyticsWatchTimeGetRequest) FiltersDeviceModel(filtersDeviceModel []string) ApiAnalyticsWatchTimeGetRequest

Filter by device model

func (ApiAnalyticsWatchTimeGetRequest) FiltersDeviceType

func (r ApiAnalyticsWatchTimeGetRequest) FiltersDeviceType(filtersDeviceType []string) ApiAnalyticsWatchTimeGetRequest

Filter by device type

func (ApiAnalyticsWatchTimeGetRequest) FiltersOsFamily

func (r ApiAnalyticsWatchTimeGetRequest) FiltersOsFamily(filtersOsFamily []string) ApiAnalyticsWatchTimeGetRequest

Filter by os family

func (ApiAnalyticsWatchTimeGetRequest) FiltersResolution

func (r ApiAnalyticsWatchTimeGetRequest) FiltersResolution(filtersResolution []string) ApiAnalyticsWatchTimeGetRequest

Filter by resolution

func (ApiAnalyticsWatchTimeGetRequest) FiltersStream

Filter by stream IDs

func (ApiAnalyticsWatchTimeGetRequest) GroupBy

Enum: &#39;channel&#39; &#39;video&#39; &#39;country&#39; &#39;asn&#39;

func (ApiAnalyticsWatchTimeGetRequest) Interval

Enum: &#39;minutely&#39; &#39;hourly&#39; &#39;daily&#39;

func (ApiAnalyticsWatchTimeGetRequest) Limit

Limit the number of entities

func (ApiAnalyticsWatchTimeGetRequest) Offset

Define offset of entities

func (ApiAnalyticsWatchTimeGetRequest) OrderByName

Enum: watch_time

func (ApiAnalyticsWatchTimeGetRequest) OrderByOrder

Enum: &#39;ASC&#39; &#39;DESC&#39;

func (ApiAnalyticsWatchTimeGetRequest) Period

Enum: &#39;1h&#39; &#39;2h&#39; &#39;3h&#39; &#39;6h&#39; &#39;12h&#39; &#39;24h&#39; &#39;3d&#39; &#39;7d&#39; &#39;14d&#39; &#39;1m&#39;

func (ApiAnalyticsWatchTimeGetRequest) Since

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

func (ApiAnalyticsWatchTimeGetRequest) Timezone

Timezone ex: Asia/Tehran

func (ApiAnalyticsWatchTimeGetRequest) Until

string &lt;date-time:Y-m-d H:i&gt;|&lt;date: Y-m-d&gt;

type ApiDomainGetRequest

type ApiDomainGetRequest struct {
	ApiService *DomainAPIService
	// contains filtered or unexported fields
}

func (ApiDomainGetRequest) Execute

func (r ApiDomainGetRequest) Execute() (*http.Response, error)

type ApiDomainPostRequest

type ApiDomainPostRequest struct {
	ApiService *DomainAPIService
	// contains filtered or unexported fields
}

func (ApiDomainPostRequest) Body

func (ApiDomainPostRequest) Execute

func (r ApiDomainPostRequest) Execute() (*http.Response, error)

type ApiReportGeoGetRequest

type ApiReportGeoGetRequest struct {
	ApiService *GeneralReportAPIService
	// contains filtered or unexported fields
}

func (ApiReportGeoGetRequest) Execute

func (r ApiReportGeoGetRequest) Execute() (*http.Response, error)

func (ApiReportGeoGetRequest) Period

Values: 1h,3h,6h,12h,24h,7d,30d

type ApiReportStatisticsGetRequest

type ApiReportStatisticsGetRequest struct {
	ApiService *GeneralReportAPIService
	// contains filtered or unexported fields
}

func (ApiReportStatisticsGetRequest) Execute

type ApiReportTrafficsGetRequest

type ApiReportTrafficsGetRequest struct {
	ApiService *GeneralReportAPIService
	// contains filtered or unexported fields
}

func (ApiReportTrafficsGetRequest) Execute

func (ApiReportTrafficsGetRequest) Period

Values: 1h,3h,6h,12h,24h,7d,30d

type ApiReportUserAgentGetRequest

type ApiReportUserAgentGetRequest struct {
	ApiService *GeneralReportAPIService
	// contains filtered or unexported fields
}

func (ApiReportUserAgentGetRequest) Execute

func (ApiReportUserAgentGetRequest) Period

Values: 1h,3h,6h,12h,24h,7d,30d

type ApiReportVisitorsGetRequest

type ApiReportVisitorsGetRequest struct {
	ApiService *GeneralReportAPIService
	// contains filtered or unexported fields
}

func (ApiReportVisitorsGetRequest) Execute

func (ApiReportVisitorsGetRequest) Period

Values: 1h,3h,6h,12h,24h,7d,30d

type ApiStreamsGetRequest

type ApiStreamsGetRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsGetRequest) Execute

func (r ApiStreamsGetRequest) Execute() (*http.Response, error)

func (ApiStreamsGetRequest) Filter

Filter result

func (ApiStreamsGetRequest) Page

Page number

func (ApiStreamsGetRequest) PerPage

func (r ApiStreamsGetRequest) PerPage(perPage int32) ApiStreamsGetRequest

Page limit for query

func (ApiStreamsGetRequest) SecureExpireTime

func (r ApiStreamsGetRequest) SecureExpireTime(secureExpireTime int32) ApiStreamsGetRequest

The Unix Timestamp for expire secure links. * If stream is secure default is 24 hours later from now

func (ApiStreamsGetRequest) SecureIp

func (r ApiStreamsGetRequest) SecureIp(secureIp string) ApiStreamsGetRequest

The IP address for generate secure links for. If stream is secure default is request IP

type ApiStreamsPostRequest

type ApiStreamsPostRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsPostRequest) Body

Stream details

func (ApiStreamsPostRequest) Execute

func (r ApiStreamsPostRequest) Execute() (*http.Response, error)

type ApiStreamsStreamDeleteRequest

type ApiStreamsStreamDeleteRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsStreamDeleteRequest) Execute

type ApiStreamsStreamGetRequest

type ApiStreamsStreamGetRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsStreamGetRequest) Execute

func (ApiStreamsStreamGetRequest) SecureExpireTime

func (r ApiStreamsStreamGetRequest) SecureExpireTime(secureExpireTime int32) ApiStreamsStreamGetRequest

The Unix Timestamp for expire secure links. * If stream is secure default is 24 hours later from now

func (ApiStreamsStreamGetRequest) SecureIp

The IP address for generate secure links for. If stream is secure default is request IP

type ApiStreamsStreamPatchRequest

type ApiStreamsStreamPatchRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsStreamPatchRequest) Body

Stream details

func (ApiStreamsStreamPatchRequest) Execute

type ApiStreamsStreamStartRecordGetRequest

type ApiStreamsStreamStartRecordGetRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsStreamStartRecordGetRequest) Execute

type ApiStreamsStreamStopRecordGetRequest

type ApiStreamsStreamStopRecordGetRequest struct {
	ApiService *StreamAPIService
	// contains filtered or unexported fields
}

func (ApiStreamsStreamStopRecordGetRequest) Execute

type ApiWatermarksGetRequest

type ApiWatermarksGetRequest struct {
	ApiService *WatermarkAPIService
	// contains filtered or unexported fields
}

func (ApiWatermarksGetRequest) Execute

func (r ApiWatermarksGetRequest) Execute() (*http.Response, error)

func (ApiWatermarksGetRequest) Filter

Filter result

func (ApiWatermarksGetRequest) Page

Page number

func (ApiWatermarksGetRequest) PerPage

Page limit for query

type ApiWatermarksPostRequest

type ApiWatermarksPostRequest struct {
	ApiService *WatermarkAPIService
	// contains filtered or unexported fields
}

func (ApiWatermarksPostRequest) Description

func (r ApiWatermarksPostRequest) Description(description string) ApiWatermarksPostRequest

Description of watermark

func (ApiWatermarksPostRequest) Execute

func (r ApiWatermarksPostRequest) Execute() (*http.Response, error)

func (ApiWatermarksPostRequest) Title

Title of watermark

func (ApiWatermarksPostRequest) Watermark

func (r ApiWatermarksPostRequest) Watermark(watermark *os.File) ApiWatermarksPostRequest

Watermark file

type ApiWatermarksWatermarkDeleteRequest

type ApiWatermarksWatermarkDeleteRequest struct {
	ApiService *WatermarkAPIService
	// contains filtered or unexported fields
}

func (ApiWatermarksWatermarkDeleteRequest) Execute

type ApiWatermarksWatermarkGetRequest

type ApiWatermarksWatermarkGetRequest struct {
	ApiService *WatermarkAPIService
	// contains filtered or unexported fields
}

func (ApiWatermarksWatermarkGetRequest) Execute

type ApiWatermarksWatermarkPatchRequest

type ApiWatermarksWatermarkPatchRequest struct {
	ApiService *WatermarkAPIService
	// contains filtered or unexported fields
}

func (ApiWatermarksWatermarkPatchRequest) Body

Watermark details

func (ApiWatermarksWatermarkPatchRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DomainAPIService

type DomainAPIService service

DomainAPIService DomainAPI service

func (*DomainAPIService) DomainGet

DomainGet Return User Domain.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDomainGetRequest

func (*DomainAPIService) DomainGetExecute

func (a *DomainAPIService) DomainGetExecute(r ApiDomainGetRequest) (*http.Response, error)

Execute executes the request

func (*DomainAPIService) DomainPost

DomainPost Set subdomain for LIVE service.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDomainPostRequest

func (*DomainAPIService) DomainPostExecute

func (a *DomainAPIService) DomainPostExecute(r ApiDomainPostRequest) (*http.Response, error)

Execute executes the request

type DomainPostRequest

type DomainPostRequest struct {
	// The subdomain. Only contain lower case letters and digits
	Subdomain *string `json:"subdomain,omitempty"`
}

DomainPostRequest struct for DomainPostRequest

func NewDomainPostRequest

func NewDomainPostRequest() *DomainPostRequest

NewDomainPostRequest instantiates a new DomainPostRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDomainPostRequestWithDefaults

func NewDomainPostRequestWithDefaults() *DomainPostRequest

NewDomainPostRequestWithDefaults instantiates a new DomainPostRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DomainPostRequest) GetSubdomain

func (o *DomainPostRequest) GetSubdomain() string

GetSubdomain returns the Subdomain field value if set, zero value otherwise.

func (*DomainPostRequest) GetSubdomainOk

func (o *DomainPostRequest) GetSubdomainOk() (*string, bool)

GetSubdomainOk returns a tuple with the Subdomain field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DomainPostRequest) HasSubdomain

func (o *DomainPostRequest) HasSubdomain() bool

HasSubdomain returns a boolean if a field has been set.

func (DomainPostRequest) MarshalJSON

func (o DomainPostRequest) MarshalJSON() ([]byte, error)

func (*DomainPostRequest) SetSubdomain

func (o *DomainPostRequest) SetSubdomain(v string)

SetSubdomain gets a reference to the given string and assigns it to the Subdomain field.

func (DomainPostRequest) ToMap

func (o DomainPostRequest) ToMap() (map[string]interface{}, error)

type GeneralReportAPIService

type GeneralReportAPIService service

GeneralReportAPIService GeneralReportAPI service

func (*GeneralReportAPIService) ReportGeoGet

ReportGeoGet Return Domain Geo Report.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReportGeoGetRequest

func (*GeneralReportAPIService) ReportGeoGetExecute

func (a *GeneralReportAPIService) ReportGeoGetExecute(r ApiReportGeoGetRequest) (*http.Response, error)

Execute executes the request

func (*GeneralReportAPIService) ReportStatisticsGet

ReportStatisticsGet Return Domain statistics report.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReportStatisticsGetRequest

func (*GeneralReportAPIService) ReportStatisticsGetExecute

func (a *GeneralReportAPIService) ReportStatisticsGetExecute(r ApiReportStatisticsGetRequest) (*http.Response, error)

Execute executes the request

func (*GeneralReportAPIService) ReportTrafficsGet

ReportTrafficsGet Return Domain Traffic.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReportTrafficsGetRequest

func (*GeneralReportAPIService) ReportTrafficsGetExecute

func (a *GeneralReportAPIService) ReportTrafficsGetExecute(r ApiReportTrafficsGetRequest) (*http.Response, error)

Execute executes the request

func (*GeneralReportAPIService) ReportUserAgentGet

ReportUserAgentGet Return User Agent.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReportUserAgentGetRequest

func (*GeneralReportAPIService) ReportUserAgentGetExecute

func (a *GeneralReportAPIService) ReportUserAgentGetExecute(r ApiReportUserAgentGetRequest) (*http.Response, error)

Execute executes the request

func (*GeneralReportAPIService) ReportVisitorsGet

ReportVisitorsGet Return Domain Visitors.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiReportVisitorsGetRequest

func (*GeneralReportAPIService) ReportVisitorsGetExecute

func (a *GeneralReportAPIService) ReportVisitorsGetExecute(r ApiReportVisitorsGetRequest) (*http.Response, error)

Execute executes the request

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableDomainPostRequest

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

func NewNullableDomainPostRequest

func NewNullableDomainPostRequest(val *DomainPostRequest) *NullableDomainPostRequest

func (NullableDomainPostRequest) Get

func (NullableDomainPostRequest) IsSet

func (v NullableDomainPostRequest) IsSet() bool

func (NullableDomainPostRequest) MarshalJSON

func (v NullableDomainPostRequest) MarshalJSON() ([]byte, error)

func (*NullableDomainPostRequest) Set

func (*NullableDomainPostRequest) UnmarshalJSON

func (v *NullableDomainPostRequest) UnmarshalJSON(src []byte) error

func (*NullableDomainPostRequest) Unset

func (v *NullableDomainPostRequest) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableStreamsPostRequest

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

func NewNullableStreamsPostRequest

func NewNullableStreamsPostRequest(val *StreamsPostRequest) *NullableStreamsPostRequest

func (NullableStreamsPostRequest) Get

func (NullableStreamsPostRequest) IsSet

func (v NullableStreamsPostRequest) IsSet() bool

func (NullableStreamsPostRequest) MarshalJSON

func (v NullableStreamsPostRequest) MarshalJSON() ([]byte, error)

func (*NullableStreamsPostRequest) Set

func (*NullableStreamsPostRequest) UnmarshalJSON

func (v *NullableStreamsPostRequest) UnmarshalJSON(src []byte) error

func (*NullableStreamsPostRequest) Unset

func (v *NullableStreamsPostRequest) Unset()

type NullableStreamsPostRequestConvertInfoInner

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

func (NullableStreamsPostRequestConvertInfoInner) Get

func (NullableStreamsPostRequestConvertInfoInner) IsSet

func (NullableStreamsPostRequestConvertInfoInner) MarshalJSON

func (*NullableStreamsPostRequestConvertInfoInner) Set

func (*NullableStreamsPostRequestConvertInfoInner) UnmarshalJSON

func (v *NullableStreamsPostRequestConvertInfoInner) UnmarshalJSON(src []byte) error

func (*NullableStreamsPostRequestConvertInfoInner) Unset

type NullableStreamsStreamPatchRequest

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

func (NullableStreamsStreamPatchRequest) Get

func (NullableStreamsStreamPatchRequest) IsSet

func (NullableStreamsStreamPatchRequest) MarshalJSON

func (v NullableStreamsStreamPatchRequest) MarshalJSON() ([]byte, error)

func (*NullableStreamsStreamPatchRequest) Set

func (*NullableStreamsStreamPatchRequest) UnmarshalJSON

func (v *NullableStreamsStreamPatchRequest) UnmarshalJSON(src []byte) error

func (*NullableStreamsStreamPatchRequest) Unset

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableWatermarksWatermarkPatchRequest

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

func (NullableWatermarksWatermarkPatchRequest) Get

func (NullableWatermarksWatermarkPatchRequest) IsSet

func (NullableWatermarksWatermarkPatchRequest) MarshalJSON

func (v NullableWatermarksWatermarkPatchRequest) MarshalJSON() ([]byte, error)

func (*NullableWatermarksWatermarkPatchRequest) Set

func (*NullableWatermarksWatermarkPatchRequest) UnmarshalJSON

func (v *NullableWatermarksWatermarkPatchRequest) UnmarshalJSON(src []byte) error

func (*NullableWatermarksWatermarkPatchRequest) Unset

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type StreamAPIService

type StreamAPIService service

StreamAPIService StreamAPI service

func (*StreamAPIService) StreamsGet

StreamsGet Return all streams.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreamsGetRequest

func (*StreamAPIService) StreamsGetExecute

func (a *StreamAPIService) StreamsGetExecute(r ApiStreamsGetRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsPost

StreamsPost Store a newly created stream.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreamsPostRequest

func (*StreamAPIService) StreamsPostExecute

func (a *StreamAPIService) StreamsPostExecute(r ApiStreamsPostRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsStreamDelete

func (a *StreamAPIService) StreamsStreamDelete(ctx context.Context, stream string) ApiStreamsStreamDeleteRequest

StreamsStreamDelete Remove the specified stream.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param stream The Id of stream
@return ApiStreamsStreamDeleteRequest

func (*StreamAPIService) StreamsStreamDeleteExecute

func (a *StreamAPIService) StreamsStreamDeleteExecute(r ApiStreamsStreamDeleteRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsStreamGet

func (a *StreamAPIService) StreamsStreamGet(ctx context.Context, stream string) ApiStreamsStreamGetRequest

StreamsStreamGet Return the specified stream.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param stream The Id of stream
@return ApiStreamsStreamGetRequest

func (*StreamAPIService) StreamsStreamGetExecute

func (a *StreamAPIService) StreamsStreamGetExecute(r ApiStreamsStreamGetRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsStreamPatch

func (a *StreamAPIService) StreamsStreamPatch(ctx context.Context, stream string) ApiStreamsStreamPatchRequest

StreamsStreamPatch Update the specified stream.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param stream The Id of stream
@return ApiStreamsStreamPatchRequest

func (*StreamAPIService) StreamsStreamPatchExecute

func (a *StreamAPIService) StreamsStreamPatchExecute(r ApiStreamsStreamPatchRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsStreamStartRecordGet

func (a *StreamAPIService) StreamsStreamStartRecordGet(ctx context.Context) ApiStreamsStreamStartRecordGetRequest

StreamsStreamStartRecordGet Start record live stream.

Start live archive

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreamsStreamStartRecordGetRequest

func (*StreamAPIService) StreamsStreamStartRecordGetExecute

func (a *StreamAPIService) StreamsStreamStartRecordGetExecute(r ApiStreamsStreamStartRecordGetRequest) (*http.Response, error)

Execute executes the request

func (*StreamAPIService) StreamsStreamStopRecordGet

func (a *StreamAPIService) StreamsStreamStopRecordGet(ctx context.Context) ApiStreamsStreamStopRecordGetRequest

StreamsStreamStopRecordGet Stop record live stream.

Stop live archive

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStreamsStreamStopRecordGetRequest

func (*StreamAPIService) StreamsStreamStopRecordGetExecute

func (a *StreamAPIService) StreamsStreamStopRecordGetExecute(r ApiStreamsStreamStopRecordGetRequest) (*http.Response, error)

Execute executes the request

type StreamsPostRequest

type StreamsPostRequest struct {
	// Title of the stream
	Title string `json:"title"`
	// Description of the stream
	Description *string `json:"description,omitempty"`
	// Stream latency type
	Type string `json:"type"`
	// Way to receive input stream
	Mode string `json:"mode"`
	// Public URL of stream input in PULL mode
	InputUrl *string `json:"input_url,omitempty"`
	// Unique slug for your stream. Only contain lower case letters and digits
	Slug string `json:"slug"`
	// Timeshift (DVR) in minutes to watch the earlier content
	Timeshift *int32 `json:"timeshift,omitempty"`
	// stream fps mode
	FpsMode *string `json:"fps_mode,omitempty"`
	// Input steam frame per second
	Fps int32 `json:"fps"`
	// Set this value to True to archive the stream as a VoD
	ArchiveEnabled *bool `json:"archive_enabled,omitempty"`
	// Set this value to True to enable catchup for the stream
	CatchupEnabled *bool `json:"catchup_enabled,omitempty"`
	// Hours of catchup must be available for the stream
	CatchupPeriod *int32 `json:"catchup_period,omitempty"`
	// Way to archive stream
	ArchiveMode *string `json:"archive_mode,omitempty"`
	// Channel Id to save archive
	ChannelId *string `json:"channel_id,omitempty"`
	// If you want to use watermark for a video, use this ID
	WatermarkId *string `json:"watermark_id,omitempty"`
	// Area of the watermark if watermark_id presents
	WatermarkArea *string `json:"watermark_area,omitempty"`
	// Array of convert details
	ConvertInfo []StreamsPostRequestConvertInfoInner `json:"convert_info"`
	// Enable or disable secure link for all videos in channel
	SecureLinkEnabled *bool `json:"secure_link_enabled,omitempty"`
	// Key for generate secure links
	SecureLinkKey *string `json:"secure_link_key,omitempty"`
	// IP can be considered as an optional parameter
	SecureLinkWithIp *bool `json:"secure_link_with_ip,omitempty"`
	// Enable or disable Ads for created stream
	AdsEnabled *bool `json:"ads_enabled,omitempty"`
	// Ads present method
	PresentType *string `json:"present_type,omitempty"`
	// Created CampaignId in Ads
	CampaignId *string `json:"campaign_id,omitempty"`
}

StreamsPostRequest struct for StreamsPostRequest

func NewStreamsPostRequest

func NewStreamsPostRequest(title string, type_ string, mode string, slug string, fps int32, convertInfo []StreamsPostRequestConvertInfoInner) *StreamsPostRequest

NewStreamsPostRequest instantiates a new StreamsPostRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStreamsPostRequestWithDefaults

func NewStreamsPostRequestWithDefaults() *StreamsPostRequest

NewStreamsPostRequestWithDefaults instantiates a new StreamsPostRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StreamsPostRequest) GetAdsEnabled

func (o *StreamsPostRequest) GetAdsEnabled() bool

GetAdsEnabled returns the AdsEnabled field value if set, zero value otherwise.

func (*StreamsPostRequest) GetAdsEnabledOk

func (o *StreamsPostRequest) GetAdsEnabledOk() (*bool, bool)

GetAdsEnabledOk returns a tuple with the AdsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetArchiveEnabled

func (o *StreamsPostRequest) GetArchiveEnabled() bool

GetArchiveEnabled returns the ArchiveEnabled field value if set, zero value otherwise.

func (*StreamsPostRequest) GetArchiveEnabledOk

func (o *StreamsPostRequest) GetArchiveEnabledOk() (*bool, bool)

GetArchiveEnabledOk returns a tuple with the ArchiveEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetArchiveMode

func (o *StreamsPostRequest) GetArchiveMode() string

GetArchiveMode returns the ArchiveMode field value if set, zero value otherwise.

func (*StreamsPostRequest) GetArchiveModeOk

func (o *StreamsPostRequest) GetArchiveModeOk() (*string, bool)

GetArchiveModeOk returns a tuple with the ArchiveMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetCampaignId

func (o *StreamsPostRequest) GetCampaignId() string

GetCampaignId returns the CampaignId field value if set, zero value otherwise.

func (*StreamsPostRequest) GetCampaignIdOk

func (o *StreamsPostRequest) GetCampaignIdOk() (*string, bool)

GetCampaignIdOk returns a tuple with the CampaignId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetCatchupEnabled

func (o *StreamsPostRequest) GetCatchupEnabled() bool

GetCatchupEnabled returns the CatchupEnabled field value if set, zero value otherwise.

func (*StreamsPostRequest) GetCatchupEnabledOk

func (o *StreamsPostRequest) GetCatchupEnabledOk() (*bool, bool)

GetCatchupEnabledOk returns a tuple with the CatchupEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetCatchupPeriod

func (o *StreamsPostRequest) GetCatchupPeriod() int32

GetCatchupPeriod returns the CatchupPeriod field value if set, zero value otherwise.

func (*StreamsPostRequest) GetCatchupPeriodOk

func (o *StreamsPostRequest) GetCatchupPeriodOk() (*int32, bool)

GetCatchupPeriodOk returns a tuple with the CatchupPeriod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetChannelId

func (o *StreamsPostRequest) GetChannelId() string

GetChannelId returns the ChannelId field value if set, zero value otherwise.

func (*StreamsPostRequest) GetChannelIdOk

func (o *StreamsPostRequest) GetChannelIdOk() (*string, bool)

GetChannelIdOk returns a tuple with the ChannelId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetConvertInfo

GetConvertInfo returns the ConvertInfo field value

func (*StreamsPostRequest) GetConvertInfoOk

func (o *StreamsPostRequest) GetConvertInfoOk() ([]StreamsPostRequestConvertInfoInner, bool)

GetConvertInfoOk returns a tuple with the ConvertInfo field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetDescription

func (o *StreamsPostRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StreamsPostRequest) GetDescriptionOk

func (o *StreamsPostRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetFps

func (o *StreamsPostRequest) GetFps() int32

GetFps returns the Fps field value

func (*StreamsPostRequest) GetFpsMode

func (o *StreamsPostRequest) GetFpsMode() string

GetFpsMode returns the FpsMode field value if set, zero value otherwise.

func (*StreamsPostRequest) GetFpsModeOk

func (o *StreamsPostRequest) GetFpsModeOk() (*string, bool)

GetFpsModeOk returns a tuple with the FpsMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetFpsOk

func (o *StreamsPostRequest) GetFpsOk() (*int32, bool)

GetFpsOk returns a tuple with the Fps field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetInputUrl

func (o *StreamsPostRequest) GetInputUrl() string

GetInputUrl returns the InputUrl field value if set, zero value otherwise.

func (*StreamsPostRequest) GetInputUrlOk

func (o *StreamsPostRequest) GetInputUrlOk() (*string, bool)

GetInputUrlOk returns a tuple with the InputUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetMode

func (o *StreamsPostRequest) GetMode() string

GetMode returns the Mode field value

func (*StreamsPostRequest) GetModeOk

func (o *StreamsPostRequest) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetPresentType

func (o *StreamsPostRequest) GetPresentType() string

GetPresentType returns the PresentType field value if set, zero value otherwise.

func (*StreamsPostRequest) GetPresentTypeOk

func (o *StreamsPostRequest) GetPresentTypeOk() (*string, bool)

GetPresentTypeOk returns a tuple with the PresentType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetSecureLinkEnabled

func (o *StreamsPostRequest) GetSecureLinkEnabled() bool

GetSecureLinkEnabled returns the SecureLinkEnabled field value if set, zero value otherwise.

func (*StreamsPostRequest) GetSecureLinkEnabledOk

func (o *StreamsPostRequest) GetSecureLinkEnabledOk() (*bool, bool)

GetSecureLinkEnabledOk returns a tuple with the SecureLinkEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetSecureLinkKey

func (o *StreamsPostRequest) GetSecureLinkKey() string

GetSecureLinkKey returns the SecureLinkKey field value if set, zero value otherwise.

func (*StreamsPostRequest) GetSecureLinkKeyOk

func (o *StreamsPostRequest) GetSecureLinkKeyOk() (*string, bool)

GetSecureLinkKeyOk returns a tuple with the SecureLinkKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetSecureLinkWithIp

func (o *StreamsPostRequest) GetSecureLinkWithIp() bool

GetSecureLinkWithIp returns the SecureLinkWithIp field value if set, zero value otherwise.

func (*StreamsPostRequest) GetSecureLinkWithIpOk

func (o *StreamsPostRequest) GetSecureLinkWithIpOk() (*bool, bool)

GetSecureLinkWithIpOk returns a tuple with the SecureLinkWithIp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetSlug

func (o *StreamsPostRequest) GetSlug() string

GetSlug returns the Slug field value

func (*StreamsPostRequest) GetSlugOk

func (o *StreamsPostRequest) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetTimeshift

func (o *StreamsPostRequest) GetTimeshift() int32

GetTimeshift returns the Timeshift field value if set, zero value otherwise.

func (*StreamsPostRequest) GetTimeshiftOk

func (o *StreamsPostRequest) GetTimeshiftOk() (*int32, bool)

GetTimeshiftOk returns a tuple with the Timeshift field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetTitle

func (o *StreamsPostRequest) GetTitle() string

GetTitle returns the Title field value

func (*StreamsPostRequest) GetTitleOk

func (o *StreamsPostRequest) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetType

func (o *StreamsPostRequest) GetType() string

GetType returns the Type field value

func (*StreamsPostRequest) GetTypeOk

func (o *StreamsPostRequest) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetWatermarkArea

func (o *StreamsPostRequest) GetWatermarkArea() string

GetWatermarkArea returns the WatermarkArea field value if set, zero value otherwise.

func (*StreamsPostRequest) GetWatermarkAreaOk

func (o *StreamsPostRequest) GetWatermarkAreaOk() (*string, bool)

GetWatermarkAreaOk returns a tuple with the WatermarkArea field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) GetWatermarkId

func (o *StreamsPostRequest) GetWatermarkId() string

GetWatermarkId returns the WatermarkId field value if set, zero value otherwise.

func (*StreamsPostRequest) GetWatermarkIdOk

func (o *StreamsPostRequest) GetWatermarkIdOk() (*string, bool)

GetWatermarkIdOk returns a tuple with the WatermarkId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequest) HasAdsEnabled

func (o *StreamsPostRequest) HasAdsEnabled() bool

HasAdsEnabled returns a boolean if a field has been set.

func (*StreamsPostRequest) HasArchiveEnabled

func (o *StreamsPostRequest) HasArchiveEnabled() bool

HasArchiveEnabled returns a boolean if a field has been set.

func (*StreamsPostRequest) HasArchiveMode

func (o *StreamsPostRequest) HasArchiveMode() bool

HasArchiveMode returns a boolean if a field has been set.

func (*StreamsPostRequest) HasCampaignId

func (o *StreamsPostRequest) HasCampaignId() bool

HasCampaignId returns a boolean if a field has been set.

func (*StreamsPostRequest) HasCatchupEnabled

func (o *StreamsPostRequest) HasCatchupEnabled() bool

HasCatchupEnabled returns a boolean if a field has been set.

func (*StreamsPostRequest) HasCatchupPeriod

func (o *StreamsPostRequest) HasCatchupPeriod() bool

HasCatchupPeriod returns a boolean if a field has been set.

func (*StreamsPostRequest) HasChannelId

func (o *StreamsPostRequest) HasChannelId() bool

HasChannelId returns a boolean if a field has been set.

func (*StreamsPostRequest) HasDescription

func (o *StreamsPostRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*StreamsPostRequest) HasFpsMode

func (o *StreamsPostRequest) HasFpsMode() bool

HasFpsMode returns a boolean if a field has been set.

func (*StreamsPostRequest) HasInputUrl

func (o *StreamsPostRequest) HasInputUrl() bool

HasInputUrl returns a boolean if a field has been set.

func (*StreamsPostRequest) HasPresentType

func (o *StreamsPostRequest) HasPresentType() bool

HasPresentType returns a boolean if a field has been set.

func (*StreamsPostRequest) HasSecureLinkEnabled

func (o *StreamsPostRequest) HasSecureLinkEnabled() bool

HasSecureLinkEnabled returns a boolean if a field has been set.

func (*StreamsPostRequest) HasSecureLinkKey

func (o *StreamsPostRequest) HasSecureLinkKey() bool

HasSecureLinkKey returns a boolean if a field has been set.

func (*StreamsPostRequest) HasSecureLinkWithIp

func (o *StreamsPostRequest) HasSecureLinkWithIp() bool

HasSecureLinkWithIp returns a boolean if a field has been set.

func (*StreamsPostRequest) HasTimeshift

func (o *StreamsPostRequest) HasTimeshift() bool

HasTimeshift returns a boolean if a field has been set.

func (*StreamsPostRequest) HasWatermarkArea

func (o *StreamsPostRequest) HasWatermarkArea() bool

HasWatermarkArea returns a boolean if a field has been set.

func (*StreamsPostRequest) HasWatermarkId

func (o *StreamsPostRequest) HasWatermarkId() bool

HasWatermarkId returns a boolean if a field has been set.

func (StreamsPostRequest) MarshalJSON

func (o StreamsPostRequest) MarshalJSON() ([]byte, error)

func (*StreamsPostRequest) SetAdsEnabled

func (o *StreamsPostRequest) SetAdsEnabled(v bool)

SetAdsEnabled gets a reference to the given bool and assigns it to the AdsEnabled field.

func (*StreamsPostRequest) SetArchiveEnabled

func (o *StreamsPostRequest) SetArchiveEnabled(v bool)

SetArchiveEnabled gets a reference to the given bool and assigns it to the ArchiveEnabled field.

func (*StreamsPostRequest) SetArchiveMode

func (o *StreamsPostRequest) SetArchiveMode(v string)

SetArchiveMode gets a reference to the given string and assigns it to the ArchiveMode field.

func (*StreamsPostRequest) SetCampaignId

func (o *StreamsPostRequest) SetCampaignId(v string)

SetCampaignId gets a reference to the given string and assigns it to the CampaignId field.

func (*StreamsPostRequest) SetCatchupEnabled

func (o *StreamsPostRequest) SetCatchupEnabled(v bool)

SetCatchupEnabled gets a reference to the given bool and assigns it to the CatchupEnabled field.

func (*StreamsPostRequest) SetCatchupPeriod

func (o *StreamsPostRequest) SetCatchupPeriod(v int32)

SetCatchupPeriod gets a reference to the given int32 and assigns it to the CatchupPeriod field.

func (*StreamsPostRequest) SetChannelId

func (o *StreamsPostRequest) SetChannelId(v string)

SetChannelId gets a reference to the given string and assigns it to the ChannelId field.

func (*StreamsPostRequest) SetConvertInfo

SetConvertInfo sets field value

func (*StreamsPostRequest) SetDescription

func (o *StreamsPostRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StreamsPostRequest) SetFps

func (o *StreamsPostRequest) SetFps(v int32)

SetFps sets field value

func (*StreamsPostRequest) SetFpsMode

func (o *StreamsPostRequest) SetFpsMode(v string)

SetFpsMode gets a reference to the given string and assigns it to the FpsMode field.

func (*StreamsPostRequest) SetInputUrl

func (o *StreamsPostRequest) SetInputUrl(v string)

SetInputUrl gets a reference to the given string and assigns it to the InputUrl field.

func (*StreamsPostRequest) SetMode

func (o *StreamsPostRequest) SetMode(v string)

SetMode sets field value

func (*StreamsPostRequest) SetPresentType

func (o *StreamsPostRequest) SetPresentType(v string)

SetPresentType gets a reference to the given string and assigns it to the PresentType field.

func (*StreamsPostRequest) SetSecureLinkEnabled

func (o *StreamsPostRequest) SetSecureLinkEnabled(v bool)

SetSecureLinkEnabled gets a reference to the given bool and assigns it to the SecureLinkEnabled field.

func (*StreamsPostRequest) SetSecureLinkKey

func (o *StreamsPostRequest) SetSecureLinkKey(v string)

SetSecureLinkKey gets a reference to the given string and assigns it to the SecureLinkKey field.

func (*StreamsPostRequest) SetSecureLinkWithIp

func (o *StreamsPostRequest) SetSecureLinkWithIp(v bool)

SetSecureLinkWithIp gets a reference to the given bool and assigns it to the SecureLinkWithIp field.

func (*StreamsPostRequest) SetSlug

func (o *StreamsPostRequest) SetSlug(v string)

SetSlug sets field value

func (*StreamsPostRequest) SetTimeshift

func (o *StreamsPostRequest) SetTimeshift(v int32)

SetTimeshift gets a reference to the given int32 and assigns it to the Timeshift field.

func (*StreamsPostRequest) SetTitle

func (o *StreamsPostRequest) SetTitle(v string)

SetTitle sets field value

func (*StreamsPostRequest) SetType

func (o *StreamsPostRequest) SetType(v string)

SetType sets field value

func (*StreamsPostRequest) SetWatermarkArea

func (o *StreamsPostRequest) SetWatermarkArea(v string)

SetWatermarkArea gets a reference to the given string and assigns it to the WatermarkArea field.

func (*StreamsPostRequest) SetWatermarkId

func (o *StreamsPostRequest) SetWatermarkId(v string)

SetWatermarkId gets a reference to the given string and assigns it to the WatermarkId field.

func (StreamsPostRequest) ToMap

func (o StreamsPostRequest) ToMap() (map[string]interface{}, error)

type StreamsPostRequestConvertInfoInner

type StreamsPostRequestConvertInfoInner struct {
	// Audio bitrate in kilobit
	AudioBitrate *int32 `json:"audio_bitrate,omitempty"`
	// Video bitrate in kilobit
	VideoBitrate *int32 `json:"video_bitrate,omitempty"`
	// resolution width
	ResolutionWidth *int32 `json:"resolution_width,omitempty"`
	// resolution height
	ResolutionHeight *int32 `json:"resolution_height,omitempty"`
	// If you want to use watermark for a video, use this ID
	WatermarkId *string `json:"watermark_id,omitempty"`
	// Area of the watermark if watermark_id presents
	WatermarkArea *string `json:"watermark_area,omitempty"`
}

StreamsPostRequestConvertInfoInner struct for StreamsPostRequestConvertInfoInner

func NewStreamsPostRequestConvertInfoInner

func NewStreamsPostRequestConvertInfoInner() *StreamsPostRequestConvertInfoInner

NewStreamsPostRequestConvertInfoInner instantiates a new StreamsPostRequestConvertInfoInner object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStreamsPostRequestConvertInfoInnerWithDefaults

func NewStreamsPostRequestConvertInfoInnerWithDefaults() *StreamsPostRequestConvertInfoInner

NewStreamsPostRequestConvertInfoInnerWithDefaults instantiates a new StreamsPostRequestConvertInfoInner object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StreamsPostRequestConvertInfoInner) GetAudioBitrate

func (o *StreamsPostRequestConvertInfoInner) GetAudioBitrate() int32

GetAudioBitrate returns the AudioBitrate field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetAudioBitrateOk

func (o *StreamsPostRequestConvertInfoInner) GetAudioBitrateOk() (*int32, bool)

GetAudioBitrateOk returns a tuple with the AudioBitrate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) GetResolutionHeight

func (o *StreamsPostRequestConvertInfoInner) GetResolutionHeight() int32

GetResolutionHeight returns the ResolutionHeight field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetResolutionHeightOk

func (o *StreamsPostRequestConvertInfoInner) GetResolutionHeightOk() (*int32, bool)

GetResolutionHeightOk returns a tuple with the ResolutionHeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) GetResolutionWidth

func (o *StreamsPostRequestConvertInfoInner) GetResolutionWidth() int32

GetResolutionWidth returns the ResolutionWidth field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetResolutionWidthOk

func (o *StreamsPostRequestConvertInfoInner) GetResolutionWidthOk() (*int32, bool)

GetResolutionWidthOk returns a tuple with the ResolutionWidth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) GetVideoBitrate

func (o *StreamsPostRequestConvertInfoInner) GetVideoBitrate() int32

GetVideoBitrate returns the VideoBitrate field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetVideoBitrateOk

func (o *StreamsPostRequestConvertInfoInner) GetVideoBitrateOk() (*int32, bool)

GetVideoBitrateOk returns a tuple with the VideoBitrate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) GetWatermarkArea

func (o *StreamsPostRequestConvertInfoInner) GetWatermarkArea() string

GetWatermarkArea returns the WatermarkArea field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetWatermarkAreaOk

func (o *StreamsPostRequestConvertInfoInner) GetWatermarkAreaOk() (*string, bool)

GetWatermarkAreaOk returns a tuple with the WatermarkArea field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) GetWatermarkId

func (o *StreamsPostRequestConvertInfoInner) GetWatermarkId() string

GetWatermarkId returns the WatermarkId field value if set, zero value otherwise.

func (*StreamsPostRequestConvertInfoInner) GetWatermarkIdOk

func (o *StreamsPostRequestConvertInfoInner) GetWatermarkIdOk() (*string, bool)

GetWatermarkIdOk returns a tuple with the WatermarkId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsPostRequestConvertInfoInner) HasAudioBitrate

func (o *StreamsPostRequestConvertInfoInner) HasAudioBitrate() bool

HasAudioBitrate returns a boolean if a field has been set.

func (*StreamsPostRequestConvertInfoInner) HasResolutionHeight

func (o *StreamsPostRequestConvertInfoInner) HasResolutionHeight() bool

HasResolutionHeight returns a boolean if a field has been set.

func (*StreamsPostRequestConvertInfoInner) HasResolutionWidth

func (o *StreamsPostRequestConvertInfoInner) HasResolutionWidth() bool

HasResolutionWidth returns a boolean if a field has been set.

func (*StreamsPostRequestConvertInfoInner) HasVideoBitrate

func (o *StreamsPostRequestConvertInfoInner) HasVideoBitrate() bool

HasVideoBitrate returns a boolean if a field has been set.

func (*StreamsPostRequestConvertInfoInner) HasWatermarkArea

func (o *StreamsPostRequestConvertInfoInner) HasWatermarkArea() bool

HasWatermarkArea returns a boolean if a field has been set.

func (*StreamsPostRequestConvertInfoInner) HasWatermarkId

func (o *StreamsPostRequestConvertInfoInner) HasWatermarkId() bool

HasWatermarkId returns a boolean if a field has been set.

func (StreamsPostRequestConvertInfoInner) MarshalJSON

func (o StreamsPostRequestConvertInfoInner) MarshalJSON() ([]byte, error)

func (*StreamsPostRequestConvertInfoInner) SetAudioBitrate

func (o *StreamsPostRequestConvertInfoInner) SetAudioBitrate(v int32)

SetAudioBitrate gets a reference to the given int32 and assigns it to the AudioBitrate field.

func (*StreamsPostRequestConvertInfoInner) SetResolutionHeight

func (o *StreamsPostRequestConvertInfoInner) SetResolutionHeight(v int32)

SetResolutionHeight gets a reference to the given int32 and assigns it to the ResolutionHeight field.

func (*StreamsPostRequestConvertInfoInner) SetResolutionWidth

func (o *StreamsPostRequestConvertInfoInner) SetResolutionWidth(v int32)

SetResolutionWidth gets a reference to the given int32 and assigns it to the ResolutionWidth field.

func (*StreamsPostRequestConvertInfoInner) SetVideoBitrate

func (o *StreamsPostRequestConvertInfoInner) SetVideoBitrate(v int32)

SetVideoBitrate gets a reference to the given int32 and assigns it to the VideoBitrate field.

func (*StreamsPostRequestConvertInfoInner) SetWatermarkArea

func (o *StreamsPostRequestConvertInfoInner) SetWatermarkArea(v string)

SetWatermarkArea gets a reference to the given string and assigns it to the WatermarkArea field.

func (*StreamsPostRequestConvertInfoInner) SetWatermarkId

func (o *StreamsPostRequestConvertInfoInner) SetWatermarkId(v string)

SetWatermarkId gets a reference to the given string and assigns it to the WatermarkId field.

func (StreamsPostRequestConvertInfoInner) ToMap

func (o StreamsPostRequestConvertInfoInner) ToMap() (map[string]interface{}, error)

type StreamsStreamPatchRequest

type StreamsStreamPatchRequest struct {
	// Title of the stream
	Title *string `json:"title,omitempty"`
	// Description of the stream
	Description *string `json:"description,omitempty"`
	// Stream latency type
	Type *string `json:"type,omitempty"`
	// Way to receive input stream
	Mode *string `json:"mode,omitempty"`
	// Public URL of stream input in PULL mode
	InputUrl *string `json:"input_url,omitempty"`
	// Unique slug for your stream. Only contain lower case letters and digits
	Slug *string `json:"slug,omitempty"`
	// Timeshift (DVR) in minutes to watch the earlier content
	Timeshift *int32 `json:"timeshift,omitempty"`
	// stream fps mode
	FpsMode *string `json:"fps_mode,omitempty"`
	// Input steam frame per second
	Fps *int32 `json:"fps,omitempty"`
	// Set this value to True to archive the stream as a VoD
	ArchiveEnabled *bool `json:"archive_enabled,omitempty"`
	// Set this value to True to enable catchup for the stream
	CatchupEnabled *bool `json:"catchup_enabled,omitempty"`
	// Hours of catchup must be available for the stream
	CatchupPeriod *int32 `json:"catchup_period,omitempty"`
	// Way to archive stream
	ArchiveMode *string `json:"archive_mode,omitempty"`
	// Channel Id to save archive
	ChannelId *string `json:"channel_id,omitempty"`
	// If you want to use watermark for a video, use this ID
	WatermarkId *string `json:"watermark_id,omitempty"`
	// Area of the watermark if watermark_id presents
	WatermarkArea *string `json:"watermark_area,omitempty"`
	// Array of convert details
	ConvertInfo []StreamsPostRequestConvertInfoInner `json:"convert_info,omitempty"`
	// Enable or disable secure link for all videos in channel
	SecureLinkEnabled *bool `json:"secure_link_enabled,omitempty"`
	// Key for generate secure links
	SecureLinkKey *string `json:"secure_link_key,omitempty"`
	// IP can be considered as an optional parameter
	SecureLinkWithIp *bool `json:"secure_link_with_ip,omitempty"`
	// Enable or disable Ads
	AdsEnabled *bool `json:"ads_enabled,omitempty"`
	// Ads present method
	PresentType *string `json:"present_type,omitempty"`
	// Created CampaignId in Ads
	CampaignId *string `json:"campaign_id,omitempty"`
}

StreamsStreamPatchRequest struct for StreamsStreamPatchRequest

func NewStreamsStreamPatchRequest

func NewStreamsStreamPatchRequest() *StreamsStreamPatchRequest

NewStreamsStreamPatchRequest instantiates a new StreamsStreamPatchRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewStreamsStreamPatchRequestWithDefaults

func NewStreamsStreamPatchRequestWithDefaults() *StreamsStreamPatchRequest

NewStreamsStreamPatchRequestWithDefaults instantiates a new StreamsStreamPatchRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*StreamsStreamPatchRequest) GetAdsEnabled

func (o *StreamsStreamPatchRequest) GetAdsEnabled() bool

GetAdsEnabled returns the AdsEnabled field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetAdsEnabledOk

func (o *StreamsStreamPatchRequest) GetAdsEnabledOk() (*bool, bool)

GetAdsEnabledOk returns a tuple with the AdsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetArchiveEnabled

func (o *StreamsStreamPatchRequest) GetArchiveEnabled() bool

GetArchiveEnabled returns the ArchiveEnabled field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetArchiveEnabledOk

func (o *StreamsStreamPatchRequest) GetArchiveEnabledOk() (*bool, bool)

GetArchiveEnabledOk returns a tuple with the ArchiveEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetArchiveMode

func (o *StreamsStreamPatchRequest) GetArchiveMode() string

GetArchiveMode returns the ArchiveMode field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetArchiveModeOk

func (o *StreamsStreamPatchRequest) GetArchiveModeOk() (*string, bool)

GetArchiveModeOk returns a tuple with the ArchiveMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetCampaignId

func (o *StreamsStreamPatchRequest) GetCampaignId() string

GetCampaignId returns the CampaignId field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetCampaignIdOk

func (o *StreamsStreamPatchRequest) GetCampaignIdOk() (*string, bool)

GetCampaignIdOk returns a tuple with the CampaignId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetCatchupEnabled

func (o *StreamsStreamPatchRequest) GetCatchupEnabled() bool

GetCatchupEnabled returns the CatchupEnabled field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetCatchupEnabledOk

func (o *StreamsStreamPatchRequest) GetCatchupEnabledOk() (*bool, bool)

GetCatchupEnabledOk returns a tuple with the CatchupEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetCatchupPeriod

func (o *StreamsStreamPatchRequest) GetCatchupPeriod() int32

GetCatchupPeriod returns the CatchupPeriod field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetCatchupPeriodOk

func (o *StreamsStreamPatchRequest) GetCatchupPeriodOk() (*int32, bool)

GetCatchupPeriodOk returns a tuple with the CatchupPeriod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetChannelId

func (o *StreamsStreamPatchRequest) GetChannelId() string

GetChannelId returns the ChannelId field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetChannelIdOk

func (o *StreamsStreamPatchRequest) GetChannelIdOk() (*string, bool)

GetChannelIdOk returns a tuple with the ChannelId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetConvertInfo

GetConvertInfo returns the ConvertInfo field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetConvertInfoOk

GetConvertInfoOk returns a tuple with the ConvertInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetDescription

func (o *StreamsStreamPatchRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetDescriptionOk

func (o *StreamsStreamPatchRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetFps

func (o *StreamsStreamPatchRequest) GetFps() int32

GetFps returns the Fps field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetFpsMode

func (o *StreamsStreamPatchRequest) GetFpsMode() string

GetFpsMode returns the FpsMode field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetFpsModeOk

func (o *StreamsStreamPatchRequest) GetFpsModeOk() (*string, bool)

GetFpsModeOk returns a tuple with the FpsMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetFpsOk

func (o *StreamsStreamPatchRequest) GetFpsOk() (*int32, bool)

GetFpsOk returns a tuple with the Fps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetInputUrl

func (o *StreamsStreamPatchRequest) GetInputUrl() string

GetInputUrl returns the InputUrl field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetInputUrlOk

func (o *StreamsStreamPatchRequest) GetInputUrlOk() (*string, bool)

GetInputUrlOk returns a tuple with the InputUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetMode

func (o *StreamsStreamPatchRequest) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetModeOk

func (o *StreamsStreamPatchRequest) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetPresentType

func (o *StreamsStreamPatchRequest) GetPresentType() string

GetPresentType returns the PresentType field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetPresentTypeOk

func (o *StreamsStreamPatchRequest) GetPresentTypeOk() (*string, bool)

GetPresentTypeOk returns a tuple with the PresentType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetSecureLinkEnabled

func (o *StreamsStreamPatchRequest) GetSecureLinkEnabled() bool

GetSecureLinkEnabled returns the SecureLinkEnabled field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetSecureLinkEnabledOk

func (o *StreamsStreamPatchRequest) GetSecureLinkEnabledOk() (*bool, bool)

GetSecureLinkEnabledOk returns a tuple with the SecureLinkEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetSecureLinkKey

func (o *StreamsStreamPatchRequest) GetSecureLinkKey() string

GetSecureLinkKey returns the SecureLinkKey field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetSecureLinkKeyOk

func (o *StreamsStreamPatchRequest) GetSecureLinkKeyOk() (*string, bool)

GetSecureLinkKeyOk returns a tuple with the SecureLinkKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetSecureLinkWithIp

func (o *StreamsStreamPatchRequest) GetSecureLinkWithIp() bool

GetSecureLinkWithIp returns the SecureLinkWithIp field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetSecureLinkWithIpOk

func (o *StreamsStreamPatchRequest) GetSecureLinkWithIpOk() (*bool, bool)

GetSecureLinkWithIpOk returns a tuple with the SecureLinkWithIp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetSlug

func (o *StreamsStreamPatchRequest) GetSlug() string

GetSlug returns the Slug field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetSlugOk

func (o *StreamsStreamPatchRequest) GetSlugOk() (*string, bool)

GetSlugOk returns a tuple with the Slug field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetTimeshift

func (o *StreamsStreamPatchRequest) GetTimeshift() int32

GetTimeshift returns the Timeshift field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetTimeshiftOk

func (o *StreamsStreamPatchRequest) GetTimeshiftOk() (*int32, bool)

GetTimeshiftOk returns a tuple with the Timeshift field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetTitle

func (o *StreamsStreamPatchRequest) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetTitleOk

func (o *StreamsStreamPatchRequest) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetType

func (o *StreamsStreamPatchRequest) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetTypeOk

func (o *StreamsStreamPatchRequest) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetWatermarkArea

func (o *StreamsStreamPatchRequest) GetWatermarkArea() string

GetWatermarkArea returns the WatermarkArea field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetWatermarkAreaOk

func (o *StreamsStreamPatchRequest) GetWatermarkAreaOk() (*string, bool)

GetWatermarkAreaOk returns a tuple with the WatermarkArea field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) GetWatermarkId

func (o *StreamsStreamPatchRequest) GetWatermarkId() string

GetWatermarkId returns the WatermarkId field value if set, zero value otherwise.

func (*StreamsStreamPatchRequest) GetWatermarkIdOk

func (o *StreamsStreamPatchRequest) GetWatermarkIdOk() (*string, bool)

GetWatermarkIdOk returns a tuple with the WatermarkId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StreamsStreamPatchRequest) HasAdsEnabled

func (o *StreamsStreamPatchRequest) HasAdsEnabled() bool

HasAdsEnabled returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasArchiveEnabled

func (o *StreamsStreamPatchRequest) HasArchiveEnabled() bool

HasArchiveEnabled returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasArchiveMode

func (o *StreamsStreamPatchRequest) HasArchiveMode() bool

HasArchiveMode returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasCampaignId

func (o *StreamsStreamPatchRequest) HasCampaignId() bool

HasCampaignId returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasCatchupEnabled

func (o *StreamsStreamPatchRequest) HasCatchupEnabled() bool

HasCatchupEnabled returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasCatchupPeriod

func (o *StreamsStreamPatchRequest) HasCatchupPeriod() bool

HasCatchupPeriod returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasChannelId

func (o *StreamsStreamPatchRequest) HasChannelId() bool

HasChannelId returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasConvertInfo

func (o *StreamsStreamPatchRequest) HasConvertInfo() bool

HasConvertInfo returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasDescription

func (o *StreamsStreamPatchRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasFps

func (o *StreamsStreamPatchRequest) HasFps() bool

HasFps returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasFpsMode

func (o *StreamsStreamPatchRequest) HasFpsMode() bool

HasFpsMode returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasInputUrl

func (o *StreamsStreamPatchRequest) HasInputUrl() bool

HasInputUrl returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasMode

func (o *StreamsStreamPatchRequest) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasPresentType

func (o *StreamsStreamPatchRequest) HasPresentType() bool

HasPresentType returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasSecureLinkEnabled

func (o *StreamsStreamPatchRequest) HasSecureLinkEnabled() bool

HasSecureLinkEnabled returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasSecureLinkKey

func (o *StreamsStreamPatchRequest) HasSecureLinkKey() bool

HasSecureLinkKey returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasSecureLinkWithIp

func (o *StreamsStreamPatchRequest) HasSecureLinkWithIp() bool

HasSecureLinkWithIp returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasSlug

func (o *StreamsStreamPatchRequest) HasSlug() bool

HasSlug returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasTimeshift

func (o *StreamsStreamPatchRequest) HasTimeshift() bool

HasTimeshift returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasTitle

func (o *StreamsStreamPatchRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasType

func (o *StreamsStreamPatchRequest) HasType() bool

HasType returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasWatermarkArea

func (o *StreamsStreamPatchRequest) HasWatermarkArea() bool

HasWatermarkArea returns a boolean if a field has been set.

func (*StreamsStreamPatchRequest) HasWatermarkId

func (o *StreamsStreamPatchRequest) HasWatermarkId() bool

HasWatermarkId returns a boolean if a field has been set.

func (StreamsStreamPatchRequest) MarshalJSON

func (o StreamsStreamPatchRequest) MarshalJSON() ([]byte, error)

func (*StreamsStreamPatchRequest) SetAdsEnabled

func (o *StreamsStreamPatchRequest) SetAdsEnabled(v bool)

SetAdsEnabled gets a reference to the given bool and assigns it to the AdsEnabled field.

func (*StreamsStreamPatchRequest) SetArchiveEnabled

func (o *StreamsStreamPatchRequest) SetArchiveEnabled(v bool)

SetArchiveEnabled gets a reference to the given bool and assigns it to the ArchiveEnabled field.

func (*StreamsStreamPatchRequest) SetArchiveMode

func (o *StreamsStreamPatchRequest) SetArchiveMode(v string)

SetArchiveMode gets a reference to the given string and assigns it to the ArchiveMode field.

func (*StreamsStreamPatchRequest) SetCampaignId

func (o *StreamsStreamPatchRequest) SetCampaignId(v string)

SetCampaignId gets a reference to the given string and assigns it to the CampaignId field.

func (*StreamsStreamPatchRequest) SetCatchupEnabled

func (o *StreamsStreamPatchRequest) SetCatchupEnabled(v bool)

SetCatchupEnabled gets a reference to the given bool and assigns it to the CatchupEnabled field.

func (*StreamsStreamPatchRequest) SetCatchupPeriod

func (o *StreamsStreamPatchRequest) SetCatchupPeriod(v int32)

SetCatchupPeriod gets a reference to the given int32 and assigns it to the CatchupPeriod field.

func (*StreamsStreamPatchRequest) SetChannelId

func (o *StreamsStreamPatchRequest) SetChannelId(v string)

SetChannelId gets a reference to the given string and assigns it to the ChannelId field.

func (*StreamsStreamPatchRequest) SetConvertInfo

SetConvertInfo gets a reference to the given []StreamsPostRequestConvertInfoInner and assigns it to the ConvertInfo field.

func (*StreamsStreamPatchRequest) SetDescription

func (o *StreamsStreamPatchRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*StreamsStreamPatchRequest) SetFps

func (o *StreamsStreamPatchRequest) SetFps(v int32)

SetFps gets a reference to the given int32 and assigns it to the Fps field.

func (*StreamsStreamPatchRequest) SetFpsMode

func (o *StreamsStreamPatchRequest) SetFpsMode(v string)

SetFpsMode gets a reference to the given string and assigns it to the FpsMode field.

func (*StreamsStreamPatchRequest) SetInputUrl

func (o *StreamsStreamPatchRequest) SetInputUrl(v string)

SetInputUrl gets a reference to the given string and assigns it to the InputUrl field.

func (*StreamsStreamPatchRequest) SetMode

func (o *StreamsStreamPatchRequest) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*StreamsStreamPatchRequest) SetPresentType

func (o *StreamsStreamPatchRequest) SetPresentType(v string)

SetPresentType gets a reference to the given string and assigns it to the PresentType field.

func (*StreamsStreamPatchRequest) SetSecureLinkEnabled

func (o *StreamsStreamPatchRequest) SetSecureLinkEnabled(v bool)

SetSecureLinkEnabled gets a reference to the given bool and assigns it to the SecureLinkEnabled field.

func (*StreamsStreamPatchRequest) SetSecureLinkKey

func (o *StreamsStreamPatchRequest) SetSecureLinkKey(v string)

SetSecureLinkKey gets a reference to the given string and assigns it to the SecureLinkKey field.

func (*StreamsStreamPatchRequest) SetSecureLinkWithIp

func (o *StreamsStreamPatchRequest) SetSecureLinkWithIp(v bool)

SetSecureLinkWithIp gets a reference to the given bool and assigns it to the SecureLinkWithIp field.

func (*StreamsStreamPatchRequest) SetSlug

func (o *StreamsStreamPatchRequest) SetSlug(v string)

SetSlug gets a reference to the given string and assigns it to the Slug field.

func (*StreamsStreamPatchRequest) SetTimeshift

func (o *StreamsStreamPatchRequest) SetTimeshift(v int32)

SetTimeshift gets a reference to the given int32 and assigns it to the Timeshift field.

func (*StreamsStreamPatchRequest) SetTitle

func (o *StreamsStreamPatchRequest) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (*StreamsStreamPatchRequest) SetType

func (o *StreamsStreamPatchRequest) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*StreamsStreamPatchRequest) SetWatermarkArea

func (o *StreamsStreamPatchRequest) SetWatermarkArea(v string)

SetWatermarkArea gets a reference to the given string and assigns it to the WatermarkArea field.

func (*StreamsStreamPatchRequest) SetWatermarkId

func (o *StreamsStreamPatchRequest) SetWatermarkId(v string)

SetWatermarkId gets a reference to the given string and assigns it to the WatermarkId field.

func (StreamsStreamPatchRequest) ToMap

func (o StreamsStreamPatchRequest) ToMap() (map[string]interface{}, error)

type WatermarkAPIService

type WatermarkAPIService service

WatermarkAPIService WatermarkAPI service

func (*WatermarkAPIService) WatermarksGet

WatermarksGet Return all watermarks.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiWatermarksGetRequest

func (*WatermarkAPIService) WatermarksGetExecute

func (a *WatermarkAPIService) WatermarksGetExecute(r ApiWatermarksGetRequest) (*http.Response, error)

Execute executes the request

func (*WatermarkAPIService) WatermarksPost

WatermarksPost Store a newly created Watermark.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiWatermarksPostRequest

func (*WatermarkAPIService) WatermarksPostExecute

func (a *WatermarkAPIService) WatermarksPostExecute(r ApiWatermarksPostRequest) (*http.Response, error)

Execute executes the request

func (*WatermarkAPIService) WatermarksWatermarkDelete

func (a *WatermarkAPIService) WatermarksWatermarkDelete(ctx context.Context, watermark string) ApiWatermarksWatermarkDeleteRequest

WatermarksWatermarkDelete Remove the specified watermark.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param watermark The Id of watermark
@return ApiWatermarksWatermarkDeleteRequest

func (*WatermarkAPIService) WatermarksWatermarkDeleteExecute

func (a *WatermarkAPIService) WatermarksWatermarkDeleteExecute(r ApiWatermarksWatermarkDeleteRequest) (*http.Response, error)

Execute executes the request

func (*WatermarkAPIService) WatermarksWatermarkGet

func (a *WatermarkAPIService) WatermarksWatermarkGet(ctx context.Context, watermark string) ApiWatermarksWatermarkGetRequest

WatermarksWatermarkGet Return the specified watermark.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param watermark The Id of watermark
@return ApiWatermarksWatermarkGetRequest

func (*WatermarkAPIService) WatermarksWatermarkGetExecute

func (a *WatermarkAPIService) WatermarksWatermarkGetExecute(r ApiWatermarksWatermarkGetRequest) (*http.Response, error)

Execute executes the request

func (*WatermarkAPIService) WatermarksWatermarkPatch

func (a *WatermarkAPIService) WatermarksWatermarkPatch(ctx context.Context, watermark string) ApiWatermarksWatermarkPatchRequest

WatermarksWatermarkPatch Update the specified watermark.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param watermark The Id of watermark
@return ApiWatermarksWatermarkPatchRequest

func (*WatermarkAPIService) WatermarksWatermarkPatchExecute

func (a *WatermarkAPIService) WatermarksWatermarkPatchExecute(r ApiWatermarksWatermarkPatchRequest) (*http.Response, error)

Execute executes the request

type WatermarksWatermarkPatchRequest

type WatermarksWatermarkPatchRequest struct {
	// Title of watermark
	Title *string `json:"title,omitempty"`
	// Description of watermark
	Description *string `json:"description,omitempty"`
}

WatermarksWatermarkPatchRequest struct for WatermarksWatermarkPatchRequest

func NewWatermarksWatermarkPatchRequest

func NewWatermarksWatermarkPatchRequest() *WatermarksWatermarkPatchRequest

NewWatermarksWatermarkPatchRequest instantiates a new WatermarksWatermarkPatchRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewWatermarksWatermarkPatchRequestWithDefaults

func NewWatermarksWatermarkPatchRequestWithDefaults() *WatermarksWatermarkPatchRequest

NewWatermarksWatermarkPatchRequestWithDefaults instantiates a new WatermarksWatermarkPatchRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*WatermarksWatermarkPatchRequest) GetDescription

func (o *WatermarksWatermarkPatchRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*WatermarksWatermarkPatchRequest) GetDescriptionOk

func (o *WatermarksWatermarkPatchRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WatermarksWatermarkPatchRequest) GetTitle

GetTitle returns the Title field value if set, zero value otherwise.

func (*WatermarksWatermarkPatchRequest) GetTitleOk

func (o *WatermarksWatermarkPatchRequest) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WatermarksWatermarkPatchRequest) HasDescription

func (o *WatermarksWatermarkPatchRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*WatermarksWatermarkPatchRequest) HasTitle

func (o *WatermarksWatermarkPatchRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (WatermarksWatermarkPatchRequest) MarshalJSON

func (o WatermarksWatermarkPatchRequest) MarshalJSON() ([]byte, error)

func (*WatermarksWatermarkPatchRequest) SetDescription

func (o *WatermarksWatermarkPatchRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*WatermarksWatermarkPatchRequest) SetTitle

func (o *WatermarksWatermarkPatchRequest) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (WatermarksWatermarkPatchRequest) ToMap

func (o WatermarksWatermarkPatchRequest) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL