vendor: update all dependencies to latest versions

This commit is contained in:
Nick Craig-Wood
2017-09-30 15:27:27 +01:00
parent 911d121bb9
commit b017fcfe9a
3048 changed files with 537055 additions and 189679 deletions
File diff suppressed because it is too large Load Diff
+17 -344
View File
@@ -1,6 +1,6 @@
// Package adexchangebuyer2 provides access to the Ad Exchange Buyer API II.
//
// See https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
// See https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
//
// Usage example:
//
@@ -233,23 +233,11 @@ type AccountsFilterSetsFilteredBidsService struct {
func NewAccountsFilterSetsFilteredBidsCreativesService(s *Service) *AccountsFilterSetsFilteredBidsCreativesService {
rs := &AccountsFilterSetsFilteredBidsCreativesService{s: s}
rs.Details = NewAccountsFilterSetsFilteredBidsCreativesDetailsService(s)
return rs
}
type AccountsFilterSetsFilteredBidsCreativesService struct {
s *Service
Details *AccountsFilterSetsFilteredBidsCreativesDetailsService
}
func NewAccountsFilterSetsFilteredBidsCreativesDetailsService(s *Service) *AccountsFilterSetsFilteredBidsCreativesDetailsService {
rs := &AccountsFilterSetsFilteredBidsCreativesDetailsService{s: s}
return rs
}
type AccountsFilterSetsFilteredBidsCreativesDetailsService struct {
s *Service
}
func NewAccountsFilterSetsFilteredBidsDetailsService(s *Service) *AccountsFilterSetsFilteredBidsDetailsService {
@@ -1569,8 +1557,8 @@ type FilterSet struct {
// optional.
//
// Possible values:
// "INTERVAL_UNSPECIFIED" - A placeholder for an unspecified interval;
// no time series is applied.
// "TIME_SERIES_GRANULARITY_UNSPECIFIED" - A placeholder for an
// unspecified interval; no time series is applied.
// All rows in response will contain data for the entire requested time
// range.
// "HOURLY" - Indicates that data will be broken down by the hour.
@@ -2106,81 +2094,6 @@ func (s *ListClientsResponse) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCreativeStatusAndCreativeBreakdownByDetailResponse: Response
// message for listing all details associated with a given filtered
// bid
// reason and a given creative.
type ListCreativeStatusAndCreativeBreakdownByDetailResponse struct {
// DetailType: The type of detail that the detail IDs represent.
//
// Possible values:
// "TYPE_UNSPECIFIED" - A placeholder for an undefined status.
// This value will never be returned in responses.
// "CREATIVE_ATTRIBUTE" - Indicates that the detail ID refers to a
// creative attribute;
// see
// [publisher-excludable-creative-attributes](https://developers.goog
// le.com/ad-exchange/rtb/downloads/publisher-excludable-creative-attribu
// tes).
// "VENDOR" - Indicates that the detail ID refers to a vendor;
// see
// [vendors](https://developers.google.com/ad-exchange/rtb/downloads/
// vendors).
// "SENSITIVE_CATEGORY" - Indicates that the detail ID refers to a
// sensitive category;
// see
// [ad-sensitive-categories](https://developers.google.com/ad-exchang
// e/rtb/downloads/ad-sensitive-categories).
// "PRODUCT_CATEGORY" - Indicates that the detail ID refers to a
// product category;
// see
// [ad-product-categories](https://developers.google.com/ad-exchange/
// rtb/downloads/ad-product-categories).
DetailType string `json:"detailType,omitempty"`
// FilteredBidDetailRows: List of rows, with counts of bids with a given
// creative status and
// creative, aggregated by detail.
FilteredBidDetailRows []*FilteredBidDetailRow `json:"filteredBidDetailRows,omitempty"`
// NextPageToken: A token to retrieve the next page of results.
// Pass this value in
// the
// ListCreativeStatusAndCreativeBreakdownByDetailRequest.pageToken
// fi
// eld in the subsequent call to
// the
// accounts.filterSets.filteredBids.creatives.details.list
// method to retrieve the next page of results.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "DetailType") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DetailType") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ListCreativeStatusAndCreativeBreakdownByDetailResponse) MarshalJSON() ([]byte, error) {
type noMethod ListCreativeStatusAndCreativeBreakdownByDetailResponse
raw := noMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ListCreativeStatusBreakdownByCreativeResponse: Response message for
// listing all creatives associated with a given filtered
// bid reason.
@@ -2236,7 +2149,8 @@ type ListCreativeStatusBreakdownByDetailResponse struct {
// DetailType: The type of detail that the detail IDs represent.
//
// Possible values:
// "TYPE_UNSPECIFIED" - A placeholder for an undefined status.
// "DETAIL_TYPE_UNSPECIFIED" - A placeholder for an undefined
// status.
// This value will never be returned in responses.
// "CREATIVE_ATTRIBUTE" - Indicates that the detail ID refers to a
// creative attribute;
@@ -2258,6 +2172,11 @@ type ListCreativeStatusBreakdownByDetailResponse struct {
// see
// [ad-product-categories](https://developers.google.com/ad-exchange/
// rtb/downloads/ad-product-categories).
// "DISAPPROVAL_REASON" - Indicates that the detail ID refers to a
// disapproval reason; see
// DisapprovalReason enum in
// [snippet-status-report-proto](https://developers.google.com/ad-exchang
// e/rtb/downloads/snippet-status-report-proto).
DetailType string `json:"detailType,omitempty"`
// FilteredBidDetailRows: List of rows, with counts of bids with a given
@@ -3207,22 +3126,7 @@ func (s *ServingRestriction) MarshalJSON() ([]byte, error) {
type StopWatchingCreativeRequest struct {
}
// TimeInterval: An interval of time, with an absolute start and
// end.
// This is included in the response, for several reasons:
// 1) The request may have specified start or end times relative to the
// time the
// request was sent; the response indicates the corresponding
// absolute time
// interval.
// 2) The request may have specified an end time past the latest time
// for which
// data was available (e.g. if requesting data for the today); the
// response
// indicates the latest time for which data was actually returned.
// 3) The response data for a single request may be broken down into
// multiple
// time intervals, if a time series was requested.
// TimeInterval: An interval of time, with an absolute start and end.
type TimeInterval struct {
// EndTime: The timestamp marking the end of the range (exclusive) for
// which data is
@@ -5336,10 +5240,12 @@ func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativ
// not_checked}
// <li>attribute: {a numeric attribute from the list of
// attributes}
// <li>disapprovalReason: {a reason from
// <li>disapprovalReason: {a reason
// from
// DisapprovalReason
// </ul>
// Example: 'accountId=12345 AND (dealsStatus:disapproved AND
// Example: 'accountId=12345 AND (dealsStatus:disapproved
// AND
// disapprovalReason:unacceptable_content) OR attribute:47'
func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall {
c.urlParams_.Set("query", query)
@@ -5466,7 +5372,7 @@ func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreat
// "type": "string"
// },
// "query": {
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from DisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'",
// "description": "An optional query string to filter creatives. If no filter is specified,\nall active creatives will be returned.\nSupported queries are:\n\u003cul\u003e\n\u003cli\u003eaccountId=\u003ci\u003eaccount_id_string\u003c/i\u003e\n\u003cli\u003ecreativeId=\u003ci\u003ecreative_id_string\u003c/i\u003e\n\u003cli\u003edealsStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eopenAuctionStatus: {approved, conditionally_approved, disapproved,\n not_checked}\n\u003cli\u003eattribute: {a numeric attribute from the list of attributes}\n\u003cli\u003edisapprovalReason: {a reason from\nDisapprovalReason\n\u003c/ul\u003e\nExample: 'accountId=12345 AND (dealsStatus:disapproved AND\ndisapprovalReason:unacceptable_content) OR attribute:47'",
// "location": "query",
// "type": "string"
// }
@@ -8339,239 +8245,6 @@ func (c *AccountsFilterSetsFilteredBidsCreativesListCall) Pages(ctx context.Cont
}
}
// method id "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list":
type AccountsFilterSetsFilteredBidsCreativesDetailsListCall struct {
s *Service
accountId int64
filterSetId int64
creativeStatusId int64
creativeId string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: List all details associated with a specific reason for which
// bids were
// filtered and a specific creative that was filtered for that reason,
// with
// the number of bids filtered for each detail.
func (r *AccountsFilterSetsFilteredBidsCreativesDetailsService) List(accountId int64, filterSetId int64, creativeStatusId int64, creativeId string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c := &AccountsFilterSetsFilteredBidsCreativesDetailsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.accountId = accountId
c.filterSetId = filterSetId
c.creativeStatusId = creativeStatusId
c.creativeId = creativeId
return c
}
// PageSize sets the optional parameter "pageSize": Requested page size.
// The server may return fewer results than requested.
// If unspecified, the server will pick an appropriate default.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) PageSize(pageSize int64) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
return c
}
// PageToken sets the optional parameter "pageToken": A token
// identifying a page of results the server should return.
// Typically, this is the value
// of
// ListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToke
// n
// returned from the previous call to
// the
// accounts.filterSets.filteredBids.creatives.details.list
// method.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) PageToken(pageToken string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Fields(s ...googleapi.Field) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) IfNoneMatch(entityTag string) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Context(ctx context.Context) *AccountsFilterSetsFilteredBidsCreativesDetailsListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details")
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("GET", urls, body)
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"accountId": strconv.FormatInt(c.accountId, 10),
"filterSetId": strconv.FormatInt(c.filterSetId, 10),
"creativeStatusId": strconv.FormatInt(c.creativeStatusId, 10),
"creativeId": c.creativeId,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list" call.
// Exactly one of
// *ListCreativeStatusAndCreativeBreakdownByDetailResponse or error will
// be non-nil. Any non-2xx status code is an error. Response headers are
// in either
// *ListCreativeStatusAndCreativeBreakdownByDetailResponse.ServerResponse
// .Header or (if a response was returned at all) in
// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
// whether the returned error was because http.StatusNotModified was
// returned.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Do(opts ...googleapi.CallOption) (*ListCreativeStatusAndCreativeBreakdownByDetailResponse, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, &googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
}
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := &ListCreativeStatusAndCreativeBreakdownByDetailResponse{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "List all details associated with a specific reason for which bids were\nfiltered and a specific creative that was filtered for that reason, with\nthe number of bids filtered for each detail.",
// "flatPath": "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details",
// "httpMethod": "GET",
// "id": "adexchangebuyer2.accounts.filterSets.filteredBids.creatives.details.list",
// "parameterOrder": [
// "accountId",
// "filterSetId",
// "creativeStatusId",
// "creativeId"
// ],
// "parameters": {
// "accountId": {
// "description": "Account ID of the buyer.",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeId": {
// "description": "The creative ID for which to retrieve a breakdown by detail.",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "creativeStatusId": {
// "description": "The ID of the creative status for which to retrieve a breakdown by detail.\nSee\n[creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).",
// "format": "int32",
// "location": "path",
// "required": true,
// "type": "integer"
// },
// "filterSetId": {
// "description": "The ID of the filter set to apply.",
// "format": "int64",
// "location": "path",
// "required": true,
// "type": "string"
// },
// "pageSize": {
// "description": "Requested page size. The server may return fewer results than requested.\nIf unspecified, the server will pick an appropriate default.",
// "format": "int32",
// "location": "query",
// "type": "integer"
// },
// "pageToken": {
// "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListCreativeStatusAndCreativeBreakdownByDetailResponse.nextPageToken\nreturned from the previous call to the\naccounts.filterSets.filteredBids.creatives.details.list\nmethod.",
// "location": "query",
// "type": "string"
// }
// },
// "path": "v2beta1/accounts/{accountId}/filterSets/{filterSetId}/filteredBids/{creativeStatusId}/creatives/{creativeId}/details",
// "response": {
// "$ref": "ListCreativeStatusAndCreativeBreakdownByDetailResponse"
// },
// "scopes": [
// "https://www.googleapis.com/auth/adexchange.buyer"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *AccountsFilterSetsFilteredBidsCreativesDetailsListCall) Pages(ctx context.Context, f func(*ListCreativeStatusAndCreativeBreakdownByDetailResponse) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "adexchangebuyer2.accounts.filterSets.filteredBids.details.list":
type AccountsFilterSetsFilteredBidsDetailsListCall struct {
@@ -8734,7 +8407,7 @@ func (c *AccountsFilterSetsFilteredBidsDetailsListCall) Do(opts ...googleapi.Cal
// "type": "string"
// },
// "creativeStatusId": {
// "description": "The ID of the creative status for which to retrieve a breakdown by detail.\nSee\n[creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).",
// "description": "The ID of the creative status for which to retrieve a breakdown by detail.\nSee\n[creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).\nDetails are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.",
// "format": "int32",
// "location": "path",
// "required": true,