Skip to content

Commit

Permalink
google-api-go-client: update all APIs
Browse files Browse the repository at this point in the history
Change-Id: I1c46a757151ef0b288982c6010027bb6bc5c90ee
Reviewed-on: https://code-review.googlesource.com/3800
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
gmlewis committed Nov 30, 2015
1 parent 030d584 commit ece7143
Show file tree
Hide file tree
Showing 31 changed files with 3,184 additions and 1,336 deletions.
9 changes: 7 additions & 2 deletions analytics/v3/analytics-api.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/tkvvUCeQm-DiyKpCr0Y-A0UaVuo\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/fvFbWC4d-F2dNIv25oDe8GZrlTA\"",
"discoveryVersion": "v1",
"id": "analytics:v3",
"name": "analytics",
"version": "v3",
"revision": "20150814",
"revision": "20151030",
"title": "Google Analytics API",
"description": "View and manage your Google Analytics data",
"ownerDomain": "google.com",
Expand Down Expand Up @@ -3334,6 +3334,11 @@
"pattern": "ga:[0-9]+",
"location": "query"
},
"include-empty-rows": {
"type": "boolean",
"description": "The response will include empty rows if this parameter is set to true, the default is true",
"location": "query"
},
"max-results": {
"type": "integer",
"description": "The maximum number of entries to include in this feed.",
Expand Down
13 changes: 13 additions & 0 deletions analytics/v3/analytics-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -4359,6 +4359,14 @@ func (c *DataGaGetCall) Filters(filters string) *DataGaGetCall {
return c
}

// IncludeEmptyRows sets the optional parameter "include-empty-rows":
// The response will include empty rows if this parameter is set to
// true, the default is true
func (c *DataGaGetCall) IncludeEmptyRows(includeEmptyRows bool) *DataGaGetCall {
c.urlParams_.Set("include-empty-rows", fmt.Sprint(includeEmptyRows))
return c
}

// MaxResults sets the optional parameter "max-results": The maximum
// number of entries to include in this feed.
func (c *DataGaGetCall) MaxResults(maxResults int64) *DataGaGetCall {
Expand Down Expand Up @@ -4530,6 +4538,11 @@ func (c *DataGaGetCall) Do() (*GaData, error) {
// "required": true,
// "type": "string"
// },
// "include-empty-rows": {
// "description": "The response will include empty rows if this parameter is set to true, the default is true",
// "location": "query",
// "type": "boolean"
// },
// "max-results": {
// "description": "The maximum number of entries to include in this feed.",
// "format": "int32",
Expand Down
6 changes: 3 additions & 3 deletions androidenterprise/v1/androidenterprise-api.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/k50i1jH6d5mxm7o5MPctHqUGfAg\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Dhm95NFcR0E5y6PPQV-hHJ9dqK0\"",
"discoveryVersion": "v1",
"id": "androidenterprise:v1",
"name": "androidenterprise",
"canonicalName": "Android Enterprise",
"version": "v1",
"revision": "20150910",
"revision": "20151127",
"title": "Google Play EMM API",
"description": "Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android for Work users.",
"ownerDomain": "google.com",
Expand All @@ -15,7 +15,7 @@
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
},
"documentationLink": "https://developers.google.com/play/enterprise",
"documentationLink": "https://developers.google.com/android/work/play/emm-api",
"protocol": "rest",
"baseUrl": "https://www.googleapis.com/androidenterprise/v1/",
"basePath": "/androidenterprise/v1/",
Expand Down
2 changes: 1 addition & 1 deletion androidenterprise/v1/androidenterprise-gen.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package androidenterprise provides access to the Google Play EMM API.
//
// See https://developers.google.com/play/enterprise
// See https://developers.google.com/android/work/play/emm-api
//
// Usage example:
//
Expand Down
20 changes: 2 additions & 18 deletions api-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
},
"documentationLink": "https://developers.google.com/play/enterprise",
"documentationLink": "https://developers.google.com/android/work/play/emm-api",
"preferred": true
},
{
Expand Down Expand Up @@ -1185,7 +1185,7 @@
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://developers.google.com/appengine/",
"documentationLink": "https://cloud.google.com/appengine/docs/admin-api/",
"preferred": true
},
{
Expand Down Expand Up @@ -1330,22 +1330,6 @@
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://cloud.google.com/logging/docs/",
"preferred": false
},
{
"kind": "discovery#directoryItem",
"id": "logging:v2beta1",
"name": "logging",
"version": "v2beta1",
"title": "Google Cloud Logging API",
"description": "The Google Cloud Logging API lets you write log entries and manage your logs, log sinks and logs-based metrics.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/logging/v2beta1/rest",
"discoveryLink": "./apis/logging/v2beta1/rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://cloud.google.com/logging/docs/",
"preferred": true
},
{
Expand Down
105 changes: 94 additions & 11 deletions appengine/v1beta4/appengine-api.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/MxcrsWLtc_45Vl0dvlLXLZx13VM\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/_N6P2yp_iYSGpgtP_LUuoaI39to\"",
"discoveryVersion": "v1",
"id": "appengine:v1beta4",
"name": "appengine",
"version": "v1beta4",
"revision": "20150831",
"revision": "20151123",
"title": "Google App Engine Admin API",
"description": "The Google App Engine Admin API enables developers to provision and manage their App Engine applications.",
"ownerDomain": "google.com",
Expand All @@ -14,7 +14,7 @@
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://developers.google.com/appengine/",
"documentationLink": "https://cloud.google.com/appengine/docs/admin-api/",
"protocol": "rest",
"baseUrl": "https://appengine.googleapis.com/",
"basePath": "/",
Expand Down Expand Up @@ -235,7 +235,7 @@
},
"vm": {
"type": "boolean",
"description": "Whether to deploy this app in a VM container (deprecated, use \"env\":\"2\")."
"description": "Whether to deploy this app in a VM container."
},
"betaSettings": {
"type": "object",
Expand Down Expand Up @@ -360,6 +360,18 @@
"minPendingLatency": {
"type": "string",
"description": "The minimum amount of time that App Engine should allow a request to wait in the pending queue before starting a new instance to handle it."
},
"requestUtilization": {
"$ref": "RequestUtilization",
"description": "Target scaling by request utilization."
},
"diskUtilization": {
"$ref": "DiskUtilization",
"description": "Target scaling by disk usage."
},
"networkUtilization": {
"$ref": "NetworkUtilization",
"description": "Target scaling by network usage."
}
}
},
Expand All @@ -379,6 +391,77 @@
}
}
},
"RequestUtilization": {
"id": "RequestUtilization",
"type": "object",
"description": "Target scaling by request utilization (for VM runtimes only).",
"properties": {
"targetRequestCountPerSec": {
"type": "integer",
"description": "Target requests per second.",
"format": "int32"
},
"targetConcurrentRequests": {
"type": "integer",
"description": "Target number of concurrent requests.",
"format": "int32"
}
}
},
"DiskUtilization": {
"id": "DiskUtilization",
"type": "object",
"description": "Target scaling by disk usage (for VM runtimes only).",
"properties": {
"targetWriteBytesPerSec": {
"type": "integer",
"description": "Target bytes per second written.",
"format": "int32"
},
"targetWriteOpsPerSec": {
"type": "integer",
"description": "Target ops per second written.",
"format": "int32"
},
"targetReadBytesPerSec": {
"type": "integer",
"description": "Target bytes per second read.",
"format": "int32"
},
"targetReadOpsPerSec": {
"type": "integer",
"description": "Target ops per second read.",
"format": "int32"
}
}
},
"NetworkUtilization": {
"id": "NetworkUtilization",
"type": "object",
"description": "Target scaling by network usage (for VM runtimes only).",
"properties": {
"targetSentBytesPerSec": {
"type": "integer",
"description": "Target bytes per second sent.",
"format": "int32"
},
"targetSentPacketsPerSec": {
"type": "integer",
"description": "Target packets per second sent.",
"format": "int32"
},
"targetReceivedBytesPerSec": {
"type": "integer",
"description": "Target bytes per second received.",
"format": "int32"
},
"targetReceivedPacketsPerSec": {
"type": "integer",
"description": "Target packets per second received.",
"format": "int32"
}
}
},
"BasicScaling": {
"id": "BasicScaling",
"type": "object",
Expand Down Expand Up @@ -549,7 +632,7 @@
},
"requireMatchingFile": {
"type": "boolean",
"description": "If true, this [UrlMap][google.appengine.v1beta4.UrlMap] entry does not match the request unless the file referenced by the handler also exists. If no such file exists, processing will continue with the next [UrlMap][google.appengine.v1beta4.UrlMap] that matches the requested URL."
"description": "If true, this UrlMap entry does not match the request unless the file referenced by the handler also exists. If no such file exists, processing will continue with the next UrlMap that matches the requested URL."
},
"applicationReadable": {
"type": "boolean",
Expand Down Expand Up @@ -769,7 +852,7 @@
"properties": {
"sourceUrl": {
"type": "string",
"description": "The URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage."
"description": "The URL source to use to fetch this file. Must be a URL to a resource in Google Cloud Storage in the form 'http(s)://storage.googleapis.com/\\/\\'."
},
"sha1Sum": {
"type": "string",
Expand Down Expand Up @@ -845,16 +928,16 @@
"Status": {
"id": "Status",
"type": "object",
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of [google.rpc.Code][google.rpc.Code], but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.",
"description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.",
"properties": {
"code": {
"type": "integer",
"description": "The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].",
"description": "The status code, which should be an enum value of google.rpc.Code.",
"format": "int32"
},
"message": {
"type": "string",
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client."
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client."
},
"details": {
"type": "array",
Expand Down Expand Up @@ -951,7 +1034,7 @@
"ListOperationsResponse": {
"id": "ListOperationsResponse",
"type": "object",
"description": "The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].",
"description": "The response message for Operations.ListOperations.",
"properties": {
"operations": {
"type": "array",
Expand All @@ -969,7 +1052,7 @@
"OperationMetadata": {
"id": "OperationMetadata",
"type": "object",
"description": "Metadata for the given [google.longrunning.Operation][google.longrunning.Operation].",
"description": "Metadata for the given google.longrunning.Operation.",
"properties": {
"operationType": {
"type": "string",
Expand Down
Loading

0 comments on commit ece7143

Please sign in to comment.