Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateAdTypeRequest(server string, body CreateAdTypeJSONRequestBody) (*http.Request, error)
- func NewCreateAdTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateChannelRequest(server string, body CreateChannelJSONRequestBody) (*http.Request, error)
- func NewCreateChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateChannelSiteMapRequest(server string, body CreateChannelSiteMapJSONRequestBody) (*http.Request, error)
- func NewCreateChannelSiteMapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateForChannelAdTypeRequest(server string, channelId int32, body CreateForChannelAdTypeJSONRequestBody) (*http.Request, error)
- func NewCreateForChannelAdTypeRequestWithBody(server string, channelId int32, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSiteRequest(server string, body CreateSiteJSONRequestBody) (*http.Request, error)
- func NewCreateSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateZoneRequest(server string, body CreateZoneJSONRequestBody) (*http.Request, error)
- func NewCreateZoneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAdTypeRequest(server string, id int32) (*http.Request, error)
- func NewDeleteChannelRequest(server string, id int32) (*http.Request, error)
- func NewDeleteChannelSiteMapRequest(server string, channelId int32, siteId int32) (*http.Request, error)
- func NewDeleteForChannelAdTypeRequest(server string, channelId int32, id int32) (*http.Request, error)
- func NewFilterSiteRequest(server string, params *FilterSiteParams) (*http.Request, error)
- func NewGetChannelRequest(server string, id int32) (*http.Request, error)
- func NewGetChannelSiteMapRequest(server string, channelId int32, siteId int32) (*http.Request, error)
- func NewGetPrioritiesChannelRequest(server string, id int32) (*http.Request, error)
- func NewGetSiteRequest(server string, id int32) (*http.Request, error)
- func NewGetZoneRequest(server string, id int32) (*http.Request, error)
- func NewListAdTypesRequest(server string, params *ListAdTypesParams) (*http.Request, error)
- func NewListChannelSiteMapsRequest(server string, params *ListChannelSiteMapsParams) (*http.Request, error)
- func NewListChannelsForSiteChannelSiteMapRequest(server string, siteId int32) (*http.Request, error)
- func NewListChannelsRequest(server string, params *ListChannelsParams) (*http.Request, error)
- func NewListForChannelAdTypeRequest(server string, channelId int32, params *ListForChannelAdTypeParams) (*http.Request, error)
- func NewListSitesRequest(server string, params *ListSitesParams) (*http.Request, error)
- func NewListZonesRequest(server string, params *ListZonesParams) (*http.Request, error)
- func NewUpdateChannelRequest(server string, id int32, body UpdateChannelJSONRequestBody) (*http.Request, error)
- func NewUpdateChannelRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateChannelSiteMapRequest(server string, body UpdateChannelSiteMapJSONRequestBody) (*http.Request, error)
- func NewUpdateChannelSiteMapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSiteRequest(server string, id int32, body UpdateSiteJSONRequestBody) (*http.Request, error)
- func NewUpdateSiteRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateZoneRequest(server string, id int32, body UpdateZoneJSONRequestBody) (*http.Request, error)
- func NewUpdateZoneRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
- type AdType
- type AdTypeList
- type Channel
- type ChannelList
- type ChannelSiteMap
- type ChannelSiteMapList
- type Client
- func (c *Client) CreateAdType(ctx context.Context, body CreateAdTypeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAdTypeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateChannel(ctx context.Context, body CreateChannelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateChannelSiteMap(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateChannelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateForChannelAdType(ctx context.Context, channelId int32, ...) (*http.Response, error)
- func (c *Client) CreateForChannelAdTypeWithBody(ctx context.Context, channelId int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSiteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateZoneWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAdType(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteChannelSiteMap(ctx context.Context, channelId int32, siteId int32, ...) (*http.Response, error)
- func (c *Client) DeleteForChannelAdType(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) FilterSite(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetChannelSiteMap(ctx context.Context, channelId int32, siteId int32, ...) (*http.Response, error)
- func (c *Client) GetPrioritiesChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSite(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZone(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAdTypes(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListChannelSiteMaps(ctx context.Context, params *ListChannelSiteMapsParams, ...) (*http.Response, error)
- func (c *Client) ListChannels(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListChannelsForSiteChannelSiteMap(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListForChannelAdType(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, ...) (*http.Response, error)
- func (c *Client) ListSites(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListZones(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateChannel(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateChannelSiteMap(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateChannelWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSite(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSiteWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateZone(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateZoneWithBody(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAdTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAdTypeResponse, error)
- func (c *ClientWithResponses) CreateAdTypeWithResponse(ctx context.Context, body CreateAdTypeJSONRequestBody, ...) (*CreateAdTypeResponse, error)
- func (c *ClientWithResponses) CreateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateChannelSiteMapResponse, error)
- func (c *ClientWithResponses) CreateChannelSiteMapWithResponse(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, ...) (*CreateChannelSiteMapResponse, error)
- func (c *ClientWithResponses) CreateChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateChannelResponse, error)
- func (c *ClientWithResponses) CreateChannelWithResponse(ctx context.Context, body CreateChannelJSONRequestBody, ...) (*CreateChannelResponse, error)
- func (c *ClientWithResponses) CreateForChannelAdTypeWithBodyWithResponse(ctx context.Context, channelId int32, contentType string, body io.Reader, ...) (*CreateForChannelAdTypeResponse, error)
- func (c *ClientWithResponses) CreateForChannelAdTypeWithResponse(ctx context.Context, channelId int32, ...) (*CreateForChannelAdTypeResponse, error)
- func (c *ClientWithResponses) CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSiteResponse, error)
- func (c *ClientWithResponses) CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, ...) (*CreateSiteResponse, error)
- func (c *ClientWithResponses) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponses) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponses) DeleteAdTypeWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteAdTypeResponse, error)
- func (c *ClientWithResponses) DeleteChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, ...) (*DeleteChannelSiteMapResponse, error)
- func (c *ClientWithResponses) DeleteChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteChannelResponse, error)
- func (c *ClientWithResponses) DeleteForChannelAdTypeWithResponse(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*DeleteForChannelAdTypeResponse, error)
- func (c *ClientWithResponses) FilterSiteWithResponse(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*FilterSiteResponse, error)
- func (c *ClientWithResponses) GetChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, ...) (*GetChannelSiteMapResponse, error)
- func (c *ClientWithResponses) GetChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetChannelResponse, error)
- func (c *ClientWithResponses) GetPrioritiesChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetPrioritiesChannelResponse, error)
- func (c *ClientWithResponses) GetSiteWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetSiteResponse, error)
- func (c *ClientWithResponses) GetZoneWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
- func (c *ClientWithResponses) ListAdTypesWithResponse(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*ListAdTypesResponse, error)
- func (c *ClientWithResponses) ListChannelSiteMapsWithResponse(ctx context.Context, params *ListChannelSiteMapsParams, ...) (*ListChannelSiteMapsResponse, error)
- func (c *ClientWithResponses) ListChannelsForSiteChannelSiteMapWithResponse(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*ListChannelsForSiteChannelSiteMapResponse, error)
- func (c *ClientWithResponses) ListChannelsWithResponse(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*ListChannelsResponse, error)
- func (c *ClientWithResponses) ListForChannelAdTypeWithResponse(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, ...) (*ListForChannelAdTypeResponse, error)
- func (c *ClientWithResponses) ListSitesWithResponse(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*ListSitesResponse, error)
- func (c *ClientWithResponses) ListZonesWithResponse(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*ListZonesResponse, error)
- func (c *ClientWithResponses) UpdateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateChannelSiteMapResponse, error)
- func (c *ClientWithResponses) UpdateChannelSiteMapWithResponse(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, ...) (*UpdateChannelSiteMapResponse, error)
- func (c *ClientWithResponses) UpdateChannelWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*UpdateChannelResponse, error)
- func (c *ClientWithResponses) UpdateChannelWithResponse(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, ...) (*UpdateChannelResponse, error)
- func (c *ClientWithResponses) UpdateSiteWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*UpdateSiteResponse, error)
- func (c *ClientWithResponses) UpdateSiteWithResponse(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, ...) (*UpdateSiteResponse, error)
- func (c *ClientWithResponses) UpdateZoneWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, ...) (*UpdateZoneResponse, error)
- func (c *ClientWithResponses) UpdateZoneWithResponse(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, ...) (*UpdateZoneResponse, error)
- type ClientWithResponsesInterface
- type CreateAdTypeJSONBody
- type CreateAdTypeJSONRequestBody
- type CreateAdTypeResponse
- type CreateChannelJSONBody
- type CreateChannelJSONRequestBody
- type CreateChannelResponse
- type CreateChannelSiteMapJSONBody
- type CreateChannelSiteMapJSONRequestBody
- type CreateChannelSiteMapResponse
- type CreateForChannelAdTypeJSONBody
- type CreateForChannelAdTypeJSONRequestBody
- type CreateForChannelAdTypeResponse
- type CreateSiteJSONBody
- type CreateSiteJSONRequestBody
- type CreateSiteResponse
- type CreateZoneJSONBody
- type CreateZoneJSONRequestBody
- type CreateZoneResponse
- type DeleteAdTypeResponse
- type DeleteChannelResponse
- type DeleteChannelSiteMapResponse
- type DeleteForChannelAdTypeResponse
- type FilterSiteParams
- type FilterSiteResponse
- type GetChannelResponse
- type GetChannelSiteMapResponse
- type GetPrioritiesChannelResponse
- type GetSiteResponse
- type GetZoneResponse
- type HttpRequestDoer
- type ListAdTypesParams
- type ListAdTypesResponse
- type ListChannelSiteMapsParams
- type ListChannelSiteMapsResponse
- type ListChannelsForSiteChannelSiteMapResponse
- type ListChannelsParams
- type ListChannelsResponse
- type ListForChannelAdTypeParams
- type ListForChannelAdTypeResponse
- type ListSitesParams
- type ListSitesResponse
- type ListZonesParams
- type ListZonesResponse
- type Priority
- type RequestEditorFn
- type Site
- type SiteList
- type UpdateChannelJSONBody
- type UpdateChannelJSONRequestBody
- type UpdateChannelResponse
- type UpdateChannelSiteMapJSONBody
- type UpdateChannelSiteMapJSONRequestBody
- type UpdateChannelSiteMapResponse
- type UpdateSiteJSONBody
- type UpdateSiteJSONRequestBody
- type UpdateSiteResponse
- type UpdateZoneJSONBody
- type UpdateZoneJSONRequestBody
- type UpdateZoneResponse
- type Zone
- type ZoneList
Constants ¶
const (
ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateAdTypeRequest ¶
func NewCreateAdTypeRequest(server string, body CreateAdTypeJSONRequestBody) (*http.Request, error)
NewCreateAdTypeRequest calls the generic CreateAdType builder with application/json body
func NewCreateAdTypeRequestWithBody ¶
func NewCreateAdTypeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAdTypeRequestWithBody generates requests for CreateAdType with any type of body
func NewCreateChannelRequest ¶
func NewCreateChannelRequest(server string, body CreateChannelJSONRequestBody) (*http.Request, error)
NewCreateChannelRequest calls the generic CreateChannel builder with application/json body
func NewCreateChannelRequestWithBody ¶
func NewCreateChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateChannelRequestWithBody generates requests for CreateChannel with any type of body
func NewCreateChannelSiteMapRequest ¶
func NewCreateChannelSiteMapRequest(server string, body CreateChannelSiteMapJSONRequestBody) (*http.Request, error)
NewCreateChannelSiteMapRequest calls the generic CreateChannelSiteMap builder with application/json body
func NewCreateChannelSiteMapRequestWithBody ¶
func NewCreateChannelSiteMapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateChannelSiteMapRequestWithBody generates requests for CreateChannelSiteMap with any type of body
func NewCreateForChannelAdTypeRequest ¶
func NewCreateForChannelAdTypeRequest(server string, channelId int32, body CreateForChannelAdTypeJSONRequestBody) (*http.Request, error)
NewCreateForChannelAdTypeRequest calls the generic CreateForChannelAdType builder with application/json body
func NewCreateForChannelAdTypeRequestWithBody ¶
func NewCreateForChannelAdTypeRequestWithBody(server string, channelId int32, contentType string, body io.Reader) (*http.Request, error)
NewCreateForChannelAdTypeRequestWithBody generates requests for CreateForChannelAdType with any type of body
func NewCreateSiteRequest ¶
func NewCreateSiteRequest(server string, body CreateSiteJSONRequestBody) (*http.Request, error)
NewCreateSiteRequest calls the generic CreateSite builder with application/json body
func NewCreateSiteRequestWithBody ¶
func NewCreateSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSiteRequestWithBody generates requests for CreateSite with any type of body
func NewCreateZoneRequest ¶
func NewCreateZoneRequest(server string, body CreateZoneJSONRequestBody) (*http.Request, error)
NewCreateZoneRequest calls the generic CreateZone builder with application/json body
func NewCreateZoneRequestWithBody ¶
func NewCreateZoneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateZoneRequestWithBody generates requests for CreateZone with any type of body
func NewDeleteAdTypeRequest ¶
NewDeleteAdTypeRequest generates requests for DeleteAdType
func NewDeleteChannelRequest ¶
NewDeleteChannelRequest generates requests for DeleteChannel
func NewDeleteChannelSiteMapRequest ¶
func NewDeleteChannelSiteMapRequest(server string, channelId int32, siteId int32) (*http.Request, error)
NewDeleteChannelSiteMapRequest generates requests for DeleteChannelSiteMap
func NewDeleteForChannelAdTypeRequest ¶
func NewDeleteForChannelAdTypeRequest(server string, channelId int32, id int32) (*http.Request, error)
NewDeleteForChannelAdTypeRequest generates requests for DeleteForChannelAdType
func NewFilterSiteRequest ¶
func NewFilterSiteRequest(server string, params *FilterSiteParams) (*http.Request, error)
NewFilterSiteRequest generates requests for FilterSite
func NewGetChannelRequest ¶
NewGetChannelRequest generates requests for GetChannel
func NewGetChannelSiteMapRequest ¶
func NewGetChannelSiteMapRequest(server string, channelId int32, siteId int32) (*http.Request, error)
NewGetChannelSiteMapRequest generates requests for GetChannelSiteMap
func NewGetPrioritiesChannelRequest ¶
NewGetPrioritiesChannelRequest generates requests for GetPrioritiesChannel
func NewGetSiteRequest ¶
NewGetSiteRequest generates requests for GetSite
func NewGetZoneRequest ¶
NewGetZoneRequest generates requests for GetZone
func NewListAdTypesRequest ¶
func NewListAdTypesRequest(server string, params *ListAdTypesParams) (*http.Request, error)
NewListAdTypesRequest generates requests for ListAdTypes
func NewListChannelSiteMapsRequest ¶
func NewListChannelSiteMapsRequest(server string, params *ListChannelSiteMapsParams) (*http.Request, error)
NewListChannelSiteMapsRequest generates requests for ListChannelSiteMaps
func NewListChannelsForSiteChannelSiteMapRequest ¶
func NewListChannelsForSiteChannelSiteMapRequest(server string, siteId int32) (*http.Request, error)
NewListChannelsForSiteChannelSiteMapRequest generates requests for ListChannelsForSiteChannelSiteMap
func NewListChannelsRequest ¶
func NewListChannelsRequest(server string, params *ListChannelsParams) (*http.Request, error)
NewListChannelsRequest generates requests for ListChannels
func NewListForChannelAdTypeRequest ¶
func NewListForChannelAdTypeRequest(server string, channelId int32, params *ListForChannelAdTypeParams) (*http.Request, error)
NewListForChannelAdTypeRequest generates requests for ListForChannelAdType
func NewListSitesRequest ¶
func NewListSitesRequest(server string, params *ListSitesParams) (*http.Request, error)
NewListSitesRequest generates requests for ListSites
func NewListZonesRequest ¶
func NewListZonesRequest(server string, params *ListZonesParams) (*http.Request, error)
NewListZonesRequest generates requests for ListZones
func NewUpdateChannelRequest ¶
func NewUpdateChannelRequest(server string, id int32, body UpdateChannelJSONRequestBody) (*http.Request, error)
NewUpdateChannelRequest calls the generic UpdateChannel builder with application/json body
func NewUpdateChannelRequestWithBody ¶
func NewUpdateChannelRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChannelRequestWithBody generates requests for UpdateChannel with any type of body
func NewUpdateChannelSiteMapRequest ¶
func NewUpdateChannelSiteMapRequest(server string, body UpdateChannelSiteMapJSONRequestBody) (*http.Request, error)
NewUpdateChannelSiteMapRequest calls the generic UpdateChannelSiteMap builder with application/json body
func NewUpdateChannelSiteMapRequestWithBody ¶
func NewUpdateChannelSiteMapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateChannelSiteMapRequestWithBody generates requests for UpdateChannelSiteMap with any type of body
func NewUpdateSiteRequest ¶
func NewUpdateSiteRequest(server string, id int32, body UpdateSiteJSONRequestBody) (*http.Request, error)
NewUpdateSiteRequest calls the generic UpdateSite builder with application/json body
func NewUpdateSiteRequestWithBody ¶
func NewUpdateSiteRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSiteRequestWithBody generates requests for UpdateSite with any type of body
func NewUpdateZoneRequest ¶
func NewUpdateZoneRequest(server string, id int32, body UpdateZoneJSONRequestBody) (*http.Request, error)
NewUpdateZoneRequest calls the generic UpdateZone builder with application/json body
Types ¶
type AdType ¶
type AdType struct {
Height int32 `json:"Height"`
Id int32 `json:"Id"`
Name *string `json:"Name,omitempty"`
Width int32 `json:"Width"`
}
AdType defines model for AdType.
type AdTypeList ¶
type AdTypeList struct {
Items []AdType `json:"items"`
Page int32 `json:"page"`
PageSize int32 `json:"pageSize"`
TotalItems int64 `json:"totalItems"`
TotalPages int32 `json:"totalPages"`
}
AdTypeList defines model for AdTypeList.
type Channel ¶
type Channel struct {
AdTypes []int32 `json:"AdTypes"`
CPM float32 `json:"CPM"`
// Deprecated:
Commission *float32 `json:"Commission,omitempty"`
// Deprecated:
CustomTargeting *string `json:"CustomTargeting,omitempty"`
Engine *string `json:"Engine,omitempty"`
Id int32 `json:"Id"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
// Deprecated:
Keywords *string `json:"Keywords,omitempty"`
Title string `json:"Title"`
}
Channel defines model for Channel.
type ChannelList ¶
type ChannelList struct {
ChannelIds []int32 `json:"ChannelIds"`
}
ChannelList defines model for ChannelList.
type ChannelSiteMap ¶
type ChannelSiteMap struct {
ChannelId int32 `json:"ChannelId"`
// Deprecated:
FixedPaymentAmount *float32 `json:"FixedPaymentAmount,omitempty"`
Priority *int32 `json:"Priority,omitempty"`
SiteId int32 `json:"SiteId"`
}
ChannelSiteMap defines model for ChannelSiteMap.
type ChannelSiteMapList ¶
type ChannelSiteMapList struct {
Items []ChannelSiteMap `json:"items"`
Page int32 `json:"page"`
PageSize int32 `json:"pageSize"`
TotalItems int64 `json:"totalItems"`
TotalPages int32 `json:"totalPages"`
}
ChannelSiteMapList defines model for ChannelSiteMapList.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateAdType ¶
func (c *Client) CreateAdType(ctx context.Context, body CreateAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateAdTypeWithBody ¶
func (*Client) CreateChannel ¶
func (c *Client) CreateChannel(ctx context.Context, body CreateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChannelSiteMap ¶
func (c *Client) CreateChannelSiteMap(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateChannelSiteMapWithBody ¶
func (*Client) CreateChannelWithBody ¶
func (*Client) CreateForChannelAdType ¶
func (c *Client) CreateForChannelAdType(ctx context.Context, channelId int32, body CreateForChannelAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateForChannelAdTypeWithBody ¶
func (*Client) CreateSite ¶
func (c *Client) CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSiteWithBody ¶
func (*Client) CreateZone ¶
func (c *Client) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateZoneWithBody ¶
func (*Client) DeleteAdType ¶
func (*Client) DeleteChannel ¶
func (*Client) DeleteChannelSiteMap ¶
func (*Client) DeleteForChannelAdType ¶
func (*Client) FilterSite ¶
func (c *Client) FilterSite(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetChannel ¶
func (*Client) GetChannelSiteMap ¶
func (*Client) GetPrioritiesChannel ¶
func (*Client) ListAdTypes ¶
func (c *Client) ListAdTypes(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListChannelSiteMaps ¶
func (c *Client) ListChannelSiteMaps(ctx context.Context, params *ListChannelSiteMapsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListChannels ¶
func (c *Client) ListChannels(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListChannelsForSiteChannelSiteMap ¶
func (*Client) ListForChannelAdType ¶
func (c *Client) ListForChannelAdType(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSites ¶
func (c *Client) ListSites(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListZones ¶
func (c *Client) ListZones(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannel ¶
func (c *Client) UpdateChannel(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannelSiteMap ¶
func (c *Client) UpdateChannelSiteMap(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateChannelSiteMapWithBody ¶
func (*Client) UpdateChannelWithBody ¶
func (*Client) UpdateSite ¶
func (c *Client) UpdateSite(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSiteWithBody ¶
func (*Client) UpdateZone ¶
func (c *Client) UpdateZone(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListAdTypes request
ListAdTypes(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAdTypeWithBody request with any body
CreateAdTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAdType(ctx context.Context, body CreateAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAdType request
DeleteAdType(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListChannels request
ListChannels(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateChannelWithBody request with any body
CreateChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateChannel(ctx context.Context, body CreateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListForChannelAdType request
ListForChannelAdType(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateForChannelAdTypeWithBody request with any body
CreateForChannelAdTypeWithBody(ctx context.Context, channelId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateForChannelAdType(ctx context.Context, channelId int32, body CreateForChannelAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteForChannelAdType request
DeleteForChannelAdType(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChannelSiteMap request
GetChannelSiteMap(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteChannelSiteMap request
DeleteChannelSiteMap(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetChannel request
GetChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateChannelWithBody request with any body
UpdateChannelWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateChannel(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteChannel request
DeleteChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPrioritiesChannel request
GetPrioritiesChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListChannelSiteMaps request
ListChannelSiteMaps(ctx context.Context, params *ListChannelSiteMapsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateChannelSiteMapWithBody request with any body
CreateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateChannelSiteMap(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateChannelSiteMapWithBody request with any body
UpdateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateChannelSiteMap(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListChannelsForSiteChannelSiteMap request
ListChannelsForSiteChannelSiteMap(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// FilterSite request
FilterSite(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSites request
ListSites(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSiteWithBody request with any body
CreateSiteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSite request
GetSite(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateSiteWithBody request with any body
UpdateSiteWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateSite(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListZones request
ListZones(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateZoneWithBody request with any body
CreateZoneWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetZone request
GetZone(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateZoneWithBody request with any body
UpdateZoneWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateZone(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateAdTypeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAdTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdTypeResponse, error)
CreateAdTypeWithBodyWithResponse request with arbitrary body returning *CreateAdTypeResponse
func (*ClientWithResponses) CreateAdTypeWithResponse ¶
func (c *ClientWithResponses) CreateAdTypeWithResponse(ctx context.Context, body CreateAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdTypeResponse, error)
func (*ClientWithResponses) CreateChannelSiteMapWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChannelSiteMapResponse, error)
CreateChannelSiteMapWithBodyWithResponse request with arbitrary body returning *CreateChannelSiteMapResponse
func (*ClientWithResponses) CreateChannelSiteMapWithResponse ¶
func (c *ClientWithResponses) CreateChannelSiteMapWithResponse(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChannelSiteMapResponse, error)
func (*ClientWithResponses) CreateChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChannelResponse, error)
CreateChannelWithBodyWithResponse request with arbitrary body returning *CreateChannelResponse
func (*ClientWithResponses) CreateChannelWithResponse ¶
func (c *ClientWithResponses) CreateChannelWithResponse(ctx context.Context, body CreateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChannelResponse, error)
func (*ClientWithResponses) CreateForChannelAdTypeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateForChannelAdTypeWithBodyWithResponse(ctx context.Context, channelId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForChannelAdTypeResponse, error)
CreateForChannelAdTypeWithBodyWithResponse request with arbitrary body returning *CreateForChannelAdTypeResponse
func (*ClientWithResponses) CreateForChannelAdTypeWithResponse ¶
func (c *ClientWithResponses) CreateForChannelAdTypeWithResponse(ctx context.Context, channelId int32, body CreateForChannelAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForChannelAdTypeResponse, error)
func (*ClientWithResponses) CreateSiteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSiteResponse, error)
CreateSiteWithBodyWithResponse request with arbitrary body returning *CreateSiteResponse
func (*ClientWithResponses) CreateSiteWithResponse ¶
func (c *ClientWithResponses) CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSiteResponse, error)
func (*ClientWithResponses) CreateZoneWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
CreateZoneWithBodyWithResponse request with arbitrary body returning *CreateZoneResponse
func (*ClientWithResponses) CreateZoneWithResponse ¶
func (c *ClientWithResponses) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
func (*ClientWithResponses) DeleteAdTypeWithResponse ¶
func (c *ClientWithResponses) DeleteAdTypeWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteAdTypeResponse, error)
DeleteAdTypeWithResponse request returning *DeleteAdTypeResponse
func (*ClientWithResponses) DeleteChannelSiteMapWithResponse ¶
func (c *ClientWithResponses) DeleteChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*DeleteChannelSiteMapResponse, error)
DeleteChannelSiteMapWithResponse request returning *DeleteChannelSiteMapResponse
func (*ClientWithResponses) DeleteChannelWithResponse ¶
func (c *ClientWithResponses) DeleteChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteChannelResponse, error)
DeleteChannelWithResponse request returning *DeleteChannelResponse
func (*ClientWithResponses) DeleteForChannelAdTypeWithResponse ¶
func (c *ClientWithResponses) DeleteForChannelAdTypeWithResponse(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*DeleteForChannelAdTypeResponse, error)
DeleteForChannelAdTypeWithResponse request returning *DeleteForChannelAdTypeResponse
func (*ClientWithResponses) FilterSiteWithResponse ¶
func (c *ClientWithResponses) FilterSiteWithResponse(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*FilterSiteResponse, error)
FilterSiteWithResponse request returning *FilterSiteResponse
func (*ClientWithResponses) GetChannelSiteMapWithResponse ¶
func (c *ClientWithResponses) GetChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*GetChannelSiteMapResponse, error)
GetChannelSiteMapWithResponse request returning *GetChannelSiteMapResponse
func (*ClientWithResponses) GetChannelWithResponse ¶
func (c *ClientWithResponses) GetChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetChannelResponse, error)
GetChannelWithResponse request returning *GetChannelResponse
func (*ClientWithResponses) GetPrioritiesChannelWithResponse ¶
func (c *ClientWithResponses) GetPrioritiesChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetPrioritiesChannelResponse, error)
GetPrioritiesChannelWithResponse request returning *GetPrioritiesChannelResponse
func (*ClientWithResponses) GetSiteWithResponse ¶
func (c *ClientWithResponses) GetSiteWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetSiteResponse, error)
GetSiteWithResponse request returning *GetSiteResponse
func (*ClientWithResponses) GetZoneWithResponse ¶
func (c *ClientWithResponses) GetZoneWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
GetZoneWithResponse request returning *GetZoneResponse
func (*ClientWithResponses) ListAdTypesWithResponse ¶
func (c *ClientWithResponses) ListAdTypesWithResponse(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*ListAdTypesResponse, error)
ListAdTypesWithResponse request returning *ListAdTypesResponse
func (*ClientWithResponses) ListChannelSiteMapsWithResponse ¶
func (c *ClientWithResponses) ListChannelSiteMapsWithResponse(ctx context.Context, params *ListChannelSiteMapsParams, reqEditors ...RequestEditorFn) (*ListChannelSiteMapsResponse, error)
ListChannelSiteMapsWithResponse request returning *ListChannelSiteMapsResponse
func (*ClientWithResponses) ListChannelsForSiteChannelSiteMapWithResponse ¶
func (c *ClientWithResponses) ListChannelsForSiteChannelSiteMapWithResponse(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*ListChannelsForSiteChannelSiteMapResponse, error)
ListChannelsForSiteChannelSiteMapWithResponse request returning *ListChannelsForSiteChannelSiteMapResponse
func (*ClientWithResponses) ListChannelsWithResponse ¶
func (c *ClientWithResponses) ListChannelsWithResponse(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*ListChannelsResponse, error)
ListChannelsWithResponse request returning *ListChannelsResponse
func (*ClientWithResponses) ListForChannelAdTypeWithResponse ¶
func (c *ClientWithResponses) ListForChannelAdTypeWithResponse(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, reqEditors ...RequestEditorFn) (*ListForChannelAdTypeResponse, error)
ListForChannelAdTypeWithResponse request returning *ListForChannelAdTypeResponse
func (*ClientWithResponses) ListSitesWithResponse ¶
func (c *ClientWithResponses) ListSitesWithResponse(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*ListSitesResponse, error)
ListSitesWithResponse request returning *ListSitesResponse
func (*ClientWithResponses) ListZonesWithResponse ¶
func (c *ClientWithResponses) ListZonesWithResponse(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*ListZonesResponse, error)
ListZonesWithResponse request returning *ListZonesResponse
func (*ClientWithResponses) UpdateChannelSiteMapWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelSiteMapResponse, error)
UpdateChannelSiteMapWithBodyWithResponse request with arbitrary body returning *UpdateChannelSiteMapResponse
func (*ClientWithResponses) UpdateChannelSiteMapWithResponse ¶
func (c *ClientWithResponses) UpdateChannelSiteMapWithResponse(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelSiteMapResponse, error)
func (*ClientWithResponses) UpdateChannelWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateChannelWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelResponse, error)
UpdateChannelWithBodyWithResponse request with arbitrary body returning *UpdateChannelResponse
func (*ClientWithResponses) UpdateChannelWithResponse ¶
func (c *ClientWithResponses) UpdateChannelWithResponse(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelResponse, error)
func (*ClientWithResponses) UpdateSiteWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSiteWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSiteResponse, error)
UpdateSiteWithBodyWithResponse request with arbitrary body returning *UpdateSiteResponse
func (*ClientWithResponses) UpdateSiteWithResponse ¶
func (c *ClientWithResponses) UpdateSiteWithResponse(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSiteResponse, error)
func (*ClientWithResponses) UpdateZoneWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateZoneWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
UpdateZoneWithBodyWithResponse request with arbitrary body returning *UpdateZoneResponse
func (*ClientWithResponses) UpdateZoneWithResponse ¶
func (c *ClientWithResponses) UpdateZoneWithResponse(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAdTypesWithResponse request
ListAdTypesWithResponse(ctx context.Context, params *ListAdTypesParams, reqEditors ...RequestEditorFn) (*ListAdTypesResponse, error)
// CreateAdTypeWithBodyWithResponse request with any body
CreateAdTypeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAdTypeResponse, error)
CreateAdTypeWithResponse(ctx context.Context, body CreateAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAdTypeResponse, error)
// DeleteAdTypeWithResponse request
DeleteAdTypeWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteAdTypeResponse, error)
// ListChannelsWithResponse request
ListChannelsWithResponse(ctx context.Context, params *ListChannelsParams, reqEditors ...RequestEditorFn) (*ListChannelsResponse, error)
// CreateChannelWithBodyWithResponse request with any body
CreateChannelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChannelResponse, error)
CreateChannelWithResponse(ctx context.Context, body CreateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChannelResponse, error)
// ListForChannelAdTypeWithResponse request
ListForChannelAdTypeWithResponse(ctx context.Context, channelId int32, params *ListForChannelAdTypeParams, reqEditors ...RequestEditorFn) (*ListForChannelAdTypeResponse, error)
// CreateForChannelAdTypeWithBodyWithResponse request with any body
CreateForChannelAdTypeWithBodyWithResponse(ctx context.Context, channelId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForChannelAdTypeResponse, error)
CreateForChannelAdTypeWithResponse(ctx context.Context, channelId int32, body CreateForChannelAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForChannelAdTypeResponse, error)
// DeleteForChannelAdTypeWithResponse request
DeleteForChannelAdTypeWithResponse(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*DeleteForChannelAdTypeResponse, error)
// GetChannelSiteMapWithResponse request
GetChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*GetChannelSiteMapResponse, error)
// DeleteChannelSiteMapWithResponse request
DeleteChannelSiteMapWithResponse(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*DeleteChannelSiteMapResponse, error)
// GetChannelWithResponse request
GetChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetChannelResponse, error)
// UpdateChannelWithBodyWithResponse request with any body
UpdateChannelWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelResponse, error)
UpdateChannelWithResponse(ctx context.Context, id int32, body UpdateChannelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelResponse, error)
// DeleteChannelWithResponse request
DeleteChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteChannelResponse, error)
// GetPrioritiesChannelWithResponse request
GetPrioritiesChannelWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetPrioritiesChannelResponse, error)
// ListChannelSiteMapsWithResponse request
ListChannelSiteMapsWithResponse(ctx context.Context, params *ListChannelSiteMapsParams, reqEditors ...RequestEditorFn) (*ListChannelSiteMapsResponse, error)
// CreateChannelSiteMapWithBodyWithResponse request with any body
CreateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateChannelSiteMapResponse, error)
CreateChannelSiteMapWithResponse(ctx context.Context, body CreateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateChannelSiteMapResponse, error)
// UpdateChannelSiteMapWithBodyWithResponse request with any body
UpdateChannelSiteMapWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateChannelSiteMapResponse, error)
UpdateChannelSiteMapWithResponse(ctx context.Context, body UpdateChannelSiteMapJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateChannelSiteMapResponse, error)
// ListChannelsForSiteChannelSiteMapWithResponse request
ListChannelsForSiteChannelSiteMapWithResponse(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*ListChannelsForSiteChannelSiteMapResponse, error)
// FilterSiteWithResponse request
FilterSiteWithResponse(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*FilterSiteResponse, error)
// ListSitesWithResponse request
ListSitesWithResponse(ctx context.Context, params *ListSitesParams, reqEditors ...RequestEditorFn) (*ListSitesResponse, error)
// CreateSiteWithBodyWithResponse request with any body
CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSiteResponse, error)
CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSiteResponse, error)
// GetSiteWithResponse request
GetSiteWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetSiteResponse, error)
// UpdateSiteWithBodyWithResponse request with any body
UpdateSiteWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSiteResponse, error)
UpdateSiteWithResponse(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSiteResponse, error)
// ListZonesWithResponse request
ListZonesWithResponse(ctx context.Context, params *ListZonesParams, reqEditors ...RequestEditorFn) (*ListZonesResponse, error)
// CreateZoneWithBodyWithResponse request with any body
CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
// GetZoneWithResponse request
GetZoneWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
// UpdateZoneWithBodyWithResponse request with any body
UpdateZoneWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
UpdateZoneWithResponse(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateAdTypeJSONBody ¶
type CreateAdTypeJSONBody struct {
Height int32 `json:"Height"`
Name *string `json:"Name,omitempty"`
Width int32 `json:"Width"`
}
CreateAdTypeJSONBody defines parameters for CreateAdType.
type CreateAdTypeJSONRequestBody ¶
type CreateAdTypeJSONRequestBody CreateAdTypeJSONBody
CreateAdTypeJSONRequestBody defines body for CreateAdType for application/json ContentType.
type CreateAdTypeResponse ¶
func ParseCreateAdTypeResponse ¶
func ParseCreateAdTypeResponse(rsp *http.Response) (*CreateAdTypeResponse, error)
ParseCreateAdTypeResponse parses an HTTP response from a CreateAdTypeWithResponse call
func (CreateAdTypeResponse) Status ¶
func (r CreateAdTypeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateAdTypeResponse) StatusCode ¶
func (r CreateAdTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateChannelJSONBody ¶
type CreateChannelJSONBody struct {
AdTypes []int32 `json:"AdTypes"`
CPM *float32 `json:"CPM,omitempty"`
Engine int32 `json:"Engine"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
Title string `json:"Title"`
}
CreateChannelJSONBody defines parameters for CreateChannel.
type CreateChannelJSONRequestBody ¶
type CreateChannelJSONRequestBody CreateChannelJSONBody
CreateChannelJSONRequestBody defines body for CreateChannel for application/json ContentType.
type CreateChannelResponse ¶
func ParseCreateChannelResponse ¶
func ParseCreateChannelResponse(rsp *http.Response) (*CreateChannelResponse, error)
ParseCreateChannelResponse parses an HTTP response from a CreateChannelWithResponse call
func (CreateChannelResponse) Status ¶
func (r CreateChannelResponse) Status() string
Status returns HTTPResponse.Status
func (CreateChannelResponse) StatusCode ¶
func (r CreateChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateChannelSiteMapJSONBody ¶
type CreateChannelSiteMapJSONBody struct {
ChannelId int32 `json:"channelId"`
Priority int32 `json:"priority"`
SiteId int32 `json:"siteId"`
}
CreateChannelSiteMapJSONBody defines parameters for CreateChannelSiteMap.
type CreateChannelSiteMapJSONRequestBody ¶
type CreateChannelSiteMapJSONRequestBody CreateChannelSiteMapJSONBody
CreateChannelSiteMapJSONRequestBody defines body for CreateChannelSiteMap for application/json ContentType.
type CreateChannelSiteMapResponse ¶
type CreateChannelSiteMapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelSiteMap
}
func ParseCreateChannelSiteMapResponse ¶
func ParseCreateChannelSiteMapResponse(rsp *http.Response) (*CreateChannelSiteMapResponse, error)
ParseCreateChannelSiteMapResponse parses an HTTP response from a CreateChannelSiteMapWithResponse call
func (CreateChannelSiteMapResponse) Status ¶
func (r CreateChannelSiteMapResponse) Status() string
Status returns HTTPResponse.Status
func (CreateChannelSiteMapResponse) StatusCode ¶
func (r CreateChannelSiteMapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateForChannelAdTypeJSONBody ¶
type CreateForChannelAdTypeJSONBody struct {
Height int32 `json:"Height"`
Name *string `json:"Name,omitempty"`
Width int32 `json:"Width"`
}
CreateForChannelAdTypeJSONBody defines parameters for CreateForChannelAdType.
type CreateForChannelAdTypeJSONRequestBody ¶
type CreateForChannelAdTypeJSONRequestBody CreateForChannelAdTypeJSONBody
CreateForChannelAdTypeJSONRequestBody defines body for CreateForChannelAdType for application/json ContentType.
type CreateForChannelAdTypeResponse ¶
type CreateForChannelAdTypeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AdType
}
func ParseCreateForChannelAdTypeResponse ¶
func ParseCreateForChannelAdTypeResponse(rsp *http.Response) (*CreateForChannelAdTypeResponse, error)
ParseCreateForChannelAdTypeResponse parses an HTTP response from a CreateForChannelAdTypeWithResponse call
func (CreateForChannelAdTypeResponse) Status ¶
func (r CreateForChannelAdTypeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateForChannelAdTypeResponse) StatusCode ¶
func (r CreateForChannelAdTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSiteJSONBody ¶
type CreateSiteJSONBody struct {
CustomRelevancyScore *int32 `json:"CustomRelevancyScore,omitempty"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
NetworkMargin *float32 `json:"NetworkMargin,omitempty"`
Title string `json:"Title"`
URL string `json:"URL"`
}
CreateSiteJSONBody defines parameters for CreateSite.
type CreateSiteJSONRequestBody ¶
type CreateSiteJSONRequestBody CreateSiteJSONBody
CreateSiteJSONRequestBody defines body for CreateSite for application/json ContentType.
type CreateSiteResponse ¶
func ParseCreateSiteResponse ¶
func ParseCreateSiteResponse(rsp *http.Response) (*CreateSiteResponse, error)
ParseCreateSiteResponse parses an HTTP response from a CreateSiteWithResponse call
func (CreateSiteResponse) Status ¶
func (r CreateSiteResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSiteResponse) StatusCode ¶
func (r CreateSiteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateZoneJSONBody ¶
type CreateZoneJSONBody struct {
IsDeleted *bool `json:"IsDeleted,omitempty"`
Name string `json:"Name"`
SiteId *int32 `json:"SiteId,omitempty"`
}
CreateZoneJSONBody defines parameters for CreateZone.
type CreateZoneJSONRequestBody ¶
type CreateZoneJSONRequestBody CreateZoneJSONBody
CreateZoneJSONRequestBody defines body for CreateZone for application/json ContentType.
type CreateZoneResponse ¶
func ParseCreateZoneResponse ¶
func ParseCreateZoneResponse(rsp *http.Response) (*CreateZoneResponse, error)
ParseCreateZoneResponse parses an HTTP response from a CreateZoneWithResponse call
func (CreateZoneResponse) Status ¶
func (r CreateZoneResponse) Status() string
Status returns HTTPResponse.Status
func (CreateZoneResponse) StatusCode ¶
func (r CreateZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAdTypeResponse ¶
func ParseDeleteAdTypeResponse ¶
func ParseDeleteAdTypeResponse(rsp *http.Response) (*DeleteAdTypeResponse, error)
ParseDeleteAdTypeResponse parses an HTTP response from a DeleteAdTypeWithResponse call
func (DeleteAdTypeResponse) Status ¶
func (r DeleteAdTypeResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAdTypeResponse) StatusCode ¶
func (r DeleteAdTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChannelResponse ¶
func ParseDeleteChannelResponse ¶
func ParseDeleteChannelResponse(rsp *http.Response) (*DeleteChannelResponse, error)
ParseDeleteChannelResponse parses an HTTP response from a DeleteChannelWithResponse call
func (DeleteChannelResponse) Status ¶
func (r DeleteChannelResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChannelResponse) StatusCode ¶
func (r DeleteChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteChannelSiteMapResponse ¶
func ParseDeleteChannelSiteMapResponse ¶
func ParseDeleteChannelSiteMapResponse(rsp *http.Response) (*DeleteChannelSiteMapResponse, error)
ParseDeleteChannelSiteMapResponse parses an HTTP response from a DeleteChannelSiteMapWithResponse call
func (DeleteChannelSiteMapResponse) Status ¶
func (r DeleteChannelSiteMapResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteChannelSiteMapResponse) StatusCode ¶
func (r DeleteChannelSiteMapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteForChannelAdTypeResponse ¶
func ParseDeleteForChannelAdTypeResponse ¶
func ParseDeleteForChannelAdTypeResponse(rsp *http.Response) (*DeleteForChannelAdTypeResponse, error)
ParseDeleteForChannelAdTypeResponse parses an HTTP response from a DeleteForChannelAdTypeWithResponse call
func (DeleteForChannelAdTypeResponse) Status ¶
func (r DeleteForChannelAdTypeResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteForChannelAdTypeResponse) StatusCode ¶
func (r DeleteForChannelAdTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FilterSiteParams ¶
type FilterSiteParams struct {
// TitleLike Filters the stream of sites based on the Title. This is a simple match - if the string provided in the query parameter is present anywhere in a site's Title, that site will be returned in the results.
TitleLike *string `form:"titleLike,omitempty" json:"titleLike,omitempty"`
// UrlLike Filters the stream of sites based on the Url. This is a simple match - if the string provided in the query parameter is present anywhere in a site's Url, that site will be returned in the results.
UrlLike *string `form:"urlLike,omitempty" json:"urlLike,omitempty"`
}
FilterSiteParams defines parameters for FilterSite.
type FilterSiteResponse ¶
func ParseFilterSiteResponse ¶
func ParseFilterSiteResponse(rsp *http.Response) (*FilterSiteResponse, error)
ParseFilterSiteResponse parses an HTTP response from a FilterSiteWithResponse call
func (FilterSiteResponse) Status ¶
func (r FilterSiteResponse) Status() string
Status returns HTTPResponse.Status
func (FilterSiteResponse) StatusCode ¶
func (r FilterSiteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelResponse ¶
func ParseGetChannelResponse ¶
func ParseGetChannelResponse(rsp *http.Response) (*GetChannelResponse, error)
ParseGetChannelResponse parses an HTTP response from a GetChannelWithResponse call
func (GetChannelResponse) Status ¶
func (r GetChannelResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelResponse) StatusCode ¶
func (r GetChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetChannelSiteMapResponse ¶
type GetChannelSiteMapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelSiteMap
}
func ParseGetChannelSiteMapResponse ¶
func ParseGetChannelSiteMapResponse(rsp *http.Response) (*GetChannelSiteMapResponse, error)
ParseGetChannelSiteMapResponse parses an HTTP response from a GetChannelSiteMapWithResponse call
func (GetChannelSiteMapResponse) Status ¶
func (r GetChannelSiteMapResponse) Status() string
Status returns HTTPResponse.Status
func (GetChannelSiteMapResponse) StatusCode ¶
func (r GetChannelSiteMapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPrioritiesChannelResponse ¶
type GetPrioritiesChannelResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Priority
}
func ParseGetPrioritiesChannelResponse ¶
func ParseGetPrioritiesChannelResponse(rsp *http.Response) (*GetPrioritiesChannelResponse, error)
ParseGetPrioritiesChannelResponse parses an HTTP response from a GetPrioritiesChannelWithResponse call
func (GetPrioritiesChannelResponse) Status ¶
func (r GetPrioritiesChannelResponse) Status() string
Status returns HTTPResponse.Status
func (GetPrioritiesChannelResponse) StatusCode ¶
func (r GetPrioritiesChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSiteResponse ¶
func ParseGetSiteResponse ¶
func ParseGetSiteResponse(rsp *http.Response) (*GetSiteResponse, error)
ParseGetSiteResponse parses an HTTP response from a GetSiteWithResponse call
func (GetSiteResponse) Status ¶
func (r GetSiteResponse) Status() string
Status returns HTTPResponse.Status
func (GetSiteResponse) StatusCode ¶
func (r GetSiteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneResponse ¶
func ParseGetZoneResponse ¶
func ParseGetZoneResponse(rsp *http.Response) (*GetZoneResponse, error)
ParseGetZoneResponse parses an HTTP response from a GetZoneWithResponse call
func (GetZoneResponse) Status ¶
func (r GetZoneResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneResponse) StatusCode ¶
func (r GetZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAdTypesParams ¶
type ListAdTypesParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListAdTypesParams defines parameters for ListAdTypes.
type ListAdTypesResponse ¶
type ListAdTypesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AdTypeList
}
func ParseListAdTypesResponse ¶
func ParseListAdTypesResponse(rsp *http.Response) (*ListAdTypesResponse, error)
ParseListAdTypesResponse parses an HTTP response from a ListAdTypesWithResponse call
func (ListAdTypesResponse) Status ¶
func (r ListAdTypesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAdTypesResponse) StatusCode ¶
func (r ListAdTypesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListChannelSiteMapsParams ¶
type ListChannelSiteMapsParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListChannelSiteMapsParams defines parameters for ListChannelSiteMaps.
type ListChannelSiteMapsResponse ¶
type ListChannelSiteMapsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelSiteMapList
}
func ParseListChannelSiteMapsResponse ¶
func ParseListChannelSiteMapsResponse(rsp *http.Response) (*ListChannelSiteMapsResponse, error)
ParseListChannelSiteMapsResponse parses an HTTP response from a ListChannelSiteMapsWithResponse call
func (ListChannelSiteMapsResponse) Status ¶
func (r ListChannelSiteMapsResponse) Status() string
Status returns HTTPResponse.Status
func (ListChannelSiteMapsResponse) StatusCode ¶
func (r ListChannelSiteMapsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListChannelsForSiteChannelSiteMapResponse ¶
type ListChannelsForSiteChannelSiteMapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelList
}
func ParseListChannelsForSiteChannelSiteMapResponse ¶
func ParseListChannelsForSiteChannelSiteMapResponse(rsp *http.Response) (*ListChannelsForSiteChannelSiteMapResponse, error)
ParseListChannelsForSiteChannelSiteMapResponse parses an HTTP response from a ListChannelsForSiteChannelSiteMapWithResponse call
func (ListChannelsForSiteChannelSiteMapResponse) Status ¶
func (r ListChannelsForSiteChannelSiteMapResponse) Status() string
Status returns HTTPResponse.Status
func (ListChannelsForSiteChannelSiteMapResponse) StatusCode ¶
func (r ListChannelsForSiteChannelSiteMapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListChannelsParams ¶
type ListChannelsParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListChannelsParams defines parameters for ListChannels.
type ListChannelsResponse ¶
type ListChannelsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelList
}
func ParseListChannelsResponse ¶
func ParseListChannelsResponse(rsp *http.Response) (*ListChannelsResponse, error)
ParseListChannelsResponse parses an HTTP response from a ListChannelsWithResponse call
func (ListChannelsResponse) Status ¶
func (r ListChannelsResponse) Status() string
Status returns HTTPResponse.Status
func (ListChannelsResponse) StatusCode ¶
func (r ListChannelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListForChannelAdTypeParams ¶
type ListForChannelAdTypeParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListForChannelAdTypeParams defines parameters for ListForChannelAdType.
type ListForChannelAdTypeResponse ¶
type ListForChannelAdTypeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AdTypeList
}
func ParseListForChannelAdTypeResponse ¶
func ParseListForChannelAdTypeResponse(rsp *http.Response) (*ListForChannelAdTypeResponse, error)
ParseListForChannelAdTypeResponse parses an HTTP response from a ListForChannelAdTypeWithResponse call
func (ListForChannelAdTypeResponse) Status ¶
func (r ListForChannelAdTypeResponse) Status() string
Status returns HTTPResponse.Status
func (ListForChannelAdTypeResponse) StatusCode ¶
func (r ListForChannelAdTypeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSitesParams ¶
type ListSitesParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListSitesParams defines parameters for ListSites.
type ListSitesResponse ¶
func ParseListSitesResponse ¶
func ParseListSitesResponse(rsp *http.Response) (*ListSitesResponse, error)
ParseListSitesResponse parses an HTTP response from a ListSitesWithResponse call
func (ListSitesResponse) Status ¶
func (r ListSitesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSitesResponse) StatusCode ¶
func (r ListSitesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListZonesParams ¶
type ListZonesParams struct {
// PageSize The size of the page to be returned
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// Page The page number to be returned
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
}
ListZonesParams defines parameters for ListZones.
type ListZonesResponse ¶
func ParseListZonesResponse ¶
func ParseListZonesResponse(rsp *http.Response) (*ListZonesResponse, error)
ParseListZonesResponse parses an HTTP response from a ListZonesWithResponse call
func (ListZonesResponse) Status ¶
func (r ListZonesResponse) Status() string
Status returns HTTPResponse.Status
func (ListZonesResponse) StatusCode ¶
func (r ListZonesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Priority ¶
type Priority struct {
ChannelId *int32 `json:"ChannelId,omitempty"`
FloorCPC *float32 `json:"FloorCPC,omitempty"`
FloorPrice *float32 `json:"FloorPrice,omitempty"`
Id int32 `json:"Id"`
IsAdChain bool `json:"IsAdChain"`
IsAdChainOptimized bool `json:"IsAdChainOptimized"`
IsAdChainOrdered bool `json:"IsAdChainOrdered"`
IsAuction bool `json:"IsAuction"`
IsDeleted bool `json:"IsDeleted"`
IsKeywordOptimized *bool `json:"IsKeywordOptimized,omitempty"`
IsSecondPricing *bool `json:"IsSecondPricing,omitempty"`
Name string `json:"Name"`
PassbackTimeout *int32 `json:"PassbackTimeout,omitempty"`
RelevancyScoreConfig *string `json:"RelevancyScoreConfig,omitempty"`
RelevancyScoreConfigJSON *string `json:"RelevancyScoreConfigJSON,omitempty"`
SecondPriceGroupBy *string `json:"SecondPriceGroupBy,omitempty"`
SelectionAlgorithm int32 `json:"SelectionAlgorithm"`
SerializeRelevancyScoreConfigJSON *bool `json:"SerializeRelevancyScoreConfigJSON,omitempty"`
Weight *int32 `json:"Weight,omitempty"`
}
Priority defines model for Priority.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Site ¶
type Site struct {
CustomRelevancyScore *int32 `json:"CustomRelevancyScore,omitempty"`
Id int32 `json:"Id"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
NetworkMargin *float32 `json:"NetworkMargin,omitempty"`
// Deprecated:
PublisherAccountId *int32 `json:"PublisherAccountId,omitempty"`
Title string `json:"Title"`
Url string `json:"Url"`
}
Site defines model for Site.
type SiteList ¶
type SiteList struct {
Items []Site `json:"items"`
Page int32 `json:"page"`
PageSize int32 `json:"pageSize"`
TotalItems int64 `json:"totalItems"`
TotalPages int32 `json:"totalPages"`
}
SiteList defines model for SiteList.
type UpdateChannelJSONBody ¶
type UpdateChannelJSONBody struct {
AdTypes []int32 `json:"AdTypes"`
Engine int32 `json:"Engine"`
Id int32 `json:"Id"`
Title string `json:"Title"`
}
UpdateChannelJSONBody defines parameters for UpdateChannel.
type UpdateChannelJSONRequestBody ¶
type UpdateChannelJSONRequestBody UpdateChannelJSONBody
UpdateChannelJSONRequestBody defines body for UpdateChannel for application/json ContentType.
type UpdateChannelResponse ¶
func ParseUpdateChannelResponse ¶
func ParseUpdateChannelResponse(rsp *http.Response) (*UpdateChannelResponse, error)
ParseUpdateChannelResponse parses an HTTP response from a UpdateChannelWithResponse call
func (UpdateChannelResponse) Status ¶
func (r UpdateChannelResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChannelResponse) StatusCode ¶
func (r UpdateChannelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateChannelSiteMapJSONBody ¶
type UpdateChannelSiteMapJSONBody struct {
ChannelId int32 `json:"channelId"`
Priority int32 `json:"priority"`
SiteId int32 `json:"siteId"`
}
UpdateChannelSiteMapJSONBody defines parameters for UpdateChannelSiteMap.
type UpdateChannelSiteMapJSONRequestBody ¶
type UpdateChannelSiteMapJSONRequestBody UpdateChannelSiteMapJSONBody
UpdateChannelSiteMapJSONRequestBody defines body for UpdateChannelSiteMap for application/json ContentType.
type UpdateChannelSiteMapResponse ¶
type UpdateChannelSiteMapResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ChannelSiteMap
}
func ParseUpdateChannelSiteMapResponse ¶
func ParseUpdateChannelSiteMapResponse(rsp *http.Response) (*UpdateChannelSiteMapResponse, error)
ParseUpdateChannelSiteMapResponse parses an HTTP response from a UpdateChannelSiteMapWithResponse call
func (UpdateChannelSiteMapResponse) Status ¶
func (r UpdateChannelSiteMapResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateChannelSiteMapResponse) StatusCode ¶
func (r UpdateChannelSiteMapResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSiteJSONBody ¶
type UpdateSiteJSONBody struct {
CustomRelevancyScore *int32 `json:"CustomRelevancyScore,omitempty"`
Id int32 `json:"Id"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
NetworkMargin *float32 `json:"NetworkMargin,omitempty"`
Title string `json:"Title"`
URL string `json:"URL"`
}
UpdateSiteJSONBody defines parameters for UpdateSite.
type UpdateSiteJSONRequestBody ¶
type UpdateSiteJSONRequestBody UpdateSiteJSONBody
UpdateSiteJSONRequestBody defines body for UpdateSite for application/json ContentType.
type UpdateSiteResponse ¶
func ParseUpdateSiteResponse ¶
func ParseUpdateSiteResponse(rsp *http.Response) (*UpdateSiteResponse, error)
ParseUpdateSiteResponse parses an HTTP response from a UpdateSiteWithResponse call
func (UpdateSiteResponse) Status ¶
func (r UpdateSiteResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSiteResponse) StatusCode ¶
func (r UpdateSiteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateZoneJSONBody ¶
type UpdateZoneJSONBody struct {
Id int32 `json:"Id"`
IsDeleted *bool `json:"IsDeleted,omitempty"`
Name string `json:"Name"`
SiteId *int32 `json:"SiteId,omitempty"`
}
UpdateZoneJSONBody defines parameters for UpdateZone.
type UpdateZoneJSONRequestBody ¶
type UpdateZoneJSONRequestBody UpdateZoneJSONBody
UpdateZoneJSONRequestBody defines body for UpdateZone for application/json ContentType.
type UpdateZoneResponse ¶
func ParseUpdateZoneResponse ¶
func ParseUpdateZoneResponse(rsp *http.Response) (*UpdateZoneResponse, error)
ParseUpdateZoneResponse parses an HTTP response from a UpdateZoneWithResponse call
func (UpdateZoneResponse) Status ¶
func (r UpdateZoneResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateZoneResponse) StatusCode ¶
func (r UpdateZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode