vads

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 vads

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 vads "github.com/hamidfzm/arvancloud-go/vads"

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(), vads.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(), vads.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(), vads.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), vads.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

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

Class Method HTTP request Description
AdAPI AdsAdDelete Delete /ads/{ad} Remove the specified ad.
AdAPI AdsAdGet Get /ads/{ad} Return the specified ad.
AdAPI AdsAdPut Put /ads/{ad} Update the specified ad.
AdAPI ChannelsChannelAdsGet Get /channels/{channel}/ads Return all channel's ads.
AdAPI ChannelsChannelAdsPost Post /channels/{channel}/ads Store a newly ad for specific channel.
AdsCategoryAPI AdsAdCategoriesCategoryDelete Delete /ads/{ad}/categories/{category} Detach category from ad.
AdsCategoryAPI AdsAdCategoriesCategoryPut Put /ads/{ad}/categories/{category} Attach category to ad
AdsCategoryAPI AdsAdCategoriesGet Get /ads/{ad}/categories Return all ad's categories.
CampaignAPI CampaignsCampaignDelete Delete /campaigns/{campaign} Remove the specified campaign.
CampaignAPI CampaignsCampaignGet Get /campaigns/{campaign} Return the specified campaign.
CampaignAPI CampaignsCampaignPut Put /campaigns/{campaign} Update the specified campaign.
CampaignAPI ChannelsChannelCampaignsGet Get /channels/{channel}/campaigns Return all channel's campaigns.
CampaignAPI ChannelsChannelCampaignsPost Post /channels/{channel}/campaigns Store a newly campaign for specific channel.
CampaignsAdAPI CampaignsCampaignAdsAdDelete Delete /campaigns/{campaign}/ads/{ad} Detach ad from campaign.
CampaignsAdAPI CampaignsCampaignAdsAdGet Get /campaigns/{campaign}/ads/{ad} Show attach detail of specific campaign's ad.
CampaignsAdAPI CampaignsCampaignAdsAdPut Put /campaigns/{campaign}/ads/{ad} Update the specified campaign's ad.
CampaignsAdAPI CampaignsCampaignAdsGet Get /campaigns/{campaign}/ads Return all campaign's ads.
CampaignsAdAPI CampaignsCampaignAdsPost Post /campaigns/{campaign}/ads Attach ad to campaign
CategoryAPI CategoriesCategoryDelete Delete /categories/{category} Remove the specified category.
CategoryAPI CategoriesCategoryGet Get /categories/{category} Return the specified category.
CategoryAPI CategoriesCategoryPut Put /categories/{category} Update the specified category.
CategoryAPI CategoriesGet Get /categories Return all user categories.
CategoryAPI CategoriesPost Post /categories Store a newly category.
ChannelAPI ChannelsChannelDelete Delete /channels/{channel} Remove the specified channel.
ChannelAPI ChannelsChannelGet Get /channels/{channel} Return the specified channel.
ChannelAPI ChannelsChannelPut Put /channels/{channel} Update the specified channel.
ChannelAPI ChannelsGet Get /channels Return all user channels.
ChannelAPI ChannelsPost Post /channels Store a newly channel.
DomainAPI DomainGet Get /domain Return User Domain.
DomainAPI DomainPost Post /domain Set subdomain for VAds service.
ReportAPI AdsAdReportsTrackEventPeriodGet Get /ads/{ad}/reports/track/{event}/{period} Ad track report per event.
ReportAPI CampaignsCampaignAdsAdReportsTrackEventPeriodGet Get /campaigns/{campaign}/ads/{ad}/reports/track/{event}/{period} Ad in campaign track report per event.
ReportAPI CampaignsCampaignReportsTrackEventPeriodGet Get /campaigns/{campaign}/reports/track/{event}/{period} Campaign track report per event.

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 {
	AdAPI *AdAPIService

	AdsCategoryAPI *AdsCategoryAPIService

	CampaignAPI *CampaignAPIService

	CampaignsAdAPI *CampaignsAdAPIService

	CategoryAPI *CategoryAPIService

	ChannelAPI *ChannelAPIService

	DomainAPI *DomainAPIService

	ReportAPI *ReportAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the ArvanCloud Video Advertising Service 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 AdAPIService

type AdAPIService service

AdAPIService AdAPI service

func (*AdAPIService) AdsAdDelete

func (a *AdAPIService) AdsAdDelete(ctx context.Context, ad string) ApiAdsAdDeleteRequest

AdsAdDelete Remove the specified ad.

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

func (*AdAPIService) AdsAdDeleteExecute

func (a *AdAPIService) AdsAdDeleteExecute(r ApiAdsAdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*AdAPIService) AdsAdGet

func (a *AdAPIService) AdsAdGet(ctx context.Context, ad string) ApiAdsAdGetRequest

AdsAdGet Return the specified ad.

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

func (*AdAPIService) AdsAdGetExecute

func (a *AdAPIService) AdsAdGetExecute(r ApiAdsAdGetRequest) (*http.Response, error)

Execute executes the request

func (*AdAPIService) AdsAdPut

func (a *AdAPIService) AdsAdPut(ctx context.Context, ad string) ApiAdsAdPutRequest

AdsAdPut Update the specified ad.

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

func (*AdAPIService) AdsAdPutExecute

func (a *AdAPIService) AdsAdPutExecute(r ApiAdsAdPutRequest) (*http.Response, error)

Execute executes the request

func (*AdAPIService) ChannelsChannelAdsGet

func (a *AdAPIService) ChannelsChannelAdsGet(ctx context.Context, channel string) ApiChannelsChannelAdsGetRequest

ChannelsChannelAdsGet Return all channel's ads.

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

func (*AdAPIService) ChannelsChannelAdsGetExecute

func (a *AdAPIService) ChannelsChannelAdsGetExecute(r ApiChannelsChannelAdsGetRequest) (*http.Response, error)

Execute executes the request

func (*AdAPIService) ChannelsChannelAdsPost

func (a *AdAPIService) ChannelsChannelAdsPost(ctx context.Context, channel string) ApiChannelsChannelAdsPostRequest

ChannelsChannelAdsPost Store a newly ad for specific channel.

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

func (*AdAPIService) ChannelsChannelAdsPostExecute

func (a *AdAPIService) ChannelsChannelAdsPostExecute(r ApiChannelsChannelAdsPostRequest) (*http.Response, error)

Execute executes the request

type AdsAdPutRequest

type AdsAdPutRequest struct {
	// Title of ad
	Title *string `json:"title,omitempty"`
	// Description of ad
	Description *string `json:"description,omitempty"`
	// Ad type
	AdType *string `json:"ad_type,omitempty"`
	// Specify mid-roll time in seconds
	PlayTime *int32 `json:"play_time,omitempty"`
	// Skip type
	SkipType *string `json:"skip_type,omitempty"`
	// Skip offset in seconds (required if skip type is allow)
	SkipOffset *int32 `json:"skip_offset,omitempty"`
	// Click URL when user click on ad
	ClickThrough *string `json:"click_through,omitempty"`
}

AdsAdPutRequest struct for AdsAdPutRequest

func NewAdsAdPutRequest

func NewAdsAdPutRequest() *AdsAdPutRequest

NewAdsAdPutRequest instantiates a new AdsAdPutRequest 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 NewAdsAdPutRequestWithDefaults

func NewAdsAdPutRequestWithDefaults() *AdsAdPutRequest

NewAdsAdPutRequestWithDefaults instantiates a new AdsAdPutRequest 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 (*AdsAdPutRequest) GetAdType

func (o *AdsAdPutRequest) GetAdType() string

GetAdType returns the AdType field value if set, zero value otherwise.

func (*AdsAdPutRequest) GetAdTypeOk

func (o *AdsAdPutRequest) GetAdTypeOk() (*string, bool)

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

func (*AdsAdPutRequest) GetClickThrough

func (o *AdsAdPutRequest) GetClickThrough() string

GetClickThrough returns the ClickThrough field value if set, zero value otherwise.

func (*AdsAdPutRequest) GetClickThroughOk

func (o *AdsAdPutRequest) GetClickThroughOk() (*string, bool)

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

func (*AdsAdPutRequest) GetDescription

func (o *AdsAdPutRequest) GetDescription() string

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

func (*AdsAdPutRequest) GetDescriptionOk

func (o *AdsAdPutRequest) 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 (*AdsAdPutRequest) GetPlayTime

func (o *AdsAdPutRequest) GetPlayTime() int32

GetPlayTime returns the PlayTime field value if set, zero value otherwise.

func (*AdsAdPutRequest) GetPlayTimeOk

func (o *AdsAdPutRequest) GetPlayTimeOk() (*int32, bool)

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

func (*AdsAdPutRequest) GetSkipOffset

func (o *AdsAdPutRequest) GetSkipOffset() int32

GetSkipOffset returns the SkipOffset field value if set, zero value otherwise.

func (*AdsAdPutRequest) GetSkipOffsetOk

func (o *AdsAdPutRequest) GetSkipOffsetOk() (*int32, bool)

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

func (*AdsAdPutRequest) GetSkipType

func (o *AdsAdPutRequest) GetSkipType() string

GetSkipType returns the SkipType field value if set, zero value otherwise.

func (*AdsAdPutRequest) GetSkipTypeOk

func (o *AdsAdPutRequest) GetSkipTypeOk() (*string, bool)

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

func (*AdsAdPutRequest) GetTitle

func (o *AdsAdPutRequest) GetTitle() string

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

func (*AdsAdPutRequest) GetTitleOk

func (o *AdsAdPutRequest) 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 (*AdsAdPutRequest) HasAdType

func (o *AdsAdPutRequest) HasAdType() bool

HasAdType returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasClickThrough

func (o *AdsAdPutRequest) HasClickThrough() bool

HasClickThrough returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasDescription

func (o *AdsAdPutRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasPlayTime

func (o *AdsAdPutRequest) HasPlayTime() bool

HasPlayTime returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasSkipOffset

func (o *AdsAdPutRequest) HasSkipOffset() bool

HasSkipOffset returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasSkipType

func (o *AdsAdPutRequest) HasSkipType() bool

HasSkipType returns a boolean if a field has been set.

func (*AdsAdPutRequest) HasTitle

func (o *AdsAdPutRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (AdsAdPutRequest) MarshalJSON

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

func (*AdsAdPutRequest) SetAdType

func (o *AdsAdPutRequest) SetAdType(v string)

SetAdType gets a reference to the given string and assigns it to the AdType field.

func (*AdsAdPutRequest) SetClickThrough

func (o *AdsAdPutRequest) SetClickThrough(v string)

SetClickThrough gets a reference to the given string and assigns it to the ClickThrough field.

func (*AdsAdPutRequest) SetDescription

func (o *AdsAdPutRequest) SetDescription(v string)

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

func (*AdsAdPutRequest) SetPlayTime

func (o *AdsAdPutRequest) SetPlayTime(v int32)

SetPlayTime gets a reference to the given int32 and assigns it to the PlayTime field.

func (*AdsAdPutRequest) SetSkipOffset

func (o *AdsAdPutRequest) SetSkipOffset(v int32)

SetSkipOffset gets a reference to the given int32 and assigns it to the SkipOffset field.

func (*AdsAdPutRequest) SetSkipType

func (o *AdsAdPutRequest) SetSkipType(v string)

SetSkipType gets a reference to the given string and assigns it to the SkipType field.

func (*AdsAdPutRequest) SetTitle

func (o *AdsAdPutRequest) SetTitle(v string)

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

func (AdsAdPutRequest) ToMap

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

type AdsCategoryAPIService

type AdsCategoryAPIService service

AdsCategoryAPIService AdsCategoryAPI service

func (*AdsCategoryAPIService) AdsAdCategoriesCategoryDelete

func (a *AdsCategoryAPIService) AdsAdCategoriesCategoryDelete(ctx context.Context, ad string, category string) ApiAdsAdCategoriesCategoryDeleteRequest

AdsAdCategoriesCategoryDelete Detach category from ad.

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

func (*AdsCategoryAPIService) AdsAdCategoriesCategoryDeleteExecute

func (a *AdsCategoryAPIService) AdsAdCategoriesCategoryDeleteExecute(r ApiAdsAdCategoriesCategoryDeleteRequest) (*http.Response, error)

Execute executes the request

func (*AdsCategoryAPIService) AdsAdCategoriesCategoryPut

func (a *AdsCategoryAPIService) AdsAdCategoriesCategoryPut(ctx context.Context, ad string, category string) ApiAdsAdCategoriesCategoryPutRequest

AdsAdCategoriesCategoryPut Attach category to ad

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

func (*AdsCategoryAPIService) AdsAdCategoriesCategoryPutExecute

func (a *AdsCategoryAPIService) AdsAdCategoriesCategoryPutExecute(r ApiAdsAdCategoriesCategoryPutRequest) (*http.Response, error)

Execute executes the request

func (*AdsCategoryAPIService) AdsAdCategoriesGet

AdsAdCategoriesGet Return all ad's categories.

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

func (*AdsCategoryAPIService) AdsAdCategoriesGetExecute

func (a *AdsCategoryAPIService) AdsAdCategoriesGetExecute(r ApiAdsAdCategoriesGetRequest) (*http.Response, error)

Execute executes the request

type ApiAdsAdCategoriesCategoryDeleteRequest

type ApiAdsAdCategoriesCategoryDeleteRequest struct {
	ApiService *AdsCategoryAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdCategoriesCategoryDeleteRequest) Execute

type ApiAdsAdCategoriesCategoryPutRequest

type ApiAdsAdCategoriesCategoryPutRequest struct {
	ApiService *AdsCategoryAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdCategoriesCategoryPutRequest) Execute

type ApiAdsAdCategoriesGetRequest

type ApiAdsAdCategoriesGetRequest struct {
	ApiService *AdsCategoryAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdCategoriesGetRequest) Execute

type ApiAdsAdDeleteRequest

type ApiAdsAdDeleteRequest struct {
	ApiService *AdAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdDeleteRequest) Execute

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

type ApiAdsAdGetRequest

type ApiAdsAdGetRequest struct {
	ApiService *AdAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdGetRequest) Execute

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

type ApiAdsAdPutRequest

type ApiAdsAdPutRequest struct {
	ApiService *AdAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdPutRequest) Body

Ad's details

func (ApiAdsAdPutRequest) Execute

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

type ApiAdsAdReportsTrackEventPeriodGetRequest

type ApiAdsAdReportsTrackEventPeriodGetRequest struct {
	ApiService *ReportAPIService
	// contains filtered or unexported fields
}

func (ApiAdsAdReportsTrackEventPeriodGetRequest) Execute

func (ApiAdsAdReportsTrackEventPeriodGetRequest) From

Starting datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

func (ApiAdsAdReportsTrackEventPeriodGetRequest) To

Ending datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

type ApiCampaignsCampaignAdsAdDeleteRequest

type ApiCampaignsCampaignAdsAdDeleteRequest struct {
	ApiService *CampaignsAdAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsAdDeleteRequest) Execute

type ApiCampaignsCampaignAdsAdGetRequest

type ApiCampaignsCampaignAdsAdGetRequest struct {
	ApiService *CampaignsAdAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsAdGetRequest) Execute

type ApiCampaignsCampaignAdsAdPutRequest

type ApiCampaignsCampaignAdsAdPutRequest struct {
	ApiService *CampaignsAdAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsAdPutRequest) Body

Campaign's ad details

func (ApiCampaignsCampaignAdsAdPutRequest) Execute

type ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest

type ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest struct {
	ApiService *ReportAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest) Execute

func (ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest) From

Starting datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

func (ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest) To

Ending datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

type ApiCampaignsCampaignAdsGetRequest

type ApiCampaignsCampaignAdsGetRequest struct {
	ApiService *CampaignsAdAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsGetRequest) Execute

type ApiCampaignsCampaignAdsPostRequest

type ApiCampaignsCampaignAdsPostRequest struct {
	ApiService *CampaignsAdAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignAdsPostRequest) Body

Campaign's ad details

func (ApiCampaignsCampaignAdsPostRequest) Execute

type ApiCampaignsCampaignDeleteRequest

type ApiCampaignsCampaignDeleteRequest struct {
	ApiService *CampaignAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignDeleteRequest) Execute

type ApiCampaignsCampaignGetRequest

type ApiCampaignsCampaignGetRequest struct {
	ApiService *CampaignAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignGetRequest) Execute

type ApiCampaignsCampaignPutRequest

type ApiCampaignsCampaignPutRequest struct {
	ApiService *CampaignAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignPutRequest) Body

Ad's ad details

func (ApiCampaignsCampaignPutRequest) Execute

type ApiCampaignsCampaignReportsTrackEventPeriodGetRequest

type ApiCampaignsCampaignReportsTrackEventPeriodGetRequest struct {
	ApiService *ReportAPIService
	// contains filtered or unexported fields
}

func (ApiCampaignsCampaignReportsTrackEventPeriodGetRequest) Execute

func (ApiCampaignsCampaignReportsTrackEventPeriodGetRequest) From

Starting datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

func (ApiCampaignsCampaignReportsTrackEventPeriodGetRequest) To

Ending datetime of report. Format: 'YYYY-MM-DD H:i:s' like: '2018-01-01 00:00:00'

type ApiCategoriesCategoryDeleteRequest

type ApiCategoriesCategoryDeleteRequest struct {
	ApiService *CategoryAPIService
	// contains filtered or unexported fields
}

func (ApiCategoriesCategoryDeleteRequest) Execute

type ApiCategoriesCategoryGetRequest

type ApiCategoriesCategoryGetRequest struct {
	ApiService *CategoryAPIService
	// contains filtered or unexported fields
}

func (ApiCategoriesCategoryGetRequest) Execute

type ApiCategoriesCategoryPutRequest

type ApiCategoriesCategoryPutRequest struct {
	ApiService *CategoryAPIService
	// contains filtered or unexported fields
}

func (ApiCategoriesCategoryPutRequest) Body

Category details

func (ApiCategoriesCategoryPutRequest) Execute

type ApiCategoriesGetRequest

type ApiCategoriesGetRequest struct {
	ApiService *CategoryAPIService
	// contains filtered or unexported fields
}

func (ApiCategoriesGetRequest) Execute

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

func (ApiCategoriesGetRequest) Page

Page number

func (ApiCategoriesGetRequest) PerPage

Page limit

type ApiCategoriesPostRequest

type ApiCategoriesPostRequest struct {
	ApiService *CategoryAPIService
	// contains filtered or unexported fields
}

func (ApiCategoriesPostRequest) Body

Category details

func (ApiCategoriesPostRequest) Execute

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

type ApiChannelsChannelAdsGetRequest

type ApiChannelsChannelAdsGetRequest struct {
	ApiService *AdAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelAdsGetRequest) Execute

func (ApiChannelsChannelAdsGetRequest) Filter

Filter result

func (ApiChannelsChannelAdsGetRequest) Page

Page number

func (ApiChannelsChannelAdsGetRequest) PerPage

Page limit for query

type ApiChannelsChannelAdsPostRequest

type ApiChannelsChannelAdsPostRequest struct {
	ApiService *AdAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelAdsPostRequest) AdType

Ad type

func (ApiChannelsChannelAdsPostRequest) ClickThrough

Click URL when user click on ad

func (ApiChannelsChannelAdsPostRequest) Description

Description of ad

func (ApiChannelsChannelAdsPostRequest) Execute

func (ApiChannelsChannelAdsPostRequest) MediaFile

Media file for ad (Accept video/mp4 for pre_roll ads)

func (ApiChannelsChannelAdsPostRequest) SkipOffset

Skip offset in seconds (required if skip type is allow)

func (ApiChannelsChannelAdsPostRequest) SkipType

Skip type

func (ApiChannelsChannelAdsPostRequest) Title

Title of ad

type ApiChannelsChannelCampaignsGetRequest

type ApiChannelsChannelCampaignsGetRequest struct {
	ApiService *CampaignAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelCampaignsGetRequest) Execute

func (ApiChannelsChannelCampaignsGetRequest) Page

Page number

func (ApiChannelsChannelCampaignsGetRequest) PerPage

Page limit for query

type ApiChannelsChannelCampaignsPostRequest

type ApiChannelsChannelCampaignsPostRequest struct {
	ApiService *CampaignAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelCampaignsPostRequest) Body

Ad's ad details

func (ApiChannelsChannelCampaignsPostRequest) Execute

type ApiChannelsChannelDeleteRequest

type ApiChannelsChannelDeleteRequest struct {
	ApiService *ChannelAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelDeleteRequest) Execute

type ApiChannelsChannelGetRequest

type ApiChannelsChannelGetRequest struct {
	ApiService *ChannelAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelGetRequest) Execute

type ApiChannelsChannelPutRequest

type ApiChannelsChannelPutRequest struct {
	ApiService *ChannelAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsChannelPutRequest) Body

Channel details

func (ApiChannelsChannelPutRequest) Execute

type ApiChannelsGetRequest

type ApiChannelsGetRequest struct {
	ApiService *ChannelAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsGetRequest) Execute

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

func (ApiChannelsGetRequest) Filter

Filter result

func (ApiChannelsGetRequest) Page

Page number

func (ApiChannelsGetRequest) PerPage

Page limit

type ApiChannelsPostRequest

type ApiChannelsPostRequest struct {
	ApiService *ChannelAPIService
	// contains filtered or unexported fields
}

func (ApiChannelsPostRequest) Body

Channel details

func (ApiChannelsPostRequest) Execute

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

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 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 CampaignAPIService

type CampaignAPIService service

CampaignAPIService CampaignAPI service

func (*CampaignAPIService) CampaignsCampaignDelete

func (a *CampaignAPIService) CampaignsCampaignDelete(ctx context.Context, campaign string) ApiCampaignsCampaignDeleteRequest

CampaignsCampaignDelete Remove the specified campaign.

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

func (*CampaignAPIService) CampaignsCampaignDeleteExecute

func (a *CampaignAPIService) CampaignsCampaignDeleteExecute(r ApiCampaignsCampaignDeleteRequest) (*http.Response, error)

Execute executes the request

func (*CampaignAPIService) CampaignsCampaignGet

func (a *CampaignAPIService) CampaignsCampaignGet(ctx context.Context, campaign string) ApiCampaignsCampaignGetRequest

CampaignsCampaignGet Return the specified campaign.

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

func (*CampaignAPIService) CampaignsCampaignGetExecute

func (a *CampaignAPIService) CampaignsCampaignGetExecute(r ApiCampaignsCampaignGetRequest) (*http.Response, error)

Execute executes the request

func (*CampaignAPIService) CampaignsCampaignPut

func (a *CampaignAPIService) CampaignsCampaignPut(ctx context.Context, campaign string) ApiCampaignsCampaignPutRequest

CampaignsCampaignPut Update the specified campaign.

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

func (*CampaignAPIService) CampaignsCampaignPutExecute

func (a *CampaignAPIService) CampaignsCampaignPutExecute(r ApiCampaignsCampaignPutRequest) (*http.Response, error)

Execute executes the request

func (*CampaignAPIService) ChannelsChannelCampaignsGet

func (a *CampaignAPIService) ChannelsChannelCampaignsGet(ctx context.Context, channel string) ApiChannelsChannelCampaignsGetRequest

ChannelsChannelCampaignsGet Return all channel's campaigns.

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

func (*CampaignAPIService) ChannelsChannelCampaignsGetExecute

func (a *CampaignAPIService) ChannelsChannelCampaignsGetExecute(r ApiChannelsChannelCampaignsGetRequest) (*http.Response, error)

Execute executes the request

func (*CampaignAPIService) ChannelsChannelCampaignsPost

func (a *CampaignAPIService) ChannelsChannelCampaignsPost(ctx context.Context, channel string) ApiChannelsChannelCampaignsPostRequest

ChannelsChannelCampaignsPost Store a newly campaign for specific channel.

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

func (*CampaignAPIService) ChannelsChannelCampaignsPostExecute

func (a *CampaignAPIService) ChannelsChannelCampaignsPostExecute(r ApiChannelsChannelCampaignsPostRequest) (*http.Response, error)

Execute executes the request

type CampaignsAdAPIService

type CampaignsAdAPIService service

CampaignsAdAPIService CampaignsAdAPI service

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdDelete

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdDelete(ctx context.Context, campaign string, ad string) ApiCampaignsCampaignAdsAdDeleteRequest

CampaignsCampaignAdsAdDelete Detach ad from campaign.

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

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdDeleteExecute

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdDeleteExecute(r ApiCampaignsCampaignAdsAdDeleteRequest) (*http.Response, error)

Execute executes the request

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdGet

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdGet(ctx context.Context, campaign string, ad string) ApiCampaignsCampaignAdsAdGetRequest

CampaignsCampaignAdsAdGet Show attach detail of specific campaign's ad.

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

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdGetExecute

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdGetExecute(r ApiCampaignsCampaignAdsAdGetRequest) (*http.Response, error)

Execute executes the request

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdPut

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdPut(ctx context.Context, campaign string, ad string) ApiCampaignsCampaignAdsAdPutRequest

CampaignsCampaignAdsAdPut Update the specified campaign's ad.

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

func (*CampaignsAdAPIService) CampaignsCampaignAdsAdPutExecute

func (a *CampaignsAdAPIService) CampaignsCampaignAdsAdPutExecute(r ApiCampaignsCampaignAdsAdPutRequest) (*http.Response, error)

Execute executes the request

func (*CampaignsAdAPIService) CampaignsCampaignAdsGet

func (a *CampaignsAdAPIService) CampaignsCampaignAdsGet(ctx context.Context, campaign string) ApiCampaignsCampaignAdsGetRequest

CampaignsCampaignAdsGet Return all campaign's ads.

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

func (*CampaignsAdAPIService) CampaignsCampaignAdsGetExecute

func (a *CampaignsAdAPIService) CampaignsCampaignAdsGetExecute(r ApiCampaignsCampaignAdsGetRequest) (*http.Response, error)

Execute executes the request

func (*CampaignsAdAPIService) CampaignsCampaignAdsPost

func (a *CampaignsAdAPIService) CampaignsCampaignAdsPost(ctx context.Context, campaign string) ApiCampaignsCampaignAdsPostRequest

CampaignsCampaignAdsPost Attach ad to campaign

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

func (*CampaignsAdAPIService) CampaignsCampaignAdsPostExecute

func (a *CampaignsAdAPIService) CampaignsCampaignAdsPostExecute(r ApiCampaignsCampaignAdsPostRequest) (*http.Response, error)

Execute executes the request

type CampaignsCampaignAdsAdPutRequest

type CampaignsCampaignAdsAdPutRequest struct {
	// Weight of ad.      *                  When exists similar type ad(s,) use weight for choose ad to insert in VAST XML
	Weight *int32 `json:"weight,omitempty"`
	// Set device filter for show ads
	FilterDevice []string `json:"filter_device,omitempty"`
	// Set browser filter for show ads
	FilterBrowser []string `json:"filter_browser,omitempty"`
	// Set platform filter for show ads
	FilterPlatform []string `json:"filter_platform,omitempty"`
	// Limited condition(s) of trigger event that stop present ad in campaign
	Quota []CampaignsCampaignAdsPostRequestQuotaInner `json:"quota,omitempty"`
	// Quota type
	QuotaType *string `json:"quota_type,omitempty"`
}

CampaignsCampaignAdsAdPutRequest struct for CampaignsCampaignAdsAdPutRequest

func NewCampaignsCampaignAdsAdPutRequest

func NewCampaignsCampaignAdsAdPutRequest() *CampaignsCampaignAdsAdPutRequest

NewCampaignsCampaignAdsAdPutRequest instantiates a new CampaignsCampaignAdsAdPutRequest 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 NewCampaignsCampaignAdsAdPutRequestWithDefaults

func NewCampaignsCampaignAdsAdPutRequestWithDefaults() *CampaignsCampaignAdsAdPutRequest

NewCampaignsCampaignAdsAdPutRequestWithDefaults instantiates a new CampaignsCampaignAdsAdPutRequest 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 (*CampaignsCampaignAdsAdPutRequest) GetFilterBrowser

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterBrowser() []string

GetFilterBrowser returns the FilterBrowser field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetFilterBrowserOk

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterBrowserOk() ([]string, bool)

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

func (*CampaignsCampaignAdsAdPutRequest) GetFilterDevice

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterDevice() []string

GetFilterDevice returns the FilterDevice field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetFilterDeviceOk

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterDeviceOk() ([]string, bool)

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

func (*CampaignsCampaignAdsAdPutRequest) GetFilterPlatform

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterPlatform() []string

GetFilterPlatform returns the FilterPlatform field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetFilterPlatformOk

func (o *CampaignsCampaignAdsAdPutRequest) GetFilterPlatformOk() ([]string, bool)

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

func (*CampaignsCampaignAdsAdPutRequest) GetQuota

GetQuota returns the Quota field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetQuotaOk

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

func (*CampaignsCampaignAdsAdPutRequest) GetQuotaType

func (o *CampaignsCampaignAdsAdPutRequest) GetQuotaType() string

GetQuotaType returns the QuotaType field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetQuotaTypeOk

func (o *CampaignsCampaignAdsAdPutRequest) GetQuotaTypeOk() (*string, bool)

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

func (*CampaignsCampaignAdsAdPutRequest) GetWeight

func (o *CampaignsCampaignAdsAdPutRequest) GetWeight() int32

GetWeight returns the Weight field value if set, zero value otherwise.

func (*CampaignsCampaignAdsAdPutRequest) GetWeightOk

func (o *CampaignsCampaignAdsAdPutRequest) GetWeightOk() (*int32, bool)

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

func (*CampaignsCampaignAdsAdPutRequest) HasFilterBrowser

func (o *CampaignsCampaignAdsAdPutRequest) HasFilterBrowser() bool

HasFilterBrowser returns a boolean if a field has been set.

func (*CampaignsCampaignAdsAdPutRequest) HasFilterDevice

func (o *CampaignsCampaignAdsAdPutRequest) HasFilterDevice() bool

HasFilterDevice returns a boolean if a field has been set.

func (*CampaignsCampaignAdsAdPutRequest) HasFilterPlatform

func (o *CampaignsCampaignAdsAdPutRequest) HasFilterPlatform() bool

HasFilterPlatform returns a boolean if a field has been set.

func (*CampaignsCampaignAdsAdPutRequest) HasQuota

func (o *CampaignsCampaignAdsAdPutRequest) HasQuota() bool

HasQuota returns a boolean if a field has been set.

func (*CampaignsCampaignAdsAdPutRequest) HasQuotaType

func (o *CampaignsCampaignAdsAdPutRequest) HasQuotaType() bool

HasQuotaType returns a boolean if a field has been set.

func (*CampaignsCampaignAdsAdPutRequest) HasWeight

func (o *CampaignsCampaignAdsAdPutRequest) HasWeight() bool

HasWeight returns a boolean if a field has been set.

func (CampaignsCampaignAdsAdPutRequest) MarshalJSON

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

func (*CampaignsCampaignAdsAdPutRequest) SetFilterBrowser

func (o *CampaignsCampaignAdsAdPutRequest) SetFilterBrowser(v []string)

SetFilterBrowser gets a reference to the given []string and assigns it to the FilterBrowser field.

func (*CampaignsCampaignAdsAdPutRequest) SetFilterDevice

func (o *CampaignsCampaignAdsAdPutRequest) SetFilterDevice(v []string)

SetFilterDevice gets a reference to the given []string and assigns it to the FilterDevice field.

func (*CampaignsCampaignAdsAdPutRequest) SetFilterPlatform

func (o *CampaignsCampaignAdsAdPutRequest) SetFilterPlatform(v []string)

SetFilterPlatform gets a reference to the given []string and assigns it to the FilterPlatform field.

func (*CampaignsCampaignAdsAdPutRequest) SetQuota

SetQuota gets a reference to the given []CampaignsCampaignAdsPostRequestQuotaInner and assigns it to the Quota field.

func (*CampaignsCampaignAdsAdPutRequest) SetQuotaType

func (o *CampaignsCampaignAdsAdPutRequest) SetQuotaType(v string)

SetQuotaType gets a reference to the given string and assigns it to the QuotaType field.

func (*CampaignsCampaignAdsAdPutRequest) SetWeight

func (o *CampaignsCampaignAdsAdPutRequest) SetWeight(v int32)

SetWeight gets a reference to the given int32 and assigns it to the Weight field.

func (CampaignsCampaignAdsAdPutRequest) ToMap

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

type CampaignsCampaignAdsPostRequest

type CampaignsCampaignAdsPostRequest struct {
	// The id of ad      *                  Notice: Both ad & campaign most belongs to same channel.
	AdId string `json:"ad_id"`
	// Weight of ad.      *                  When exists similar type ad(s,) use weight for choose ad to insert in VAST XML
	Weight int32 `json:"weight"`
	// Set device filter for show ads
	FilterDevice []string `json:"filter_device,omitempty"`
	// Set browser filter for show ads
	FilterBrowser []string `json:"filter_browser,omitempty"`
	// Set platform filter for show ads
	FilterPlatform []string `json:"filter_platform,omitempty"`
	// Limited condition(s) of trigger event that stop present ad in campaign
	Quota []CampaignsCampaignAdsPostRequestQuotaInner `json:"quota,omitempty"`
	// Quota type
	QuotaType *string `json:"quota_type,omitempty"`
}

CampaignsCampaignAdsPostRequest struct for CampaignsCampaignAdsPostRequest

func NewCampaignsCampaignAdsPostRequest

func NewCampaignsCampaignAdsPostRequest(adId string, weight int32) *CampaignsCampaignAdsPostRequest

NewCampaignsCampaignAdsPostRequest instantiates a new CampaignsCampaignAdsPostRequest 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 NewCampaignsCampaignAdsPostRequestWithDefaults

func NewCampaignsCampaignAdsPostRequestWithDefaults() *CampaignsCampaignAdsPostRequest

NewCampaignsCampaignAdsPostRequestWithDefaults instantiates a new CampaignsCampaignAdsPostRequest 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 (*CampaignsCampaignAdsPostRequest) GetAdId

GetAdId returns the AdId field value

func (*CampaignsCampaignAdsPostRequest) GetAdIdOk

func (o *CampaignsCampaignAdsPostRequest) GetAdIdOk() (*string, bool)

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

func (*CampaignsCampaignAdsPostRequest) GetFilterBrowser

func (o *CampaignsCampaignAdsPostRequest) GetFilterBrowser() []string

GetFilterBrowser returns the FilterBrowser field value if set, zero value otherwise.

func (*CampaignsCampaignAdsPostRequest) GetFilterBrowserOk

func (o *CampaignsCampaignAdsPostRequest) GetFilterBrowserOk() ([]string, bool)

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

func (*CampaignsCampaignAdsPostRequest) GetFilterDevice

func (o *CampaignsCampaignAdsPostRequest) GetFilterDevice() []string

GetFilterDevice returns the FilterDevice field value if set, zero value otherwise.

func (*CampaignsCampaignAdsPostRequest) GetFilterDeviceOk

func (o *CampaignsCampaignAdsPostRequest) GetFilterDeviceOk() ([]string, bool)

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

func (*CampaignsCampaignAdsPostRequest) GetFilterPlatform

func (o *CampaignsCampaignAdsPostRequest) GetFilterPlatform() []string

GetFilterPlatform returns the FilterPlatform field value if set, zero value otherwise.

func (*CampaignsCampaignAdsPostRequest) GetFilterPlatformOk

func (o *CampaignsCampaignAdsPostRequest) GetFilterPlatformOk() ([]string, bool)

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

func (*CampaignsCampaignAdsPostRequest) GetQuota

GetQuota returns the Quota field value if set, zero value otherwise.

func (*CampaignsCampaignAdsPostRequest) GetQuotaOk

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

func (*CampaignsCampaignAdsPostRequest) GetQuotaType

func (o *CampaignsCampaignAdsPostRequest) GetQuotaType() string

GetQuotaType returns the QuotaType field value if set, zero value otherwise.

func (*CampaignsCampaignAdsPostRequest) GetQuotaTypeOk

func (o *CampaignsCampaignAdsPostRequest) GetQuotaTypeOk() (*string, bool)

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

func (*CampaignsCampaignAdsPostRequest) GetWeight

func (o *CampaignsCampaignAdsPostRequest) GetWeight() int32

GetWeight returns the Weight field value

func (*CampaignsCampaignAdsPostRequest) GetWeightOk

func (o *CampaignsCampaignAdsPostRequest) GetWeightOk() (*int32, bool)

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

func (*CampaignsCampaignAdsPostRequest) HasFilterBrowser

func (o *CampaignsCampaignAdsPostRequest) HasFilterBrowser() bool

HasFilterBrowser returns a boolean if a field has been set.

func (*CampaignsCampaignAdsPostRequest) HasFilterDevice

func (o *CampaignsCampaignAdsPostRequest) HasFilterDevice() bool

HasFilterDevice returns a boolean if a field has been set.

func (*CampaignsCampaignAdsPostRequest) HasFilterPlatform

func (o *CampaignsCampaignAdsPostRequest) HasFilterPlatform() bool

HasFilterPlatform returns a boolean if a field has been set.

func (*CampaignsCampaignAdsPostRequest) HasQuota

func (o *CampaignsCampaignAdsPostRequest) HasQuota() bool

HasQuota returns a boolean if a field has been set.

func (*CampaignsCampaignAdsPostRequest) HasQuotaType

func (o *CampaignsCampaignAdsPostRequest) HasQuotaType() bool

HasQuotaType returns a boolean if a field has been set.

func (CampaignsCampaignAdsPostRequest) MarshalJSON

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

func (*CampaignsCampaignAdsPostRequest) SetAdId

SetAdId sets field value

func (*CampaignsCampaignAdsPostRequest) SetFilterBrowser

func (o *CampaignsCampaignAdsPostRequest) SetFilterBrowser(v []string)

SetFilterBrowser gets a reference to the given []string and assigns it to the FilterBrowser field.

func (*CampaignsCampaignAdsPostRequest) SetFilterDevice

func (o *CampaignsCampaignAdsPostRequest) SetFilterDevice(v []string)

SetFilterDevice gets a reference to the given []string and assigns it to the FilterDevice field.

func (*CampaignsCampaignAdsPostRequest) SetFilterPlatform

func (o *CampaignsCampaignAdsPostRequest) SetFilterPlatform(v []string)

SetFilterPlatform gets a reference to the given []string and assigns it to the FilterPlatform field.

func (*CampaignsCampaignAdsPostRequest) SetQuota

SetQuota gets a reference to the given []CampaignsCampaignAdsPostRequestQuotaInner and assigns it to the Quota field.

func (*CampaignsCampaignAdsPostRequest) SetQuotaType

func (o *CampaignsCampaignAdsPostRequest) SetQuotaType(v string)

SetQuotaType gets a reference to the given string and assigns it to the QuotaType field.

func (*CampaignsCampaignAdsPostRequest) SetWeight

func (o *CampaignsCampaignAdsPostRequest) SetWeight(v int32)

SetWeight sets field value

func (CampaignsCampaignAdsPostRequest) ToMap

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

type CampaignsCampaignAdsPostRequestQuotaInner

type CampaignsCampaignAdsPostRequestQuotaInner struct {
	// The event of this quota
	Key string `json:"key"`
	// Value of limit this quota
	Value int32 `json:"value"`
}

CampaignsCampaignAdsPostRequestQuotaInner struct for CampaignsCampaignAdsPostRequestQuotaInner

func NewCampaignsCampaignAdsPostRequestQuotaInner

func NewCampaignsCampaignAdsPostRequestQuotaInner(key string, value int32) *CampaignsCampaignAdsPostRequestQuotaInner

NewCampaignsCampaignAdsPostRequestQuotaInner instantiates a new CampaignsCampaignAdsPostRequestQuotaInner 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 NewCampaignsCampaignAdsPostRequestQuotaInnerWithDefaults

func NewCampaignsCampaignAdsPostRequestQuotaInnerWithDefaults() *CampaignsCampaignAdsPostRequestQuotaInner

NewCampaignsCampaignAdsPostRequestQuotaInnerWithDefaults instantiates a new CampaignsCampaignAdsPostRequestQuotaInner 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 (*CampaignsCampaignAdsPostRequestQuotaInner) GetKey

GetKey returns the Key field value

func (*CampaignsCampaignAdsPostRequestQuotaInner) GetKeyOk

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

func (*CampaignsCampaignAdsPostRequestQuotaInner) GetValue

GetValue returns the Value field value

func (*CampaignsCampaignAdsPostRequestQuotaInner) GetValueOk

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

func (CampaignsCampaignAdsPostRequestQuotaInner) MarshalJSON

func (*CampaignsCampaignAdsPostRequestQuotaInner) SetKey

SetKey sets field value

func (*CampaignsCampaignAdsPostRequestQuotaInner) SetValue

SetValue sets field value

func (CampaignsCampaignAdsPostRequestQuotaInner) ToMap

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

type CampaignsCampaignPutRequest

type CampaignsCampaignPutRequest struct {
	// Title of campaign
	Title *string `json:"title,omitempty"`
	// Description of campaign
	Description *string `json:"description,omitempty"`
	// Skip type - If ad skip_type is follow_campaign then this will be use
	SkipType *string `json:"skip_type,omitempty"`
	// Skip offset in seconds (required if skip type is allow)
	SkipOffset *int32 `json:"skip_offset,omitempty"`
	// If false then vast not working
	Active *bool `json:"active,omitempty"`
}

CampaignsCampaignPutRequest struct for CampaignsCampaignPutRequest

func NewCampaignsCampaignPutRequest

func NewCampaignsCampaignPutRequest() *CampaignsCampaignPutRequest

NewCampaignsCampaignPutRequest instantiates a new CampaignsCampaignPutRequest 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 NewCampaignsCampaignPutRequestWithDefaults

func NewCampaignsCampaignPutRequestWithDefaults() *CampaignsCampaignPutRequest

NewCampaignsCampaignPutRequestWithDefaults instantiates a new CampaignsCampaignPutRequest 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 (*CampaignsCampaignPutRequest) GetActive

func (o *CampaignsCampaignPutRequest) GetActive() bool

GetActive returns the Active field value if set, zero value otherwise.

func (*CampaignsCampaignPutRequest) GetActiveOk

func (o *CampaignsCampaignPutRequest) GetActiveOk() (*bool, bool)

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

func (*CampaignsCampaignPutRequest) GetDescription

func (o *CampaignsCampaignPutRequest) GetDescription() string

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

func (*CampaignsCampaignPutRequest) GetDescriptionOk

func (o *CampaignsCampaignPutRequest) 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 (*CampaignsCampaignPutRequest) GetSkipOffset

func (o *CampaignsCampaignPutRequest) GetSkipOffset() int32

GetSkipOffset returns the SkipOffset field value if set, zero value otherwise.

func (*CampaignsCampaignPutRequest) GetSkipOffsetOk

func (o *CampaignsCampaignPutRequest) GetSkipOffsetOk() (*int32, bool)

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

func (*CampaignsCampaignPutRequest) GetSkipType

func (o *CampaignsCampaignPutRequest) GetSkipType() string

GetSkipType returns the SkipType field value if set, zero value otherwise.

func (*CampaignsCampaignPutRequest) GetSkipTypeOk

func (o *CampaignsCampaignPutRequest) GetSkipTypeOk() (*string, bool)

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

func (*CampaignsCampaignPutRequest) GetTitle

func (o *CampaignsCampaignPutRequest) GetTitle() string

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

func (*CampaignsCampaignPutRequest) GetTitleOk

func (o *CampaignsCampaignPutRequest) 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 (*CampaignsCampaignPutRequest) HasActive

func (o *CampaignsCampaignPutRequest) HasActive() bool

HasActive returns a boolean if a field has been set.

func (*CampaignsCampaignPutRequest) HasDescription

func (o *CampaignsCampaignPutRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*CampaignsCampaignPutRequest) HasSkipOffset

func (o *CampaignsCampaignPutRequest) HasSkipOffset() bool

HasSkipOffset returns a boolean if a field has been set.

func (*CampaignsCampaignPutRequest) HasSkipType

func (o *CampaignsCampaignPutRequest) HasSkipType() bool

HasSkipType returns a boolean if a field has been set.

func (*CampaignsCampaignPutRequest) HasTitle

func (o *CampaignsCampaignPutRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (CampaignsCampaignPutRequest) MarshalJSON

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

func (*CampaignsCampaignPutRequest) SetActive

func (o *CampaignsCampaignPutRequest) SetActive(v bool)

SetActive gets a reference to the given bool and assigns it to the Active field.

func (*CampaignsCampaignPutRequest) SetDescription

func (o *CampaignsCampaignPutRequest) SetDescription(v string)

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

func (*CampaignsCampaignPutRequest) SetSkipOffset

func (o *CampaignsCampaignPutRequest) SetSkipOffset(v int32)

SetSkipOffset gets a reference to the given int32 and assigns it to the SkipOffset field.

func (*CampaignsCampaignPutRequest) SetSkipType

func (o *CampaignsCampaignPutRequest) SetSkipType(v string)

SetSkipType gets a reference to the given string and assigns it to the SkipType field.

func (*CampaignsCampaignPutRequest) SetTitle

func (o *CampaignsCampaignPutRequest) SetTitle(v string)

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

func (CampaignsCampaignPutRequest) ToMap

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

type CategoriesCategoryPutRequest

type CategoriesCategoryPutRequest struct {
	// Title of category
	Title *string `json:"title,omitempty"`
}

CategoriesCategoryPutRequest struct for CategoriesCategoryPutRequest

func NewCategoriesCategoryPutRequest

func NewCategoriesCategoryPutRequest() *CategoriesCategoryPutRequest

NewCategoriesCategoryPutRequest instantiates a new CategoriesCategoryPutRequest 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 NewCategoriesCategoryPutRequestWithDefaults

func NewCategoriesCategoryPutRequestWithDefaults() *CategoriesCategoryPutRequest

NewCategoriesCategoryPutRequestWithDefaults instantiates a new CategoriesCategoryPutRequest 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 (*CategoriesCategoryPutRequest) GetTitle

func (o *CategoriesCategoryPutRequest) GetTitle() string

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

func (*CategoriesCategoryPutRequest) GetTitleOk

func (o *CategoriesCategoryPutRequest) 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 (*CategoriesCategoryPutRequest) HasTitle

func (o *CategoriesCategoryPutRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (CategoriesCategoryPutRequest) MarshalJSON

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

func (*CategoriesCategoryPutRequest) SetTitle

func (o *CategoriesCategoryPutRequest) SetTitle(v string)

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

func (CategoriesCategoryPutRequest) ToMap

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

type CategoriesPostRequest

type CategoriesPostRequest struct {
	// Title of category
	Title string `json:"title"`
}

CategoriesPostRequest struct for CategoriesPostRequest

func NewCategoriesPostRequest

func NewCategoriesPostRequest(title string) *CategoriesPostRequest

NewCategoriesPostRequest instantiates a new CategoriesPostRequest 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 NewCategoriesPostRequestWithDefaults

func NewCategoriesPostRequestWithDefaults() *CategoriesPostRequest

NewCategoriesPostRequestWithDefaults instantiates a new CategoriesPostRequest 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 (*CategoriesPostRequest) GetTitle

func (o *CategoriesPostRequest) GetTitle() string

GetTitle returns the Title field value

func (*CategoriesPostRequest) GetTitleOk

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

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

func (CategoriesPostRequest) MarshalJSON

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

func (*CategoriesPostRequest) SetTitle

func (o *CategoriesPostRequest) SetTitle(v string)

SetTitle sets field value

func (CategoriesPostRequest) ToMap

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

type CategoryAPIService

type CategoryAPIService service

CategoryAPIService CategoryAPI service

func (*CategoryAPIService) CategoriesCategoryDelete

func (a *CategoryAPIService) CategoriesCategoryDelete(ctx context.Context, category string) ApiCategoriesCategoryDeleteRequest

CategoriesCategoryDelete Remove the specified category.

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

func (*CategoryAPIService) CategoriesCategoryDeleteExecute

func (a *CategoryAPIService) CategoriesCategoryDeleteExecute(r ApiCategoriesCategoryDeleteRequest) (*http.Response, error)

Execute executes the request

func (*CategoryAPIService) CategoriesCategoryGet

func (a *CategoryAPIService) CategoriesCategoryGet(ctx context.Context, category string) ApiCategoriesCategoryGetRequest

CategoriesCategoryGet Return the specified category.

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

func (*CategoryAPIService) CategoriesCategoryGetExecute

func (a *CategoryAPIService) CategoriesCategoryGetExecute(r ApiCategoriesCategoryGetRequest) (*http.Response, error)

Execute executes the request

func (*CategoryAPIService) CategoriesCategoryPut

func (a *CategoryAPIService) CategoriesCategoryPut(ctx context.Context, category string) ApiCategoriesCategoryPutRequest

CategoriesCategoryPut Update the specified category.

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

func (*CategoryAPIService) CategoriesCategoryPutExecute

func (a *CategoryAPIService) CategoriesCategoryPutExecute(r ApiCategoriesCategoryPutRequest) (*http.Response, error)

Execute executes the request

func (*CategoryAPIService) CategoriesGet

CategoriesGet Return all user categories.

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

func (*CategoryAPIService) CategoriesGetExecute

func (a *CategoryAPIService) CategoriesGetExecute(r ApiCategoriesGetRequest) (*http.Response, error)

Execute executes the request

func (*CategoryAPIService) CategoriesPost

CategoriesPost Store a newly category.

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

func (*CategoryAPIService) CategoriesPostExecute

func (a *CategoryAPIService) CategoriesPostExecute(r ApiCategoriesPostRequest) (*http.Response, error)

Execute executes the request

type ChannelAPIService

type ChannelAPIService service

ChannelAPIService ChannelAPI service

func (*ChannelAPIService) ChannelsChannelDelete

func (a *ChannelAPIService) ChannelsChannelDelete(ctx context.Context, channel string) ApiChannelsChannelDeleteRequest

ChannelsChannelDelete Remove the specified channel.

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

func (*ChannelAPIService) ChannelsChannelDeleteExecute

func (a *ChannelAPIService) ChannelsChannelDeleteExecute(r ApiChannelsChannelDeleteRequest) (*http.Response, error)

Execute executes the request

func (*ChannelAPIService) ChannelsChannelGet

func (a *ChannelAPIService) ChannelsChannelGet(ctx context.Context, channel string) ApiChannelsChannelGetRequest

ChannelsChannelGet Return the specified channel.

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

func (*ChannelAPIService) ChannelsChannelGetExecute

func (a *ChannelAPIService) ChannelsChannelGetExecute(r ApiChannelsChannelGetRequest) (*http.Response, error)

Execute executes the request

func (*ChannelAPIService) ChannelsChannelPut

func (a *ChannelAPIService) ChannelsChannelPut(ctx context.Context, channel string) ApiChannelsChannelPutRequest

ChannelsChannelPut Update the specified channel.

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

func (*ChannelAPIService) ChannelsChannelPutExecute

func (a *ChannelAPIService) ChannelsChannelPutExecute(r ApiChannelsChannelPutRequest) (*http.Response, error)

Execute executes the request

func (*ChannelAPIService) ChannelsGet

ChannelsGet Return all user channels.

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

func (*ChannelAPIService) ChannelsGetExecute

func (a *ChannelAPIService) ChannelsGetExecute(r ApiChannelsGetRequest) (*http.Response, error)

Execute executes the request

func (*ChannelAPIService) ChannelsPost

ChannelsPost Store a newly channel.

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

func (*ChannelAPIService) ChannelsPostExecute

func (a *ChannelAPIService) ChannelsPostExecute(r ApiChannelsPostRequest) (*http.Response, error)

Execute executes the request

type ChannelsChannelCampaignsPostRequest

type ChannelsChannelCampaignsPostRequest struct {
	// Title of campaign
	Title string `json:"title"`
	// Description of campaign
	Description *string `json:"description,omitempty"`
	// Skip type - If ad skip_type is follow_campaign then this will be use
	SkipType string `json:"skip_type"`
	// Skip offset in seconds (required if skip type is allow)
	SkipOffset *int32 `json:"skip_offset,omitempty"`
	// If false then vast not working
	Active bool `json:"active"`
}

ChannelsChannelCampaignsPostRequest struct for ChannelsChannelCampaignsPostRequest

func NewChannelsChannelCampaignsPostRequest

func NewChannelsChannelCampaignsPostRequest(title string, skipType string, active bool) *ChannelsChannelCampaignsPostRequest

NewChannelsChannelCampaignsPostRequest instantiates a new ChannelsChannelCampaignsPostRequest 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 NewChannelsChannelCampaignsPostRequestWithDefaults

func NewChannelsChannelCampaignsPostRequestWithDefaults() *ChannelsChannelCampaignsPostRequest

NewChannelsChannelCampaignsPostRequestWithDefaults instantiates a new ChannelsChannelCampaignsPostRequest 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 (*ChannelsChannelCampaignsPostRequest) GetActive

GetActive returns the Active field value

func (*ChannelsChannelCampaignsPostRequest) GetActiveOk

func (o *ChannelsChannelCampaignsPostRequest) GetActiveOk() (*bool, bool)

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

func (*ChannelsChannelCampaignsPostRequest) GetDescription

func (o *ChannelsChannelCampaignsPostRequest) GetDescription() string

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

func (*ChannelsChannelCampaignsPostRequest) GetDescriptionOk

func (o *ChannelsChannelCampaignsPostRequest) 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 (*ChannelsChannelCampaignsPostRequest) GetSkipOffset

func (o *ChannelsChannelCampaignsPostRequest) GetSkipOffset() int32

GetSkipOffset returns the SkipOffset field value if set, zero value otherwise.

func (*ChannelsChannelCampaignsPostRequest) GetSkipOffsetOk

func (o *ChannelsChannelCampaignsPostRequest) GetSkipOffsetOk() (*int32, bool)

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

func (*ChannelsChannelCampaignsPostRequest) GetSkipType

GetSkipType returns the SkipType field value

func (*ChannelsChannelCampaignsPostRequest) GetSkipTypeOk

func (o *ChannelsChannelCampaignsPostRequest) GetSkipTypeOk() (*string, bool)

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

func (*ChannelsChannelCampaignsPostRequest) GetTitle

GetTitle returns the Title field value

func (*ChannelsChannelCampaignsPostRequest) GetTitleOk

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

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

func (*ChannelsChannelCampaignsPostRequest) HasDescription

func (o *ChannelsChannelCampaignsPostRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ChannelsChannelCampaignsPostRequest) HasSkipOffset

func (o *ChannelsChannelCampaignsPostRequest) HasSkipOffset() bool

HasSkipOffset returns a boolean if a field has been set.

func (ChannelsChannelCampaignsPostRequest) MarshalJSON

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

func (*ChannelsChannelCampaignsPostRequest) SetActive

func (o *ChannelsChannelCampaignsPostRequest) SetActive(v bool)

SetActive sets field value

func (*ChannelsChannelCampaignsPostRequest) SetDescription

func (o *ChannelsChannelCampaignsPostRequest) SetDescription(v string)

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

func (*ChannelsChannelCampaignsPostRequest) SetSkipOffset

func (o *ChannelsChannelCampaignsPostRequest) SetSkipOffset(v int32)

SetSkipOffset gets a reference to the given int32 and assigns it to the SkipOffset field.

func (*ChannelsChannelCampaignsPostRequest) SetSkipType

func (o *ChannelsChannelCampaignsPostRequest) SetSkipType(v string)

SetSkipType sets field value

func (*ChannelsChannelCampaignsPostRequest) SetTitle

SetTitle sets field value

func (ChannelsChannelCampaignsPostRequest) ToMap

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

type ChannelsChannelPutRequest

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

ChannelsChannelPutRequest struct for ChannelsChannelPutRequest

func NewChannelsChannelPutRequest

func NewChannelsChannelPutRequest() *ChannelsChannelPutRequest

NewChannelsChannelPutRequest instantiates a new ChannelsChannelPutRequest 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 NewChannelsChannelPutRequestWithDefaults

func NewChannelsChannelPutRequestWithDefaults() *ChannelsChannelPutRequest

NewChannelsChannelPutRequestWithDefaults instantiates a new ChannelsChannelPutRequest 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 (*ChannelsChannelPutRequest) GetDescription

func (o *ChannelsChannelPutRequest) GetDescription() string

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

func (*ChannelsChannelPutRequest) GetDescriptionOk

func (o *ChannelsChannelPutRequest) 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 (*ChannelsChannelPutRequest) GetTitle

func (o *ChannelsChannelPutRequest) GetTitle() string

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

func (*ChannelsChannelPutRequest) GetTitleOk

func (o *ChannelsChannelPutRequest) 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 (*ChannelsChannelPutRequest) HasDescription

func (o *ChannelsChannelPutRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*ChannelsChannelPutRequest) HasTitle

func (o *ChannelsChannelPutRequest) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (ChannelsChannelPutRequest) MarshalJSON

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

func (*ChannelsChannelPutRequest) SetDescription

func (o *ChannelsChannelPutRequest) SetDescription(v string)

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

func (*ChannelsChannelPutRequest) SetTitle

func (o *ChannelsChannelPutRequest) SetTitle(v string)

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

func (ChannelsChannelPutRequest) ToMap

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

type ChannelsPostRequest

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

ChannelsPostRequest struct for ChannelsPostRequest

func NewChannelsPostRequest

func NewChannelsPostRequest(title string) *ChannelsPostRequest

NewChannelsPostRequest instantiates a new ChannelsPostRequest 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 NewChannelsPostRequestWithDefaults

func NewChannelsPostRequestWithDefaults() *ChannelsPostRequest

NewChannelsPostRequestWithDefaults instantiates a new ChannelsPostRequest 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 (*ChannelsPostRequest) GetDescription

func (o *ChannelsPostRequest) GetDescription() string

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

func (*ChannelsPostRequest) GetDescriptionOk

func (o *ChannelsPostRequest) 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 (*ChannelsPostRequest) GetTitle

func (o *ChannelsPostRequest) GetTitle() string

GetTitle returns the Title field value

func (*ChannelsPostRequest) GetTitleOk

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

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

func (*ChannelsPostRequest) HasDescription

func (o *ChannelsPostRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (ChannelsPostRequest) MarshalJSON

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

func (*ChannelsPostRequest) SetDescription

func (o *ChannelsPostRequest) SetDescription(v string)

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

func (*ChannelsPostRequest) SetTitle

func (o *ChannelsPostRequest) SetTitle(v string)

SetTitle sets field value

func (ChannelsPostRequest) ToMap

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

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 VAds 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 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 NullableAdsAdPutRequest

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

func NewNullableAdsAdPutRequest

func NewNullableAdsAdPutRequest(val *AdsAdPutRequest) *NullableAdsAdPutRequest

func (NullableAdsAdPutRequest) Get

func (NullableAdsAdPutRequest) IsSet

func (v NullableAdsAdPutRequest) IsSet() bool

func (NullableAdsAdPutRequest) MarshalJSON

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

func (*NullableAdsAdPutRequest) Set

func (*NullableAdsAdPutRequest) UnmarshalJSON

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

func (*NullableAdsAdPutRequest) Unset

func (v *NullableAdsAdPutRequest) Unset()

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 NullableCampaignsCampaignAdsAdPutRequest

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

func (NullableCampaignsCampaignAdsAdPutRequest) Get

func (NullableCampaignsCampaignAdsAdPutRequest) IsSet

func (NullableCampaignsCampaignAdsAdPutRequest) MarshalJSON

func (*NullableCampaignsCampaignAdsAdPutRequest) Set

func (*NullableCampaignsCampaignAdsAdPutRequest) UnmarshalJSON

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

func (*NullableCampaignsCampaignAdsAdPutRequest) Unset

type NullableCampaignsCampaignAdsPostRequest

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

func (NullableCampaignsCampaignAdsPostRequest) Get

func (NullableCampaignsCampaignAdsPostRequest) IsSet

func (NullableCampaignsCampaignAdsPostRequest) MarshalJSON

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

func (*NullableCampaignsCampaignAdsPostRequest) Set

func (*NullableCampaignsCampaignAdsPostRequest) UnmarshalJSON

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

func (*NullableCampaignsCampaignAdsPostRequest) Unset

type NullableCampaignsCampaignAdsPostRequestQuotaInner

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

func (NullableCampaignsCampaignAdsPostRequestQuotaInner) Get

func (NullableCampaignsCampaignAdsPostRequestQuotaInner) IsSet

func (NullableCampaignsCampaignAdsPostRequestQuotaInner) MarshalJSON

func (*NullableCampaignsCampaignAdsPostRequestQuotaInner) Set

func (*NullableCampaignsCampaignAdsPostRequestQuotaInner) UnmarshalJSON

func (*NullableCampaignsCampaignAdsPostRequestQuotaInner) Unset

type NullableCampaignsCampaignPutRequest

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

func (NullableCampaignsCampaignPutRequest) Get

func (NullableCampaignsCampaignPutRequest) IsSet

func (NullableCampaignsCampaignPutRequest) MarshalJSON

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

func (*NullableCampaignsCampaignPutRequest) Set

func (*NullableCampaignsCampaignPutRequest) UnmarshalJSON

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

func (*NullableCampaignsCampaignPutRequest) Unset

type NullableCategoriesCategoryPutRequest

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

func (NullableCategoriesCategoryPutRequest) Get

func (NullableCategoriesCategoryPutRequest) IsSet

func (NullableCategoriesCategoryPutRequest) MarshalJSON

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

func (*NullableCategoriesCategoryPutRequest) Set

func (*NullableCategoriesCategoryPutRequest) UnmarshalJSON

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

func (*NullableCategoriesCategoryPutRequest) Unset

type NullableCategoriesPostRequest

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

func (NullableCategoriesPostRequest) Get

func (NullableCategoriesPostRequest) IsSet

func (NullableCategoriesPostRequest) MarshalJSON

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

func (*NullableCategoriesPostRequest) Set

func (*NullableCategoriesPostRequest) UnmarshalJSON

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

func (*NullableCategoriesPostRequest) Unset

func (v *NullableCategoriesPostRequest) Unset()

type NullableChannelsChannelCampaignsPostRequest

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

func (NullableChannelsChannelCampaignsPostRequest) Get

func (NullableChannelsChannelCampaignsPostRequest) IsSet

func (NullableChannelsChannelCampaignsPostRequest) MarshalJSON

func (*NullableChannelsChannelCampaignsPostRequest) Set

func (*NullableChannelsChannelCampaignsPostRequest) UnmarshalJSON

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

func (*NullableChannelsChannelCampaignsPostRequest) Unset

type NullableChannelsChannelPutRequest

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

func (NullableChannelsChannelPutRequest) Get

func (NullableChannelsChannelPutRequest) IsSet

func (NullableChannelsChannelPutRequest) MarshalJSON

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

func (*NullableChannelsChannelPutRequest) Set

func (*NullableChannelsChannelPutRequest) UnmarshalJSON

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

func (*NullableChannelsChannelPutRequest) Unset

type NullableChannelsPostRequest

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

func NewNullableChannelsPostRequest

func NewNullableChannelsPostRequest(val *ChannelsPostRequest) *NullableChannelsPostRequest

func (NullableChannelsPostRequest) Get

func (NullableChannelsPostRequest) IsSet

func (NullableChannelsPostRequest) MarshalJSON

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

func (*NullableChannelsPostRequest) Set

func (*NullableChannelsPostRequest) UnmarshalJSON

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

func (*NullableChannelsPostRequest) Unset

func (v *NullableChannelsPostRequest) 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 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 ReportAPIService

type ReportAPIService service

ReportAPIService ReportAPI service

func (*ReportAPIService) AdsAdReportsTrackEventPeriodGet

func (a *ReportAPIService) AdsAdReportsTrackEventPeriodGet(ctx context.Context, ad string, event string, period string) ApiAdsAdReportsTrackEventPeriodGetRequest

AdsAdReportsTrackEventPeriodGet Ad track report per event.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param ad The Id of ad
@param event Event type
@param period Report period
@return ApiAdsAdReportsTrackEventPeriodGetRequest

func (*ReportAPIService) AdsAdReportsTrackEventPeriodGetExecute

func (a *ReportAPIService) AdsAdReportsTrackEventPeriodGetExecute(r ApiAdsAdReportsTrackEventPeriodGetRequest) (*http.Response, error)

Execute executes the request

func (*ReportAPIService) CampaignsCampaignAdsAdReportsTrackEventPeriodGet

func (a *ReportAPIService) CampaignsCampaignAdsAdReportsTrackEventPeriodGet(ctx context.Context, campaign string, ad string, event string, period string) ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest

CampaignsCampaignAdsAdReportsTrackEventPeriodGet Ad in campaign track report per event.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param campaign The Id of campaign
@param ad The Id of ad
@param event Event type
@param period Report period
@return ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest

func (*ReportAPIService) CampaignsCampaignAdsAdReportsTrackEventPeriodGetExecute

func (a *ReportAPIService) CampaignsCampaignAdsAdReportsTrackEventPeriodGetExecute(r ApiCampaignsCampaignAdsAdReportsTrackEventPeriodGetRequest) (*http.Response, error)

Execute executes the request

func (*ReportAPIService) CampaignsCampaignReportsTrackEventPeriodGet

func (a *ReportAPIService) CampaignsCampaignReportsTrackEventPeriodGet(ctx context.Context, campaign string, event string, period string) ApiCampaignsCampaignReportsTrackEventPeriodGetRequest

CampaignsCampaignReportsTrackEventPeriodGet Campaign track report per event.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param campaign The Id of campaign
@param event Event type
@param period Report period
@return ApiCampaignsCampaignReportsTrackEventPeriodGetRequest

func (*ReportAPIService) CampaignsCampaignReportsTrackEventPeriodGetExecute

func (a *ReportAPIService) CampaignsCampaignReportsTrackEventPeriodGetExecute(r ApiCampaignsCampaignReportsTrackEventPeriodGetRequest) (*http.Response, error)

Execute executes the request

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

Jump to

Keyboard shortcuts

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