on develop help sign in
Updating service definitions
commitd9feb96f3396db6c9ca299857638eb56fd562ae8 authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 20 Jun 2016, 09:22 (10 years ago) parentb3418ed
48 files changed+48131−1331
gen/model/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.json+224 gen/model/adexchangebuyer/v1.4/adexchangebuyer-api.json+11−6 gen/model/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json+182−182 gen/model/analyticsreporting/v4/analyticsreporting-api.json+20−20 gen/model/androidenterprise/v1/androidenterprise-api.json+9−12 gen/model/androidpublisher/v2/androidpublisher-api.json+259−2 gen/model/autoscaler/v1beta2/autoscaler-api.json+12−34 gen/model/bigquery/v2/bigquery-api.json+32−8 gen/model/classroom/v1/classroom-api.json+1073−7 gen/model/cloudbuild/v1/cloudbuild-api.json+143−139 gen/model/clouderrorreporting/v1beta1/clouderrorreporting-api.json+191−191 gen/model/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json+59−2 gen/model/cloudtrace/v1/cloudtrace-api.json+18−8 gen/model/compute/v0.alpha/compute-api.json+20838 gen/model/compute/v0.beta/compute-api.json+99−15 gen/model/compute/v1/compute-api.json+5−5 gen/model/consumersurveys/v2/consumersurveys-api.json+32−4 gen/model/dataproc/v1/dataproc-api.json+5−103 gen/model/dataproc/v1alpha1/dataproc-api.json+3−3 gen/model/dataproc/v1beta1/dataproc-api.json+5−242 gen/model/datastore/v1beta3/datastore-api.json+5−5 gen/model/dfareporting/v2.2/dfareporting-api.json+19−19 gen/model/dfareporting/v2.3/dfareporting-api.json+19−19 gen/model/dfareporting/v2.4/dfareporting-api.json+21−21 gen/model/dfareporting/v2.5/dfareporting-api.json+18248 gen/model/dfareporting/v2.5beta1/dfareporting-api.json+23−23 gen/model/discovery/v1/discovery-api.json+2−2 gen/model/doubleclickbidmanager/v1/doubleclickbidmanager-api.json+70−2 gen/model/firebaserules/v1/firebaserules-api.json+627 gen/model/games/v1/games-api.json+330−2 gen/model/genomics/v1/genomics-api.json+10−2 gen/model/genomics/v1alpha2/genomics-api.json+3−3 gen/model/genomics/v1beta2/genomics-api.json+11−3 gen/model/identitytoolkit/v3/identitytoolkit-api.json+7−2 gen/model/playmoviespartner/v1/playmoviespartner-api.json+459−31 gen/model/prediction/v1.6/prediction-api.json+13−2 gen/model/proximitybeacon/v1beta1/proximitybeacon-api.json+283−53 gen/model/runtimeconfig/v1beta1/runtimeconfig-api.json+876 gen/model/safebrowsing/v4/safebrowsing-api.json+25−24 gen/model/serviceregistry/v0.alpha/serviceregistry-api.json+8−3 gen/model/sheets/v4/sheets-api.json+3696 gen/model/sqladmin/v1beta4/sqladmin-api.json+14−6 gen/model/storage/v1/storage-api.json+3−3 gen/model/toolresults/v1beta3/toolresults-api.json+6−2 gen/model/vision/v1/vision-api.json+111−111 gen/model/youtubeanalytics/v1/youtubeanalytics-api.json+3−3 gen/model/youtubeanalytics/v1beta1/youtubeanalytics-api.json+3−3 gen/model/youtubereporting/v1/youtubereporting-api.json+16−4
gen/model/acceleratedmobilepageurl/v1/acceleratedmobilepageurl-api.jsonnew file+224
@@ -0,0 +1,224 @@
1+{
2+ "id": "acceleratedmobilepageurl:v1",
3+ "description": "This API contains a single method, [batchGet](/amp/cache/reference/acceleratedmobilepageurl/rest/v1/ampUrls/batchGet). Call this method to retrieve the AMP URL (and equivalent AMP Cache URL) for given public URL(s). For more information, see [Link to AMP Content](/amp/cache/use-amp-url).\n",
4+ "protocol": "rest",
5+ "title": "Accelerated Mobile Page (AMP) URL API",
6+ "resources": {
7+ "ampUrls": {
8+ "methods": {
9+ "batchGet": {
10+ "id": "acceleratedmobilepageurl.ampUrls.batchGet",
11+ "response": {
12+ "$ref": "BatchGetAmpUrlsResponse"
13+ },
14+ "parameterOrder": [],
15+ "description": "Returns AMP URL(s) and equivalent\n[AMP Cache URL(s)](/amp/cache/overview#amp-cache-url-format).",
16+ "request": {
17+ "$ref": "BatchGetAmpUrlsRequest"
18+ },
19+ "flatPath": "v1/ampUrls:batchGet",
20+ "httpMethod": "POST",
21+ "parameters": {},
22+ "path": "v1/ampUrls:batchGet"
23+ }
24+ }
25+ }
26+ },
27+ "schemas": {
28+ "AmpUrl": {
29+ "description": "AMP URL response for a requested URL.",
30+ "type": "object",
31+ "properties": {
32+ "ampUrl": {
33+ "description": "The AMP URL pointing to the publisher's web server.",
34+ "type": "string"
35+ },
36+ "originalUrl": {
37+ "description": "The original non-AMP URL.",
38+ "type": "string"
39+ },
40+ "cdnAmpUrl": {
41+ "description": "The [AMP Cache URL](/amp/cache/overview#amp-cache-url-format) pointing to the cached document in the Google AMP Cache.",
42+ "type": "string"
43+ }
44+ },
45+ "id": "AmpUrl"
46+ },
47+ "AmpUrlError": {
48+ "description": "AMP URL Error resource for a requested URL that couldn't be found.",
49+ "type": "object",
50+ "properties": {
51+ "originalUrl": {
52+ "description": "The original non-AMP URL.",
53+ "type": "string"
54+ },
55+ "errorCode": {
56+ "description": "The error code of an API call.",
57+ "enum": [
58+ "ERROR_CODE_UNSPECIFIED",
59+ "INPUT_URL_NOT_FOUND",
60+ "NO_AMP_URL",
61+ "APPLICATION_ERROR",
62+ "URL_IS_VALID_AMP",
63+ "URL_IS_INVALID_AMP"
64+ ],
65+ "enumDescriptions": [
66+ "Not specified error.",
67+ "Indicates the requested URL is not found in the index.",
68+ "Indicates no AMP URL has been found in the HTML of the requested URL.",
69+ "Indicates some kind of application error occurred at the server.\nClient advised to retry.",
70+ "Indicates the requested URL is a valid AMP URL.",
71+ "Indicates that the requested URL is an invalid AMP URL."
72+ ],
73+ "type": "string"
74+ },
75+ "errorMessage": {
76+ "description": "An optional descriptive error message.",
77+ "type": "string"
78+ }
79+ },
80+ "id": "AmpUrlError"
81+ },
82+ "BatchGetAmpUrlsRequest": {
83+ "description": "AMP URL request for a batch of URLs.",
84+ "type": "object",
85+ "properties": {
86+ "urls": {
87+ "description": "List of URLs to look up for the paired AMP URLs.\nThe URLs are case-sensitive. Up to 10 URLs per lookup\n(see [Usage Limits](/amp/cache/reference/limits)).",
88+ "type": "array",
89+ "items": {
90+ "type": "string"
91+ }
92+ }
93+ },
94+ "id": "BatchGetAmpUrlsRequest"
95+ },
96+ "BatchGetAmpUrlsResponse": {
97+ "description": "Batch AMP URL response.",
98+ "type": "object",
99+ "properties": {
100+ "urlErrors": {
101+ "description": "The errors for requested URLs that have no AMP URL.",
102+ "type": "array",
103+ "items": {
104+ "$ref": "AmpUrlError"
105+ }
106+ },
107+ "ampUrls": {
108+ "description": "For each URL in BatchAmpUrlsRequest, the URL response. The response might\nnot be in the same order as URLs in the batch request.\nIf BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated\nonly once.",
109+ "type": "array",
110+ "items": {
111+ "$ref": "AmpUrl"
112+ }
113+ }
114+ },
115+ "id": "BatchGetAmpUrlsResponse"
116+ }
117+ },
118+ "revision": "20160518",
119+ "basePath": "",
120+ "icons": {
121+ "x32": "http://www.google.com/images/icons/product/search-32.gif",
122+ "x16": "http://www.google.com/images/icons/product/search-16.gif"
123+ },
124+ "version_module": "True",
125+ "discoveryVersion": "v1",
126+ "baseUrl": "https://acceleratedmobilepageurl.googleapis.com/",
127+ "name": "acceleratedmobilepageurl",
128+ "parameters": {
129+ "access_token": {
130+ "description": "OAuth access token.",
131+ "type": "string",
132+ "location": "query"
133+ },
134+ "prettyPrint": {
135+ "description": "Returns response with indentations and line breaks.",
136+ "default": "true",
137+ "type": "boolean",
138+ "location": "query"
139+ },
140+ "key": {
141+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
142+ "type": "string",
143+ "location": "query"
144+ },
145+ "quotaUser": {
146+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
147+ "type": "string",
148+ "location": "query"
149+ },
150+ "pp": {
151+ "description": "Pretty-print response.",
152+ "default": "true",
153+ "type": "boolean",
154+ "location": "query"
155+ },
156+ "fields": {
157+ "description": "Selector specifying which fields to include in a partial response.",
158+ "type": "string",
159+ "location": "query"
160+ },
161+ "alt": {
162+ "description": "Data format for response.",
163+ "location": "query",
164+ "enum": [
165+ "json",
166+ "media",
167+ "proto"
168+ ],
169+ "default": "json",
170+ "enumDescriptions": [
171+ "Responses with Content-Type of application/json",
172+ "Media download with context-dependent Content-Type",
173+ "Responses with Content-Type of application/x-protobuf"
174+ ],
175+ "type": "string"
176+ },
177+ "$.xgafv": {
178+ "description": "V1 error format.",
179+ "enum": [
180+ "1",
181+ "2"
182+ ],
183+ "enumDescriptions": [
184+ "v1 error format",
185+ "v2 error format"
186+ ],
187+ "type": "string",
188+ "location": "query"
189+ },
190+ "callback": {
191+ "description": "JSONP",
192+ "type": "string",
193+ "location": "query"
194+ },
195+ "oauth_token": {
196+ "description": "OAuth 2.0 token for the current user.",
197+ "type": "string",
198+ "location": "query"
199+ },
200+ "uploadType": {
201+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
202+ "type": "string",
203+ "location": "query"
204+ },
205+ "bearer_token": {
206+ "description": "OAuth bearer token.",
207+ "type": "string",
208+ "location": "query"
209+ },
210+ "upload_protocol": {
211+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
212+ "type": "string",
213+ "location": "query"
214+ }
215+ },
216+ "documentationLink": "https://developers.google.com/amp/cache/",
217+ "ownerDomain": "google.com",
218+ "batchPath": "batch",
219+ "servicePath": "",
220+ "ownerName": "Google",
221+ "version": "v1",
222+ "rootUrl": "https://acceleratedmobilepageurl.googleapis.com/",
223+ "kind": "discovery#restDescription"
224+}
gen/model/adexchangebuyer/v1.4/adexchangebuyer-api.json+11−6
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/uJag6ff83gCumDI4yvdnOjY_wr0\"",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/002w-fCkY_zNzqAq_LEe_TgmEjM\"",
44 "discoveryVersion": "v1",
55 "id": "adexchangebuyer:v1.4",
66 "name": "adexchangebuyer",
77 "canonicalName": "Ad Exchange Buyer",
88 "version": "v1.4",
9− "revision": "20160428",
9+ "revision": "20160509",
1010 "title": "Ad Exchange Buyer API",
1111 "description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
1212 "ownerDomain": "google.com",
@@ -382,6 +382,10 @@
382382 ]
383383 }
384384 },
385+ "adChoicesDestinationUrl": {
386+ "type": "string",
387+ "description": "The link to the Ad Preferences page. This is only supported for native ads."
388+ },
385389 "advertiserId": {
386390 "type": "array",
387391 "description": "Detected advertiser id, if any. Read-only. This field should not be set in requests.",
@@ -770,8 +774,12 @@
770774 "DealServingMetadataDealPauseStatus": {
771775 "id": "DealServingMetadataDealPauseStatus",
772776 "type": "object",
773− "description": "Tracks which parties (if any) have paused a deal. The deal is considered paused if has_buyer_paused || has_seller_paused.",
777+ "description": "Tracks which parties (if any) have paused a deal. The deal is considered paused if has_buyer_paused || has_seller_paused. Each of the has_buyer_paused or the has_seller_paused bits can be set independently.",
774778 "properties": {
779+ "firstPausedBy": {
780+ "type": "string",
781+ "description": "If the deal is paused, records which party paused the deal first."
782+ },
775783 "hasBuyerPaused": {
776784 "type": "boolean"
777785 },
@@ -1908,9 +1916,6 @@
19081916 "type": "string",
19091917 "description": "The role of the last user that either updated the proposal or left a comment. (readonly)"
19101918 },
1911− "lastUpdaterRole": {
1912− "type": "string"
1913− },
19141919 "name": {
19151920 "type": "string",
19161921 "description": "The name for the proposal (updatable)"
gen/model/adexchangebuyer2/v2beta1/adexchangebuyer2-api.json+182−182
@@ -33,35 +33,35 @@
3333 "request": {
3434 "$ref": "ClientUser"
3535 },
36− "httpMethod": "PUT",
3736 "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
37+ "httpMethod": "PUT",
3838 "parameters": {
3939 "clientAccountId": {
40− "required": true,
4140 "description": "Numerical account ID of the client buyer that the user to be retrieved\nis associated with. (required)",
42− "type": "string",
41+ "required": true,
4342 "location": "path",
43+ "type": "string",
4444 "format": "int64"
4545 },
4646 "userId": {
47− "required": true,
4847 "description": "Numerical identifier of the user to retrieve. (required)",
49− "type": "string",
48+ "required": true,
5049 "location": "path",
50+ "type": "string",
5151 "format": "int64"
5252 },
5353 "accountId": {
54− "required": true,
5554 "description": "Numerical account ID of the client's sponsor buyer. (required)",
56− "type": "string",
55+ "required": true,
5756 "location": "path",
57+ "type": "string",
5858 "format": "int64"
5959 }
6060 },
61+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
6162 "scopes": [
6263 "https://www.googleapis.com/auth/adexchange.buyer"
63− ],
64− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}"
64+ ]
6565 },
6666 "get": {
6767 "id": "adexchangebuyer2.accounts.clients.users.get",
@@ -74,35 +74,35 @@
7474 "userId"
7575 ],
7676 "description": "Retrieves an existing client user.",
77− "httpMethod": "GET",
7877 "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
78+ "httpMethod": "GET",
7979 "parameters": {
8080 "clientAccountId": {
81− "required": true,
8281 "description": "Numerical account ID of the client buyer\nthat the user to be retrieved is associated with. (required)",
83− "type": "string",
82+ "required": true,
8483 "location": "path",
84+ "type": "string",
8585 "format": "int64"
8686 },
8787 "userId": {
88− "required": true,
8988 "description": "Numerical identifier of the user to retrieve. (required)",
90− "type": "string",
89+ "required": true,
9190 "location": "path",
91+ "type": "string",
9292 "format": "int64"
9393 },
9494 "accountId": {
95− "required": true,
9695 "description": "Numerical account ID of the client's sponsor buyer. (required)",
97− "type": "string",
96+ "required": true,
9897 "location": "path",
98+ "type": "string",
9999 "format": "int64"
100100 }
101101 },
102+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}",
102103 "scopes": [
103104 "https://www.googleapis.com/auth/adexchange.buyer"
104− ],
105− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}"
105+ ]
106106 },
107107 "list": {
108108 "id": "adexchangebuyer2.accounts.clients.users.list",
@@ -114,119 +114,119 @@
114114 "clientAccountId"
115115 ],
116116 "description": "Lists all the known client users for a specified\nsponsor buyer account ID.",
117− "httpMethod": "GET",
118117 "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users",
118+ "httpMethod": "GET",
119119 "parameters": {
120+ "clientAccountId": {
121+ "description": "The account ID of the client buyer to list users for. (required)\nYou must specify either a string representation of a\nnumerical account identifier or the `-` character\nto list all the client users for all the clients\nof a given sponsor buyer.",
122+ "required": true,
123+ "location": "path",
124+ "type": "string"
125+ },
120126 "pageSize": {
121127 "description": "Requested page size. The server may return fewer clients than requested.\nIf unspecified, the server will pick an appropriate default.",
122− "type": "integer",
123128 "location": "query",
129+ "type": "integer",
124130 "format": "int32"
125131 },
126− "clientAccountId": {
132+ "accountId": {
133+ "description": "Numerical account ID of the sponsor buyer of the client to list users for.\n(required)",
127134 "required": true,
128− "description": "The account ID of the client buyer to list users for. (required)\nYou must specify either a string representation of a\nnumerical account identifier or the `-` character\nto list all the client users for all the clients\nof a given sponsor buyer.",
135+ "location": "path",
129136 "type": "string",
130− "location": "path"
137+ "format": "int64"
131138 },
132139 "pageToken": {
133140 "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientUsersResponse.nextPageToken\nreturned from the previous call to the\naccounts.clients.users.list method.",
134− "type": "string",
135− "location": "query"
136− },
137− "accountId": {
138− "required": true,
139− "description": "Numerical account ID of the sponsor buyer of the client to list users for.\n(required)",
140− "type": "string",
141− "location": "path",
142− "format": "int64"
141+ "location": "query",
142+ "type": "string"
143143 }
144144 },
145+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users",
145146 "scopes": [
146147 "https://www.googleapis.com/auth/adexchange.buyer"
147− ],
148− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/users"
148+ ]
149149 }
150150 }
151151 },
152152 "invitations": {
153153 "methods": {
154− "get": {
155− "id": "adexchangebuyer2.accounts.clients.invitations.get",
154+ "create": {
155+ "id": "adexchangebuyer2.accounts.clients.invitations.create",
156156 "response": {
157157 "$ref": "ClientUserInvitation"
158158 },
159159 "parameterOrder": [
160160 "accountId",
161− "clientAccountId",
162− "invitationId"
161+ "clientAccountId"
163162 ],
164− "description": "Retrieves an existing client user invitation.",
165− "httpMethod": "GET",
166− "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}",
163+ "description": "Creates and sends out an email invitation to access\nan Ad Exchange client buyer account.",
164+ "request": {
165+ "$ref": "ClientUserInvitation"
166+ },
167+ "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
168+ "httpMethod": "POST",
167169 "parameters": {
168170 "clientAccountId": {
171+ "description": "Numerical account ID of the client buyer that the user\nshould be associated with. (required)",
169172 "required": true,
170− "description": "Numerical account ID of the client buyer that the user invitation\nto be retrieved is associated with. (required)",
171− "type": "string",
172173 "location": "path",
173− "format": "int64"
174− },
175− "invitationId": {
176− "required": true,
177− "description": "Numerical identifier of the user invitation to retrieve. (required)",
178174 "type": "string",
179− "location": "path",
180175 "format": "int64"
181176 },
182177 "accountId": {
183− "required": true,
184178 "description": "Numerical account ID of the client's sponsor buyer. (required)",
185− "type": "string",
179+ "required": true,
186180 "location": "path",
181+ "type": "string",
187182 "format": "int64"
188183 }
189184 },
185+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
190186 "scopes": [
191187 "https://www.googleapis.com/auth/adexchange.buyer"
192− ],
193− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}"
188+ ]
194189 },
195− "create": {
196− "id": "adexchangebuyer2.accounts.clients.invitations.create",
190+ "get": {
191+ "id": "adexchangebuyer2.accounts.clients.invitations.get",
197192 "response": {
198193 "$ref": "ClientUserInvitation"
199194 },
200195 "parameterOrder": [
201196 "accountId",
202− "clientAccountId"
197+ "clientAccountId",
198+ "invitationId"
203199 ],
204− "description": "Creates and sends out an email invitation to access\nan Ad Exchange client buyer account.",
205− "request": {
206− "$ref": "ClientUserInvitation"
207− },
208− "httpMethod": "POST",
209− "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
200+ "description": "Retrieves an existing client user invitation.",
201+ "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}",
202+ "httpMethod": "GET",
210203 "parameters": {
211204 "clientAccountId": {
205+ "description": "Numerical account ID of the client buyer that the user invitation\nto be retrieved is associated with. (required)",
212206 "required": true,
213− "description": "Numerical account ID of the client buyer that the user\nshould be associated with. (required)",
207+ "location": "path",
214208 "type": "string",
209+ "format": "int64"
210+ },
211+ "invitationId": {
212+ "description": "Numerical identifier of the user invitation to retrieve. (required)",
213+ "required": true,
215214 "location": "path",
215+ "type": "string",
216216 "format": "int64"
217217 },
218218 "accountId": {
219− "required": true,
220219 "description": "Numerical account ID of the client's sponsor buyer. (required)",
221− "type": "string",
220+ "required": true,
222221 "location": "path",
222+ "type": "string",
223223 "format": "int64"
224224 }
225225 },
226+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}",
226227 "scopes": [
227228 "https://www.googleapis.com/auth/adexchange.buyer"
228− ],
229− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations"
229+ ]
230230 },
231231 "list": {
232232 "id": "adexchangebuyer2.accounts.clients.invitations.list",
@@ -238,38 +238,38 @@
238238 "clientAccountId"
239239 ],
240240 "description": "Lists all the client users invitations for a client\nwith a given account ID.",
241− "httpMethod": "GET",
242241 "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
242+ "httpMethod": "GET",
243243 "parameters": {
244+ "clientAccountId": {
245+ "description": "Numerical account ID of the client buyer to list invitations for.\n(required)\nYou must either specify a string representation of a\nnumerical account identifier or the `-` character\nto list all the invitations for all the clients\nof a given sponsor buyer.",
246+ "required": true,
247+ "location": "path",
248+ "type": "string"
249+ },
244250 "pageSize": {
245251 "description": "Requested page size. Server may return fewer clients than requested.\nIf unspecified, server will pick an appropriate default.",
246− "type": "integer",
247252 "location": "query",
253+ "type": "integer",
248254 "format": "int32"
249255 },
250− "clientAccountId": {
256+ "accountId": {
257+ "description": "Numerical account ID of the client's sponsor buyer. (required)",
251258 "required": true,
252− "description": "Numerical account ID of the client buyer to list invitations for.\n(required)\nYou must either specify a string representation of a\nnumerical account identifier or the `-` character\nto list all the invitations for all the clients\nof a given sponsor buyer.",
259+ "location": "path",
253260 "type": "string",
254− "location": "path"
261+ "format": "int64"
255262 },
256263 "pageToken": {
257264 "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientUserInvitationsResponse.nextPageToken\nreturned from the previous call to the\nclients.invitations.list\nmethod.",
258− "type": "string",
259− "location": "query"
260− },
261− "accountId": {
262− "required": true,
263− "description": "Numerical account ID of the client's sponsor buyer. (required)",
264− "type": "string",
265− "location": "path",
266− "format": "int64"
265+ "location": "query",
266+ "type": "string"
267267 }
268268 },
269+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations",
269270 "scopes": [
270271 "https://www.googleapis.com/auth/adexchange.buyer"
271− ],
272− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations"
272+ ]
273273 }
274274 }
275275 }
@@ -288,89 +288,89 @@
288288 "request": {
289289 "$ref": "Client"
290290 },
291− "httpMethod": "PUT",
292291 "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
292+ "httpMethod": "PUT",
293293 "parameters": {
294294 "clientAccountId": {
295− "required": true,
296295 "description": "Unique numerical account ID of the client to update. (required)",
297− "type": "string",
296+ "required": true,
298297 "location": "path",
298+ "type": "string",
299299 "format": "int64"
300300 },
301301 "accountId": {
302− "required": true,
303302 "description": "Unique numerical account ID for the buyer of which the client buyer\nis a customer; the sponsor buyer to update a client for. (required)",
304− "type": "string",
303+ "required": true,
305304 "location": "path",
305+ "type": "string",
306306 "format": "int64"
307307 }
308308 },
309+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
309310 "scopes": [
310311 "https://www.googleapis.com/auth/adexchange.buyer"
311− ],
312− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}"
312+ ]
313313 },
314− "create": {
315− "id": "adexchangebuyer2.accounts.clients.create",
314+ "get": {
315+ "id": "adexchangebuyer2.accounts.clients.get",
316316 "response": {
317317 "$ref": "Client"
318318 },
319319 "parameterOrder": [
320− "accountId"
320+ "accountId",
321+ "clientAccountId"
321322 ],
322− "description": "Creates a new client buyer.",
323− "request": {
324− "$ref": "Client"
325− },
326− "httpMethod": "POST",
327− "flatPath": "v2beta1/accounts/{accountId}/clients",
323+ "description": "Gets a client buyer with a given client account ID.",
324+ "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
325+ "httpMethod": "GET",
328326 "parameters": {
329− "accountId": {
327+ "clientAccountId": {
328+ "description": "Numerical account ID of the client buyer to retrieve. (required)",
330329 "required": true,
331− "description": "Unique numerical account ID for the buyer of which the client buyer\nis a customer; the sponsor buyer to create a client for. (required)",
330+ "location": "path",
332331 "type": "string",
332+ "format": "int64"
333+ },
334+ "accountId": {
335+ "description": "Numerical account ID of the client's sponsor buyer. (required)",
336+ "required": true,
333337 "location": "path",
338+ "type": "string",
334339 "format": "int64"
335340 }
336341 },
342+ "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
337343 "scopes": [
338344 "https://www.googleapis.com/auth/adexchange.buyer"
339− ],
340− "path": "v2beta1/accounts/{accountId}/clients"
345+ ]
341346 },
342− "get": {
343− "id": "adexchangebuyer2.accounts.clients.get",
347+ "create": {
348+ "id": "adexchangebuyer2.accounts.clients.create",
344349 "response": {
345350 "$ref": "Client"
346351 },
347352 "parameterOrder": [
348− "accountId",
349− "clientAccountId"
353+ "accountId"
350354 ],
351− "description": "Gets a client buyer with a given client account ID.",
352− "httpMethod": "GET",
353− "flatPath": "v2beta1/accounts/{accountId}/clients/{clientAccountId}",
355+ "description": "Creates a new client buyer.",
356+ "request": {
357+ "$ref": "Client"
358+ },
359+ "flatPath": "v2beta1/accounts/{accountId}/clients",
360+ "httpMethod": "POST",
354361 "parameters": {
355− "clientAccountId": {
356− "required": true,
357− "description": "Numerical account ID of the client buyer to retrieve. (required)",
358− "type": "string",
359− "location": "path",
360− "format": "int64"
361− },
362362 "accountId": {
363+ "description": "Unique numerical account ID for the buyer of which the client buyer\nis a customer; the sponsor buyer to create a client for. (required)",
363364 "required": true,
364− "description": "Numerical account ID of the client's sponsor buyer. (required)",
365− "type": "string",
366365 "location": "path",
366+ "type": "string",
367367 "format": "int64"
368368 }
369369 },
370+ "path": "v2beta1/accounts/{accountId}/clients",
370371 "scopes": [
371372 "https://www.googleapis.com/auth/adexchange.buyer"
372− ],
373− "path": "v2beta1/accounts/{accountId}/clients/{clientAccountId}"
373+ ]
374374 },
375375 "list": {
376376 "id": "adexchangebuyer2.accounts.clients.list",
@@ -381,32 +381,32 @@
381381 "accountId"
382382 ],
383383 "description": "Lists all the clients for the current sponsor buyer.",
384− "httpMethod": "GET",
385384 "flatPath": "v2beta1/accounts/{accountId}/clients",
385+ "httpMethod": "GET",
386386 "parameters": {
387387 "pageSize": {
388388 "description": "Requested page size. The server may return fewer clients than requested.\nIf unspecified, the server will pick an appropriate default.",
389− "type": "integer",
390389 "location": "query",
390+ "type": "integer",
391391 "format": "int32"
392392 },
393− "pageToken": {
394− "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientsResponse.nextPageToken\nreturned from the previous call to the\naccounts.clients.list method.",
395− "type": "string",
396− "location": "query"
397− },
398393 "accountId": {
399− "required": true,
400394 "description": "Unique numerical account ID of the sponsor buyer to list the clients for.",
401− "type": "string",
395+ "required": true,
402396 "location": "path",
397+ "type": "string",
403398 "format": "int64"
399+ },
400+ "pageToken": {
401+ "description": "A token identifying a page of results the server should return.\nTypically, this is the value of\nListClientsResponse.nextPageToken\nreturned from the previous call to the\naccounts.clients.list method.",
402+ "location": "query",
403+ "type": "string"
404404 }
405405 },
406+ "path": "v2beta1/accounts/{accountId}/clients",
406407 "scopes": [
407408 "https://www.googleapis.com/auth/adexchange.buyer"
408− ],
409− "path": "v2beta1/accounts/{accountId}/clients"
409+ ]
410410 }
411411 }
412412 }
@@ -416,6 +416,7 @@
416416 "schemas": {
417417 "ClientUser": {
418418 "description": "A client user is created under a client buyer and has restricted access to\nthe Ad Exchange Marketplace and certain other sections\nof the Ad Exchange Buyer UI based on the role\ngranted to the associated client buyer.\n\nThe only way a new client user can be created is via accepting an\nemail invitation\n(see the\naccounts.clients.invitations.create\nmethod).\n\nAll fields are required unless otherwise specified.",
419+ "type": "object",
419420 "properties": {
420421 "email": {
421422 "description": "User's email address. The value of this field\nis ignored in an update operation.",
@@ -427,13 +428,13 @@
427428 "format": "int64"
428429 },
429430 "status": {
431+ "description": "The status of the client user.",
430432 "enum": [
431433 "USER_STATUS_UNSPECIFIED",
432434 "PENDING",
433435 "ACTIVE",
434436 "DISABLED"
435437 ],
436− "description": "The status of the client user.",
437438 "enumDescriptions": [
438439 "A placeholder for an undefined user status.",
439440 "A user who was already created but hasn't accepted the invitation yet.",
@@ -448,11 +449,11 @@
448449 "format": "int64"
449450 }
450451 },
451− "type": "object",
452452 "id": "ClientUser"
453453 },
454454 "ClientUserInvitation": {
455455 "description": "An invitation for a new client user to get access to the AdExchange Buyer UI.\n\nAll fields are required unless otherwise specified.",
456+ "type": "object",
456457 "properties": {
457458 "email": {
458459 "description": "The email address to which the invitation is sent. Email\naddresses should be unique among all client users under each sponsor\nbuyer.",
@@ -469,10 +470,10 @@
469470 "format": "int64"
470471 }
471472 },
472− "type": "object",
473473 "id": "ClientUserInvitation"
474474 },
475475 "ListClientUserInvitationsResponse": {
476+ "type": "object",
476477 "properties": {
477478 "nextPageToken": {
478479 "description": "A token to retrieve the next page of results.\nPass this value in the\nListClientUserInvitationsRequest.pageToken\nfield in the subsequent call to the\nclients.invitations.list\nmethod to retrieve the next\npage of results.",
@@ -486,40 +487,40 @@
486487 }
487488 }
488489 },
489− "type": "object",
490490 "id": "ListClientUserInvitationsResponse"
491491 },
492492 "ListClientUsersResponse": {
493+ "type": "object",
493494 "properties": {
494− "nextPageToken": {
495− "description": "A token to retrieve the next page of results.\nPass this value in the\nListClientUsersRequest.pageToken\nfield in the subsequent call to the\nclients.invitations.list\nmethod to retrieve the next\npage of results.",
496− "type": "string"
497− },
498495 "users": {
499496 "description": "The returned list of client users.",
500497 "type": "array",
501498 "items": {
502499 "$ref": "ClientUser"
503500 }
501+ },
502+ "nextPageToken": {
503+ "description": "A token to retrieve the next page of results.\nPass this value in the\nListClientUsersRequest.pageToken\nfield in the subsequent call to the\nclients.invitations.list\nmethod to retrieve the next\npage of results.",
504+ "type": "string"
504505 }
505506 },
506− "type": "object",
507507 "id": "ListClientUsersResponse"
508508 },
509509 "Client": {
510510 "description": "A client resource represents a client buyer&mdash;an agency,\na brand, or an advertiser customer of the sponsor buyer.\nUsers associated with the client buyer have restricted access to\nthe Ad Exchange Marketplace and certain other sections\nof the Ad Exchange Buyer UI based on the role\ngranted to the client buyer.\nAll fields are required unless otherwise specified.",
511+ "type": "object",
511512 "properties": {
512513 "visibleToSeller": {
513514 "description": "Whether the client buyer will be visible to sellers.",
514515 "type": "boolean"
515516 },
516517 "status": {
518+ "description": "The status of the client buyer.",
517519 "enum": [
518520 "CLIENT_STATUS_UNSPECIFIED",
519521 "DISABLED",
520522 "ACTIVE"
521523 ],
522− "description": "The status of the client buyer.",
523524 "enumDescriptions": [
524525 "A placeholder for an undefined client status.",
525526 "A client that is currently disabled.",
@@ -528,13 +529,13 @@
528529 "type": "string"
529530 },
530531 "entityType": {
532+ "description": "The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.",
531533 "enum": [
532534 "ENTITY_TYPE_UNSPECIFIED",
533535 "ADVERTISER",
534536 "BRAND",
535537 "AGENCY"
536538 ],
537− "description": "The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.",
538539 "enumDescriptions": [
539540 "A placeholder for an undefined client entity type.",
540541 "An advertiser.",
@@ -544,13 +545,13 @@
544545 "type": "string"
545546 },
546547 "role": {
548+ "description": "The role which is assigned to the client buyer. Each role implies a set of\npermissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,\n`CLIENT_DEAL_NEGOTIATOR`, or `CLIENT_DEAL_APPROVER`.",
547549 "enum": [
548550 "CLIENT_ROLE_UNSPECIFIED",
549551 "CLIENT_DEAL_VIEWER",
550552 "CLIENT_DEAL_NEGOTIATOR",
551553 "CLIENT_DEAL_APPROVER"
552554 ],
553− "description": "The role which is assigned to the client buyer. Each role implies a set of\npermissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`,\n`CLIENT_DEAL_NEGOTIATOR`, or `CLIENT_DEAL_APPROVER`.",
554555 "enumDescriptions": [
555556 "A placeholder for an undefined client role.",
556557 "Users associated with this client can see publisher deal offers\nin the Marketplace.\nThey can neither negotiate proposals nor approve deals.\nIf this client is visible to publishers, they can send deal proposals\nto this client.",
@@ -578,10 +579,10 @@
578579 "type": "string"
579580 }
580581 },
581− "type": "object",
582582 "id": "Client"
583583 },
584584 "ListClientsResponse": {
585+ "type": "object",
585586 "properties": {
586587 "nextPageToken": {
587588 "description": "A token to retrieve the next page of results.\nPass this value in the\nListClientsRequest.pageToken\nfield in the subsequent call to the\naccounts.clients.list method\nto retrieve the next page of results.",
@@ -595,11 +596,10 @@
595596 }
596597 }
597598 },
598− "type": "object",
599599 "id": "ListClientsResponse"
600600 }
601601 },
602− "revision": "20160425",
602+ "revision": "20160509",
603603 "basePath": "",
604604 "icons": {
605605 "x32": "http://www.google.com/images/icons/product/search-32.gif",
@@ -608,38 +608,40 @@
608608 "version_module": "True",
609609 "canonicalName": "AdExchangeBuyerII",
610610 "discoveryVersion": "v1",
611+ "baseUrl": "https://adexchangebuyer.googleapis.com/",
612+ "name": "adexchangebuyer2",
611613 "parameters": {
612614 "access_token": {
613615 "description": "OAuth access token.",
614− "location": "query",
615− "type": "string"
616+ "type": "string",
617+ "location": "query"
616618 },
617619 "prettyPrint": {
618− "default": "true",
619620 "description": "Returns response with indentations and line breaks.",
620− "location": "query",
621− "type": "boolean"
621+ "default": "true",
622+ "type": "boolean",
623+ "location": "query"
622624 },
623625 "key": {
624626 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
625− "location": "query",
626− "type": "string"
627+ "type": "string",
628+ "location": "query"
627629 },
628630 "quotaUser": {
629631 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
630− "location": "query",
631− "type": "string"
632+ "type": "string",
633+ "location": "query"
632634 },
633635 "pp": {
634− "default": "true",
635636 "description": "Pretty-print response.",
636− "location": "query",
637− "type": "boolean"
637+ "default": "true",
638+ "type": "boolean",
639+ "location": "query"
638640 },
639641 "fields": {
640642 "description": "Selector specifying which fields to include in a partial response.",
641− "location": "query",
642− "type": "string"
643+ "type": "string",
644+ "location": "query"
643645 },
644646 "alt": {
645647 "description": "Data format for response.",
@@ -658,48 +660,46 @@
658660 "type": "string"
659661 },
660662 "$.xgafv": {
663+ "description": "V1 error format.",
661664 "enum": [
662665 "1",
663666 "2"
664667 ],
665− "description": "V1 error format.",
666668 "enumDescriptions": [
667669 "v1 error format",
668670 "v2 error format"
669671 ],
670− "location": "query",
671− "type": "string"
672+ "type": "string",
673+ "location": "query"
672674 },
673675 "callback": {
674676 "description": "JSONP",
675− "location": "query",
676− "type": "string"
677− },
678− "uploadType": {
679− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
680− "location": "query",
681− "type": "string"
677+ "type": "string",
678+ "location": "query"
682679 },
683680 "oauth_token": {
684681 "description": "OAuth 2.0 token for the current user.",
685− "location": "query",
686− "type": "string"
682+ "type": "string",
683+ "location": "query"
687684 },
688− "upload_protocol": {
689− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
690− "location": "query",
691− "type": "string"
685+ "uploadType": {
686+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
687+ "type": "string",
688+ "location": "query"
692689 },
693690 "bearer_token": {
694691 "description": "OAuth bearer token.",
695− "location": "query",
696− "type": "string"
692+ "type": "string",
693+ "location": "query"
694+ },
695+ "upload_protocol": {
696+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
697+ "type": "string",
698+ "location": "query"
697699 }
698700 },
699− "name": "adexchangebuyer2",
700− "baseUrl": "https://adexchangebuyer.googleapis.com/",
701− "ownerDomain": "google.com",
702701 "documentationLink": "https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/",
702+ "ownerDomain": "google.com",
703703 "batchPath": "batch",
704704 "servicePath": "",
705705 "ownerName": "Google",
gen/model/analyticsreporting/v4/analyticsreporting-api.json+20−20
@@ -89,7 +89,7 @@
8989 "type": "string"
9090 },
9191 "expression": {
92− "description": "A metric expression in the request. An expression is constructed from one\nor more metrics and numbers. Accepted operators include: Plus (+), Minus\n(-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,\nPositive cardinal numbers (0-9), can include decimals and is limited to\n1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the\nmetric expression is just a single metric name like `ga:users`.",
92+ "description": "A metric expression in the request. An expression is constructed from one\nor more metrics and numbers. Accepted operators include: Plus (+), Minus\n(-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis,\nPositive cardinal numbers (0-9), can include decimals and is limited to\n1024 characters. Example `ga:totalRefunds/ga:users`, in most cases the\nmetric expression is just a single metric name like `ga:users`.\nAdding mixed `MetricType` (E.g., `CURRENCY` + `PERCENTAGE`) metrics\nwill result in unexpected results.",
9393 "type": "string"
9494 }
9595 },
@@ -250,7 +250,7 @@
250250 "type": "object",
251251 "properties": {
252252 "maxComparisonValue": {
253− "description": "Maximum comparison values for BETWEEN match type.",
253+ "description": "Maximum comparison values for `BETWEEN` match type.",
254254 "type": "string"
255255 },
256256 "dimensionName": {
@@ -258,7 +258,7 @@
258258 "type": "string"
259259 },
260260 "caseSensitive": {
261− "description": "Should the match be case sensitive, ignored for IN_LIST operator.",
261+ "description": "Should the match be case sensitive, ignored for `IN_LIST` operator.",
262262 "type": "boolean"
263263 },
264264 "operator": {
@@ -297,7 +297,7 @@
297297 }
298298 },
299299 "minComparisonValue": {
300− "description": "Minimum comparison values for BETWEEN match type.",
300+ "description": "Minimum comparison values for `BETWEEN` match type.",
301301 "type": "string"
302302 }
303303 },
@@ -308,7 +308,7 @@
308308 "type": "object",
309309 "properties": {
310310 "cohortGroup": {
311− "description": "Cohort group associated with this request. If there is a cohort group\nin the request the `ga:cohort` dimension must be present.",
311+ "description": "Cohort group associated with this request. If there is a cohort group\nin the request the `ga:cohort` dimension must be present. All requests\nshould have the same cohort definitions.",
312312 "$ref": "CohortGroup"
313313 },
314314 "dimensions": {
@@ -348,21 +348,21 @@
348348 }
349349 },
350350 "dateRanges": {
351− "description": "Date ranges in the request. The request can have a maximum of 2 date\nranges. The response will contain a set of metric values for each\ncombination of the dimensions for each date range in the request. So, if\nthere are two date ranges, there will be two set of metric values, one for\nthe original date range and one for the second date range.\nDate ranges should not be specified for cohorts or Lifetime value\nrequests.",
351+ "description": "Date ranges in the request. The request can have a maximum of 2 date\nranges. The response will contain a set of metric values for each\ncombination of the dimensions for each date range in the request. So, if\nthere are two date ranges, there will be two set of metric values, one for\nthe original date range and one for the second date range.\nThe `reportRequest.dateRanges` field should not be specified for cohorts\nor Lifetime value requests.\nIf a date range is not provided, the default date range is (startDate:\ncurrent date - 7 days, endDate: current date - 1 day)",
352352 "type": "array",
353353 "items": {
354354 "$ref": "DateRange"
355355 }
356356 },
357357 "segments": {
358− "description": "Segment the data returned for the request. A segment definition helps look\nat a subset of the segment request. A request can contain up to four\nsegments.",
358+ "description": "Segment the data returned for the request. A segment definition helps look\nat a subset of the segment request. A request can contain up to four\nsegments. All requests should have the same segment definitions. Requests\nwith segments must have the `ga:segment` dimension.",
359359 "type": "array",
360360 "items": {
361361 "$ref": "Segment"
362362 }
363363 },
364364 "samplingLevel": {
365− "description": "The desired sampling level. If the sampling level is not specified the\nDEFAULT sampling level will be used.",
365+ "description": "The desired sampling level. If the sampling level is not specified the\nDEFAULT sampling level will be used. All requests should have same\n`samplingLevel`.",
366366 "enum": [
367367 "SAMPLING_UNSPECIFIED",
368368 "DEFAULT",
@@ -378,26 +378,26 @@
378378 "type": "string"
379379 },
380380 "metrics": {
381− "description": "Metrics (numbers) requested in the request.",
381+ "description": "Metrics, the quantitative measurements, requested in the request.\nRequests must specify at least one metric.",
382382 "type": "array",
383383 "items": {
384384 "$ref": "Metric"
385385 }
386386 },
387387 "pageSize": {
388− "description": "Page size is for paging and specifies the maximum number of returned rows.\nPage size should be \u003e= 0. A query returns the default of 1000 rows.\nThe Analytics Core Reporting API returns a maximum of 10,000 rows per\nrequest, no matter how many you ask for. It can also return fewer rows\nthan requested, if there aren't as many dimension segments as you expect.\nFor instance, there are fewer than 300 possible values for `ga:country`,\nso when segmenting only by country, you can't get more than 300 rows,\neven if you set `pageSize` to a higher value.",
388+ "description": "Page size is for paging and specifies the maximum number of returned rows.\nPage size should be \u003e= 0. A query returns the default of 1,000 rows.\nThe Analytics Core Reporting API returns a maximum of 10,000 rows per\nrequest, no matter how many you ask for. It can also return fewer rows\nthan requested, if there aren't as many dimension segments as you expect.\nFor instance, there are fewer than 300 possible values for `ga:country`,\nso when segmenting only by country, you can't get more than 300 rows,\neven if you set `pageSize` to a higher value.",
389389 "type": "integer",
390390 "format": "int32"
391391 },
392392 "orderBys": {
393− "description": "Sort order on output rows. To compare two rows, the elements of the\nfollowing are applied in order until a difference is found. All date\nranges in the output get the same row order. The `order_by` field gets\napplied first followed by the sorts in the `additional_ordering` fields.",
393+ "description": "Sort order on output rows. To compare two rows, the elements of the\nfollowing are applied in order until a difference is found. All date\nranges in the output get the same row order.",
394394 "type": "array",
395395 "items": {
396396 "$ref": "OrderBy"
397397 }
398398 },
399399 "filtersExpression": {
400− "description": "Dimension or metric filters that restrict the data returned for your\nrequest. To use the filtersExpression, supply a dimension or metric on\nwhich to filter, followed by the filter expression. For example, the\nfollowing expression selects `ga:browser` dimension which starts with\nFirefox; `ga:browser=~^Firefox`. For more information on dimensions\nand metric filters, see\n[Filters reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters).",
400+ "description": "Dimension or metric filters that restrict the data returned for your\nrequest. To use the `filtersExpression`, supply a dimension or metric on\nwhich to filter, followed by the filter expression. For example, the\nfollowing expression selects `ga:browser` dimension which starts with\nFirefox; `ga:browser=~^Firefox`. For more information on dimensions\nand metric filters, see\n[Filters reference](https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters).",
401401 "type": "string"
402402 },
403403 "hideValueRanges": {
@@ -492,7 +492,7 @@
492492 "type": "string"
493493 },
494494 "maxComparisonValue": {
495− "description": "Max comparison value is only used for BETWEEN operator.",
495+ "description": "Max comparison value is only used for `BETWEEN` operator.",
496496 "type": "string"
497497 }
498498 },
@@ -563,7 +563,7 @@
563563 "type": "object",
564564 "properties": {
565565 "reportRequests": {
566− "description": "Requests, each request will have a separate response.",
566+ "description": "Requests, each request will have a separate response.\nThere can be a maximum of 5 requests. All requests should have the same\n`dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.",
567567 "type": "array",
568568 "items": {
569569 "$ref": "ReportRequest"
@@ -634,7 +634,7 @@
634634 "type": "string"
635635 },
636636 "dateRange": {
637− "description": "This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users\nwhose first visit date is between start date and end date defined in the\nDateRange. The date ranges should be aligned for cohort requests. If the\nrequest contains cohort_nth_day it should be exactly one day long,\nif `ga:cohortNthWeek` it should be aligned to the week boundary (starting\nat Sunday and ending Saturday), and for cohort_nth_month the date range\nshould be aligned to the month (starting at the first and ending on the\nlast day of the month).\nFor LTV requests there are no such restrictions.\nYou do not need to supply a date range for the reportsRequest object.",
637+ "description": "This is used for `FIRST_VISIT_DATE` cohort, the cohort selects users\nwhose first visit date is between start date and end date defined in the\nDateRange. The date ranges should be aligned for cohort requests. If the\nrequest contains `ga:cohortNthDay` it should be exactly one day long,\nif `ga:cohortNthWeek` it should be aligned to the week boundary (starting\nat Sunday and ending Saturday), and for `ga:cohortNthMonth` the date range\nshould be aligned to the month (starting at the first and ending on the\nlast day of the month).\nFor LTV requests there are no such restrictions.\nYou do not need to supply a date range for the\n`reportsRequest.dateRanges` field.",
638638 "$ref": "DateRange"
639639 },
640640 "name": {
@@ -795,7 +795,7 @@
795795 }
796796 },
797797 "maxGroupCount": {
798− "description": "Specifies the maximum number of groups to return.\nIf set to -1, returns all groups. The default value is 5.",
798+ "description": "Specifies the maximum number of groups to return.\nThe default value is 10, also the maximum value is 1,000.",
799799 "type": "integer",
800800 "format": "int32"
801801 },
@@ -872,7 +872,7 @@
872872 "$ref": "DynamicSegment"
873873 },
874874 "segmentId": {
875− "description": "The segment ID of a built-in or custom segment, for example 'gaid::-3'.",
875+ "description": "The segment ID of a built-in or custom segment, for example `gaid::-3`.",
876876 "type": "string"
877877 }
878878 },
@@ -919,7 +919,7 @@
919919 "type": "object",
920920 "properties": {
921921 "lifetimeValue": {
922− "description": "Enable Life Time Value (LTV). LTV measures lifetime value for users\nacquired through different channels.\nPlease see:\n[Cohort Analysis](https://support.google.com/analytics/answer/6074676) and\n[Lifetime Value](https://support.google.com/analytics/answer/6182550)\nIf the value of lifetimeValue is false:\n\n- The metric values are similar to the values in the web interface cohort\n report.\n- The cohort definition date ranges must be aligned to the calendar week\n and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in\n the cohort definition should be a Sunday and the `endDate` should be the\n following Saturday, and for `ga:cohortNthMonth`, the `startDate`\n should be the 1st of the month and `endDate` should be the last day\n of the month.\n\nWhen the lifetimeValue is true:\n\n- The metric values will correspond to the values in the web interface\n LifeTime value report.\n- The Lifetime Value report shows you how user value (Revenue) and\n engagement (Appviews, Goal Completions, Sessions, and Session Duration)\n grow during the 90 days after a user is acquired.\n- The metrics are calculated as a cumulative average per user per the time\n increment.\n- The cohort definition date ranges need not be aligned to the calendar\n week and month boundaries.",
922+ "description": "Enable Life Time Value (LTV). LTV measures lifetime value for users\nacquired through different channels.\nPlease see:\n[Cohort Analysis](https://support.google.com/analytics/answer/6074676) and\n[Lifetime Value](https://support.google.com/analytics/answer/6182550)\nIf the value of lifetimeValue is false:\n\n- The metric values are similar to the values in the web interface cohort\n report.\n- The cohort definition date ranges must be aligned to the calendar week\n and month. i.e. while requesting `ga:cohortNthWeek` the `startDate` in\n the cohort definition should be a Sunday and the `endDate` should be the\n following Saturday, and for `ga:cohortNthMonth`, the `startDate`\n should be the 1st of the month and `endDate` should be the last day\n of the month.\n\nWhen the lifetimeValue is true:\n\n- The metric values will correspond to the values in the web interface\n LifeTime value report.\n- The Lifetime Value report shows you how user value (Revenue) and\n engagement (Appviews, Goal Completions, Sessions, and Session Duration)\n grow during the 90 days after a user is acquired.\n- The metrics are calculated as a cumulative average per user per the time\n increment.\n- The cohort definition date ranges need not be aligned to the calendar\n week and month boundaries.\n- The `viewId` must be an\n [app view ID](https://support.google.com/analytics/answer/2649553#WebVersusAppViews)",
923923 "type": "boolean"
924924 },
925925 "cohorts": {
@@ -933,7 +933,7 @@
933933 "id": "CohortGroup"
934934 },
935935 "GetReportsResponse": {
936− "description": "The main response class which holds the reports from the Reporting API\nbatchRequest call.",
936+ "description": "The main response class which holds the reports from the Reporting API\n`batchGet` call.",
937937 "type": "object",
938938 "properties": {
939939 "reports": {
@@ -1048,7 +1048,7 @@
10481048 "id": "PivotValueRegion"
10491049 }
10501050 },
1051− "revision": "20160426",
1051+ "revision": "20160512",
10521052 "basePath": "",
10531053 "icons": {
10541054 "x32": "http://www.google.com/images/icons/product/search-32.gif",
gen/model/androidenterprise/v1/androidenterprise-api.json+9−12
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/15gLSDUvB_roSJwqiG_00huJjy8\"",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/i6DBUMt-cLevFkAtIek_BVKzCR0\"",
44 "discoveryVersion": "v1",
55 "id": "androidenterprise:v1",
66 "name": "androidenterprise",
77 "canonicalName": "Android Enterprise",
88 "version": "v1",
9− "revision": "20160427",
9+ "revision": "20160511",
1010 "title": "Google Play EMM API",
1111 "description": "Manages the deployment of apps to Android for Work users.",
1212 "ownerDomain": "google.com",
@@ -297,7 +297,7 @@
297297 },
298298 "managementType": {
299299 "type": "string",
300− "description": "The mechanism by which this device is managed by the EMM. \"managedDevice\" means that the EMM's app is a device owner. \"managedProfile\" means that the EMM's app is the profile owner (and there is a separate personal profile which is not managed). \"containerApp\" means that the EMM's app is managing the Android for Work container app on the device."
300+ "description": "The mechanism by which this device is managed by the EMM. \"managedDevice\" means that the EMM's app is a device owner. \"managedProfile\" means that the EMM's app is the profile owner (and there is a separate personal profile which is not managed). \"containerApp\" means that the EMM's app is managing the Android for Work container app on the device. ?unmanagedProfile? means that the EMM?s app is managing a managed user on an unmanaged device"
301301 }
302302 }
303303 },
@@ -2278,7 +2278,7 @@
22782278 "id": "androidenterprise.products.approve",
22792279 "path": "enterprises/{enterpriseId}/products/{productId}/approve",
22802280 "httpMethod": "POST",
2281− "description": "Approves the specified product (and the relevant app permissions, if any).",
2281+ "description": "Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000.\n\nTo learn how to use Google Play for Work to design and create a store layout to display approved products to your users, see Store Layout Design.",
22822282 "parameters": {
22832283 "enterpriseId": {
22842284 "type": "string",
@@ -2447,7 +2447,7 @@
24472447 "parameters": {
24482448 "approved": {
24492449 "type": "boolean",
2450− "description": "Whether to search amongst all products or only amongst approved ones. Only \"true\" is supported, and should be specified.",
2450+ "description": "Specifies whether to search among all products (false) or among only products that have been approved (true). Only \"true\" is supported, and should be specified.",
24512451 "location": "query"
24522452 },
24532453 "enterpriseId": {
@@ -2458,26 +2458,23 @@
24582458 },
24592459 "language": {
24602460 "type": "string",
2461− "description": "The BCP47 tag for the user's preferred language (e.g. \"en-US\", \"de\"). Results are returned in the language best matching it.",
2461+ "description": "The BCP47 tag for the user's preferred language (e.g. \"en-US\", \"de\"). Results are returned in the language best matching the preferred language.",
24622462 "location": "query"
24632463 },
24642464 "maxResults": {
24652465 "type": "integer",
2466+ "description": "Specifies the maximum number of products that can be returned per request. If not specified, uses a default value of 100, which is also the maximum retrievable within a single response.",
24662467 "format": "uint32",
24672468 "location": "query"
24682469 },
24692470 "query": {
24702471 "type": "string",
2471− "description": "The search query as typed in the Google Play Store search box. If omitted, all approved apps will be returned.",
2472− "location": "query"
2473− },
2474− "startIndex": {
2475− "type": "integer",
2476− "format": "uint32",
2472+ "description": "The search query as typed in the Google Play Store search box. If omitted, all approved apps will be returned (using the pagination parameters).",
24772473 "location": "query"
24782474 },
24792475 "token": {
24802476 "type": "string",
2477+ "description": "A pagination token is contained in a request\u0092s response when there are more products. The token can be used in a subsequent request to obtain more products, and so forth. This parameter cannot be used in the initial request.",
24812478 "location": "query"
24822479 }
24832480 },
gen/model/androidpublisher/v2/androidpublisher-api.json+259−2
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/wwfdcfcbj_VTedNtsK-mpfGIz58\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/kcmli-0AhQgKCzcLiKZ8WixyuKk\"",
44 "discoveryVersion": "v1",
55 "id": "androidpublisher:v2",
66 "name": "androidpublisher",
77 "canonicalName": "Android Publisher",
88 "version": "v2",
9− "revision": "20160324",
9+ "revision": "20160516",
1010 "title": "Google Play Developer API",
1111 "description": "Lets Android application developers access their Google Play accounts.",
1212 "ownerDomain": "google.com",
@@ -208,6 +208,34 @@
208208 }
209209 }
210210 },
211+ "Comment": {
212+ "id": "Comment",
213+ "type": "object",
214+ "properties": {
215+ "developerComment": {
216+ "$ref": "DeveloperComment",
217+ "description": "A comment from a developer."
218+ },
219+ "userComment": {
220+ "$ref": "UserComment",
221+ "description": "A comment from a user."
222+ }
223+ }
224+ },
225+ "DeveloperComment": {
226+ "id": "DeveloperComment",
227+ "type": "object",
228+ "properties": {
229+ "lastModified": {
230+ "$ref": "Timestamp",
231+ "description": "The last time at which this comment was updated."
232+ },
233+ "text": {
234+ "type": "string",
235+ "description": "The content of the comment, i.e. reply body."
236+ }
237+ }
238+ },
211239 "Entitlement": {
212240 "id": "Entitlement",
213241 "type": "object",
@@ -753,6 +781,78 @@
753781 }
754782 }
755783 },
784+ "Review": {
785+ "id": "Review",
786+ "type": "object",
787+ "properties": {
788+ "authorName": {
789+ "type": "string",
790+ "description": "The name of the user who wrote the review."
791+ },
792+ "comments": {
793+ "type": "array",
794+ "description": "A repeated field containing comments for the review.",
795+ "items": {
796+ "$ref": "Comment"
797+ }
798+ },
799+ "reviewId": {
800+ "type": "string",
801+ "description": "Unique identifier for this review."
802+ }
803+ }
804+ },
805+ "ReviewReplyResult": {
806+ "id": "ReviewReplyResult",
807+ "type": "object",
808+ "properties": {
809+ "lastEdited": {
810+ "$ref": "Timestamp",
811+ "description": "The time at which the reply took effect."
812+ },
813+ "replyText": {
814+ "type": "string",
815+ "description": "The reply text that was applied."
816+ }
817+ }
818+ },
819+ "ReviewsListResponse": {
820+ "id": "ReviewsListResponse",
821+ "type": "object",
822+ "properties": {
823+ "pageInfo": {
824+ "$ref": "PageInfo"
825+ },
826+ "reviews": {
827+ "type": "array",
828+ "items": {
829+ "$ref": "Review"
830+ }
831+ },
832+ "tokenPagination": {
833+ "$ref": "TokenPagination"
834+ }
835+ }
836+ },
837+ "ReviewsReplyRequest": {
838+ "id": "ReviewsReplyRequest",
839+ "type": "object",
840+ "properties": {
841+ "replyText": {
842+ "type": "string",
843+ "description": "The text to set as the reply. Replies of more than approximately 350 characters will be rejected. HTML tags will be stripped."
844+ }
845+ }
846+ },
847+ "ReviewsReplyResponse": {
848+ "id": "ReviewsReplyResponse",
849+ "type": "object",
850+ "properties": {
851+ "result": {
852+ "$ref": "ReviewReplyResult"
853+ }
854+ }
855+ },
756856 "Season": {
757857 "id": "Season",
758858 "type": "object",
@@ -883,6 +983,20 @@
883983 }
884984 }
885985 },
986+ "Timestamp": {
987+ "id": "Timestamp",
988+ "type": "object",
989+ "properties": {
990+ "nanos": {
991+ "type": "integer",
992+ "format": "int32"
993+ },
994+ "seconds": {
995+ "type": "string",
996+ "format": "int64"
997+ }
998+ }
999+ },
8861000 "TokenPagination": {
8871001 "id": "TokenPagination",
8881002 "type": "object",
@@ -931,6 +1045,47 @@
9311045 }
9321046 }
9331047 }
1048+ },
1049+ "UserComment": {
1050+ "id": "UserComment",
1051+ "type": "object",
1052+ "properties": {
1053+ "androidOsVersion": {
1054+ "type": "integer",
1055+ "description": "Integer Android SDK version of the user's device at the time the review was written, e.g. 23 is Marshmallow. May be absent.",
1056+ "format": "int32"
1057+ },
1058+ "appVersionCode": {
1059+ "type": "integer",
1060+ "description": "Integer version code of the app as installed at the time the review was written. May be absent.",
1061+ "format": "int32"
1062+ },
1063+ "appVersionName": {
1064+ "type": "string",
1065+ "description": "String version name of the app as installed at the time the review was written. May be absent."
1066+ },
1067+ "device": {
1068+ "type": "string",
1069+ "description": "Codename for the reviewer's device, e.g. klte, flounder. May be absent."
1070+ },
1071+ "lastModified": {
1072+ "$ref": "Timestamp",
1073+ "description": "The last time at which this comment was updated."
1074+ },
1075+ "reviewerLanguage": {
1076+ "type": "string",
1077+ "description": "Language code for the reviewer. This is taken from the device settings so is not guaranteed to match the language the review is written in. May be absent."
1078+ },
1079+ "starRating": {
1080+ "type": "integer",
1081+ "description": "The star rating associated with the review, from 1 to 5.",
1082+ "format": "int32"
1083+ },
1084+ "text": {
1085+ "type": "string",
1086+ "description": "The content of the comment, i.e. review body. In some cases users have been able to write a review with separate title and body; in those cases the title and body are concatenated and separated by a tab character."
1087+ }
1088+ }
9341089 }
9351090 },
9361091 "resources": {
@@ -3114,6 +3269,108 @@
31143269 }
31153270 }
31163271 }
3272+ },
3273+ "reviews": {
3274+ "methods": {
3275+ "get": {
3276+ "id": "androidpublisher.reviews.get",
3277+ "path": "{packageName}/reviews/{reviewId}",
3278+ "httpMethod": "GET",
3279+ "description": "Returns a single review.",
3280+ "parameters": {
3281+ "packageName": {
3282+ "type": "string",
3283+ "description": "Unique identifier for the Android app for which we want reviews; for example, \"com.spiffygame\".",
3284+ "required": true,
3285+ "location": "path"
3286+ },
3287+ "reviewId": {
3288+ "type": "string",
3289+ "required": true,
3290+ "location": "path"
3291+ }
3292+ },
3293+ "parameterOrder": [
3294+ "packageName",
3295+ "reviewId"
3296+ ],
3297+ "response": {
3298+ "$ref": "Review"
3299+ },
3300+ "scopes": [
3301+ "https://www.googleapis.com/auth/androidpublisher"
3302+ ]
3303+ },
3304+ "list": {
3305+ "id": "androidpublisher.reviews.list",
3306+ "path": "{packageName}/reviews",
3307+ "httpMethod": "GET",
3308+ "description": "Returns a list of reviews.",
3309+ "parameters": {
3310+ "maxResults": {
3311+ "type": "integer",
3312+ "format": "uint32",
3313+ "location": "query"
3314+ },
3315+ "packageName": {
3316+ "type": "string",
3317+ "description": "Unique identifier for the Android app for which we want reviews; for example, \"com.spiffygame\".",
3318+ "required": true,
3319+ "location": "path"
3320+ },
3321+ "startIndex": {
3322+ "type": "integer",
3323+ "format": "uint32",
3324+ "location": "query"
3325+ },
3326+ "token": {
3327+ "type": "string",
3328+ "location": "query"
3329+ }
3330+ },
3331+ "parameterOrder": [
3332+ "packageName"
3333+ ],
3334+ "response": {
3335+ "$ref": "ReviewsListResponse"
3336+ },
3337+ "scopes": [
3338+ "https://www.googleapis.com/auth/androidpublisher"
3339+ ]
3340+ },
3341+ "reply": {
3342+ "id": "androidpublisher.reviews.reply",
3343+ "path": "{packageName}/reviews/{reviewId}:reply",
3344+ "httpMethod": "POST",
3345+ "description": "Reply to a single review, or update an existing reply.",
3346+ "parameters": {
3347+ "packageName": {
3348+ "type": "string",
3349+ "description": "Unique identifier for the Android app for which we want reviews; for example, \"com.spiffygame\".",
3350+ "required": true,
3351+ "location": "path"
3352+ },
3353+ "reviewId": {
3354+ "type": "string",
3355+ "required": true,
3356+ "location": "path"
3357+ }
3358+ },
3359+ "parameterOrder": [
3360+ "packageName",
3361+ "reviewId"
3362+ ],
3363+ "request": {
3364+ "$ref": "ReviewsReplyRequest"
3365+ },
3366+ "response": {
3367+ "$ref": "ReviewsReplyResponse"
3368+ },
3369+ "scopes": [
3370+ "https://www.googleapis.com/auth/androidpublisher"
3371+ ]
3372+ }
3373+ }
31173374 }
31183375 }
31193376}
gen/model/autoscaler/v1beta2/autoscaler-api.json+12−34
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/UcR-fBYlWEXj2JrwS8u3wjdNZ58\"",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/0eE1-oXZzmJsWsHoXDgI_xuj0vA\"",
44 "discoveryVersion": "v1",
55 "id": "autoscaler:v1beta2",
66 "name": "autoscaler",
77 "version": "v1beta2",
8− "revision": "20150213",
8+ "revision": "20160511",
99 "title": "Google Compute Engine Autoscaler API",
1010 "description": "The Google Compute Engine Autoscaler API provides autoscaling for groups of Cloud VMs.",
1111 "ownerDomain": "google.com",
@@ -157,7 +157,7 @@
157157 },
158158 "cpuUtilization": {
159159 "$ref": "AutoscalingPolicyCpuUtilization",
160− "description": "Exactly one utilization policy should be provided. Configuration parameters of CPU based autoscaling policy."
160+ "description": "Configuration parameters of CPU based autoscaling policy."
161161 },
162162 "customMetricUtilizations": {
163163 "type": "array",
@@ -257,6 +257,9 @@
257257 "creationTimestamp": {
258258 "type": "string"
259259 },
260+ "description": {
261+ "type": "string"
262+ },
260263 "endTime": {
261264 "type": "string"
262265 },
@@ -298,7 +301,7 @@
298301 },
299302 "kind": {
300303 "type": "string",
301− "description": "[Output Only] Type of the resource. Always compute#Operation for Operation resources.",
304+ "description": "[Output Only] Type of the resource. Always compute#operation for Operation resources.",
302305 "default": "autoscaler#operation"
303306 },
304307 "name": {
@@ -414,29 +417,9 @@
414417 },
415418 "kind": {
416419 "type": "string",
417− "description": "[Output Only] Type of the resource. Always kind#zone for zones.",
420+ "description": "[Output Only] Type of the resource. Always compute#zone for zones.",
418421 "default": "autoscaler#zone"
419422 },
420− "maintenanceWindows": {
421− "type": "array",
422− "items": {
423− "type": "object",
424− "properties": {
425− "beginTime": {
426− "type": "string"
427− },
428− "description": {
429− "type": "string"
430− },
431− "endTime": {
432− "type": "string"
433− },
434− "name": {
435− "type": "string"
436− }
437− }
438− }
439− },
440423 "name": {
441424 "type": "string"
442425 },
@@ -444,8 +427,7 @@
444427 "type": "string"
445428 },
446429 "selfLink": {
447− "type": "string",
448− "description": "[Output Only] Server defined URL for the resource."
430+ "type": "string"
449431 },
450432 "status": {
451433 "type": "string"
@@ -475,7 +457,7 @@
475457 },
476458 "selfLink": {
477459 "type": "string",
478− "description": "Server defined URL for this resource (output only)."
460+ "description": "[Output Only] Server-defined URL for this resource."
479461 }
480462 }
481463 }
@@ -847,7 +829,7 @@
847829 "methods": {
848830 "list": {
849831 "id": "autoscaler.zones.list",
850− "path": "{project}/zones",
832+ "path": "zones",
851833 "httpMethod": "GET",
852834 "description": "",
853835 "parameters": {
@@ -869,14 +851,10 @@
869851 },
870852 "project": {
871853 "type": "string",
872− "required": true,
873854 "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?))",
874− "location": "path"
855+ "location": "query"
875856 }
876857 },
877− "parameterOrder": [
878− "project"
879− ],
880858 "response": {
881859 "$ref": "ZoneList"
882860 },
gen/model/bigquery/v2/bigquery-api.json+32−8
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/4_AFEYRUePR9dwZ_FjbEcw-9Y54\"",
3+ "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/xJN8TIpPcg1NGIZr6unBuM4TVZg\"",
44 "discoveryVersion": "v1",
55 "id": "bigquery:v2",
66 "name": "bigquery",
77 "version": "v2",
8− "revision": "20160420",
8+ "revision": "20160511",
99 "title": "BigQuery API",
1010 "description": "A data platform for customers to create, manage, share and query data.",
1111 "ownerDomain": "google.com",
@@ -199,9 +199,9 @@
199199 "pattern": ".?"
200200 },
201201 "skipLeadingRows": {
202− "type": "integer",
202+ "type": "string",
203203 "description": "[Optional] The number of rows at the top of a CSV file that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.",
204− "format": "int32"
204+ "format": "int64"
205205 }
206206 }
207207 },
@@ -492,6 +492,10 @@
492492 "$ref": "CsvOptions",
493493 "description": "Additional properties to set if sourceFormat is set to CSV."
494494 },
495+ "googleSheetsOptions": {
496+ "$ref": "GoogleSheetsOptions",
497+ "description": "[Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS."
498+ },
495499 "ignoreUnknownValues": {
496500 "type": "boolean",
497501 "description": "[Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored."
@@ -507,11 +511,11 @@
507511 },
508512 "sourceFormat": {
509513 "type": "string",
510− "description": "[Required] The data format. For CSV files, specify \"CSV\". For newline-delimited JSON, specify \"NEWLINE_DELIMITED_JSON\". For Avro files, specify \"AVRO\". For Google Cloud Datastore backups, specify \"DATASTORE_BACKUP\". [Experimental] For Google Cloud Bigtable, specify \"BIGTABLE\". Please note that reading from Google Cloud Bigtable is experimental and has to be enabled for your project. Please contact Google Cloud Support to enable this for your project."
514+ "description": "[Required] The data format. For CSV files, specify \"CSV\". For Google sheets, specify \"GOOGLE_SHEETS\". For newline-delimited JSON, specify \"NEWLINE_DELIMITED_JSON\". For Avro files, specify \"AVRO\". For Google Cloud Datastore backups, specify \"DATASTORE_BACKUP\". [Experimental] For Google Cloud Bigtable, specify \"BIGTABLE\". Please note that reading from Google Cloud Bigtable is experimental and has to be enabled for your project. Please contact Google Cloud Support to enable this for your project."
511515 },
512516 "sourceUris": {
513517 "type": "array",
514− "description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources, plus an additional limit of 10 GB maximum size across all URIs. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified, and it must end with '.backup_info'. Also, the '*' wildcard character is not allowed.",
518+ "description": "[Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified, and it must end with '.backup_info'. Also, the '*' wildcard character is not allowed.",
515519 "items": {
516520 "type": "string"
517521 }
@@ -577,6 +581,17 @@
577581 }
578582 }
579583 },
584+ "GoogleSheetsOptions": {
585+ "id": "GoogleSheetsOptions",
586+ "type": "object",
587+ "properties": {
588+ "skipLeadingRows": {
589+ "type": "string",
590+ "description": "[Optional] The number of rows at the top of a sheet that BigQuery will skip when reading the data. The default value is 0. This property is useful if you have header rows that should be skipped. When autodetect is on, behavior is the following: * skipLeadingRows unspecified - Autodetect tries to detect headers in the first row. If they are not detected, the row is read as data. Otherwise data is read starting from the second row. * skipLeadingRows is 0 - Instructs autodetect that there are no headers and data should be read starting from the first row. * skipLeadingRows = N \u003e 0 - Autodetect skips N-1 rows and tries to detect headers in row N. If headers are not detected, row N is just skipped. Otherwise row N is used to extract column names for the detected schema.",
591+ "format": "int64"
592+ }
593+ }
594+ },
580595 "Job": {
581596 "id": "Job",
582597 "type": "object",
@@ -711,6 +726,10 @@
711726 "type": "boolean",
712727 "description": "Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false."
713728 },
729+ "autodetect": {
730+ "type": "boolean",
731+ "description": "[Experimental] Indicates if we should automatically infer the options and schema for CSV and JSON sources."
732+ },
714733 "createDisposition": {
715734 "type": "string",
716735 "description": "[Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion."
@@ -835,7 +854,7 @@
835854 },
836855 "useLegacySql": {
837856 "type": "boolean",
838− "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's updated SQL dialect with improved standards compliance: https://cloud.google.com/bigquery/sql-reference/ When using BigQuery's updated SQL, the values of allowLargeResults and flattenResults are ignored. Queries with useLegacySql set to false will be run as if allowLargeResults is true and flattenResults is false."
857+ "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false."
839858 },
840859 "useQueryCache": {
841860 "type": "boolean",
@@ -1234,7 +1253,7 @@
12341253 },
12351254 "useLegacySql": {
12361255 "type": "boolean",
1237− "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's updated SQL dialect with improved standards compliance: https://cloud.google.com/bigquery/sql-reference/ When using BigQuery's updated SQL, the values of allowLargeResults and flattenResults are ignored. Queries with useLegacySql set to false will be run as if allowLargeResults is true and flattenResults is false."
1256+ "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false."
12381257 },
12391258 "useQueryCache": {
12401259 "type": "boolean",
@@ -1372,6 +1391,11 @@
13721391 "description": "[Output-only] The size of this table in bytes, excluding any data in the streaming buffer.",
13731392 "format": "int64"
13741393 },
1394+ "numLongTermBytes": {
1395+ "type": "string",
1396+ "description": "[Output-only] The number of bytes in the table that are considered \"long-term storage\".",
1397+ "format": "int64"
1398+ },
13751399 "numRows": {
13761400 "type": "string",
13771401 "description": "[Output-only] The number of rows of data in this table, excluding any data in the streaming buffer.",
gen/model/classroom/v1/classroom-api.json+1073−7
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/ZUeUn8sbRE1vWnjmCAcSnCYuXbI\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/CqYvNpV2Som-B9o1jdwhrzhRs18\"",
44 "discoveryVersion": "v1",
55 "id": "classroom:v1",
66 "name": "classroom",
77 "version": "v1",
8− "revision": "20160428",
8+ "revision": "20160517",
99 "title": "Google Classroom API",
1010 "description": "Manages classes, rosters, and invitations in Google Classroom.",
1111 "ownerDomain": "google.com",
@@ -103,12 +103,27 @@
103103 "auth": {
104104 "oauth2": {
105105 "scopes": {
106+ "https://www.googleapis.com/auth/classroom.course-work.readonly": {
107+ "description": "View instructions for teacher-assigned work in your Google Classroom classes"
108+ },
106109 "https://www.googleapis.com/auth/classroom.courses": {
107110 "description": "Manage your Google Classroom classes"
108111 },
109112 "https://www.googleapis.com/auth/classroom.courses.readonly": {
110113 "description": "View your Google Classroom classes"
111114 },
115+ "https://www.googleapis.com/auth/classroom.coursework.me": {
116+ "description": "Manage your course work and view your grades in Google Classroom"
117+ },
118+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly": {
119+ "description": "View your course work and grades in Google Classroom"
120+ },
121+ "https://www.googleapis.com/auth/classroom.coursework.students": {
122+ "description": "Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer"
123+ },
124+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly": {
125+ "description": "View course work and grades for students in the Google Classroom classes you teach or administer"
126+ },
112127 "https://www.googleapis.com/auth/classroom.profile.emails": {
113128 "description": "View the email addresses of people in your classes"
114129 },
@@ -120,6 +135,12 @@
120135 },
121136 "https://www.googleapis.com/auth/classroom.rosters.readonly": {
122137 "description": "View your Google Classroom class rosters"
138+ },
139+ "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly": {
140+ "description": "View your course work and grades in Google Classroom"
141+ },
142+ "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly": {
143+ "description": "View course work and grades for students in the Google Classroom classes you teach or administer"
123144 }
124145 }
125146 }
@@ -132,7 +153,7 @@
132153 "properties": {
133154 "id": {
134155 "type": "string",
135− "description": "Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask will result in an error."
156+ "description": "Identifier for this course assigned by Classroom. When creating a course, you may optionally set this identifier to an alias string in the request to create a corresponding alias. The `id` is still assigned by Classroom and cannot be updated after the course is created. Specifying this field in a course update mask results in an error."
136157 },
137158 "name": {
138159 "type": "string",
@@ -156,19 +177,19 @@
156177 },
157178 "ownerId": {
158179 "type": "string",
159− "description": "The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the requesting user This must be set in a create request. Specifying this field in a course update mask will result in an `INVALID_ARGUMENT` error."
180+ "description": "The identifier of the owner of a course. When specified as a parameter of a create course request, this field is required. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the requesting user This must be set in a create request. Specifying this field in a course update mask results in an `INVALID_ARGUMENT` error."
160181 },
161182 "creationTime": {
162183 "type": "string",
163− "description": "Creation time of the course. Specifying this field in a course update mask will result in an error. Read-only."
184+ "description": "Creation time of the course. Specifying this field in a course update mask results in an error. Read-only."
164185 },
165186 "updateTime": {
166187 "type": "string",
167− "description": "Time of the most recent update to this course. Specifying this field in a course update mask will result in an error. Read-only."
188+ "description": "Time of the most recent update to this course. Specifying this field in a course update mask results in an error. Read-only."
168189 },
169190 "enrollmentCode": {
170191 "type": "string",
171− "description": "Enrollment code to use when joining this course. Specifying this field in a course update mask will result in an error. Read-only."
192+ "description": "Enrollment code to use when joining this course. Specifying this field in a course update mask results in an error. Read-only."
172193 },
173194 "courseState": {
174195 "type": "string",
@@ -184,6 +205,173 @@
184205 "alternateLink": {
185206 "type": "string",
186207 "description": "Absolute link to this course in the Classroom web UI. Read-only."
208+ },
209+ "teacherGroupEmail": {
210+ "type": "string",
211+ "description": "The email address of a Google group containing all teachers of the course. This group does not accept email and can only be used for permissions. Read-only."
212+ },
213+ "courseGroupEmail": {
214+ "type": "string",
215+ "description": "The email address of a Google group containing all members of the course. This group does not accept email and can only be used for permissions. Read-only."
216+ },
217+ "teacherFolder": {
218+ "$ref": "DriveFolder",
219+ "description": "Information about a Drive Folder that is shared with all teachers of the course. This field will only be set for teachers of the course and domain administrators. Read-only."
220+ },
221+ "courseMaterialSets": {
222+ "type": "array",
223+ "description": "Sets of materials that appear on the \"about\" page of this course. Read-only.",
224+ "items": {
225+ "$ref": "CourseMaterialSet"
226+ }
227+ }
228+ }
229+ },
230+ "DriveFolder": {
231+ "id": "DriveFolder",
232+ "type": "object",
233+ "description": "Representation of a Google Drive folder.",
234+ "properties": {
235+ "id": {
236+ "type": "string",
237+ "description": "Drive API resource ID."
238+ },
239+ "title": {
240+ "type": "string",
241+ "description": "Title of the Drive folder. Read-only."
242+ },
243+ "alternateLink": {
244+ "type": "string",
245+ "description": "URL that can be used to access the Drive folder. Read-only."
246+ }
247+ }
248+ },
249+ "CourseMaterialSet": {
250+ "id": "CourseMaterialSet",
251+ "type": "object",
252+ "description": "A set of materials that appears on the \"About\" page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.",
253+ "properties": {
254+ "title": {
255+ "type": "string",
256+ "description": "Title for this set."
257+ },
258+ "materials": {
259+ "type": "array",
260+ "description": "Materials attached to this set.",
261+ "items": {
262+ "$ref": "CourseMaterial"
263+ }
264+ }
265+ }
266+ },
267+ "CourseMaterial": {
268+ "id": "CourseMaterial",
269+ "type": "object",
270+ "description": "A material attached to a course as part of a material set.",
271+ "properties": {
272+ "driveFile": {
273+ "$ref": "DriveFile",
274+ "description": "Google Drive file attachment."
275+ },
276+ "youTubeVideo": {
277+ "$ref": "YouTubeVideo",
278+ "description": "Youtube video attachment."
279+ },
280+ "link": {
281+ "$ref": "Link",
282+ "description": "Link atatchment."
283+ },
284+ "form": {
285+ "$ref": "Form",
286+ "description": "Google Forms attachment."
287+ }
288+ }
289+ },
290+ "DriveFile": {
291+ "id": "DriveFile",
292+ "type": "object",
293+ "description": "Representation of a Google Drive file.",
294+ "properties": {
295+ "id": {
296+ "type": "string",
297+ "description": "Drive API resource ID."
298+ },
299+ "title": {
300+ "type": "string",
301+ "description": "Title of the Drive item. Read-only."
302+ },
303+ "alternateLink": {
304+ "type": "string",
305+ "description": "URL that can be used to access the Drive item. Read-only."
306+ },
307+ "thumbnailUrl": {
308+ "type": "string",
309+ "description": "URL of a thumbnail image of the Drive item. Read-only."
310+ }
311+ }
312+ },
313+ "YouTubeVideo": {
314+ "id": "YouTubeVideo",
315+ "type": "object",
316+ "description": "YouTube video item.",
317+ "properties": {
318+ "id": {
319+ "type": "string",
320+ "description": "YouTube API resource ID."
321+ },
322+ "title": {
323+ "type": "string",
324+ "description": "Title of the YouTube video. Read-only."
325+ },
326+ "alternateLink": {
327+ "type": "string",
328+ "description": "URL that can be used to view the YouTube video. Read-only."
329+ },
330+ "thumbnailUrl": {
331+ "type": "string",
332+ "description": "URL of a thumbnail image of the YouTube video. Read-only."
333+ }
334+ }
335+ },
336+ "Link": {
337+ "id": "Link",
338+ "type": "object",
339+ "description": "URL item.",
340+ "properties": {
341+ "url": {
342+ "type": "string",
343+ "description": "URL to link to. This must be a valid UTF-8 string containing between 1 and 2024 characters."
344+ },
345+ "title": {
346+ "type": "string",
347+ "description": "Title of the target of the URL. Read-only."
348+ },
349+ "thumbnailUrl": {
350+ "type": "string",
351+ "description": "URL of a thumbnail image of the target URL. Read-only."
352+ }
353+ }
354+ },
355+ "Form": {
356+ "id": "Form",
357+ "type": "object",
358+ "description": "Google Forms item.",
359+ "properties": {
360+ "formUrl": {
361+ "type": "string",
362+ "description": "URL of the form."
363+ },
364+ "responseUrl": {
365+ "type": "string",
366+ "description": "URL of the form responses document. Only set if respsonses have been recorded and only when the requesting user is an editor of the form. Read-only."
367+ },
368+ "title": {
369+ "type": "string",
370+ "description": "Title of the Form. Read-only."
371+ },
372+ "thumbnailUrl": {
373+ "type": "string",
374+ "description": "URL of a thumbnail image of the Form. Read-only."
187375 }
188376 }
189377 },
@@ -402,6 +590,10 @@
402590 "profile": {
403591 "$ref": "UserProfile",
404592 "description": "Global user information for the student. Read-only."
593+ },
594+ "studentWorkFolder": {
595+ "$ref": "DriveFolder",
596+ "description": "Information about a Drive Folder for this student's work in this course. Only visible to the student and domain administrators. Read-only."
405597 }
406598 }
407599 },
@@ -422,6 +614,431 @@
422614 "description": "Token identifying the next page of results to return. If empty, no further results are available."
423615 }
424616 }
617+ },
618+ "CourseWork": {
619+ "id": "CourseWork",
620+ "type": "object",
621+ "description": "Course work created by a teacher for students of the course.",
622+ "properties": {
623+ "courseId": {
624+ "type": "string",
625+ "description": "Identifier of the course. Read-only."
626+ },
627+ "id": {
628+ "type": "string",
629+ "description": "Classroom-assigned identifier of this course work, unique per course. Read-only."
630+ },
631+ "title": {
632+ "type": "string",
633+ "description": "Title of this course work. The title must be a valid UTF-8 string containing between 1 and 3000 characters."
634+ },
635+ "description": {
636+ "type": "string",
637+ "description": "Optional description of this course work. If set, the description must be a valid UTF-8 string containing no more than 30,000 characters."
638+ },
639+ "materials": {
640+ "type": "array",
641+ "description": "Additional materials.",
642+ "items": {
643+ "$ref": "Material"
644+ }
645+ },
646+ "state": {
647+ "type": "string",
648+ "description": "Status of this course work.. If unspecified, the default state is `DRAFT`.",
649+ "enum": [
650+ "COURSE_WORK_STATE_UNSPECIFIED",
651+ "PUBLISHED",
652+ "DRAFT",
653+ "DELETED"
654+ ]
655+ },
656+ "alternateLink": {
657+ "type": "string",
658+ "description": "Absolute link to this course work in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only."
659+ },
660+ "creationTime": {
661+ "type": "string",
662+ "description": "Timestamp when this course work was created. Read-only."
663+ },
664+ "updateTime": {
665+ "type": "string",
666+ "description": "Timestamp of the most recent change to this course work. Read-only."
667+ },
668+ "dueDate": {
669+ "$ref": "Date",
670+ "description": "Optional date, in UTC, that submissions for this this course work are due. This must be specified if `due_time` is specified."
671+ },
672+ "dueTime": {
673+ "$ref": "TimeOfDay",
674+ "description": "Optional time of day, in UTC, that submissions for this this course work are due. This must be specified if `due_date` is specified."
675+ },
676+ "maxPoints": {
677+ "type": "number",
678+ "description": "Maximum grade for this course work. If zero or unspecified, this assignment is considered ungraded. This must be an integer value.",
679+ "format": "double"
680+ },
681+ "workType": {
682+ "type": "string",
683+ "description": "Type of this course work. The type is set when the course work is created and cannot be changed. When creating course work, this must be `ASSIGNMENT`.",
684+ "enum": [
685+ "COURSE_WORK_TYPE_UNSPECIFIED",
686+ "ASSIGNMENT",
687+ "SHORT_ANSWER_QUESTION",
688+ "MULTIPLE_CHOICE_QUESTION"
689+ ]
690+ },
691+ "associatedWithDeveloper": {
692+ "type": "boolean",
693+ "description": "Whether this course work item is associated with the Developer Console project making the request. See google.classroom.Work.CreateCourseWork for more details. Read-only."
694+ },
695+ "submissionModificationMode": {
696+ "type": "string",
697+ "description": "Setting to determine when students are allowed to modify submissions. If unspecified, the default value is `MODIFIABLE_UNTIL_TURNED_IN`.",
698+ "enum": [
699+ "SUBMISSION_MODIFICATION_MODE_UNSPECIFIED",
700+ "MODIFIABLE_UNTIL_TURNED_IN",
701+ "MODIFIABLE"
702+ ]
703+ },
704+ "assignment": {
705+ "$ref": "Assignment",
706+ "description": "Assignment details. This is populated only when `work_type` is `ASSIGNMENT`."
707+ },
708+ "multipleChoiceQuestion": {
709+ "$ref": "MultipleChoiceQuestion",
710+ "description": "Multiple choice question details. This is populated only when `work_type` is `MULTIPLE_CHOICE_QUESTION`."
711+ }
712+ }
713+ },
714+ "Material": {
715+ "id": "Material",
716+ "type": "object",
717+ "description": "Material attached to course work. When creating attachments, only the Link field may be specified.",
718+ "properties": {
719+ "driveFile": {
720+ "$ref": "SharedDriveFile",
721+ "description": "Google Drive file material."
722+ },
723+ "youtubeVideo": {
724+ "$ref": "YouTubeVideo",
725+ "description": "YouTube video material."
726+ },
727+ "link": {
728+ "$ref": "Link",
729+ "description": "Link material."
730+ },
731+ "form": {
732+ "$ref": "Form",
733+ "description": "Google Forms material."
734+ }
735+ }
736+ },
737+ "SharedDriveFile": {
738+ "id": "SharedDriveFile",
739+ "type": "object",
740+ "description": "Drive file that is used as material for course work.",
741+ "properties": {
742+ "driveFile": {
743+ "$ref": "DriveFile",
744+ "description": "Drive file details."
745+ },
746+ "shareMode": {
747+ "type": "string",
748+ "description": "Mechanism by which students access the Drive item.",
749+ "enum": [
750+ "UNKNOWN_SHARE_MODE",
751+ "VIEW",
752+ "EDIT",
753+ "STUDENT_COPY"
754+ ]
755+ }
756+ }
757+ },
758+ "Date": {
759+ "id": "Date",
760+ "type": "object",
761+ "description": "Represents a whole calendar date, e.g. date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant, e.g. credit card expiration date. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.",
762+ "properties": {
763+ "year": {
764+ "type": "integer",
765+ "description": "Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.",
766+ "format": "int32"
767+ },
768+ "month": {
769+ "type": "integer",
770+ "description": "Month of year. Must be from 1 to 12.",
771+ "format": "int32"
772+ },
773+ "day": {
774+ "type": "integer",
775+ "description": "Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year/month where the day is not significant.",
776+ "format": "int32"
777+ }
778+ }
779+ },
780+ "TimeOfDay": {
781+ "id": "TimeOfDay",
782+ "type": "object",
783+ "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may chose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.",
784+ "properties": {
785+ "hours": {
786+ "type": "integer",
787+ "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.",
788+ "format": "int32"
789+ },
790+ "minutes": {
791+ "type": "integer",
792+ "description": "Minutes of hour of day. Must be from 0 to 59.",
793+ "format": "int32"
794+ },
795+ "seconds": {
796+ "type": "integer",
797+ "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.",
798+ "format": "int32"
799+ },
800+ "nanos": {
801+ "type": "integer",
802+ "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.",
803+ "format": "int32"
804+ }
805+ }
806+ },
807+ "Assignment": {
808+ "id": "Assignment",
809+ "type": "object",
810+ "description": "Additional details for assignments.",
811+ "properties": {
812+ "studentWorkFolder": {
813+ "$ref": "DriveFolder",
814+ "description": "Drive folder where attachments from student submissions are placed. This is only populated for course teachers."
815+ }
816+ }
817+ },
818+ "MultipleChoiceQuestion": {
819+ "id": "MultipleChoiceQuestion",
820+ "type": "object",
821+ "description": "Additional details for multiple-choice questions.",
822+ "properties": {
823+ "choices": {
824+ "type": "array",
825+ "description": "Possible choices.",
826+ "items": {
827+ "type": "string"
828+ }
829+ }
830+ }
831+ },
832+ "ListCourseWorkResponse": {
833+ "id": "ListCourseWorkResponse",
834+ "type": "object",
835+ "description": "Response when listing course work.",
836+ "properties": {
837+ "courseWork": {
838+ "type": "array",
839+ "description": "Course work items that match the request.",
840+ "items": {
841+ "$ref": "CourseWork"
842+ }
843+ },
844+ "nextPageToken": {
845+ "type": "string",
846+ "description": "Token identifying the next page of results to return. If empty, no further results are available."
847+ }
848+ }
849+ },
850+ "StudentSubmission": {
851+ "id": "StudentSubmission",
852+ "type": "object",
853+ "description": "Student submission for course work. StudentSubmission items are generated when a CourseWork item is created. StudentSubmissions that have never been accessed (i.e. with `state` = NEW) may not have a creation time or update time.",
854+ "properties": {
855+ "courseId": {
856+ "type": "string",
857+ "description": "Identifier of the course. Read-only."
858+ },
859+ "courseWorkId": {
860+ "type": "string",
861+ "description": "Identifier for the course work this corresponds to. Read-only."
862+ },
863+ "id": {
864+ "type": "string",
865+ "description": "Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only."
866+ },
867+ "userId": {
868+ "type": "string",
869+ "description": "Identifier for the student that owns this submission. Read-only."
870+ },
871+ "creationTime": {
872+ "type": "string",
873+ "description": "Creation time of this submission.. This may be unset if the student has not accessed this item. Read-only."
874+ },
875+ "updateTime": {
876+ "type": "string",
877+ "description": "Last update time of this submission. This may be unset if the student has not accessed this item. Read-only."
878+ },
879+ "state": {
880+ "type": "string",
881+ "description": "State of this submission. Read-only.",
882+ "enum": [
883+ "SUBMISSION_STATE_UNSPECIFIED",
884+ "NEW",
885+ "CREATED",
886+ "TURNED_IN",
887+ "RETURNED",
888+ "RECLAIMED_BY_STUDENT"
889+ ]
890+ },
891+ "late": {
892+ "type": "boolean",
893+ "description": "Whether this submission is late. Read-only."
894+ },
895+ "draftGrade": {
896+ "type": "number",
897+ "description": "Optional pending grade. If unset, no grade was set. This must be an integer value. This is only visible to and modifiable by course teachers.",
898+ "format": "double"
899+ },
900+ "assignedGrade": {
901+ "type": "number",
902+ "description": "Optional grade. If unset, no grade was set. This must be an integer value. This may be modified only by course teachers.",
903+ "format": "double"
904+ },
905+ "alternateLink": {
906+ "type": "string",
907+ "description": "Absolute link to the submission in the Classroom web UI. Read-only."
908+ },
909+ "courseWorkType": {
910+ "type": "string",
911+ "description": "Type of course work this submission is for. Read-only.",
912+ "enum": [
913+ "COURSE_WORK_TYPE_UNSPECIFIED",
914+ "ASSIGNMENT",
915+ "SHORT_ANSWER_QUESTION",
916+ "MULTIPLE_CHOICE_QUESTION"
917+ ]
918+ },
919+ "associatedWithDeveloper": {
920+ "type": "boolean",
921+ "description": "Whether this student submission is associated with the Developer Console project making the request. See google.classroom.Work.CreateCourseWork for more details. Read-only."
922+ },
923+ "assignmentSubmission": {
924+ "$ref": "AssignmentSubmission",
925+ "description": "Submission content when course_work_type is ASSIGNMENT ."
926+ },
927+ "shortAnswerSubmission": {
928+ "$ref": "ShortAnswerSubmission",
929+ "description": "Submission content when course_work_type is SHORT_ANSWER_QUESTION."
930+ },
931+ "multipleChoiceSubmission": {
932+ "$ref": "MultipleChoiceSubmission",
933+ "description": "Submission content when course_work_type is MUTIPLE_CHOICE_QUESTION."
934+ }
935+ }
936+ },
937+ "AssignmentSubmission": {
938+ "id": "AssignmentSubmission",
939+ "type": "object",
940+ "description": "Student work for an assignment.",
941+ "properties": {
942+ "attachments": {
943+ "type": "array",
944+ "description": "Attachments added by the student. Drive files that correspond to materials with a share mode of SUBMISSION_COPY may not exist yet if the student has not accessed the assignment in Classroom. Some attachment metadata is only populated if the requesting user has permission to access it. Identifier and alternate_link fields are available, but others (e.g. title) may not be.",
945+ "items": {
946+ "$ref": "Attachment"
947+ }
948+ }
949+ }
950+ },
951+ "Attachment": {
952+ "id": "Attachment",
953+ "type": "object",
954+ "description": "Attachment added to student assignment work. When creating attachments, only the Link field may be specified.",
955+ "properties": {
956+ "driveFile": {
957+ "$ref": "DriveFile",
958+ "description": "Google Drive file attachment."
959+ },
960+ "youTubeVideo": {
961+ "$ref": "YouTubeVideo",
962+ "description": "Youtube video attachment."
963+ },
964+ "link": {
965+ "$ref": "Link",
966+ "description": "Link attachment."
967+ },
968+ "form": {
969+ "$ref": "Form",
970+ "description": "Google Forms attachment."
971+ }
972+ }
973+ },
974+ "ShortAnswerSubmission": {
975+ "id": "ShortAnswerSubmission",
976+ "type": "object",
977+ "description": "Student work for a short answer question.",
978+ "properties": {
979+ "answer": {
980+ "type": "string",
981+ "description": "Student response to a short-answer question."
982+ }
983+ }
984+ },
985+ "MultipleChoiceSubmission": {
986+ "id": "MultipleChoiceSubmission",
987+ "type": "object",
988+ "description": "Student work for a multiple-choice question.",
989+ "properties": {
990+ "answer": {
991+ "type": "string",
992+ "description": "Student's select choice."
993+ }
994+ }
995+ },
996+ "ListStudentSubmissionsResponse": {
997+ "id": "ListStudentSubmissionsResponse",
998+ "type": "object",
999+ "description": "Response when listing student submissions.",
1000+ "properties": {
1001+ "studentSubmissions": {
1002+ "type": "array",
1003+ "description": "Student work that matches the request.",
1004+ "items": {
1005+ "$ref": "StudentSubmission"
1006+ }
1007+ },
1008+ "nextPageToken": {
1009+ "type": "string",
1010+ "description": "Token identifying the next page of results to return. If empty, no further results are available."
1011+ }
1012+ }
1013+ },
1014+ "TurnInStudentSubmissionRequest": {
1015+ "id": "TurnInStudentSubmissionRequest",
1016+ "type": "object",
1017+ "description": "Request to turn in a student submission."
1018+ },
1019+ "ReclaimStudentSubmissionRequest": {
1020+ "id": "ReclaimStudentSubmissionRequest",
1021+ "type": "object",
1022+ "description": "Request to reclaim a student submission."
1023+ },
1024+ "ReturnStudentSubmissionRequest": {
1025+ "id": "ReturnStudentSubmissionRequest",
1026+ "type": "object",
1027+ "description": "Request to return a student submission."
1028+ },
1029+ "ModifyAttachmentsRequest": {
1030+ "id": "ModifyAttachmentsRequest",
1031+ "type": "object",
1032+ "description": "Request to modify the attachments of a student submission.",
1033+ "properties": {
1034+ "addAttachments": {
1035+ "type": "array",
1036+ "description": "Attachments to add. This may only contain link attachments.",
1037+ "items": {
1038+ "$ref": "Attachment"
1039+ }
1040+ }
1041+ }
4251042 }
4261043 },
4271044 "resources": {
@@ -947,6 +1564,455 @@
9471564 ]
9481565 }
9491566 }
1567+ },
1568+ "courseWork": {
1569+ "methods": {
1570+ "create": {
1571+ "id": "classroom.courses.courseWork.create",
1572+ "path": "v1/courses/{courseId}/courseWork",
1573+ "httpMethod": "POST",
1574+ "description": "Creates course work. The resulting course work (and corresponding student submissions) are associated with the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to make the request. Classroom API requests to modify course work and student submissions must be made with an OAuth client ID from the associated Developer Console project. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, create course work in the requested course, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.",
1575+ "parameters": {
1576+ "courseId": {
1577+ "type": "string",
1578+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1579+ "required": true,
1580+ "location": "path"
1581+ }
1582+ },
1583+ "parameterOrder": [
1584+ "courseId"
1585+ ],
1586+ "request": {
1587+ "$ref": "CourseWork"
1588+ },
1589+ "response": {
1590+ "$ref": "CourseWork"
1591+ },
1592+ "scopes": [
1593+ "https://www.googleapis.com/auth/classroom.coursework.students"
1594+ ]
1595+ },
1596+ "get": {
1597+ "id": "classroom.courses.courseWork.get",
1598+ "path": "v1/courses/{courseId}/courseWork/{id}",
1599+ "httpMethod": "GET",
1600+ "description": "Returns course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course or course work does not exist.",
1601+ "parameters": {
1602+ "courseId": {
1603+ "type": "string",
1604+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1605+ "required": true,
1606+ "location": "path"
1607+ },
1608+ "id": {
1609+ "type": "string",
1610+ "description": "Identifier of the course work.",
1611+ "required": true,
1612+ "location": "path"
1613+ }
1614+ },
1615+ "parameterOrder": [
1616+ "courseId",
1617+ "id"
1618+ ],
1619+ "response": {
1620+ "$ref": "CourseWork"
1621+ },
1622+ "scopes": [
1623+ "https://www.googleapis.com/auth/classroom.course-work.readonly",
1624+ "https://www.googleapis.com/auth/classroom.coursework.me",
1625+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
1626+ "https://www.googleapis.com/auth/classroom.coursework.students",
1627+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
1628+ ]
1629+ },
1630+ "list": {
1631+ "id": "classroom.courses.courseWork.list",
1632+ "path": "v1/courses/{courseId}/courseWork",
1633+ "httpMethod": "GET",
1634+ "description": "Returns a list of course work that the requester is permitted to view. Course students may only view `PUBLISHED` course work. Course teachers and domain administrators may view all course work. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.",
1635+ "parameters": {
1636+ "courseId": {
1637+ "type": "string",
1638+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1639+ "required": true,
1640+ "location": "path"
1641+ },
1642+ "courseWorkStates": {
1643+ "type": "string",
1644+ "description": "Restriction on the work status to return. Only courseWork that matches is returned. If unspecified, items with a work status of `PUBLISHED` is returned.",
1645+ "enum": [
1646+ "COURSE_WORK_STATE_UNSPECIFIED",
1647+ "PUBLISHED",
1648+ "DRAFT",
1649+ "DELETED"
1650+ ],
1651+ "repeated": true,
1652+ "location": "query"
1653+ },
1654+ "orderBy": {
1655+ "type": "string",
1656+ "description": "Optional sort ordering for results. A comma-separated list of fields with an optional sort direction keyword. Supported fields are `updateTime` and `dueDate`. Supported direction keywords are `asc` and `desc`. If not specified, `updateTime desc` is the default behavior. Examples: `dueDate asc,updateTime desc`, `updateTime,dueDate desc`",
1657+ "location": "query"
1658+ },
1659+ "pageSize": {
1660+ "type": "integer",
1661+ "description": "Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.",
1662+ "format": "int32",
1663+ "location": "query"
1664+ },
1665+ "pageToken": {
1666+ "type": "string",
1667+ "description": "nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.",
1668+ "location": "query"
1669+ }
1670+ },
1671+ "parameterOrder": [
1672+ "courseId"
1673+ ],
1674+ "response": {
1675+ "$ref": "ListCourseWorkResponse"
1676+ },
1677+ "scopes": [
1678+ "https://www.googleapis.com/auth/classroom.course-work.readonly",
1679+ "https://www.googleapis.com/auth/classroom.coursework.me",
1680+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
1681+ "https://www.googleapis.com/auth/classroom.coursework.students",
1682+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly"
1683+ ]
1684+ }
1685+ },
1686+ "resources": {
1687+ "studentSubmissions": {
1688+ "methods": {
1689+ "get": {
1690+ "id": "classroom.courses.courseWork.studentSubmissions.get",
1691+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
1692+ "httpMethod": "GET",
1693+ "description": "Returns a student submission. * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course, course work, or student submission or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1694+ "parameters": {
1695+ "courseId": {
1696+ "type": "string",
1697+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1698+ "required": true,
1699+ "location": "path"
1700+ },
1701+ "courseWorkId": {
1702+ "type": "string",
1703+ "description": "Identifier of the course work.",
1704+ "required": true,
1705+ "location": "path"
1706+ },
1707+ "id": {
1708+ "type": "string",
1709+ "description": "Identifier of the student submission.",
1710+ "required": true,
1711+ "location": "path"
1712+ }
1713+ },
1714+ "parameterOrder": [
1715+ "courseId",
1716+ "courseWorkId",
1717+ "id"
1718+ ],
1719+ "response": {
1720+ "$ref": "StudentSubmission"
1721+ },
1722+ "scopes": [
1723+ "https://www.googleapis.com/auth/classroom.coursework.me",
1724+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
1725+ "https://www.googleapis.com/auth/classroom.coursework.students",
1726+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly",
1727+ "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
1728+ "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"
1729+ ]
1730+ },
1731+ "patch": {
1732+ "id": "classroom.courses.courseWork.studentSubmissions.patch",
1733+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}",
1734+ "httpMethod": "PATCH",
1735+ "description": "Updates one or more fields of a student submission. See google.classroom.v1.StudentSubmission for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1736+ "parameters": {
1737+ "courseId": {
1738+ "type": "string",
1739+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1740+ "required": true,
1741+ "location": "path"
1742+ },
1743+ "courseWorkId": {
1744+ "type": "string",
1745+ "description": "Identifier of the course work.",
1746+ "required": true,
1747+ "location": "path"
1748+ },
1749+ "id": {
1750+ "type": "string",
1751+ "description": "Identifier of the student submission.",
1752+ "required": true,
1753+ "location": "path"
1754+ },
1755+ "updateMask": {
1756+ "type": "string",
1757+ "description": "Mask that identifies which fields on the student submission to update. This field is required to do an update. The update fails if invalid fields are specified. The following fields may be specified by teachers: * `draft_grade` * `assigned_grade`",
1758+ "location": "query"
1759+ }
1760+ },
1761+ "parameterOrder": [
1762+ "courseId",
1763+ "courseWorkId",
1764+ "id"
1765+ ],
1766+ "request": {
1767+ "$ref": "StudentSubmission"
1768+ },
1769+ "response": {
1770+ "$ref": "StudentSubmission"
1771+ },
1772+ "scopes": [
1773+ "https://www.googleapis.com/auth/classroom.coursework.me",
1774+ "https://www.googleapis.com/auth/classroom.coursework.students"
1775+ ]
1776+ },
1777+ "list": {
1778+ "id": "classroom.courses.courseWork.studentSubmissions.list",
1779+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions",
1780+ "httpMethod": "GET",
1781+ "description": "Returns a list of student submissions that the requester is permitted to view, factoring in the OAuth scopes of the request. `-` may be specified as the `course_work_id` to include student submissions for multiple course work items. Course students may only view their own work. Course teachers and domain administrators may view all student submissions. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course does not exist.",
1782+ "parameters": {
1783+ "courseId": {
1784+ "type": "string",
1785+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1786+ "required": true,
1787+ "location": "path"
1788+ },
1789+ "courseWorkId": {
1790+ "type": "string",
1791+ "description": "Identifer of the student work to request. If `user_id` is specified, this may be set to the string literal `\"-\"` to request student work for all course work in the specified course.",
1792+ "required": true,
1793+ "location": "path"
1794+ },
1795+ "userId": {
1796+ "type": "string",
1797+ "description": "Optional argument to restrict returned student work to those owned by the student with the specified identifier. The identifier can be one of the following: * the numeric identifier for the user * the email address of the user * the string literal `\"me\"`, indicating the requesting user",
1798+ "location": "query"
1799+ },
1800+ "states": {
1801+ "type": "string",
1802+ "description": "Requested submission states. If specified, returned student submissions match one of the specified submission states.",
1803+ "enum": [
1804+ "SUBMISSION_STATE_UNSPECIFIED",
1805+ "NEW",
1806+ "CREATED",
1807+ "TURNED_IN",
1808+ "RETURNED",
1809+ "RECLAIMED_BY_STUDENT"
1810+ ],
1811+ "repeated": true,
1812+ "location": "query"
1813+ },
1814+ "late": {
1815+ "type": "string",
1816+ "description": "Requested lateness value. If specified, returned student submissions are restricted by the requested value. If unspecified, submissions are returned regardless of `late` value.",
1817+ "enum": [
1818+ "LATE_VALUES_UNSPECIFIED",
1819+ "LATE_ONLY",
1820+ "NOT_LATE_ONLY"
1821+ ],
1822+ "location": "query"
1823+ },
1824+ "pageSize": {
1825+ "type": "integer",
1826+ "description": "Maximum number of items to return. Zero or unspecified indicates that the server may assign a maximum. The server may return fewer than the specified number of results.",
1827+ "format": "int32",
1828+ "location": "query"
1829+ },
1830+ "pageToken": {
1831+ "type": "string",
1832+ "description": "nextPageToken value returned from a previous list call, indicating that the subsequent page of results should be returned. The list request must be otherwise identical to the one that resulted in this token.",
1833+ "location": "query"
1834+ }
1835+ },
1836+ "parameterOrder": [
1837+ "courseId",
1838+ "courseWorkId"
1839+ ],
1840+ "response": {
1841+ "$ref": "ListStudentSubmissionsResponse"
1842+ },
1843+ "scopes": [
1844+ "https://www.googleapis.com/auth/classroom.coursework.me",
1845+ "https://www.googleapis.com/auth/classroom.coursework.me.readonly",
1846+ "https://www.googleapis.com/auth/classroom.coursework.students",
1847+ "https://www.googleapis.com/auth/classroom.coursework.students.readonly",
1848+ "https://www.googleapis.com/auth/classroom.student-submissions.me.readonly",
1849+ "https://www.googleapis.com/auth/classroom.student-submissions.students.readonly"
1850+ ]
1851+ },
1852+ "turnIn": {
1853+ "id": "classroom.courses.courseWork.studentSubmissions.turnIn",
1854+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn",
1855+ "httpMethod": "POST",
1856+ "description": "Turns in a student submission. Turning in a student submission transfers ownership of attached Drive files to the teacher and may also update the submission state. This may only be called by the student that owns the specified student submission. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, turn in the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1857+ "parameters": {
1858+ "courseId": {
1859+ "type": "string",
1860+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1861+ "required": true,
1862+ "location": "path"
1863+ },
1864+ "courseWorkId": {
1865+ "type": "string",
1866+ "description": "Identifier of the course work.",
1867+ "required": true,
1868+ "location": "path"
1869+ },
1870+ "id": {
1871+ "type": "string",
1872+ "description": "Identifier of the student submission.",
1873+ "required": true,
1874+ "location": "path"
1875+ }
1876+ },
1877+ "parameterOrder": [
1878+ "courseId",
1879+ "courseWorkId",
1880+ "id"
1881+ ],
1882+ "request": {
1883+ "$ref": "TurnInStudentSubmissionRequest"
1884+ },
1885+ "response": {
1886+ "$ref": "Empty"
1887+ },
1888+ "scopes": [
1889+ "https://www.googleapis.com/auth/classroom.coursework.me"
1890+ ]
1891+ },
1892+ "reclaim": {
1893+ "id": "classroom.courses.courseWork.studentSubmissions.reclaim",
1894+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim",
1895+ "httpMethod": "POST",
1896+ "description": "Reclaims a student submission on behalf of the student that owns it. Reclaiming a student submission transfers ownership of attached Drive files to the student and update the submission state. Only the student that ownes the requested student submission may call this method, and only for a student submission that has been turned in. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, unsubmit the requested student submission, or for access errors. * `FAILED_PRECONDITION` if the student submission has not been turned in. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1897+ "parameters": {
1898+ "courseId": {
1899+ "type": "string",
1900+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1901+ "required": true,
1902+ "location": "path"
1903+ },
1904+ "courseWorkId": {
1905+ "type": "string",
1906+ "description": "Identifier of the course work.",
1907+ "required": true,
1908+ "location": "path"
1909+ },
1910+ "id": {
1911+ "type": "string",
1912+ "description": "Identifier of the student submission.",
1913+ "required": true,
1914+ "location": "path"
1915+ }
1916+ },
1917+ "parameterOrder": [
1918+ "courseId",
1919+ "courseWorkId",
1920+ "id"
1921+ ],
1922+ "request": {
1923+ "$ref": "ReclaimStudentSubmissionRequest"
1924+ },
1925+ "response": {
1926+ "$ref": "Empty"
1927+ },
1928+ "scopes": [
1929+ "https://www.googleapis.com/auth/classroom.coursework.me"
1930+ ]
1931+ },
1932+ "return": {
1933+ "id": "classroom.courses.courseWork.studentSubmissions.return",
1934+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return",
1935+ "httpMethod": "POST",
1936+ "description": "Returns a student submission. Returning a student submission transfers ownership of attached Drive files to the student and may also update the submission state. Unlike the Classroom application, returning a student submission does not set assignedGrade to the draftGrade value. Only a teacher of the course that contains the requested student submission may call this method. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, return the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1937+ "parameters": {
1938+ "courseId": {
1939+ "type": "string",
1940+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1941+ "required": true,
1942+ "location": "path"
1943+ },
1944+ "courseWorkId": {
1945+ "type": "string",
1946+ "description": "Identifier of the course work.",
1947+ "required": true,
1948+ "location": "path"
1949+ },
1950+ "id": {
1951+ "type": "string",
1952+ "description": "Identifier of the student submission.",
1953+ "required": true,
1954+ "location": "path"
1955+ }
1956+ },
1957+ "parameterOrder": [
1958+ "courseId",
1959+ "courseWorkId",
1960+ "id"
1961+ ],
1962+ "request": {
1963+ "$ref": "ReturnStudentSubmissionRequest"
1964+ },
1965+ "response": {
1966+ "$ref": "Empty"
1967+ },
1968+ "scopes": [
1969+ "https://www.googleapis.com/auth/classroom.coursework.students"
1970+ ]
1971+ },
1972+ "modifyAttachments": {
1973+ "id": "classroom.courses.courseWork.studentSubmissions.modifyAttachments",
1974+ "path": "v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments",
1975+ "httpMethod": "POST",
1976+ "description": "Modifies attachments of student submission. Attachments may only be added to student submissions whose type is `ASSIGNMENT`. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting user is not permitted to access the requested course or course work, if the user is not permitted to modify attachments on the requested student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.",
1977+ "parameters": {
1978+ "courseId": {
1979+ "type": "string",
1980+ "description": "Identifier of the course. This identifier can be either the Classroom-assigned identifier or an alias.",
1981+ "required": true,
1982+ "location": "path"
1983+ },
1984+ "courseWorkId": {
1985+ "type": "string",
1986+ "description": "Identifier of the course work.",
1987+ "required": true,
1988+ "location": "path"
1989+ },
1990+ "id": {
1991+ "type": "string",
1992+ "description": "Identifier of the student submission.",
1993+ "required": true,
1994+ "location": "path"
1995+ }
1996+ },
1997+ "parameterOrder": [
1998+ "courseId",
1999+ "courseWorkId",
2000+ "id"
2001+ ],
2002+ "request": {
2003+ "$ref": "ModifyAttachmentsRequest"
2004+ },
2005+ "response": {
2006+ "$ref": "StudentSubmission"
2007+ },
2008+ "scopes": [
2009+ "https://www.googleapis.com/auth/classroom.coursework.me",
2010+ "https://www.googleapis.com/auth/classroom.coursework.students"
2011+ ]
2012+ }
2013+ }
2014+ }
2015+ }
9502016 }
9512017 }
9522018 },
gen/model/cloudbuild/v1/cloudbuild-api.json+143−139
@@ -17,63 +17,63 @@
1717 "resources": {
1818 "builds": {
1919 "methods": {
20− "get": {
21− "id": "cloudbuild.projects.builds.get",
20+ "create": {
21+ "id": "cloudbuild.projects.builds.create",
2222 "response": {
23− "$ref": "Build"
23+ "$ref": "Operation"
2424 },
2525 "parameterOrder": [
26− "projectId",
27− "id"
26+ "projectId"
2827 ],
29− "description": "Returns information about a previously requested build.\n\nThe Build that is returned includes its status (e.g., success or failure,\nor in-progress), and timing information.",
30− "httpMethod": "GET",
31− "flatPath": "v1/projects/{projectId}/builds/{id}",
28+ "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
29+ "request": {
30+ "$ref": "Build"
31+ },
32+ "flatPath": "v1/projects/{projectId}/builds",
33+ "httpMethod": "POST",
3234 "parameters": {
33− "id": {
34− "required": true,
35− "description": "ID of the build.",
36− "type": "string",
37− "location": "path"
38− },
3935 "projectId": {
40− "required": true,
4136 "description": "ID of the project.",
42− "type": "string",
43− "location": "path"
37+ "required": true,
38+ "location": "path",
39+ "type": "string"
4440 }
4541 },
42+ "path": "v1/projects/{projectId}/builds",
4643 "scopes": [
4744 "https://www.googleapis.com/auth/cloud-platform"
48− ],
49− "path": "v1/projects/{projectId}/builds/{id}"
45+ ]
5046 },
51− "create": {
52− "id": "cloudbuild.projects.builds.create",
47+ "get": {
48+ "id": "cloudbuild.projects.builds.get",
5349 "response": {
54− "$ref": "Operation"
50+ "$ref": "Build"
5551 },
5652 "parameterOrder": [
57− "projectId"
53+ "projectId",
54+ "id"
5855 ],
59− "description": "Starts a build with the specified configuration.\n\nThe long-running Operation returned by this method will include the ID of\nthe build, which can be passed to GetBuild to determine its status (e.g.,\nsuccess or failure).",
60− "request": {
61− "$ref": "Build"
62− },
63− "httpMethod": "POST",
64− "flatPath": "v1/projects/{projectId}/builds",
56+ "description": "Returns information about a previously requested build.\n\nThe Build that is returned includes its status (e.g., success or failure,\nor in-progress), and timing information.",
57+ "flatPath": "v1/projects/{projectId}/builds/{id}",
58+ "httpMethod": "GET",
6559 "parameters": {
6660 "projectId": {
67− "required": true,
6861 "description": "ID of the project.",
69− "type": "string",
70− "location": "path"
62+ "required": true,
63+ "location": "path",
64+ "type": "string"
65+ },
66+ "id": {
67+ "description": "ID of the build.",
68+ "required": true,
69+ "location": "path",
70+ "type": "string"
7171 }
7272 },
73+ "path": "v1/projects/{projectId}/builds/{id}",
7374 "scopes": [
7475 "https://www.googleapis.com/auth/cloud-platform"
75− ],
76− "path": "v1/projects/{projectId}/builds"
76+ ]
7777 },
7878 "list": {
7979 "id": "cloudbuild.projects.builds.list",
@@ -84,31 +84,31 @@
8484 "projectId"
8585 ],
8686 "description": "Lists previously requested builds.\n\nPreviously requested builds may still be in-progress, or may have finished\nsuccessfully or unsuccessfully.",
87− "httpMethod": "GET",
8887 "flatPath": "v1/projects/{projectId}/builds",
88+ "httpMethod": "GET",
8989 "parameters": {
9090 "pageSize": {
9191 "description": "Number of results to return in the list.",
92− "type": "integer",
9392 "location": "query",
93+ "type": "integer",
9494 "format": "int32"
9595 },
96− "pageToken": {
97− "description": "Token to provide to skip to a particular spot in the list.",
98− "type": "string",
99− "location": "query"
100− },
10196 "projectId": {
102− "required": true,
10397 "description": "ID of the project.",
104− "type": "string",
105− "location": "path"
98+ "required": true,
99+ "location": "path",
100+ "type": "string"
101+ },
102+ "pageToken": {
103+ "description": "Token to provide to skip to a particular spot in the list.",
104+ "location": "query",
105+ "type": "string"
106106 }
107107 },
108+ "path": "v1/projects/{projectId}/builds",
108109 "scopes": [
109110 "https://www.googleapis.com/auth/cloud-platform"
110− ],
111− "path": "v1/projects/{projectId}/builds"
111+ ]
112112 },
113113 "cancel": {
114114 "id": "cloudbuild.projects.builds.cancel",
@@ -123,26 +123,26 @@
123123 "request": {
124124 "$ref": "CancelBuildRequest"
125125 },
126− "httpMethod": "POST",
127126 "flatPath": "v1/projects/{projectId}/builds/{id}:cancel",
127+ "httpMethod": "POST",
128128 "parameters": {
129− "id": {
129+ "projectId": {
130+ "description": "ID of the project.",
130131 "required": true,
131− "description": "ID of the build.",
132− "type": "string",
133− "location": "path"
132+ "location": "path",
133+ "type": "string"
134134 },
135− "projectId": {
135+ "id": {
136+ "description": "ID of the build.",
136137 "required": true,
137− "description": "ID of the project.",
138− "type": "string",
139− "location": "path"
138+ "location": "path",
139+ "type": "string"
140140 }
141141 },
142+ "path": "v1/projects/{projectId}/builds/{id}:cancel",
142143 "scopes": [
143144 "https://www.googleapis.com/auth/cloud-platform"
144− ],
145− "path": "v1/projects/{projectId}/builds/{id}:cancel"
145+ ]
146146 }
147147 }
148148 }
@@ -159,21 +159,21 @@
159159 "name"
160160 ],
161161 "description": "Gets the latest state of a long-running operation. Clients can use this\nmethod to poll the operation result at intervals as recommended by the API\nservice.",
162− "httpMethod": "GET",
163162 "flatPath": "v1/operations/{operationsId}",
163+ "httpMethod": "GET",
164164 "parameters": {
165165 "name": {
166− "required": true,
167166 "description": "The name of the operation resource.",
167+ "required": true,
168168 "pattern": "^operations/.*$",
169− "type": "string",
170− "location": "path"
169+ "location": "path",
170+ "type": "string"
171171 }
172172 },
173+ "path": "v1/{+name}",
173174 "scopes": [
174175 "https://www.googleapis.com/auth/cloud-platform"
175− ],
176− "path": "v1/{+name}"
176+ ]
177177 },
178178 "list": {
179179 "id": "cloudbuild.operations.list",
@@ -184,37 +184,37 @@
184184 "name"
185185 ],
186186 "description": "Lists operations that match the specified filter in the request. If the\nserver doesn't support this method, it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding below allows API services to override the binding\nto use different resource name schemes, such as `users/*/operations`.",
187− "httpMethod": "GET",
188187 "flatPath": "v1/operations",
188+ "httpMethod": "GET",
189189 "parameters": {
190190 "pageSize": {
191191 "description": "The standard list page size.",
192− "type": "integer",
193192 "location": "query",
193+ "type": "integer",
194194 "format": "int32"
195195 },
196196 "filter": {
197197 "description": "The standard list filter.",
198− "type": "string",
199− "location": "query"
200− },
201− "pageToken": {
202− "description": "The standard list page token.",
203− "type": "string",
204− "location": "query"
198+ "location": "query",
199+ "type": "string"
205200 },
206201 "name": {
207− "required": true,
208202 "description": "The name of the operation collection.",
203+ "required": true,
209204 "pattern": "^operations$",
210− "type": "string",
211− "location": "path"
205+ "location": "path",
206+ "type": "string"
207+ },
208+ "pageToken": {
209+ "description": "The standard list page token.",
210+ "location": "query",
211+ "type": "string"
212212 }
213213 },
214+ "path": "v1/{+name}",
214215 "scopes": [
215216 "https://www.googleapis.com/auth/cloud-platform"
216− ],
217− "path": "v1/{+name}"
217+ ]
218218 }
219219 }
220220 }
@@ -222,6 +222,7 @@
222222 "schemas": {
223223 "Status": {
224224 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\nerror message is needed, put the localized message in the error details or\nlocalize it in the client. The optional error details may contain arbitrary\ninformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` which can be used for common error conditions.\n\n# Language mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n\nThe error model and the `Status` message can be used in a variety of\nenvironments, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n- Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step may\n have a `Status` message for error reporting purpose.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\n- Asynchronous operations. If an API call embeds asynchronous operation\n results in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
225+ "type": "object",
225226 "properties": {
226227 "code": {
227228 "description": "The status code, which should be an enum value of google.rpc.Code.",
@@ -244,33 +245,33 @@
244245 "type": "string"
245246 }
246247 },
247− "type": "object",
248248 "id": "Status"
249249 },
250250 "BuildOperationMetadata": {
251251 "description": "Metadata for build operations.",
252+ "type": "object",
252253 "properties": {
253254 "build": {
254255 "description": "The build that the operation is tracking.",
255256 "$ref": "Build"
256257 }
257258 },
258− "type": "object",
259259 "id": "BuildOperationMetadata"
260260 },
261261 "Source": {
262262 "description": "Source describes the location of the source in a supported storage\nservice.",
263+ "type": "object",
263264 "properties": {
264265 "storageSource": {
265266 "description": "If provided, get the source from this location in in Google Cloud\nStorage.",
266267 "$ref": "StorageSource"
267268 }
268269 },
269− "type": "object",
270270 "id": "Source"
271271 },
272272 "Operation": {
273273 "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
274+ "type": "object",
274275 "properties": {
275276 "error": {
276277 "description": "The error result of the operation in case of failure.",
@@ -280,20 +281,20 @@
280281 "description": "If the value is `false`, it means the operation is still in progress.\nIf true, the operation is completed, and either `error` or `response` is\navailable.",
281282 "type": "boolean"
282283 },
283− "response": {
284+ "metadata": {
285+ "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
284286 "additionalProperties": {
285287 "description": "Properties of the object. Contains field @ype with type URL.",
286288 "type": "any"
287289 },
288− "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
289290 "type": "object"
290291 },
291− "metadata": {
292+ "response": {
293+ "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
292294 "additionalProperties": {
293295 "description": "Properties of the object. Contains field @ype with type URL.",
294296 "type": "any"
295297 },
296− "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
297298 "type": "object"
298299 },
299300 "name": {
@@ -301,11 +302,11 @@
301302 "type": "string"
302303 }
303304 },
304− "type": "object",
305305 "id": "Operation"
306306 },
307307 "BuiltImage": {
308308 "description": "BuiltImage describes an image built by the pipeline.",
309+ "type": "object",
309310 "properties": {
310311 "digest": {
311312 "description": "Docker Registry 2.0 digest.",
@@ -316,31 +317,31 @@
316317 "type": "string"
317318 }
318319 },
319− "type": "object",
320320 "id": "BuiltImage"
321321 },
322322 "StorageSource": {
323323 "description": "StorageSource describes the location of the source in an archive file in\nGoogle Cloud Storage.",
324+ "type": "object",
324325 "properties": {
326+ "bucket": {
327+ "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
328+ "type": "string"
329+ },
325330 "generation": {
326331 "description": "Google Cloud Storage generation for the object. If the generation is\nomitted, the latest generation will be used.",
327332 "type": "string",
328333 "format": "int64"
329334 },
330− "bucket": {
331− "description": "Google Cloud Storage bucket containing source (see\n[Bucket Name\nRequirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).",
332− "type": "string"
333− },
334335 "object": {
335336 "description": "Google Cloud Storage object containing source.\n\nThis object must be a gzipped archive file (.tar.gz) containing source to\nbuild.",
336337 "type": "string"
337338 }
338339 },
339− "type": "object",
340340 "id": "StorageSource"
341341 },
342342 "Results": {
343343 "description": "Results describes the artifacts created by the build pipeline.",
344+ "type": "object",
344345 "properties": {
345346 "images": {
346347 "description": "Images that were built as a part of the build.",
@@ -350,11 +351,11 @@
350351 }
351352 }
352353 },
353− "type": "object",
354354 "id": "Results"
355355 },
356356 "Build": {
357357 "description": "A build resource in the Container Builder API.\n\nAt a high level, a Build describes where to find source code, how to build\nit (for example, the builder image to run on the source), and what tag to\napply to the built image when it is pushed to Google Container Registry.",
358+ "type": "object",
358359 "properties": {
359360 "id": {
360361 "description": "Unique identifier of the build.\n@OutputOnly",
@@ -365,6 +366,7 @@
365366 "$ref": "Results"
366367 },
367368 "status": {
369+ "description": "Status of the build.\n@OutputOnly",
368370 "enum": [
369371 "STATUS_UNKNOWN",
370372 "QUEUED",
@@ -375,7 +377,6 @@
375377 "TIMEOUT",
376378 "CANCELLED"
377379 ],
378− "description": "Status of the build.\n@OutputOnly",
379380 "enumDescriptions": [
380381 "Status of the build is unknown.",
381382 "Build is queued, work has not yet begun.",
@@ -389,7 +390,7 @@
389390 "type": "string"
390391 },
391392 "finishTime": {
392− "description": "Time at whihc execution of the build was finished.\n@OutputOnly",
393+ "description": "Time at which execution of the build was finished.\n@OutputOnly",
393394 "type": "string",
394395 "format": "google-datetime"
395396 },
@@ -414,6 +415,10 @@
414415 "type": "string",
415416 "format": "google-datetime"
416417 },
418+ "statusDetail": {
419+ "description": "Customer-readable message about the current status.\n@OutputOnly",
420+ "type": "string"
421+ },
417422 "images": {
418423 "description": "List of images expected to be built and pushed to Google Container\nRegistry. If an image is listed here and the image is not produced by\none of the build steps, the build will fail. Any images present when\nthe build steps are complete will be pushed to Container Registry.",
419424 "type": "array",
@@ -435,17 +440,17 @@
435440 "type": "string"
436441 }
437442 },
438− "type": "object",
439443 "id": "Build"
440444 },
441445 "CancelBuildRequest": {
442446 "description": "Request to cancel an ongoing build.",
443− "properties": {},
444447 "type": "object",
448+ "properties": {},
445449 "id": "CancelBuildRequest"
446450 },
447451 "ListOperationsResponse": {
448452 "description": "The response message for Operations.ListOperations.",
453+ "type": "object",
449454 "properties": {
450455 "nextPageToken": {
451456 "description": "The standard List next-page token.",
@@ -459,11 +464,11 @@
459464 }
460465 }
461466 },
462− "type": "object",
463467 "id": "ListOperationsResponse"
464468 },
465469 "BuildStep": {
466470 "description": "BuildStep describes a step to perform in the build pipeline.",
471+ "type": "object",
467472 "properties": {
468473 "args": {
469474 "description": "Command-line arguments to use when running this step's container.",
@@ -476,23 +481,23 @@
476481 "description": "Working directory (relative to project source root) to use when running\nthis operation's container.",
477482 "type": "string"
478483 },
484+ "name": {
485+ "description": "Name of the container image to use for creating this stage in the\npipeline, as presented to `docker pull`.",
486+ "type": "string"
487+ },
479488 "env": {
480489 "description": "Additional environment variables to set for this step's container.",
481490 "type": "array",
482491 "items": {
483492 "type": "string"
484493 }
485− },
486− "name": {
487− "description": "Name of the container image to use for creating this stage in the\npipeline, as presented to `docker pull`.",
488− "type": "string"
489494 }
490495 },
491− "type": "object",
492496 "id": "BuildStep"
493497 },
494498 "ListBuildsResponse": {
495499 "description": "Response including listed builds.",
500+ "type": "object",
496501 "properties": {
497502 "nextPageToken": {
498503 "description": "Token to receive the next page of results.",
@@ -506,11 +511,10 @@
506511 }
507512 }
508513 },
509− "type": "object",
510514 "id": "ListBuildsResponse"
511515 }
512516 },
513− "revision": "20160428",
517+ "revision": "20160523",
514518 "basePath": "",
515519 "icons": {
516520 "x32": "http://www.google.com/images/icons/product/search-32.gif",
@@ -519,38 +523,40 @@
519523 "version_module": "True",
520524 "canonicalName": "Cloud Build",
521525 "discoveryVersion": "v1",
526+ "baseUrl": "https://cloudbuild.googleapis.com/",
527+ "name": "cloudbuild",
522528 "parameters": {
523529 "access_token": {
524530 "description": "OAuth access token.",
525− "location": "query",
526− "type": "string"
531+ "type": "string",
532+ "location": "query"
527533 },
528534 "prettyPrint": {
529− "default": "true",
530535 "description": "Returns response with indentations and line breaks.",
531− "location": "query",
532− "type": "boolean"
536+ "default": "true",
537+ "type": "boolean",
538+ "location": "query"
533539 },
534540 "key": {
535541 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
536− "location": "query",
537− "type": "string"
542+ "type": "string",
543+ "location": "query"
538544 },
539545 "quotaUser": {
540546 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
541− "location": "query",
542− "type": "string"
547+ "type": "string",
548+ "location": "query"
543549 },
544550 "pp": {
545− "default": "true",
546551 "description": "Pretty-print response.",
547− "location": "query",
548− "type": "boolean"
552+ "default": "true",
553+ "type": "boolean",
554+ "location": "query"
549555 },
550556 "fields": {
551557 "description": "Selector specifying which fields to include in a partial response.",
552− "location": "query",
553− "type": "string"
558+ "type": "string",
559+ "location": "query"
554560 },
555561 "alt": {
556562 "description": "Data format for response.",
@@ -569,48 +575,46 @@
569575 "type": "string"
570576 },
571577 "$.xgafv": {
578+ "description": "V1 error format.",
572579 "enum": [
573580 "1",
574581 "2"
575582 ],
576− "description": "V1 error format.",
577583 "enumDescriptions": [
578584 "v1 error format",
579585 "v2 error format"
580586 ],
581− "location": "query",
582− "type": "string"
587+ "type": "string",
588+ "location": "query"
583589 },
584590 "callback": {
585591 "description": "JSONP",
586− "location": "query",
587− "type": "string"
588− },
589− "uploadType": {
590− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
591− "location": "query",
592− "type": "string"
592+ "type": "string",
593+ "location": "query"
593594 },
594595 "oauth_token": {
595596 "description": "OAuth 2.0 token for the current user.",
596− "location": "query",
597− "type": "string"
597+ "type": "string",
598+ "location": "query"
598599 },
599− "upload_protocol": {
600− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
601− "location": "query",
602− "type": "string"
600+ "uploadType": {
601+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
602+ "type": "string",
603+ "location": "query"
603604 },
604605 "bearer_token": {
605606 "description": "OAuth bearer token.",
606− "location": "query",
607− "type": "string"
607+ "type": "string",
608+ "location": "query"
609+ },
610+ "upload_protocol": {
611+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
612+ "type": "string",
613+ "location": "query"
608614 }
609615 },
610− "name": "cloudbuild",
611− "baseUrl": "https://cloudbuild.googleapis.com/",
612− "ownerDomain": "google.com",
613616 "documentationLink": "https://cloud.google.com/container-builder/docs/",
617+ "ownerDomain": "google.com",
614618 "batchPath": "batch",
615619 "servicePath": "",
616620 "ownerName": "Google",
gen/model/clouderrorreporting/v1beta1/clouderrorreporting-api.json+191−191
@@ -9,9 +9,9 @@
99 }
1010 }
1111 },
12− "description": "Google Stackdriver Error Reporting groups and counts similar errors from cloud services. The Google Stackdriver Error Reporting API provides read access to error groups and their associated errors.\n",
12+ "description": "Stackdriver Error Reporting groups and counts similar errors from cloud services. The Stackdriver Error Reporting API provides read access to error groups and their associated errors.\n",
1313 "protocol": "rest",
14− "title": "Google Cloud Error Reporting API",
14+ "title": "Stackdriver Error Reporting API",
1515 "resources": {
1616 "projects": {
1717 "resources": {
@@ -26,10 +26,11 @@
2626 "projectName"
2727 ],
2828 "description": "Lists the specified events.",
29− "httpMethod": "GET",
3029 "flatPath": "v1beta1/projects/{projectsId}/events",
30+ "httpMethod": "GET",
3131 "parameters": {
3232 "timeRange.period": {
33+ "description": "Restricts the query to the specified time range.",
3334 "enum": [
3435 "PERIOD_UNSPECIFIED",
3536 "PERIOD_1_HOUR",
@@ -38,48 +39,104 @@
3839 "PERIOD_1_WEEK",
3940 "PERIOD_30_DAYS"
4041 ],
41− "description": "Restricts the query to the specified time range.",
42− "type": "string",
43− "location": "query"
42+ "location": "query",
43+ "type": "string"
4444 },
4545 "projectName": {
46− "required": true,
4746 "description": "The resource name of the Google Cloud Platform project. Required.\nExample: projects/my-project",
47+ "required": true,
4848 "pattern": "^projects/[^/]*$",
49− "type": "string",
50− "location": "path"
49+ "location": "path",
50+ "type": "string"
5151 },
5252 "serviceFilter.service": {
5353 "description": "The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
54− "type": "string",
55− "location": "query"
54+ "location": "query",
55+ "type": "string"
5656 },
5757 "groupId": {
5858 "description": "The group for which events shall be returned. Required.",
59− "type": "string",
60− "location": "query"
59+ "location": "query",
60+ "type": "string"
61+ },
62+ "serviceFilter.version": {
63+ "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
64+ "location": "query",
65+ "type": "string"
6166 },
6267 "pageSize": {
6368 "description": "The maximum number of results to return per response.",
64− "type": "integer",
6569 "location": "query",
70+ "type": "integer",
6671 "format": "int32"
6772 },
68− "serviceFilter.version": {
69− "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
70− "type": "string",
71− "location": "query"
72− },
7373 "pageToken": {
7474 "description": "A `next_page_token` provided by a previous response.",
75− "type": "string",
76− "location": "query"
75+ "location": "query",
76+ "type": "string"
7777 }
7878 },
79+ "path": "v1beta1/{+projectName}/events",
7980 "scopes": [
8081 "https://www.googleapis.com/auth/cloud-platform"
82+ ]
83+ }
84+ }
85+ },
86+ "groups": {
87+ "methods": {
88+ "update": {
89+ "id": "clouderrorreporting.projects.groups.update",
90+ "response": {
91+ "$ref": "ErrorGroup"
92+ },
93+ "parameterOrder": [
94+ "name"
8195 ],
82− "path": "v1beta1/{+projectName}/events"
96+ "description": "Replace the data for the specified group.\nFails if the group does not exist.",
97+ "request": {
98+ "$ref": "ErrorGroup"
99+ },
100+ "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
101+ "httpMethod": "PUT",
102+ "parameters": {
103+ "name": {
104+ "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
105+ "required": true,
106+ "pattern": "^projects/[^/]*/groups/[^/]*$",
107+ "location": "path",
108+ "type": "string"
109+ }
110+ },
111+ "path": "v1beta1/{+name}",
112+ "scopes": [
113+ "https://www.googleapis.com/auth/cloud-platform"
114+ ]
115+ },
116+ "get": {
117+ "id": "clouderrorreporting.projects.groups.get",
118+ "response": {
119+ "$ref": "ErrorGroup"
120+ },
121+ "parameterOrder": [
122+ "groupName"
123+ ],
124+ "description": "Get the specified group.",
125+ "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
126+ "httpMethod": "GET",
127+ "parameters": {
128+ "groupName": {
129+ "description": "Group resource name. Required.\nExample: `projects/my-project-123/groups/my-group`",
130+ "required": true,
131+ "pattern": "^projects/[^/]*/groups/[^/]*$",
132+ "location": "path",
133+ "type": "string"
134+ }
135+ },
136+ "path": "v1beta1/{+groupName}",
137+ "scopes": [
138+ "https://www.googleapis.com/auth/cloud-platform"
139+ ]
83140 }
84141 }
85142 },
@@ -94,20 +151,21 @@
94151 "projectName"
95152 ],
96153 "description": "Lists the specified groups.",
97− "httpMethod": "GET",
98154 "flatPath": "v1beta1/projects/{projectsId}/groupStats",
155+ "httpMethod": "GET",
99156 "parameters": {
100157 "alignment": {
158+ "description": "The alignment of the timed counts to be returned.\nDefault is `ALIGNMENT_EQUAL_AT_END`.",
101159 "enum": [
102160 "ERROR_COUNT_ALIGNMENT_UNSPECIFIED",
103161 "ALIGNMENT_EQUAL_ROUNDED",
104162 "ALIGNMENT_EQUAL_AT_END"
105163 ],
106− "description": "The alignment of the timed counts to be returned.\nDefault is `ALIGNMENT_EQUAL_AT_END`.",
107− "type": "string",
108− "location": "query"
164+ "location": "query",
165+ "type": "string"
109166 },
110167 "timeRange.period": {
168+ "description": "Restricts the query to the specified time range.",
111169 "enum": [
112170 "PERIOD_UNSPECIFIED",
113171 "PERIOD_1_HOUR",
@@ -116,18 +174,18 @@
116174 "PERIOD_1_WEEK",
117175 "PERIOD_30_DAYS"
118176 ],
119− "description": "Restricts the query to the specified time range.",
120− "type": "string",
121− "location": "query"
177+ "location": "query",
178+ "type": "string"
122179 },
123180 "projectName": {
124− "required": true,
125181 "description": "The resource name of the Google Cloud Platform project. Written as\n`projects/` plus the\n[Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840).\nRequired. Example: `projects/my-project-123`.",
182+ "required": true,
126183 "pattern": "^projects/[^/]*$",
127− "type": "string",
128− "location": "path"
184+ "location": "path",
185+ "type": "string"
129186 },
130187 "order": {
188+ "description": "The sort order in which the results are returned.\nDefault is `COUNT_DESC`.",
131189 "enum": [
132190 "GROUP_ORDER_UNSPECIFIED",
133191 "COUNT_DESC",
@@ -135,111 +193,53 @@
135193 "CREATED_DESC",
136194 "AFFECTED_USERS_DESC"
137195 ],
138− "description": "The sort order in which the results are returned.\nDefault is `COUNT_DESC`.",
139− "type": "string",
140− "location": "query"
141− },
142− "serviceFilter.service": {
143− "description": "The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
144− "type": "string",
145− "location": "query"
196+ "location": "query",
197+ "type": "string"
146198 },
147199 "groupId": {
148200 "description": "List all `ErrorGroupStats` with these IDs.\nIf not specified, all error group stats with a non-zero error count\nfor the given selection criteria are returned.",
149201 "repeated": true,
150− "type": "string",
151− "location": "query"
202+ "location": "query",
203+ "type": "string"
204+ },
205+ "serviceFilter.service": {
206+ "description": "The exact value to match against\n[`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).",
207+ "location": "query",
208+ "type": "string"
152209 },
153210 "alignmentTime": {
154211 "description": "Time where the timed counts shall be aligned if rounded alignment\nis chosen. Default is 00:00 UTC.",
155− "type": "string",
156212 "location": "query",
213+ "type": "string",
157214 "format": "google-datetime"
158215 },
216+ "serviceFilter.version": {
217+ "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
218+ "location": "query",
219+ "type": "string"
220+ },
159221 "pageSize": {
160222 "description": "The maximum number of results to return per response.\nDefault is 20.",
161− "type": "integer",
162223 "location": "query",
224+ "type": "integer",
163225 "format": "int32"
164226 },
165− "serviceFilter.version": {
166− "description": "The exact value to match against\n[`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).",
167− "type": "string",
168− "location": "query"
169− },
170227 "timedCountDuration": {
171228 "description": "The preferred duration for a single returned `TimedCount`.\nIf not set, no timed counts are returned.",
172− "type": "string",
173229 "location": "query",
230+ "type": "string",
174231 "format": "google-duration"
175232 },
176233 "pageToken": {
177234 "description": "A `next_page_token` provided by a previous response. To view additional\nresults, pass this token along with the identical query parameters as the\nfirst request.",
178− "type": "string",
179− "location": "query"
180− }
181− },
182− "scopes": [
183− "https://www.googleapis.com/auth/cloud-platform"
184− ],
185− "path": "v1beta1/{+projectName}/groupStats"
186− }
187− }
188− },
189− "groups": {
190− "methods": {
191− "update": {
192− "id": "clouderrorreporting.projects.groups.update",
193− "response": {
194− "$ref": "ErrorGroup"
195− },
196− "parameterOrder": [
197− "name"
198− ],
199− "description": "Replace the data for the specified group.\nFails if the group does not exist.",
200− "request": {
201− "$ref": "ErrorGroup"
202− },
203− "httpMethod": "PUT",
204− "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
205− "parameters": {
206− "name": {
207− "required": true,
208− "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
209− "pattern": "^projects/[^/]*/groups/[^/]*$",
210− "type": "string",
211− "location": "path"
212− }
213− },
214− "scopes": [
215− "https://www.googleapis.com/auth/cloud-platform"
216− ],
217− "path": "v1beta1/{+name}"
218− },
219− "get": {
220− "id": "clouderrorreporting.projects.groups.get",
221− "response": {
222− "$ref": "ErrorGroup"
223− },
224− "parameterOrder": [
225− "groupName"
226− ],
227− "description": "Get the specified group.",
228− "httpMethod": "GET",
229− "flatPath": "v1beta1/projects/{projectsId}/groups/{groupsId}",
230− "parameters": {
231− "groupName": {
232− "required": true,
233− "description": "Group resource name. Required.\nExample: `projects/my-project-123/groups/my-group`",
234− "pattern": "^projects/[^/]*/groups/[^/]*$",
235− "type": "string",
236− "location": "path"
235+ "location": "query",
236+ "type": "string"
237237 }
238238 },
239+ "path": "v1beta1/{+projectName}/groupStats",
239240 "scopes": [
240241 "https://www.googleapis.com/auth/cloud-platform"
241− ],
242− "path": "v1beta1/{+groupName}"
242+ ]
243243 }
244244 }
245245 }
@@ -254,21 +254,21 @@
254254 "projectName"
255255 ],
256256 "description": "Deletes all error events of a given project.",
257− "httpMethod": "DELETE",
258257 "flatPath": "v1beta1/projects/{projectsId}/events",
258+ "httpMethod": "DELETE",
259259 "parameters": {
260260 "projectName": {
261− "required": true,
262261 "description": "The resource name of the Google Cloud Platform project. Required.\nExample: `projects/my-project`.",
262+ "required": true,
263263 "pattern": "^projects/[^/]*$",
264− "type": "string",
265− "location": "path"
264+ "location": "path",
265+ "type": "string"
266266 }
267267 },
268+ "path": "v1beta1/{+projectName}/events",
268269 "scopes": [
269270 "https://www.googleapis.com/auth/cloud-platform"
270− ],
271− "path": "v1beta1/{+projectName}/events"
271+ ]
272272 }
273273 }
274274 }
@@ -276,26 +276,27 @@
276276 "schemas": {
277277 "SourceLocation": {
278278 "description": "Indicates a location in the source code of the service for which\nerrors are reported.\nThis data should be provided by the application when reporting an error,\nunless the error report has been generated automatically from Google App\nEngine logs. All fields are optional.",
279+ "type": "object",
279280 "properties": {
280− "functionName": {
281− "description": "Human-readable name of a function or method.\nThe value can include optional context like the class or package name.\nFor example, `my.package.MyClass.method` in case of Java.",
282− "type": "string"
283− },
284281 "filePath": {
285282 "description": "The source code filename, which can include a truncated relative path, or\na full path from a production machine.",
286283 "type": "string"
287284 },
285+ "functionName": {
286+ "description": "Human-readable name of a function or method.\nThe value can include optional context like the class or package name.\nFor example, `my.package.MyClass.method` in case of Java.",
287+ "type": "string"
288+ },
288289 "lineNumber": {
289290 "description": "1-based. 0 indicates that the line number is unknown.",
290291 "type": "integer",
291292 "format": "int32"
292293 }
293294 },
294− "type": "object",
295295 "id": "SourceLocation"
296296 },
297297 "ErrorGroupStats": {
298298 "description": "Data extracted for a specific group based on certain selection criteria,\nsuch as a given time period and/or service filter.",
299+ "type": "object",
299300 "properties": {
300301 "representative": {
301302 "description": "An arbitrary event that is chosen as representative for the whole group.\nThe representative event is intended to be used as a quick preview for\nthe whole group. Events in the group are usually sufficiently similar\nto each other such that showing an arbitrary representative provides\ninsight into the characteristics of the group as a whole.",
@@ -345,93 +346,93 @@
345346 }
346347 }
347348 },
348− "type": "object",
349349 "id": "ErrorGroupStats"
350350 },
351351 "ErrorContext": {
352352 "description": "A description of the context in which an error occurred.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.\nAll fields are optional.",
353+ "type": "object",
353354 "properties": {
354− "reportLocation": {
355− "description": "The location in the source code where the decision was made to\nreport the error, usually the place where it was logged.\nFor a logged exception this would be the source line where the\nexception is logged, usually close to the place where it was\ncaught. This value is in contrast to `Exception.cause_location`,\nwhich describes the source line where the exception was thrown.",
356− "$ref": "SourceLocation"
357− },
358355 "httpRequest": {
359356 "description": "The HTTP request which was processed when the error was triggered.",
360357 "$ref": "HttpRequestContext"
361358 },
359+ "reportLocation": {
360+ "description": "The location in the source code where the decision was made to\nreport the error, usually the place where it was logged.\nFor a logged exception this would be the source line where the\nexception is logged, usually close to the place where it was\ncaught. This value is in contrast to `Exception.cause_location`,\nwhich describes the source line where the exception was thrown.",
361+ "$ref": "SourceLocation"
362+ },
362363 "user": {
363364 "description": "The user who caused or was affected by the crash.\nThis can be a user ID, an email address, or an arbitrary token that\nuniquely identifies the user.\nWhen sending an error report, leave this field empty if the user was not\nlogged in. In this case the\nError Reporting system will use other data, such as remote IP address, to\ndistinguish affected users. See `affected_users_count` in\n`ErrorGroupStats`.",
364365 "type": "string"
365366 }
366367 },
367− "type": "object",
368368 "id": "ErrorContext"
369369 },
370370 "ServiceContext": {
371371 "description": "Describes a running service that sends errors.\nIts version changes over time and multiple versions can run in parallel.",
372+ "type": "object",
372373 "properties": {
373374 "service": {
374− "description": "An identifier of the service, such as the name of the executable, job, or\nGoogle App Engine module name. This field is expected to have a low number\nof values that are relatively stable over time, as opposed to\n`version`, which can be changed whenever new code is deployed.\n\nContains the module name for error reports extracted from Google\nApp Engine logs or `default` if the App Engine default module is used. If\nempty, the value is set to `default`.",
375+ "description": "An identifier of the service, such as the name of the executable, job, or\nGoogle App Engine module name. This field is expected to have a low number\nof values that are relatively stable over time, as opposed to\n`version`, which can be changed whenever new code is deployed.\n\nContains the module name for error reports extracted from Google\nApp Engine logs or `default` if the App Engine default module is used.",
375376 "type": "string"
376377 },
377378 "version": {
378− "description": "Represents the source code version that the developer provided,\nwhich could represent a version label or a Git SHA-1 hash, for example.\nIf the developer did not provide a version, the value is set to\n`default`. For App Engine, the version is set to the version of the\napp.",
379+ "description": "Represents the source code version that the developer provided,\nwhich could represent a version label or a Git SHA-1 hash, for example.",
379380 "type": "string"
380381 }
381382 },
382− "type": "object",
383383 "id": "ServiceContext"
384384 },
385385 "ErrorGroup": {
386386 "description": "Description of a group of similar error events.",
387+ "type": "object",
387388 "properties": {
388389 "groupId": {
389390 "description": "Group IDs are unique for a given project. If the same kind of error\noccurs in different service contexts, it will receive the same group ID.",
390391 "type": "string"
391392 },
393+ "name": {
394+ "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
395+ "type": "string"
396+ },
392397 "trackingIssues": {
393398 "description": "Associated tracking issues.",
394399 "type": "array",
395400 "items": {
396401 "$ref": "TrackingIssue"
397402 }
398− },
399− "name": {
400− "description": "Group resource name.\nExample: `projects/my-project-123/groups/my-groupid`",
401− "type": "string"
402403 }
403404 },
404− "type": "object",
405405 "id": "ErrorGroup"
406406 },
407407 "TrackingIssue": {
408408 "description": "Information related to tracking the progress on resolving the error.",
409+ "type": "object",
409410 "properties": {
410411 "url": {
411412 "description": "A URL pointing to a related entry in an issue tracking system.\nExample: https://github.com/user/project/issues/4",
412413 "type": "string"
413414 }
414415 },
415− "type": "object",
416416 "id": "TrackingIssue"
417417 },
418418 "DeleteEventsResponse": {
419419 "description": "Response message for deleting error events.",
420− "properties": {},
421420 "type": "object",
421+ "properties": {},
422422 "id": "DeleteEventsResponse"
423423 },
424424 "ErrorEvent": {
425425 "description": "An error event which is returned by the Error Reporting system.",
426+ "type": "object",
426427 "properties": {
427− "context": {
428− "description": "Data about the context in which the error occurred.",
429− "$ref": "ErrorContext"
430− },
431428 "serviceContext": {
432429 "description": "The service_context for which this error was reported.",
433430 "$ref": "ServiceContext"
434431 },
432+ "context": {
433+ "description": "Data about the context in which the error occurred.",
434+ "$ref": "ErrorContext"
435+ },
435436 "eventTime": {
436437 "description": "Time when the event occurred as provided in the error report.\nIf the report did not contain a timestamp, the time the error was received\nby the Error Reporting system is used.",
437438 "type": "string",
@@ -442,11 +443,11 @@
442443 "type": "string"
443444 }
444445 },
445− "type": "object",
446446 "id": "ErrorEvent"
447447 },
448448 "ListEventsResponse": {
449449 "description": "Contains a set of requested error events.",
450+ "type": "object",
450451 "properties": {
451452 "nextPageToken": {
452453 "description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
@@ -460,19 +461,19 @@
460461 }
461462 }
462463 },
463− "type": "object",
464464 "id": "ListEventsResponse"
465465 },
466466 "TimedCount": {
467467 "description": "The number of errors in a given time period.\nAll numbers are approximate since the error events are sampled\nbefore counting them.",
468+ "type": "object",
468469 "properties": {
469− "endTime": {
470− "description": "End of the time period to which `count` refers (excluded).",
470+ "startTime": {
471+ "description": "Start of the time period to which `count` refers (included).",
471472 "type": "string",
472473 "format": "google-datetime"
473474 },
474− "startTime": {
475− "description": "Start of the time period to which `count` refers (included).",
475+ "endTime": {
476+ "description": "End of the time period to which `count` refers (excluded).",
476477 "type": "string",
477478 "format": "google-datetime"
478479 },
@@ -482,11 +483,11 @@
482483 "format": "int64"
483484 }
484485 },
485− "type": "object",
486486 "id": "TimedCount"
487487 },
488488 "HttpRequestContext": {
489489 "description": "HTTP request data that is related to a reported error.\nThis data should be provided by the application when reporting an error,\nunless the\nerror report has been generated automatically from Google App Engine logs.\nAll fields are optional.",
490+ "type": "object",
490491 "properties": {
491492 "method": {
492493 "description": "The type of HTTP request, such as `GET`, `POST`, etc.",
@@ -505,20 +506,20 @@
505506 "description": "The URL of the request.",
506507 "type": "string"
507508 },
508− "userAgent": {
509− "description": "The user agent information that is provided with the request.",
510− "type": "string"
511− },
512509 "referrer": {
513510 "description": "The referrer information that is provided with the request.",
514511 "type": "string"
512+ },
513+ "userAgent": {
514+ "description": "The user agent information that is provided with the request.",
515+ "type": "string"
515516 }
516517 },
517− "type": "object",
518518 "id": "HttpRequestContext"
519519 },
520520 "ListGroupStatsResponse": {
521521 "description": "Contains a set of requested error group stats.",
522+ "type": "object",
522523 "properties": {
523524 "nextPageToken": {
524525 "description": "If non-empty, more results are available.\nPass this token, along with the same query parameters as the first\nrequest, to view the next page of results.",
@@ -532,11 +533,10 @@
532533 }
533534 }
534535 },
535− "type": "object",
536536 "id": "ListGroupStatsResponse"
537537 }
538538 },
539− "revision": "20160422",
539+ "revision": "20160502",
540540 "basePath": "",
541541 "icons": {
542542 "x32": "http://www.google.com/images/icons/product/search-32.gif",
@@ -545,38 +545,40 @@
545545 "version_module": "True",
546546 "canonicalName": "Clouderrorreporting",
547547 "discoveryVersion": "v1",
548+ "baseUrl": "https://clouderrorreporting.googleapis.com/",
549+ "name": "clouderrorreporting",
548550 "parameters": {
549551 "access_token": {
550552 "description": "OAuth access token.",
551− "location": "query",
552− "type": "string"
553+ "type": "string",
554+ "location": "query"
553555 },
554556 "prettyPrint": {
555− "default": "true",
556557 "description": "Returns response with indentations and line breaks.",
557− "location": "query",
558− "type": "boolean"
558+ "default": "true",
559+ "type": "boolean",
560+ "location": "query"
559561 },
560562 "key": {
561563 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
562− "location": "query",
563− "type": "string"
564+ "type": "string",
565+ "location": "query"
564566 },
565567 "quotaUser": {
566568 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
567− "location": "query",
568− "type": "string"
569+ "type": "string",
570+ "location": "query"
569571 },
570572 "pp": {
571− "default": "true",
572573 "description": "Pretty-print response.",
573− "location": "query",
574− "type": "boolean"
574+ "default": "true",
575+ "type": "boolean",
576+ "location": "query"
575577 },
576578 "fields": {
577579 "description": "Selector specifying which fields to include in a partial response.",
578− "location": "query",
579− "type": "string"
580+ "type": "string",
581+ "location": "query"
580582 },
581583 "alt": {
582584 "description": "Data format for response.",
@@ -595,48 +597,46 @@
595597 "type": "string"
596598 },
597599 "$.xgafv": {
600+ "description": "V1 error format.",
598601 "enum": [
599602 "1",
600603 "2"
601604 ],
602− "description": "V1 error format.",
603605 "enumDescriptions": [
604606 "v1 error format",
605607 "v2 error format"
606608 ],
607− "location": "query",
608− "type": "string"
609+ "type": "string",
610+ "location": "query"
609611 },
610612 "callback": {
611613 "description": "JSONP",
612− "location": "query",
613− "type": "string"
614− },
615− "uploadType": {
616− "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
617− "location": "query",
618− "type": "string"
614+ "type": "string",
615+ "location": "query"
619616 },
620617 "oauth_token": {
621618 "description": "OAuth 2.0 token for the current user.",
622− "location": "query",
623− "type": "string"
619+ "type": "string",
620+ "location": "query"
624621 },
625− "upload_protocol": {
626− "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
627− "location": "query",
628− "type": "string"
622+ "uploadType": {
623+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
624+ "type": "string",
625+ "location": "query"
629626 },
630627 "bearer_token": {
631628 "description": "OAuth bearer token.",
632− "location": "query",
633− "type": "string"
629+ "type": "string",
630+ "location": "query"
631+ },
632+ "upload_protocol": {
633+ "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
634+ "type": "string",
635+ "location": "query"
634636 }
635637 },
636− "name": "clouderrorreporting",
637− "baseUrl": "https://clouderrorreporting.googleapis.com/",
638− "ownerDomain": "google.com",
639638 "documentationLink": "https://cloud.google.com/error-reporting/",
639+ "ownerDomain": "google.com",
640640 "batchPath": "batch",
641641 "servicePath": "",
642642 "ownerName": "Google",
gen/model/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json+59−2
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/7EbyY-VAY04PT8kJyTAvwd_kJKM\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/GkqtFEkXnBYAQROql86wY5QBIFo\"",
44 "discoveryVersion": "v1",
55 "id": "cloudresourcemanager:v1beta1",
66 "name": "cloudresourcemanager",
77 "canonicalName": "Cloud Resource Manager",
88 "version": "v1beta1",
9− "revision": "20160316",
9+ "revision": "20160518",
1010 "title": "Google Cloud Resource Manager API",
1111 "description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating project metadata.",
1212 "ownerDomain": "google.com",
@@ -202,6 +202,36 @@
202202 "type": "object",
203203 "description": "The request sent to the UndeleteProject method."
204204 },
205+ "GetAncestryRequest": {
206+ "id": "GetAncestryRequest",
207+ "type": "object",
208+ "description": "The request sent to the GetAncestry method."
209+ },
210+ "GetAncestryResponse": {
211+ "id": "GetAncestryResponse",
212+ "type": "object",
213+ "description": "Response from the GetAncestry method.",
214+ "properties": {
215+ "ancestor": {
216+ "type": "array",
217+ "description": "Ancestors are ordered from bottom to top of the resource hierarchy. The first ancestor is the project itself, followed by the project's parent, etc.",
218+ "items": {
219+ "$ref": "Ancestor"
220+ }
221+ }
222+ }
223+ },
224+ "Ancestor": {
225+ "id": "Ancestor",
226+ "type": "object",
227+ "description": "Identifying information for a single ancestor of a project.",
228+ "properties": {
229+ "resourceId": {
230+ "$ref": "ResourceId",
231+ "description": "Resource id of the ancestor."
232+ }
233+ }
234+ },
205235 "GetIamPolicyRequest": {
206236 "id": "GetIamPolicyRequest",
207237 "type": "object",
@@ -489,6 +519,33 @@
489519 "https://www.googleapis.com/auth/cloud-platform"
490520 ]
491521 },
522+ "getAncestry": {
523+ "id": "cloudresourcemanager.projects.getAncestry",
524+ "path": "v1beta1/projects/{projectId}:getAncestry",
525+ "httpMethod": "POST",
526+ "description": "Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project.",
527+ "parameters": {
528+ "projectId": {
529+ "type": "string",
530+ "description": "The Project ID (for example, `my-project-123`). Required.",
531+ "required": true,
532+ "location": "path"
533+ }
534+ },
535+ "parameterOrder": [
536+ "projectId"
537+ ],
538+ "request": {
539+ "$ref": "GetAncestryRequest"
540+ },
541+ "response": {
542+ "$ref": "GetAncestryResponse"
543+ },
544+ "scopes": [
545+ "https://www.googleapis.com/auth/cloud-platform",
546+ "https://www.googleapis.com/auth/cloud-platform.read-only"
547+ ]
548+ },
492549 "getIamPolicy": {
493550 "id": "cloudresourcemanager.projects.getIamPolicy",
494551 "path": "v1beta1/projects/{resource}:getIamPolicy",
gen/model/cloudtrace/v1/cloudtrace-api.json+18−8
@@ -1,13 +1,14 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"bRFOOrZKfO9LweMbPqu0kcu6De8/hv7wO9t243cZnlaNc4LDNLDlWOU\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/avS4leRd3oaImhwLi14P2pt74p0\"",
44 "discoveryVersion": "v1",
55 "id": "cloudtrace:v1",
66 "name": "cloudtrace",
7+ "canonicalName": "Cloud Trace",
78 "version": "v1",
8− "revision": "20151207",
9+ "revision": "20160518",
910 "title": "Google Cloud Trace API",
10− "description": "The Cloud Trace API allows you to send traces to and retrieve traces from Google Cloud Trace.",
11+ "description": "Send and retrieve trace data from Google Cloud Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Cloud Trace for display, reporting, and analysis.",
1112 "ownerDomain": "google.com",
1213 "ownerName": "Google",
1314 "icons": {
@@ -106,6 +107,12 @@
106107 "scopes": {
107108 "https://www.googleapis.com/auth/cloud-platform": {
108109 "description": "View and manage your data across Google Cloud Platform services"
110+ },
111+ "https://www.googleapis.com/auth/trace.append": {
112+ "description": "Write Trace data for a project or application"
113+ },
114+ "https://www.googleapis.com/auth/trace.readonly": {
115+ "description": "Read Trace data for a project or application"
109116 }
110117 }
111118 }
@@ -172,7 +179,7 @@
172179 },
173180 "name": {
174181 "type": "string",
175− "description": "Name of the trace. The trace name is sanitized and displayed in the Cloud Trace tool in the Google Developers Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans."
182+ "description": "Name of the trace. The trace name is sanitized and displayed in the Stackdriver Trace tool in the {% dynamic print site_values.console_name %}. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans."
176183 },
177184 "startTime": {
178185 "type": "string",
@@ -223,7 +230,7 @@
223230 "id": "cloudtrace.projects.patchTraces",
224231 "path": "v1/projects/{projectId}/traces",
225232 "httpMethod": "PATCH",
226− "description": "Sends new traces to Cloud Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.",
233+ "description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.",
227234 "parameters": {
228235 "projectId": {
229236 "type": "string",
@@ -242,7 +249,8 @@
242249 "$ref": "Empty"
243250 },
244251 "scopes": [
245− "https://www.googleapis.com/auth/cloud-platform"
252+ "https://www.googleapis.com/auth/cloud-platform",
253+ "https://www.googleapis.com/auth/trace.append"
246254 ]
247255 }
248256 },
@@ -311,7 +319,8 @@
311319 "$ref": "ListTracesResponse"
312320 },
313321 "scopes": [
314− "https://www.googleapis.com/auth/cloud-platform"
322+ "https://www.googleapis.com/auth/cloud-platform",
323+ "https://www.googleapis.com/auth/trace.readonly"
315324 ]
316325 },
317326 "get": {
@@ -341,7 +350,8 @@
341350 "$ref": "Trace"
342351 },
343352 "scopes": [
344− "https://www.googleapis.com/auth/cloud-platform"
353+ "https://www.googleapis.com/auth/cloud-platform",
354+ "https://www.googleapis.com/auth/trace.readonly"
345355 ]
346356 }
347357 }
gen/model/compute/v0.alpha/compute-api.jsonnew file+20838

