client

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

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

Go to latest
Published: Jun 15, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

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

View Source
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

func NewDeleteAdTypeRequest(server string, id int32) (*http.Request, error)

NewDeleteAdTypeRequest generates requests for DeleteAdType

func NewDeleteChannelRequest

func NewDeleteChannelRequest(server string, id int32) (*http.Request, error)

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

func NewGetChannelRequest(server string, id int32) (*http.Request, error)

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

func NewGetPrioritiesChannelRequest(server string, id int32) (*http.Request, error)

NewGetPrioritiesChannelRequest generates requests for GetPrioritiesChannel

func NewGetSiteRequest

func NewGetSiteRequest(server string, id int32) (*http.Request, error)

NewGetSiteRequest generates requests for GetSite

func NewGetZoneRequest

func NewGetZoneRequest(server string, id int32) (*http.Request, error)

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

func NewUpdateZoneRequestWithBody

func NewUpdateZoneRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewUpdateZoneRequestWithBody generates requests for UpdateZone with any type of 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 (c *Client) CreateAdTypeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CreateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateChannelWithBody

func (c *Client) CreateChannelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateForChannelAdType

func (c *Client) CreateForChannelAdType(ctx context.Context, channelId int32, body CreateForChannelAdTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateForChannelAdTypeWithBody

func (c *Client) CreateForChannelAdTypeWithBody(ctx context.Context, channelId int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSite

func (c *Client) CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSiteWithBody

func (c *Client) CreateSiteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateZone

func (c *Client) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateZoneWithBody

func (c *Client) CreateZoneWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAdType

func (c *Client) DeleteAdType(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteChannel

func (c *Client) DeleteChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteChannelSiteMap

func (c *Client) DeleteChannelSiteMap(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteForChannelAdType

func (c *Client) DeleteForChannelAdType(ctx context.Context, channelId int32, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FilterSite

func (c *Client) FilterSite(ctx context.Context, params *FilterSiteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetChannel

func (c *Client) GetChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetChannelSiteMap

func (c *Client) GetChannelSiteMap(ctx context.Context, channelId int32, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPrioritiesChannel

func (c *Client) GetPrioritiesChannel(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSite

func (c *Client) GetSite(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetZone

func (c *Client) GetZone(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) ListChannelsForSiteChannelSiteMap(ctx context.Context, siteId int32, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) UpdateChannelSiteMapWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateChannelWithBody

func (c *Client) UpdateChannelWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSite

func (c *Client) UpdateSite(ctx context.Context, id int32, body UpdateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSiteWithBody

func (c *Client) UpdateSiteWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateZone

func (c *Client) UpdateZone(ctx context.Context, id int32, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateZoneWithBody

func (c *Client) UpdateZoneWithBody(ctx context.Context, id int32, contentType string, body io.Reader, 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

type CreateAdTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AdType
}

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

type CreateChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Channel
}

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

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

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

type CreateSiteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Site
}

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

type CreateZoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Zone
}

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

type DeleteAdTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type DeleteChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type DeleteChannelSiteMapResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteChannelSiteMapResponse

func ParseDeleteChannelSiteMapResponse(rsp *http.Response) (*DeleteChannelSiteMapResponse, error)

ParseDeleteChannelSiteMapResponse parses an HTTP response from a DeleteChannelSiteMapWithResponse call

func (DeleteChannelSiteMapResponse) Status

Status returns HTTPResponse.Status

func (DeleteChannelSiteMapResponse) StatusCode

func (r DeleteChannelSiteMapResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteForChannelAdTypeResponse

type DeleteForChannelAdTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteForChannelAdTypeResponse

func ParseDeleteForChannelAdTypeResponse(rsp *http.Response) (*DeleteForChannelAdTypeResponse, error)

ParseDeleteForChannelAdTypeResponse parses an HTTP response from a DeleteForChannelAdTypeWithResponse call

func (DeleteForChannelAdTypeResponse) Status

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

type FilterSiteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type GetChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Channel
}

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

Status returns HTTPResponse.Status

func (GetPrioritiesChannelResponse) StatusCode

func (r GetPrioritiesChannelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSiteResponse

type GetSiteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Site
}

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

type GetZoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Zone
}

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

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

Status returns HTTPResponse.Status

func (ListChannelsForSiteChannelSiteMapResponse) StatusCode

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

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

type ListSitesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SiteList
}

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

type ListZonesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ZoneList
}

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

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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

type UpdateChannelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Channel
}

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

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

type UpdateSiteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Site
}

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

type UpdateZoneResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Zone
}

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

type Zone

type Zone struct {
	Id        int32  `json:"Id"`
	IsDeleted *bool  `json:"IsDeleted,omitempty"`
	Name      string `json:"Name"`
	SiteId    int32  `json:"SiteId"`
}

Zone defines model for Zone.

type ZoneList

type ZoneList struct {
	Items      []Zone `json:"items"`
	Page       int32  `json:"page"`
	PageSize   int32  `json:"pageSize"`
	TotalItems int64  `json:"totalItems"`
	TotalPages int32  `json:"totalPages"`
}

ZoneList defines model for ZoneList.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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