Skip to content

Commit

Permalink
google-api-go-client: Update all APIs to incorporate support for new …
Browse files Browse the repository at this point in the history
…map types.

R=bradfitz
CC=golang-codereviews
https://codereview.appspot.com/109810044
  • Loading branch information
gmlewis committed Jun 11, 2014
1 parent ee4d25c commit bbd1460
Show file tree
Hide file tree
Showing 118 changed files with 49,324 additions and 7,650 deletions.
36 changes: 18 additions & 18 deletions adexchangebuyer/v1.1/adexchangebuyer-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ func (c *AccountsGetCall) Do() (*Account, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(Account)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *Account
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -367,8 +367,8 @@ func (c *AccountsListCall) Do() (*AccountsList, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(AccountsList)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *AccountsList
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -429,8 +429,8 @@ func (c *AccountsPatchCall) Do() (*Account, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(Account)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *Account
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -505,8 +505,8 @@ func (c *AccountsUpdateCall) Do() (*Account, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(Account)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *Account
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -577,8 +577,8 @@ func (c *CreativesGetCall) Do() (*Creative, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(Creative)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *Creative
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -654,8 +654,8 @@ func (c *CreativesInsertCall) Do() (*Creative, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(Creative)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *Creative
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -741,8 +741,8 @@ func (c *CreativesListCall) Do() (*CreativesList, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(CreativesList)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *CreativesList
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -824,8 +824,8 @@ func (c *DirectDealsGetCall) Do() (*DirectDeal, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(DirectDeal)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *DirectDeal
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down Expand Up @@ -886,8 +886,8 @@ func (c *DirectDealsListCall) Do() (*DirectDealsList, error) {
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
ret := new(DirectDealsList)
if err := json.NewDecoder(res.Body).Decode(ret); err != nil {
var ret *DirectDealsList
if err := json.NewDecoder(res.Body).Decode(&ret); err != nil {
return nil, err
}
return ret, nil
Expand Down
170 changes: 1 addition & 169 deletions adexchangebuyer/v1.2/adexchangebuyer-api.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"kind": "discovery#restDescription",
"etag": "\"kEk3sFj6Ef5_yR1-H3bAO6qw9mI/mlESaLdrZYKCTBOwQidwTWARgSg\"",
"etag": "\"C11OM5Qtr9122-scy_WeqND9D3o/LoRIMAKoKzC_3pYWoD_xTQpbqyo\"",
"discoveryVersion": "v1",
"id": "adexchangebuyer:v1.2",
"name": "adexchangebuyer",
Expand Down Expand Up @@ -423,119 +423,6 @@
"default": "adexchangebuyer#directDealsList"
}
}
},
"PerformanceReport": {
"id": "PerformanceReport",
"type": "object",
"description": "The configuration data for an Ad Exchange performance report list. TODO(nathanbullock): need to add some release tests before releasing this. https://sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/adx/tools/rtb_api/adxrtb.py",
"properties": {
"calloutStatusRate": {
"type": "array",
"description": "Rate of various prefiltering statuses per match. Please refer to the callout-status-codes.txt file for different statuses.",
"items": {
"type": "any"
}
},
"cookieMatcherStatusRate": {
"type": "array",
"description": "Average QPS for cookie matcher operations.",
"items": {
"type": "any"
}
},
"creativeStatusRate": {
"type": "array",
"description": "Rate of ads with a given status. Please refer to the creative-status-codes.txt file for different statuses.",
"items": {
"type": "any"
}
},
"hostedMatchStatusRate": {
"type": "array",
"description": "Average QPS for hosted match operations.",
"items": {
"type": "any"
}
},
"kind": {
"type": "string",
"description": "Resource type.",
"default": "adexchangebuyer#performanceReport"
},
"latency50thPercentile": {
"type": "number",
"description": "The 50th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report.",
"format": "double"
},
"latency85thPercentile": {
"type": "number",
"description": "The 85th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report.",
"format": "double"
},
"latency95thPercentile": {
"type": "number",
"description": "The 95th percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report.",
"format": "double"
},
"noQuotaInRegion": {
"type": "number",
"description": "Rate of various quota account statuses per quota check.",
"format": "double"
},
"outOfQuota": {
"type": "number",
"description": "Rate of various quota account statuses per quota check.",
"format": "double"
},
"pixelMatchRequests": {
"type": "number",
"description": "Average QPS for pixel match requests from clients.",
"format": "double"
},
"pixelMatchResponses": {
"type": "number",
"description": "Average QPS for pixel match responses from clients.",
"format": "double"
},
"quotaConfiguredLimit": {
"type": "number",
"description": "The configured quota limits for this account.",
"format": "double"
},
"quotaThrottledLimit": {
"type": "number",
"description": "The throttled quota limits for this account.",
"format": "double"
},
"region": {
"type": "string",
"description": "The trading location of this data."
},
"timestamp": {
"type": "string",
"description": "The unix timestamp of the starting time of this performance data.",
"format": "int64"
}
}
},
"PerformanceReportList": {
"id": "PerformanceReportList",
"type": "object",
"description": "The configuration data for an Ad Exchange performance report list. https://sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/adx/tools/rtb_api/adxrtb.py",
"properties": {
"kind": {
"type": "string",
"description": "Resource type.",
"default": "adexchangebuyer#performanceReportList"
},
"performance_report": {
"type": "array",
"description": "A list of performance reports relevant for the account.",
"items": {
"$ref": "PerformanceReport"
}
}
}
}
},
"resources": {
Expand Down Expand Up @@ -764,61 +651,6 @@
]
}
}
},
"performanceReport": {
"methods": {
"list": {
"id": "adexchangebuyer.performanceReport.list",
"path": "performancereport",
"httpMethod": "GET",
"description": "Retrieves the authenticated user's list of performance metrics.",
"parameters": {
"accountId": {
"type": "string",
"description": "The account id to get the reports.",
"required": true,
"format": "int64",
"location": "query"
},
"endDateTime": {
"type": "string",
"description": "The end time of the report in ISO 8601 timestamp format using UTC.",
"required": true,
"location": "query"
},
"maxResults": {
"type": "integer",
"description": "Maximum number of entries returned on one result page. If not set, the default is 100. Optional.",
"format": "uint32",
"minimum": "1",
"maximum": "1000",
"location": "query"
},
"pageToken": {
"type": "string",
"description": "A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of \"nextPageToken\" from the previous response. Optional.",
"location": "query"
},
"startDateTime": {
"type": "string",
"description": "The start time of the report in ISO 8601 timestamp format using UTC.",
"required": true,
"location": "query"
}
},
"parameterOrder": [
"accountId",
"endDateTime",
"startDateTime"
],
"response": {
"$ref": "PerformanceReportList"
},
"scopes": [
"https://www.googleapis.com/auth/adexchange.buyer"
]
}
}
}
}
}
Loading

0 comments on commit bbd1460

Please sign in to comment.