This diff is too big to show here.

gen/model/compute/v0.beta/compute-api.json+99−15

This diff is too big to show here.

gen/model/compute/v1/compute-api.json+5−5

This diff is too big to show here.

gen/model/consumersurveys/v2/consumersurveys-api.json+32−4

This diff is too big to show here.

gen/model/dataproc/v1/dataproc-api.json+5−103

This diff is too big to show here.

gen/model/dataproc/v1alpha1/dataproc-api.json+3−3

This diff is too big to show here.

gen/model/dataproc/v1beta1/dataproc-api.json+5−242

This diff is too big to show here.

gen/model/datastore/v1beta3/datastore-api.json+5−5

This diff is too big to show here.

gen/model/dfareporting/v2.2/dfareporting-api.json+19−19

This diff is too big to show here.

gen/model/dfareporting/v2.3/dfareporting-api.json+19−19

This diff is too big to show here.

gen/model/dfareporting/v2.4/dfareporting-api.json+21−21

This diff is too big to show here.

gen/model/dfareporting/v2.5/dfareporting-api.jsonnew file+18248

This diff is too big to show here.

gen/model/dfareporting/v2.5beta1/dfareporting-api.json+23−23

This diff is too big to show here.

gen/model/discovery/v1/discovery-api.json+2−2

This diff is too big to show here.

gen/model/doubleclickbidmanager/v1/doubleclickbidmanager-api.json+70−2

This diff is too big to show here.

gen/model/firebaserules/v1/firebaserules-api.jsonnew file+627

This diff is too big to show here.

gen/model/games/v1/games-api.json+330−2

This diff is too big to show here.

gen/model/genomics/v1/genomics-api.json+10−2

This diff is too big to show here.

gen/model/genomics/v1alpha2/genomics-api.json+3−3

This diff is too big to show here.

gen/model/genomics/v1beta2/genomics-api.json+11−3

This diff is too big to show here.

gen/model/identitytoolkit/v3/identitytoolkit-api.json+7−2

This diff is too big to show here.

gen/model/playmoviespartner/v1/playmoviespartner-api.json+459−31

This diff is too big to show here.

gen/model/prediction/v1.6/prediction-api.json+13−2

This diff is too big to show here.

gen/model/proximitybeacon/v1beta1/proximitybeacon-api.json+283−53

This diff is too big to show here.

gen/model/runtimeconfig/v1beta1/runtimeconfig-api.jsonnew file+876

This diff is too big to show here.

gen/model/safebrowsing/v4/safebrowsing-api.json+25−24

This diff is too big to show here.

gen/model/serviceregistry/v0.alpha/serviceregistry-api.json+8−3

This diff is too big to show here.

gen/model/sheets/v4/sheets-api.jsonnew file+3696

This diff is too big to show here.

gen/model/sqladmin/v1beta4/sqladmin-api.json+14−6

This diff is too big to show here.

gen/model/storage/v1/storage-api.json+3−3

This diff is too big to show here.

gen/model/toolresults/v1beta3/toolresults-api.json+6−2

This diff is too big to show here.

gen/model/vision/v1/vision-api.json+111−111

This diff is too big to show here.

gen/model/youtubeanalytics/v1/youtubeanalytics-api.json+3−3

This diff is too big to show here.

gen/model/youtubeanalytics/v1beta1/youtubeanalytics-api.json+3−3

This diff is too big to show here.

gen/model/youtubereporting/v1/youtubereporting-api.json+16−4

This diff is too big to show here.