Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2274)

Side by Side Diff: Src/GoogleApis.Tools.CodeGen.Tests/BaseCodeGeneratorTest.cs

Issue 12020043: Issue 325 - Remove discovery and codegen (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Patch Set: Sir miceli comment Created 10 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 Copyright 2010 Google Inc
3
4 Licensed under the Apache License, Version 2.0 (the ""License"");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an ""AS IS"" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 using System;
18 using System.CodeDom;
19 using System.CodeDom.Compiler;
20 using System.Collections.Generic;
21 using System.IO;
22 using System.Text;
23
24 using log4net;
25 using Newtonsoft.Json;
26 using NUnit.Framework;
27
28 using Google.Apis.Discovery;
29 using Google.Apis.Json;
30 using JsonReader = Google.Apis.Json.JsonReader;
31
32 namespace Google.Apis.Tools.CodeGen.Tests
33 {
34 /// <summary>
35 /// Is a base class for testing of code generators
36 /// </summary>
37 public abstract class BaseCodeGeneratorTest
38 {
39 #region TestMethodNames enum
40
41 public enum TestMethodNames
42 {
43 getTest,
44 getTest2,
45 postTest,
46 noParameterTest,
47 oneOptionalParameterTest,
48 oneRequiredParameterTest
49 }
50
51 #endregion
52
53 public const string ServiceClassName = "Google.Apis.Tools.CodeGen.Tests. TestServiceClass";
54 public const string ResourceClassName = "Google.Apis.Tools.CodeGen.Tests .TestResourceClass";
55 public const string ResourceName = "Test";
56
57 public static readonly string[] ResourceGetTestParameterNames = new[] { "req_a", "req_b", "opt_a", "opt_b" };
58
59 public const string ResourceAsJson =
60 @"
61 {
62 ""methods"":{
63 ""getTest"":{
64 ""pathUrl"":""activities/count"",
65 ""rpcName"":""chili.activities.count"",
66 ""httpMethod"":""GET"",
67 ""methodType"":""rest"",
68 ""parameters"":{
69 ""req_b"":{""parameterType"":""query"",""required"":true },
70 ""req_a"":{""parameterType"":""query"",""required"":true },
71 ""opt_b"":{""parameterType"":""query"",""required"":fals e},
72 ""opt_a"":{""parameterType"":""query"",""required"":fals e}
73 }
74 },
75 ""getTest2"":{
76 ""pathUrl"":""activities/count"",
77 ""rpcName"":""chili.activities.count"",
78 ""httpMethod"":""GET"",
79 ""methodType"":""rest"",
80 ""parameters"":{
81 ""req_b"":{""parameterType"":""query"",""required"":true },
82 ""req_a"":{""parameterType"":""query"",""required"":true },
83 ""opt_b"":{""parameterType"":""query"",""required"":fals e},
84 ""opt_a"":{""parameterType"":""query"",""required"":fals e}
85 },
86 ""parameterOrder"":[
87 ""req_b"", ""opt_a""
88 ]
89 },
90 ""postTest"":{
91 ""pathUrl"":""activities/{userId}/{scope}/{postId}"",
92 ""rpcName"":""chili.activities.delete"",
93 ""httpMethod"":""POST"",
94 ""methodType"":""rest"",
95 ""parameters"":{
96 ""req_a"":{""parameterType"":""path"",""pattern"":"".*"" ,""required"":true},
97 ""req_c"":{""parameterType"":""path"",""pattern"":""[^/] +"",""required"":true},
98 ""opt_b"":{""parameterType"":""query"",""required"":fals e},
99 ""req_b"":{""parameterType"":""path"",""pattern"":""@.*" ",""required"":true},
100 ""opt_a"":{""parameterType"":""query"",""required"":fals e}
101 }····················
102 },
103 ""noParameterTest"":{
104 ""pathUrl"":""activities/count"",
105 ""rpcName"":""chili.activities.count"",
106 ""httpMethod"":""GET"",
107 ""methodType"":""rest"",
108 ""parameters"":null
109 },
110 ""oneOptionalParameterTest"":{
111 ""pathUrl"":""activities/count"",
112 ""rpcName"":""chili.activities.count"",
113 ""httpMethod"":""GET"",
114 ""methodType"":""rest"",
115 ""parameters"":{""opt_a"":{""parameterType"":""query"",""req uired"":false}}
116 },
117 ""oneRequiredParameterTest"":{
118 ""pathUrl"":""activities/count"",
119 ""rpcName"":""chili.activities.count"",
120 ""httpMethod"":""GET"",
121 ""methodType"":""rest"",
122 ""parameters"":{
123 ""opt_a"":{
124 ""parameterType"":""query"",
125 ""required"":true,
126 ""enum"": [
127 ""deprecated"",""graduated"",""labs""
128 ],
129 ""enumDescriptions"": [
130 ""APIs that have been deprecated."",""Supported APIs that have graduated from labs."",
131 ""APIs that are experimental""
132 ],
133 }
134 }
135 }
136 }
137 }
138 ";
139
140 private const string AdSenseDiscoveryV1 =
141 @"
142 {
143 ""kind"": ""discovery#restDescription"",
144 ""id"": ""adsense:v1beta1"",
145 ""name"": ""adsense"",
146 ""version"": ""v1beta1"",
147 ""description"": ""AdSense Management API"",
148 ""icons"": {
149 ""x16"": ""http://www.google.com/images/icons/product/search-16.gif"",
150 ""x32"": ""http://www.google.com/images/icons/product/search-32.gif""
151 },
152 ""labels"": [
153 ""labs""
154 ],
155 ""protocol"": ""rest"",
156 ""rootUrl"": ""https://www.googleapis.com"",
157 ""basePath"": ""/adsense/v1beta1/"",
158 ""auth"": {
159 ""oauth2"": {
160 ""scopes"": {
161 ""https://www.googleapis.com/auth/adsense"": {
162 ""description"": ""View your AdSense data""
163 }
164 }
165 }
166 },
167 ""schemas"": {
168 ""AdClient"": {
169 ""id"": ""AdClient"",
170 ""type"": ""object"",
171 ""properties"": {
172 ""id"": {
173 ""type"": ""string"",
174 ""description"": ""Unique identifier of this ad client.""
175 },
176 ""kind"": {
177 ""type"": ""string"",
178 ""description"": ""Kind of resource this is, in this case adsense#adClient. "",
179 ""default"": ""adsense#adClient""
180 },
181 ""supports_reporting"": {
182 ""type"": ""boolean"",
183 ""description"": ""Whether this ad client supports being reported on.""
184 }
185 }
186 },
187 ""AdClients"": {
188 ""id"": ""AdClients"",
189 ""type"": ""object"",
190 ""properties"": {
191 ""etag"": {
192 ""type"": ""string"",
193 ""description"": ""ETag of this response for caching purposes.""
194 },
195 ""items"": {
196 ""type"": ""array"",
197 ""description"": ""The ad clients returned in this list response."",
198 ""items"": {
199 ""$ref"": ""AdClient""
200 }
201 },
202 ""kind"": {
203 ""type"": ""string"",
204 ""description"": ""Kind of list this is, in this case adsense#adClients."",
205 ""default"": ""adsense#adClients""
206 }
207 }
208 },
209 ""AdUnit"": {
210 ""id"": ""AdUnit"",
211 ""type"": ""object"",
212 ""properties"": {
213 ""code"": {
214 ""type"": ""string"",
215 ""description"": ""Code of this ad unit, not necessarily unique across ad c lients.""
216 },
217 ""id"": {
218 ""type"": ""string"",
219 ""description"": ""Unique identifier of this ad unit. This should be consid ered an opaque identifier; it is not safe to rely on it being in any particular format.""
220 },
221 ""kind"": {
222 ""type"": ""string"",
223 ""description"": ""Kind of resource this is, in this case adsense#adUnit."" ,
224 ""default"": ""adsense#adUnit""
225 },
226 ""name"": {
227 ""type"": ""string"",
228 ""description"": ""Name of this ad unit.""
229 }
230 }
231 },
232 ""AdUnits"": {
233 ""id"": ""AdUnits"",
234 ""type"": ""object"",
235 ""properties"": {
236 ""etag"": {
237 ""type"": ""string"",
238 ""description"": ""ETag of this response for caching purposes.""
239 },
240 ""items"": {
241 ""type"": ""array"",
242 ""description"": ""The ad units returned in this list response."",
243 ""items"": {
244 ""$ref"": ""AdUnit""
245 }
246 },
247 ""kind"": {
248 ""type"": ""string"",
249 ""description"": ""Kind of list this is, in this case adsense#adUnits."",
250 ""default"": ""adsense#adUnits""
251 }
252 }
253 },
254 ""AdsenseReportsGenerateRequest"": {
255 ""id"": ""AdsenseReportsGenerateRequest"",
256 ""type"": ""object"",
257 ""properties"": {
258 ""currency"": {
259 ""type"": ""string"",
260 ""description"": ""Optional currency to use when reporting on monetary metr ics. Defaults to the account's currency if not set.""
261 },
262 ""date_range"": {
263 ""type"": ""object"",
264 ""description"": ""The date range to report on."",
265 ""properties"": {
266 ""end_date"": {
267 ""type"": ""string"",
268 ""description"": ""End of the date range to report on in \""YYYY-MM-DD\"" format, inclusive.""
269 },
270 ""start_date"": {
271 ""type"": ""string"",
272 ""description"": ""Start of the date range to report on in \""YYYY-MM-DD\ "" format, inclusive.""
273 }
274 }
275 },
276 ""dimensions"": {
277 ""type"": ""array"",
278 ""description"": ""Dimensions to base the report on, specifying the groupin gs to query from the items in the scope. \u003cp\u003eThe dimensions to include in the report. Each dimension is a column on the left of the report, used to gr oup the rows. Dimensions are columns with textual data.\u003c/p\u003e \u003cp\u 003eNormally at least one dimension is specified, however it is possible to gene rate reports without dimensions, for example to find out the totals and averages of a particular query.\u003c/p\u003e \u003cp\u003ePossible dimension names:\u0 03c/p\u003e \u003cp\u003eDATE\u003cbr\u003e WEEK\u003cbr\u003e MONTH\u003cbr\u0 03e AD_CLIENT_ID\u003cbr\u003e PRODUCT_CODE\u003cbr\u003e PRODUCT_NAME\u003cbr\u 003e CUSTOM_CHANNEL_ID\u003cbr\u003e CUSTOM_CHANNEL_CODE\u003cbr\u003e CUSTOM_CH ANNEL_NAME\u003cbr\u003e URL_CHANNEL_ID\u003cbr\u003e URL_CHANNEL_NAME\u003cbr\u 003e AD_FORMAT_CODE\u003cbr\u003e AD_FORMAT_NAME\u003cbr\u003e BUYER_NETWORK_ID\ u003cbr\u003e BUYER_NETWORK_NAME\u003cbr\u003e BID_TYPE_CODE\u003cbr\u003e BID_T YPE_NAME\u003cbr\u003e COUNTRY_CODE\u003cbr\u003e COUNTRY_NAME\u003cbr\u003e TAR GETING_TYPE_CODE\u003cbr\u003e TARGETING_TYPE_NAME\u003c/p\u003e"",
279 ""items"": {
280 ""type"": ""string""
281 }
282 },
283 ""locale"": {
284 ""type"": ""string"",
285 ""description"": ""Optional locale to use for translating report output to a local language. Defaults to \""en_US\"" if not specified.""
286 },
287 ""metrics"": {
288 ""type"": ""array"",
289 ""description"": ""Metrics are the numeric columns to retrieve from the ite ms in the scope. The values for each selected metric are accumulated across the selected dimensions. \u003cp\u003ePossible metric names:\u003c/p\u003e \u003cp \u003ePAGE_VIEWS\u003cbr\u003e PAGE_VIEWS_CTR\u003cbr\u003e PAGE_VIEWS_RPM\u003c br\u003e AD_REQUESTS\u003cbr\u003e AD_REQUESTS_COVERAGE\u003cbr\u003e AD_REQUEST S_CTR\u003cbr\u003e AD_REQUESTS_RPM\u003cbr\u003e MATCHED_AD_REQUESTS\u003cbr\u0 03e MATCHED_AD_REQUESTS_CTR\u003cbr\u003e MATCHED_AD_REQUESTS_RPM\u003cbr\u003e INDIVIDUAL_AD_IMPRESSIONS\u003cbr\u003e INDIVIDUAL_AD_IMPRESSIONS_CTR\u003cbr\u0 03e INDIVIDUAL_AD_IMPRESSIONS_RPM\u003cbr\u003e CLICKS\u003cbr\u003e EARNINGS\u0 03cbr\u003e TOTAL_EARNINGS\u003cbr\u003e COST_PER_CLICK\u003c/p\u003e"",
290 ""items"": {
291 ""type"": ""string""
292 }
293 },
294 ""pagination"": {
295 ""type"": ""object"",
296 ""description"": ""Optionally specifies how to paginate the rows of the rep ort output. If not defined, all rows of the report will be retrieved up to the a vailable limit of 10,000 rows. If more rows are present in the report, multiple calls must be made, setting start_row to 10000 in the second call and so on."",
297 ""properties"": {
298 ""row_count"": {
299 ""type"": ""integer"",
300 ""description"": ""Number of rows to return in the report, starting from start_row, or -1 to retrieve all rows from start_row on. No more than the limit of 10,000 rows will be returned, even if this value is set higher. Defaults to - 1, i.e. retrieving all rows from start_row on.""
301 },
302 ""start_row"": {
303 ""type"": ""integer"",
304 ""description"": ""Row in the report to start retrieving output from, beg inning at 0. Defaults to 0, i.e. starting at the first row in the report.""
305 }
306 }
307 },
308 ""scope"": {
309 ""type"": ""object"",
310 ""description"": ""The scope of the report is the items this report will sc an to collect data to report on. It is either a list of ad client ids, ad unit i ds, custom channel ids or URL channel ids identifying the objects to be part of the scope. Only one list may be specified. The specified list may contain any am ount of items. \u003cp\u003eThe type of the scope dictates what dimensions can be used in the report. If ad unit or channel dimensions are used, the correspond ing type of scope must also be used. For example, if AD_UNIT_CODE is used as a d imension ad_unit_ids must be specified as the scope, with no other list given in the scope.\u003c/p\u003e"",
311 ""properties"": {
312 ""ad_client_ids"": {
313 ""type"": ""array"",
314 ""description"": ""Specifies a scope over a set of ad clients. Each item in this list is an ad client id, uniquely identifying an ad client. \u003cp\u00 3eIf this list is specified, none of the other lists in the scope may be specifi ed.\u003c/p\u003e"",
315 ""items"": {
316 ""type"": ""string""
317 }
318 },
319 ""ad_unit_ids"": {
320 ""type"": ""array"",
321 ""description"": ""Specifies a scope over a set of ad units. Each item in this list is an ad unit id, uniquely identifying an ad unit. \u003cp\u003eIf t his list is specified, none of the other lists in the scope may be specified.\u0 03c/p\u003e \u003cp\u003eThis list must be specified if ad unit dimensions are used, for example AD_UNIT_CODE.\u003c/p\u003e"",
322 ""items"": {
323 ""type"": ""string""
324 }
325 },
326 ""custom_channel_ids"": {
327 ""type"": ""array"",
328 ""description"": ""Specifies a scope over a set of custom channels. Each item in this list is a custom channel id, uniquely identifying a custom channel. \u003cp\u003eIf this list is specified, none of the other lists in the scope m ay be specified.\u003c/p\u003e \u003cp\u003eThis list must be specified if cust om channel dimensions are used, for example CUSTOM_CHANNEL_CODE.\u003c/p\u003e"" ,
329 ""items"": {
330 ""type"": ""string""
331 }
332 },
333 ""url_channel_ids"": {
334 ""type"": ""array"",
335 ""description"": ""Specifies a scope over a set of URL channels. Each ite m in this list is a URL channel id, uniquely identifying a URL channel. \u003cp \u003eIf this list is specified, none of the other lists in the scope may be spe cified.\u003c/p\u003e \u003cp\u003eThis list must be specified if URL channel d imensions are used, for example URL_CHANNEL_PATTERN.\u003c/p\u003e"",
336 ""items"": {
337 ""type"": ""string""
338 }
339 }
340 }
341 },
342 ""sort_columns"": {
343 ""type"": ""array"",
344 ""description"": ""Columns to sort the report result on. The report is sort ed by the first specified column, then by the second (if any), and so on. Sort c olumns can be either dimensions or metrics. The rows of the table can be in any order if no sort columns are specified. \u003cp\u003ePossible column names:\u00 3c/p\u003e \u003cp\u003eDATE\u003cbr\u003e WEEK\u003cbr\u003e MONTH\u003cbr\u00 3e AD_CLIENT_ID\u003cbr\u003e PRODUCT_CODE\u003cbr\u003e PRODUCT_NAME\u003cbr\u0 03e CUSTOM_CHANNEL_ID\u003cbr\u003e CUSTOM_CHANNEL_CODE\u003cbr\u003e CUSTOM_CHA NNEL_NAME\u003cbr\u003e URL_CHANNEL_ID\u003cbr\u003e URL_CHANNEL_NAME\u003cbr\u0 03e AD_FORMAT_CODE\u003cbr\u003e AD_FORMAT_NAME\u003cbr\u003e BUYER_NETWORK_ID\u 003cbr\u003e BUYER_NETWORK_NAME\u003cbr\u003e BID_TYPE_CODE\u003cbr\u003e BID_TY PE_NAME\u003cbr\u003e COUNTRY_CODE\u003cbr\u003e COUNTRY_NAME\u003cbr\u003e TARG ETING_TYPE_CODE\u003cbr\u003e TARGETING_TYPE_NAME\u003cbr\u003e PAGE_VIEWS\u003c br\u003e PAGE_VIEWS_CTR\u003cbr\u003e PAGE_VIEWS_RPM\u003cbr\u003e AD_REQUESTS\u 003cbr\u003e AD_REQUESTS_COVERAGE\u003cbr\u003e AD_REQUESTS_CTR\u003cbr\u003e AD _REQUESTS_RPM\u003cbr\u003e MATCHED_AD_REQUESTS\u003cbr\u003e MATCHED_AD_REQUEST S_CTR\u003cbr\u003e MATCHED_AD_REQUESTS_RPM\u003cbr\u003e INDIVIDUAL_AD_IMPRESSI ONS\u003cbr\u003e INDIVIDUAL_AD_IMPRESSIONS_CTR\u003cbr\u003e INDIVIDUAL_AD_IMPR ESSIONS_RPM\u003cbr\u003e CLICKS\u003cbr\u003e EARNINGS\u003cbr\u003e TOTAL_EARN INGS\u003cbr\u003e COST_PER_CLICK\u003c/p\u003e"",
345 ""items"": {
346 ""type"": ""object"",
347 ""properties"": {
348 ""descending"": {
349 ""type"": ""boolean"",
350 ""description"": ""If true, sort this column in descending order. If not specified the column is sorted in ascending order.""
351 },
352 ""name"": {
353 ""type"": ""string"",
354 ""description"": ""The name of the dimension or metric to sort on.""
355 }
356 }
357 }
358 }
359 }
360 },
361 ""AdsenseReportsGenerateResponse"": {
362 ""id"": ""AdsenseReportsGenerateResponse"",
363 ""type"": ""object"",
364 ""properties"": {
365 ""averages"": {
366 ""type"": ""array"",
367 ""description"": ""The averages of the report. This is the same length as a ny other row in the report; cells corresponding to dimension columns are empty." ",
368 ""items"": {
369 ""type"": ""string""
370 }
371 },
372 ""headers"": {
373 ""type"": ""array"",
374 ""description"": ""The header names of the columns requested in the report. This is a list of names; one for each dimension in the request, followed by one for each metric in the request."",
375 ""items"": {
376 ""type"": ""object"",
377 ""properties"": {
378 ""currency"": {
379 ""type"": ""string""
380 },
381 ""name"": {
382 ""type"": ""string""
383 },
384 ""type"": {
385 ""type"": ""string""
386 }
387 }
388 }
389 },
390 ""rows"": {
391 ""type"": ""array"",
392 ""description"": ""The output rows of the report. Each row is a list of cel ls; one for each dimension in the request, followed by one for each metric in th e request. The dimension cells contain strings, and the metric cells contain num bers."",
393 ""items"": {
394 ""type"": ""array"",
395 ""items"": {
396 ""type"": ""string""
397 }
398 }
399 },
400 ""total_matched_rows"": {
401 ""type"": ""string"",
402 ""description"": ""The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.""
403 },
404 ""totals"": {
405 ""type"": ""array"",
406 ""description"": ""The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty."",
407 ""items"": {
408 ""type"": ""string""
409 }
410 }
411 }
412 },
413 ""CustomChannel"": {
414 ""id"": ""CustomChannel"",
415 ""type"": ""object"",
416 ""properties"": {
417 ""code"": {
418 ""type"": ""string"",
419 ""description"": ""Code of this custom channel, not necessarily unique acro ss ad clients.""
420 },
421 ""id"": {
422 ""type"": ""string"",
423 ""description"": ""Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any part icular format.""
424 },
425 ""kind"": {
426 ""type"": ""string"",
427 ""description"": ""Kind of resource this is, in this case adsense#customCha nnel."",
428 ""default"": ""adsense#customChannel""
429 },
430 ""name"": {
431 ""type"": ""string"",
432 ""description"": ""Name of this custom channel.""
433 }
434 }
435 },
436 ""CustomChannels"": {
437 ""id"": ""CustomChannels"",
438 ""type"": ""object"",
439 ""properties"": {
440 ""etag"": {
441 ""type"": ""string"",
442 ""description"": ""ETag of this response for caching purposes.""
443 },
444 ""items"": {
445 ""type"": ""array"",
446 ""description"": ""The custom channels returned in this list response."",
447 ""items"": {
448 ""$ref"": ""CustomChannel""
449 }
450 },
451 ""kind"": {
452 ""type"": ""string"",
453 ""description"": ""Kind of list this is, in this case adsense#customChannel s."",
454 ""default"": ""adsense#customChannels""
455 }
456 }
457 },
458 ""UrlChannel"": {
459 ""id"": ""UrlChannel"",
460 ""type"": ""object"",
461 ""properties"": {
462 ""id"": {
463 ""type"": ""string"",
464 ""description"": ""Unique identifier of this URL channel. This should be co nsidered an opaque identifier; it is not safe to rely on it being in any particu lar format.""
465 },
466 ""kind"": {
467 ""type"": ""string"",
468 ""description"": ""Kind of resource this is, in this case adsense#urlChanne l."",
469 ""default"": ""adsense#urlChannel""
470 },
471 ""url_pattern"": {
472 ""type"": ""string"",
473 ""description"": ""URL Pattern of this URL channel. Does not include \""htt p://\"" or \""https://\"". Example: www.example.com/home""
474 }
475 }
476 },
477 ""UrlChannels"": {
478 ""id"": ""UrlChannels"",
479 ""type"": ""object"",
480 ""properties"": {
481 ""etag"": {
482 ""type"": ""string"",
483 ""description"": ""ETag of this response for caching purposes.""
484 },
485 ""items"": {
486 ""type"": ""array"",
487 ""description"": ""The URL channels returned in this list response."",
488 ""items"": {
489 ""$ref"": ""UrlChannel""
490 }
491 },
492 ""kind"": {
493 ""type"": ""string"",
494 ""description"": ""Kind of list this is, in this case adsense#urlChannels." ",
495 ""default"": ""adsense#urlChannels""
496 }
497 }
498 }
499 },
500 ""resources"": {
501 ""adclients"": {
502 ""methods"": {
503 ""list"": {
504 ""id"": ""adsense.adclients.list"",
505 ""path"": ""ad_clients"",
506 ""httpMethod"": ""GET"",
507 ""description"": ""List all ad clients in this AdSense account."",
508 ""response"": {
509 ""$ref"": ""AdClients""
510 },
511 ""scopes"": [
512 ""https://www.googleapis.com/auth/adsense""
513 ]
514 }
515 }
516 },
517 ""adunits"": {
518 ""methods"": {
519 ""list"": {
520 ""id"": ""adsense.adunits.list"",
521 ""path"": ""ad_clients/{ad_client_id}/ad_units"",
522 ""httpMethod"": ""GET"",
523 ""description"": ""List all ad units in this AdSense account."",
524 ""parameters"": {
525 ""ad_client_id"": {
526 ""type"": ""string"",
527 ""description"": ""Ad client for which to list ad units."",
528 ""required"": true,
529 ""location"": ""path""
530 }
531 },
532 ""parameterOrder"": [
533 ""ad_client_id""
534 ],
535 ""response"": {
536 ""$ref"": ""AdUnits""
537 },
538 ""scopes"": [
539 ""https://www.googleapis.com/auth/adsense""
540 ]
541 }
542 }
543 },
544 ""customchannels"": {
545 ""methods"": {
546 ""list"": {
547 ""id"": ""adsense.customchannels.list"",
548 ""path"": ""ad_clients/{ad_client_id}/custom_channels"",
549 ""httpMethod"": ""GET"",
550 ""description"": ""List all custom channels in this AdSense account."",
551 ""parameters"": {
552 ""ad_client_id"": {
553 ""type"": ""string"",
554 ""description"": ""Ad client for which to list custom channels."",
555 ""required"": true,
556 ""location"": ""path""
557 }
558 },
559 ""parameterOrder"": [
560 ""ad_client_id""
561 ],
562 ""response"": {
563 ""$ref"": ""CustomChannels""
564 },
565 ""scopes"": [
566 ""https://www.googleapis.com/auth/adsense""
567 ]
568 }
569 }
570 },
571 ""reports"": {
572 ""methods"": {
573 ""generate"": {
574 ""id"": ""adsense.reports.generate"",
575 ""path"": ""reports/generate"",
576 ""httpMethod"": ""POST"",
577 ""description"": ""Generate an AdSense report based on the JSON-formatted r eport request sent in the HTML body. Returns the result as JSON; to retrieve out put in CSV format specify \""alt\u003dcsv\"" as a query parameter."",
578 ""request"": {
579 ""$ref"": ""AdsenseReportsGenerateRequest""
580 },
581 ""response"": {
582 ""$ref"": ""AdsenseReportsGenerateResponse""
583 },
584 ""scopes"": [
585 ""https://www.googleapis.com/auth/adsense""
586 ]
587 }
588 }
589 },
590 ""urlchannels"": {
591 ""methods"": {
592 ""list"": {
593 ""id"": ""adsense.urlchannels.list"",
594 ""path"": ""ad_clients/{ad_client_id}/url_channels"",
595 ""httpMethod"": ""GET"",
596 ""description"": ""List all URL channels in this AdSense account."",
597 ""parameters"": {
598 ""ad_client_id"": {
599 ""type"": ""string"",
600 ""description"": ""Ad client for which to list URL channels."",
601 ""required"": true,
602 ""location"": ""path""
603 }
604 },
605 ""parameterOrder"": [
606 ""ad_client_id""
607 ],
608 ""response"": {
609 ""$ref"": ""UrlChannels""
610 },
611 ""scopes"": [
612 ""https://www.googleapis.com/auth/adsense""
613 ]
614 }
615 }
616 }
617 }
618 }
619 ";
620
621
622 private const string AdSenseV02WithMultiLevelAsJson =
623 @"
624 {
625 ""name"": ""adsense-mgmt"",
626 ""version"": ""v1beta1"",
627 ""description"": ""AdSense Management API"",
628 ""restBasePath"": ""/adsense-mgmt/v1beta1/"",
629 ""rpcPath"": ""/rpc"",
630 ""resources"": {
631 ""mgmt"": {
632 ""resources"": {
633 ""adunits"": {
634 ""methods"": {
635 ""list"": {
636 ""restPath"": ""web_properties/{property_code}/ad_units"",
637 ""rpcMethod"": ""adsense.mgmt.adunits.list"",
638 ""httpMethod"": ""GET"",
639 ""parameters"": {
640 ""property_code"": {
641 ""restParameterType"": ""path"",
642 ""pattern"": ""[^/]+"",
643 ""required"": true
644 }
645 }
646 }
647 }
648 },
649 ""customchannels"": {
650 ""methods"": {
651 ""list"": {
652 ""restPath"": ""web_properties/{property_code}/custom_channels"",
653 ""rpcMethod"": ""adsense.mgmt.customchannels.list"",
654 ""httpMethod"": ""GET"",
655 ""parameters"": {
656 ""property_code"": {
657 ""restParameterType"": ""path"",
658 ""pattern"": ""[^/]+"",
659 ""required"": true
660 }
661 }
662 }
663 }
664 },
665 ""reports"": {
666 ""methods"": {
667 ""generate"": {
668 ""restPath"": ""reports/generate"",
669 ""rpcMethod"": ""adsense.mgmt.reports.generate"",
670 ""httpMethod"": ""GET""
671 }
672 }
673 },
674 ""urlchannels"": {
675 ""methods"": {
676 ""list"": {
677 ""restPath"": ""web_properties/{property_code}/url_channels"",
678 ""rpcMethod"": ""adsense.mgmt.urlchannels.list"",
679 ""httpMethod"": ""GET"",
680 ""parameters"": {
681 ""property_code"": {
682 ""restParameterType"": ""path"",
683 ""pattern"": ""[^/]+"",
684 ""required"": true
685 }
686 }
687 }
688 }
689 },
690 ""webproperties"": {
691 ""methods"": {
692 ""list"": {
693 ""restPath"": ""web_properties"",
694 ""rpcMethod"": ""adsense.mgmt.webproperties.list"",
695 ""httpMethod"": ""GET""
696 }
697 }
698 }
699 }
700 }
701 }
702 }
703 ";
704
705 public const string SimpleResource =
706 @"
707 {
708 ""methods"":{
709 ""simpleMethod"":{
710 ""pathUrl"":""activities/count"",
711 ""rpcName"":""chili.activities.count"",
712 ""httpMethod"":""GET"",
713 ""methodType"":""rest"",
714 ""parameters"":null
715 }
716 }
717 }
718 ";
719
720 #region BuzzServiceAsJson
721
722 public const string BuzzServiceAsJson =
723 @"
724 {
725 ""kind"": ""discovery#describeItem"",
726 ""name"": ""buzz"",
727 ""version"": ""v1"",
728 ""description"": ""Buzz API"",
729 ""restBasePath"": ""/buzz/v1/"",
730 ""rpcPath"": ""/rpc"",
731 ""features"": [
732 ""dataWrapper""
733 ],
734 ""schemas"": {
735 ""Activity"": {
736 ""id"": ""Activity"",
737 ""type"": ""object"",
738 ""properties"": {
739 ""actor"": {
740 ""type"": ""object"",
741 ""properties"": {
742 ""id"": {
743 ""type"": ""any""
744 },
745 ""name"": {
746 ""type"": ""any""
747 },
748 ""profileUrl"": {
749 ""type"": ""any""
750 },
751 ""thumbnailUrl"": {
752 ""type"": ""any""
753 }
754 }
755 },
756 ""address"": {
757 ""type"": ""any""
758 },
759 ""annotation"": {
760 ""type"": ""any""
761 },
762 ""categories"": {
763 ""type"": ""array"",
764 ""items"": {
765 ""type"": ""object"",
766 ""properties"": {
767 ""label"": {
768 ""type"": ""any""
769 },
770 ""schema"": {
771 ""type"": ""any""
772 },
773 ""term"": {
774 ""type"": ""any""
775 }
776 }
777 }
778 },
779 ""crosspostSource"": {
780 ""type"": ""any""
781 },
782 ""detectedlLang"": {
783 ""type"": ""any""
784 },
785 ""geocode"": {
786 ""type"": ""any""
787 },
788 ""id"": {
789 ""type"": ""any""
790 },
791 ""kind"": {
792 ""type"": ""string"",
793 ""default"": ""buzz#activity""
794 },
795 ""links"": {
796 ""type"": ""object"",
797 ""properties"": {
798 ""liked"": {
799 ""type"": ""array"",
800 ""items"": {
801 ""type"": ""object"",
802 ""properties"": {
803 ""count"": {
804 ""type"": ""integer""
805 },
806 ""href"": {
807 ""type"": ""any""
808 },
809 ""type"": {
810 ""type"": ""any""
811 }
812 }
813 }
814 }
815 },
816 ""additionalProperties"": {
817 ""type"": ""array"",
818 ""items"": {
819 ""type"": ""object"",
820 ""properties"": {
821 ""count"": {
822 ""type"": ""any""
823 },
824 ""height"": {
825 ""type"": ""any""
826 },
827 ""href"": {
828 ""type"": ""any""
829 },
830 ""title"": {
831 ""type"": ""any""
832 },
833 ""type"": {
834 ""type"": ""any""
835 },
836 ""updated"": {
837 ""type"": ""string""
838 },
839 ""width"": {
840 ""type"": ""any""
841 }
842 }
843 }
844 }
845 },
846 ""object"": {
847 ""type"": ""object"",
848 ""properties"": {
849 ""actor"": {
850 ""type"": ""object"",
851 ""properties"": {
852 ""id"": {
853 ""type"": ""any""
854 },
855 ""name"": {
856 ""type"": ""any""
857 },
858 ""profileUrl"": {
859 ""type"": ""any""
860 },
861 ""thumbnailUrl"": {
862 ""type"": ""any""
863 }
864 }
865 },
866 ""attachments"": {
867 ""type"": ""array"",
868 ""items"": {
869 ""type"": ""object"",
870 ""properties"": {
871 ""content"": {
872 ""type"": ""any""
873 },
874 ""id"": {
875 ""type"": ""any""
876 },
877 ""links"": {
878 ""type"": ""object"",
879 ""additionalProperties"": {
880 ""type"": ""array"",
881 ""items"": {
882 ""type"": ""object"",
883 ""properties"": {
884 ""count"": {
885 ""type"": ""any""
886 },
887 ""height"": {
888 ""type"": ""any""
889 },
890 ""href"": {
891 ""type"": ""any""
892 },
893 ""title"": {
894 ""type"": ""any""
895 },
896 ""type"": {
897 ""type"": ""any""
898 },
899 ""updated"": {
900 ""type"": ""string""
901 },
902 ""width"": {
903 ""type"": ""any""
904 }
905 }
906 }
907 }
908 },
909 ""title"": {
910 ""type"": ""any""
911 },
912 ""type"": {
913 ""type"": ""string""
914 }
915 }
916 }
917 },
918 ""comments"": {
919 ""type"": ""array"",
920 ""items"": {
921 ""$ref"": ""Comment""
922 }
923 },
924 ""content"": {
925 ""type"": ""any""
926 },
927 ""detectedlLang"": {
928 ""type"": ""any""
929 },
930 ""id"": {
931 ""type"": ""any""
932 },
933 ""liked"": {
934 ""type"": ""array"",
935 ""items"": {
936 ""$ref"": ""Person""
937 }
938 },
939 ""links"": {
940 ""type"": ""object"",
941 ""additionalProperties"": {
942 ""type"": ""array"",
943 ""items"": {
944 ""type"": ""object"",
945 ""properties"": {
946 ""href"": {
947 ""type"": ""any""
948 },
949 ""type"": {
950 ""type"": ""any""
951 }
952 }
953 }
954 }
955 },
956 ""originalContent"": {
957 ""type"": ""any""
958 },
959 ""shareOriginal"": {
960 ""$ref"": ""Activity""
961 },
962 ""targetLang"": {
963 ""type"": ""any""
964 },
965 ""type"": {
966 ""type"": ""string""
967 },
968 ""untranslatedContent"": {
969 ""type"": ""any""
970 }
971 }
972 },
973 ""placeId"": {
974 ""type"": ""any""
975 },
976 ""placeName"": {
977 ""type"": ""any""
978 },
979 ""placeholder"": {
980 ""type"": ""any""
981 },
982 ""published"": {
983 ""type"": ""string""
984 },
985 ""radius"": {
986 ""type"": ""any""
987 },
988 ""source"": {
989 ""type"": ""object"",
990 ""properties"": {
991 ""title"": {
992 ""type"": ""any""
993 }
994 }
995 },
996 ""targetLang"": {
997 ""type"": ""any""
998 },
999 ""title"": {
1000 ""type"": ""any""
1001 },
1002 ""untranslatedTitle"": {
1003 ""type"": ""any""
1004 },
1005 ""updated"": {
1006 ""type"": ""string""
1007 },
1008 ""verbs"": {
1009 ""type"": ""array"",
1010 ""items"": {
1011 ""type"": ""string""
1012 }
1013 },
1014 ""visibility"": {
1015 ""type"": ""object"",
1016 ""properties"": {
1017 ""entries"": {
1018 ""type"": ""array"",
1019 ""items"": {
1020 ""type"": ""object"",
1021 ""properties"": {
1022 ""id"": {
1023 ""type"": ""any""
1024 },
1025 ""title"": {
1026 ""type"": ""any""
1027 }
1028 }
1029 }
1030 }
1031 }
1032 }
1033 }
1034 },
1035 ""ActivityFeed"": {
1036 ""id"": ""ActivityFeed"",
1037 ""type"": ""object"",
1038 ""properties"": {
1039 ""id"": {
1040 ""type"": ""any""
1041 },
1042 ""items"": {
1043 ""type"": ""array"",
1044 ""items"": {
1045 ""$ref"": ""Activity""
1046 }
1047 },
1048 ""kind"": {
1049 ""type"": ""string"",
1050 ""default"": ""buzz#activityFeed""
1051 },
1052 ""links"": {
1053 ""type"": ""object"",
1054 ""additionalProperties"": {
1055 ""type"": ""array"",
1056 ""items"": {
1057 ""type"": ""object"",
1058 ""properties"": {
1059 ""count"": {
1060 ""type"": ""any""
1061 },
1062 ""height"": {
1063 ""type"": ""any""
1064 },
1065 ""href"": {
1066 ""type"": ""any""
1067 },
1068 ""title"": {
1069 ""type"": ""any""
1070 },
1071 ""type"": {
1072 ""type"": ""any""
1073 },
1074 ""updated"": {
1075 ""type"": ""string""
1076 },
1077 ""width"": {
1078 ""type"": ""any""
1079 }
1080 }
1081 }
1082 }
1083 },
1084 ""title"": {
1085 ""type"": ""any""
1086 },
1087 ""updated"": {
1088 ""type"": ""string""
1089 }
1090 }
1091 },
1092 ""Album"": {
1093 ""id"": ""Album"",
1094 ""type"": ""object"",
1095 ""properties"": {
1096 ""created"": {
1097 ""type"": ""string""
1098 },
1099 ""description"": {
1100 ""type"": ""string""
1101 },
1102 ""firstPhotoId"": {
1103 ""type"": ""integer""
1104 },
1105 ""id"": {
1106 ""type"": ""integer""
1107 },
1108 ""kind"": {
1109 ""type"": ""string"",
1110 ""default"": ""buzz#album""
1111 },
1112 ""lastModified"": {
1113 ""type"": ""string""
1114 },
1115 ""links"": {
1116 ""type"": ""object"",
1117 ""properties"": {
1118 ""alternate"": {
1119 ""$ref"": ""Link""
1120 },
1121 ""enclosure"": {
1122 ""$ref"": ""Link""
1123 }
1124 }
1125 },
1126 ""owner"": {
1127 ""type"": ""object"",
1128 ""properties"": {
1129 ""id"": {
1130 ""type"": ""string""
1131 },
1132 ""name"": {
1133 ""type"": ""string""
1134 },
1135 ""profileUrl"": {
1136 ""type"": ""string""
1137 },
1138 ""thumbnailUrl"": {
1139 ""type"": ""string""
1140 }
1141 }
1142 },
1143 ""tags"": {
1144 ""type"": ""array"",
1145 ""items"": {
1146 ""type"": ""string""
1147 }
1148 },
1149 ""title"": {
1150 ""type"": ""string""
1151 },
1152 ""version"": {
1153 ""type"": ""integer""
1154 }
1155 }
1156 },
1157 ""AlbumLite"": {
1158 ""id"": ""AlbumLite"",
1159 ""type"": ""object"",
1160 ""properties"": {
1161 ""collection"": {
1162 ""type"": ""object"",
1163 ""properties"": {
1164 ""album"": {
1165 ""type"": ""any""
1166 },
1167 ""albumId"": {
1168 ""type"": ""any""
1169 },
1170 ""photo"": {
1171 ""type"": ""object"",
1172 ""properties"": {
1173 ""photoUrl"": {
1174 ""type"": ""any""
1175 }
1176 }
1177 }
1178 }
1179 },
1180 ""kind"": {
1181 ""type"": ""string"",
1182 ""default"": ""buzz#albumLite""
1183 }
1184 }
1185 },
1186 ""AlbumsFeed"": {
1187 ""id"": ""AlbumsFeed"",
1188 ""type"": ""object"",
1189 ""properties"": {
1190 ""items"": {
1191 ""type"": ""array"",
1192 ""items"": {
1193 ""$ref"": ""Album""
1194 }
1195 },
1196 ""kind"": {
1197 ""type"": ""string"",
1198 ""default"": ""buzz#albumsFeed""
1199 }
1200 }
1201 },
1202 ""ChiliPhotosResourceJson"": {
1203 ""id"": ""ChiliPhotosResourceJson"",
1204 ""type"": ""object"",
1205 ""properties"": {
1206 ""album"": {
1207 ""type"": ""object"",
1208 ""properties"": {
1209 ""id"": {
1210 ""type"": ""integer""
1211 },
1212 ""page_link"": {
1213 ""$ref"": ""Link""
1214 }
1215 }
1216 },
1217 ""created"": {
1218 ""type"": ""string""
1219 },
1220 ""description"": {
1221 ""type"": ""string""
1222 },
1223 ""fileSize"": {
1224 ""type"": ""integer""
1225 },
1226 ""id"": {
1227 ""type"": ""integer""
1228 },
1229 ""kind"": {
1230 ""type"": ""string""
1231 },
1232 ""lastModified"": {
1233 ""type"": ""string""
1234 },
1235 ""links"": {
1236 ""type"": ""object"",
1237 ""properties"": {
1238 ""alternate"": {
1239 ""type"": ""array"",
1240 ""items"": {
1241 ""$ref"": ""Link""
1242 }
1243 }
1244 },
1245 ""additionalProperties"": {
1246 ""type"": ""array"",
1247 ""items"": {
1248 ""$ref"": ""Link""
1249 }
1250 }
1251 },
1252 ""owner"": {
1253 ""type"": ""object"",
1254 ""properties"": {
1255 ""id"": {
1256 ""type"": ""string""
1257 },
1258 ""name"": {
1259 ""type"": ""string""
1260 },
1261 ""profileUrl"": {
1262 ""type"": ""string""
1263 },
1264 ""thumbnailUrl"": {
1265 ""type"": ""string""
1266 }
1267 }
1268 },
1269 ""timestamp"": {
1270 ""type"": ""number""
1271 },
1272 ""title"": {
1273 ""type"": ""string""
1274 },
1275 ""version"": {
1276 ""type"": ""integer""
1277 },
1278 ""video"": {
1279 ""$ref"": ""Video""
1280 }
1281 }
1282 },
1283 ""Comment"": {
1284 ""id"": ""Comment"",
1285 ""type"": ""object"",
1286 ""properties"": {
1287 ""actor"": {
1288 ""type"": ""object"",
1289 ""properties"": {
1290 ""id"": {
1291 ""type"": ""any""
1292 },
1293 ""name"": {
1294 ""type"": ""any""
1295 },
1296 ""profileUrl"": {
1297 ""type"": ""any""
1298 },
1299 ""thumbnailUrl"": {
1300 ""type"": ""any""
1301 }
1302 }
1303 },
1304 ""content"": {
1305 ""type"": ""any""
1306 },
1307 ""detectedLang"": {
1308 ""type"": ""any""
1309 },
1310 ""id"": {
1311 ""type"": ""any""
1312 },
1313 ""kind"": {
1314 ""type"": ""string"",
1315 ""default"": ""buzz#comment""
1316 },
1317 ""links"": {
1318 ""type"": ""object"",
1319 ""properties"": {
1320 ""inReplyTo"": {
1321 ""type"": ""array"",
1322 ""items"": {
1323 ""type"": ""object"",
1324 ""properties"": {
1325 ""href"": {
1326 ""type"": ""any""
1327 },
1328 ""ref"": {
1329 ""type"": ""any""
1330 },
1331 ""source"": {
1332 ""type"": ""any""
1333 }
1334 }
1335 }
1336 }
1337 },
1338 ""additionalProperties"": {
1339 ""type"": ""array"",
1340 ""items"": {
1341 ""type"": ""object"",
1342 ""properties"": {
1343 ""count"": {
1344 ""type"": ""any""
1345 },
1346 ""height"": {
1347 ""type"": ""any""
1348 },
1349 ""href"": {
1350 ""type"": ""any""
1351 },
1352 ""title"": {
1353 ""type"": ""any""
1354 },
1355 ""type"": {
1356 ""type"": ""any""
1357 },
1358 ""updated"": {
1359 ""type"": ""string""
1360 },
1361 ""width"": {
1362 ""type"": ""any""
1363 }
1364 }
1365 }
1366 }
1367 },
1368 ""originalContent"": {
1369 ""type"": ""any""
1370 },
1371 ""placeholder"": {
1372 ""type"": ""any""
1373 },
1374 ""published"": {
1375 ""type"": ""string""
1376 },
1377 ""targetLang"": {
1378 ""type"": ""any""
1379 },
1380 ""untranslatedContent"": {
1381 ""type"": ""any""
1382 },
1383 ""updated"": {
1384 ""type"": ""string""
1385 }
1386 }
1387 },
1388 ""CommentFeed"": {
1389 ""id"": ""CommentFeed"",
1390 ""type"": ""object"",
1391 ""properties"": {
1392 ""id"": {
1393 ""type"": ""any""
1394 },
1395 ""items"": {
1396 ""type"": ""array"",
1397 ""items"": {
1398 ""$ref"": ""Comment""
1399 }
1400 },
1401 ""kind"": {
1402 ""type"": ""string"",
1403 ""default"": ""buzz#commentFeed""
1404 },
1405 ""links"": {
1406 ""type"": ""object"",
1407 ""additionalProperties"": {
1408 ""type"": ""array"",
1409 ""items"": {
1410 ""type"": ""object"",
1411 ""properties"": {
1412 ""count"": {
1413 ""type"": ""any""
1414 },
1415 ""height"": {
1416 ""type"": ""any""
1417 },
1418 ""href"": {
1419 ""type"": ""any""
1420 },
1421 ""title"": {
1422 ""type"": ""any""
1423 },
1424 ""type"": {
1425 ""type"": ""any""
1426 },
1427 ""updated"": {
1428 ""type"": ""string""
1429 },
1430 ""width"": {
1431 ""type"": ""any""
1432 }
1433 }
1434 }
1435 }
1436 },
1437 ""title"": {
1438 ""type"": ""any""
1439 },
1440 ""updated"": {
1441 ""type"": ""string""
1442 }
1443 }
1444 },
1445 ""CountFeed"": {
1446 ""id"": ""CountFeed"",
1447 ""type"": ""object"",
1448 ""properties"": {
1449 ""counts"": {
1450 ""type"": ""object"",
1451 ""additionalProperties"": {
1452 ""type"": ""array"",
1453 ""items"": {
1454 ""type"": ""object"",
1455 ""properties"": {
1456 ""count"": {
1457 ""type"": ""any""
1458 },
1459 ""timestamp"": {
1460 ""type"": ""string""
1461 }
1462 }
1463 }
1464 }
1465 },
1466 ""kind"": {
1467 ""type"": ""string"",
1468 ""default"": ""buzz#countFeed""
1469 }
1470 }
1471 },
1472 ""Entity"": {
1473 ""id"": ""Entity"",
1474 ""type"": ""object"",
1475 ""properties"": {
1476 ""chipsUiAcl"": {
1477 ""type"": ""any""
1478 },
1479 ""comment"": {
1480 ""type"": ""any""
1481 },
1482 ""id"": {
1483 ""type"": ""any""
1484 },
1485 ""kind"": {
1486 ""type"": ""string"",
1487 ""default"": ""buzz#entity""
1488 },
1489 ""starredBy"": {
1490 ""type"": ""array"",
1491 ""items"": {
1492 ""$ref"": ""Person""
1493 }
1494 },
1495 ""starredByViewer"": {
1496 ""type"": ""any""
1497 },
1498 ""summary"": {
1499 ""type"": ""any""
1500 },
1501 ""title"": {
1502 ""type"": ""any""
1503 },
1504 ""totalNumStars"": {
1505 ""type"": ""any""
1506 },
1507 ""viewerStarAcl"": {
1508 ""type"": ""array"",
1509 ""items"": {
1510 ""type"": ""object"",
1511 ""properties"": {
1512 ""displayName"": {
1513 ""type"": ""any""
1514 },
1515 ""id"": {
1516 ""type"": ""any""
1517 },
1518 ""kind"": {
1519 ""type"": ""any""
1520 },
1521 ""tags"": {
1522 ""type"": ""array"",
1523 ""items"": {
1524 ""type"": ""any""
1525 }
1526 }
1527 }
1528 }
1529 }
1530 }
1531 },
1532 ""Group"": {
1533 ""id"": ""Group"",
1534 ""type"": ""object"",
1535 ""properties"": {
1536 ""id"": {
1537 ""type"": ""any""
1538 },
1539 ""kind"": {
1540 ""type"": ""string"",
1541 ""default"": ""buzz#group""
1542 },
1543 ""links"": {
1544 ""type"": ""object"",
1545 ""properties"": {
1546 ""self"": {
1547 ""type"": ""array"",
1548 ""items"": {
1549 ""type"": ""object"",
1550 ""properties"": {
1551 ""href"": {
1552 ""type"": ""any""
1553 },
1554 ""type"": {
1555 ""type"": ""string"",
1556 ""default"": ""application/json""
1557 }
1558 }
1559 }
1560 }
1561 }
1562 },
1563 ""memberCount"": {
1564 ""type"": ""any""
1565 },
1566 ""title"": {
1567 ""type"": ""any""
1568 }
1569 }
1570 },
1571 ""GroupFeed"": {
1572 ""id"": ""GroupFeed"",
1573 ""type"": ""object"",
1574 ""properties"": {
1575 ""items"": {
1576 ""type"": ""array"",
1577 ""items"": {
1578 ""$ref"": ""Group""
1579 }
1580 },
1581 ""kind"": {
1582 ""type"": ""string"",
1583 ""default"": ""buzz#groupFeed""
1584 },
1585 ""links"": {
1586 ""type"": ""object"",
1587 ""additionalProperties"": {
1588 ""type"": ""array"",
1589 ""items"": {
1590 ""type"": ""object"",
1591 ""properties"": {
1592 ""count"": {
1593 ""type"": ""any""
1594 },
1595 ""height"": {
1596 ""type"": ""any""
1597 },
1598 ""href"": {
1599 ""type"": ""any""
1600 },
1601 ""title"": {
1602 ""type"": ""any""
1603 },
1604 ""type"": {
1605 ""type"": ""any""
1606 },
1607 ""updated"": {
1608 ""type"": ""string""
1609 },
1610 ""width"": {
1611 ""type"": ""any""
1612 }
1613 }
1614 }
1615 }
1616 }
1617 }
1618 },
1619 ""Link"": {
1620 ""id"": ""Link"",
1621 ""type"": ""object"",
1622 ""properties"": {
1623 ""count"": {
1624 ""type"": ""integer""
1625 },
1626 ""height"": {
1627 ""type"": ""integer""
1628 },
1629 ""href"": {
1630 ""type"": ""string""
1631 },
1632 ""title"": {
1633 ""type"": ""string""
1634 },
1635 ""type"": {
1636 ""type"": ""string""
1637 },
1638 ""updated"": {
1639 ""type"": ""string""
1640 },
1641 ""width"": {
1642 ""type"": ""integer""
1643 }
1644 }
1645 },
1646 ""PeopleFeed"": {
1647 ""id"": ""PeopleFeed"",
1648 ""type"": ""object"",
1649 ""properties"": {
1650 ""entry"": {
1651 ""type"": ""array"",
1652 ""items"": {
1653 ""$ref"": ""Person""
1654 }
1655 },
1656 ""itemsPerPage"": {
1657 ""type"": ""any""
1658 },
1659 ""kind"": {
1660 ""type"": ""string"",
1661 ""default"": ""buzz#peopleFeed""
1662 },
1663 ""startIndex"": {
1664 ""type"": ""any""
1665 },
1666 ""totalResults"": {
1667 ""type"": ""any""
1668 }
1669 }
1670 },
1671 ""Person"": {
1672 ""id"": ""Person"",
1673 ""type"": ""object"",
1674 ""properties"": {
1675 ""aboutMe"": {
1676 ""type"": ""any""
1677 },
1678 ""accounts"": {
1679 ""type"": ""array"",
1680 ""items"": {
1681 ""type"": ""object"",
1682 ""properties"": {
1683 ""domain"": {
1684 ""type"": ""any""
1685 },
1686 ""userid"": {
1687 ""type"": ""any""
1688 },
1689 ""username"": {
1690 ""type"": ""any""
1691 }
1692 }
1693 }
1694 },
1695 ""activities"": {
1696 ""type"": ""array"",
1697 ""items"": {
1698 ""type"": ""any""
1699 }
1700 },
1701 ""addresses"": {
1702 ""type"": ""array"",
1703 ""items"": {
1704 ""type"": ""object"",
1705 ""properties"": {
1706 ""country"": {
1707 ""type"": ""any""
1708 },
1709 ""formatted"": {
1710 ""type"": ""any""
1711 },
1712 ""locality"": {
1713 ""type"": ""any""
1714 },
1715 ""postalCode"": {
1716 ""type"": ""any""
1717 },
1718 ""primary"": {
1719 ""type"": ""any""
1720 },
1721 ""region"": {
1722 ""type"": ""any""
1723 },
1724 ""streetAddress"": {
1725 ""type"": ""any""
1726 },
1727 ""type"": {
1728 ""type"": ""any""
1729 }
1730 }
1731 }
1732 },
1733 ""anniversary"": {
1734 ""type"": ""any""
1735 },
1736 ""birthday"": {
1737 ""type"": ""any""
1738 },
1739 ""bodyType"": {
1740 ""type"": ""any""
1741 },
1742 ""books"": {
1743 ""type"": ""array"",
1744 ""items"": {
1745 ""type"": ""any""
1746 }
1747 },
1748 ""cars"": {
1749 ""type"": ""array"",
1750 ""items"": {
1751 ""type"": ""any""
1752 }
1753 },
1754 ""children"": {
1755 ""type"": ""array"",
1756 ""items"": {
1757 ""type"": ""any""
1758 }
1759 },
1760 ""connected"": {
1761 ""type"": ""any""
1762 },
1763 ""currentLocation"": {
1764 ""type"": ""any""
1765 },
1766 ""displayName"": {
1767 ""type"": ""any""
1768 },
1769 ""drinker"": {
1770 ""type"": ""any""
1771 },
1772 ""emails"": {
1773 ""type"": ""array"",
1774 ""items"": {
1775 ""type"": ""object"",
1776 ""properties"": {
1777 ""primary"": {
1778 ""type"": ""any""
1779 },
1780 ""type"": {
1781 ""type"": ""any""
1782 },
1783 ""value"": {
1784 ""type"": ""any""
1785 }
1786 }
1787 }
1788 },
1789 ""ethnicity"": {
1790 ""type"": ""any""
1791 },
1792 ""fashion"": {
1793 ""type"": ""any""
1794 },
1795 ""food"": {
1796 ""type"": ""array"",
1797 ""items"": {
1798 ""type"": ""any""
1799 }
1800 },
1801 ""gender"": {
1802 ""type"": ""any""
1803 },
1804 ""happiestWhen"": {
1805 ""type"": ""any""
1806 },
1807 ""hasApp"": {
1808 ""type"": ""any""
1809 },
1810 ""heroes"": {
1811 ""type"": ""array"",
1812 ""items"": {
1813 ""type"": ""any""
1814 }
1815 },
1816 ""humor"": {
1817 ""type"": ""any""
1818 },
1819 ""id"": {
1820 ""type"": ""any""
1821 },
1822 ""ims"": {
1823 ""type"": ""array"",
1824 ""items"": {
1825 ""type"": ""object"",
1826 ""properties"": {
1827 ""primary"": {
1828 ""type"": ""any""
1829 },
1830 ""type"": {
1831 ""type"": ""any""
1832 },
1833 ""value"": {
1834 ""type"": ""any""
1835 }
1836 }
1837 }
1838 },
1839 ""interests"": {
1840 ""type"": ""array"",
1841 ""items"": {
1842 ""type"": ""any""
1843 }
1844 },
1845 ""jobInterests"": {
1846 ""type"": ""array"",
1847 ""items"": {
1848 ""type"": ""any""
1849 }
1850 },
1851 ""kind"": {
1852 ""type"": ""string"",
1853 ""default"": ""buzz#person""
1854 },
1855 ""languages"": {
1856 ""type"": ""array"",
1857 ""items"": {
1858 ""type"": ""any""
1859 }
1860 },
1861 ""languagesSpoken"": {
1862 ""type"": ""array"",
1863 ""items"": {
1864 ""type"": ""any""
1865 }
1866 },
1867 ""livingArrangement"": {
1868 ""type"": ""any""
1869 },
1870 ""lookingFor"": {
1871 ""type"": ""any""
1872 },
1873 ""movies"": {
1874 ""type"": ""array"",
1875 ""items"": {
1876 ""type"": ""any""
1877 }
1878 },
1879 ""music"": {
1880 ""type"": ""array"",
1881 ""items"": {
1882 ""type"": ""any""
1883 }
1884 },
1885 ""name"": {
1886 ""type"": ""object"",
1887 ""properties"": {
1888 ""familyName"": {
1889 ""type"": ""any""
1890 },
1891 ""formatted"": {
1892 ""type"": ""any""
1893 },
1894 ""givenName"": {
1895 ""type"": ""any""
1896 },
1897 ""honorificPrefix"": {
1898 ""type"": ""any""
1899 },
1900 ""honorificSuffix"": {
1901 ""type"": ""any""
1902 },
1903 ""middleName"": {
1904 ""type"": ""any""
1905 }
1906 }
1907 },
1908 ""nickname"": {
1909 ""type"": ""any""
1910 },
1911 ""note"": {
1912 ""type"": ""any""
1913 },
1914 ""organizations"": {
1915 ""type"": ""array"",
1916 ""items"": {
1917 ""type"": ""object"",
1918 ""properties"": {
1919 ""department"": {
1920 ""type"": ""any""
1921 },
1922 ""description"": {
1923 ""type"": ""any""
1924 },
1925 ""endDate"": {
1926 ""type"": ""any""
1927 },
1928 ""location"": {
1929 ""type"": ""any""
1930 },
1931 ""name"": {
1932 ""type"": ""any""
1933 },
1934 ""primary"": {
1935 ""type"": ""any""
1936 },
1937 ""startDate"": {
1938 ""type"": ""any""
1939 },
1940 ""title"": {
1941 ""type"": ""any""
1942 },
1943 ""type"": {
1944 ""type"": ""any""
1945 }
1946 }
1947 }
1948 },
1949 ""pets"": {
1950 ""type"": ""array"",
1951 ""items"": {
1952 ""type"": ""any""
1953 }
1954 },
1955 ""phoneNumbers"": {
1956 ""type"": ""array"",
1957 ""items"": {
1958 ""type"": ""object"",
1959 ""properties"": {
1960 ""primary"": {
1961 ""type"": ""any""
1962 },
1963 ""type"": {
1964 ""type"": ""any""
1965 },
1966 ""value"": {
1967 ""type"": ""any""
1968 }
1969 }
1970 }
1971 },
1972 ""photos"": {
1973 ""type"": ""array"",
1974 ""items"": {
1975 ""type"": ""object"",
1976 ""properties"": {
1977 ""height"": {
1978 ""type"": ""any""
1979 },
1980 ""primary"": {
1981 ""type"": ""any""
1982 },
1983 ""type"": {
1984 ""type"": ""any""
1985 },
1986 ""value"": {
1987 ""type"": ""any""
1988 },
1989 ""width"": {
1990 ""type"": ""any""
1991 }
1992 }
1993 }
1994 },
1995 ""politicalViews"": {
1996 ""type"": ""array"",
1997 ""items"": {
1998 ""type"": ""any""
1999 }
2000 },
2001 ""preferredUsername"": {
2002 ""type"": ""any""
2003 },
2004 ""profileSong"": {
2005 ""type"": ""any""
2006 },
2007 ""profileUrl"": {
2008 ""type"": ""any""
2009 },
2010 ""profileVideo"": {
2011 ""type"": ""any""
2012 },
2013 ""published"": {
2014 ""type"": ""string""
2015 },
2016 ""quotes"": {
2017 ""type"": ""array"",
2018 ""items"": {
2019 ""type"": ""any""
2020 }
2021 },
2022 ""relationshipStatus"": {
2023 ""type"": ""any""
2024 },
2025 ""relationships"": {
2026 ""type"": ""array"",
2027 ""items"": {
2028 ""type"": ""any""
2029 }
2030 },
2031 ""religion"": {
2032 ""type"": ""any""
2033 },
2034 ""romance"": {
2035 ""type"": ""any""
2036 },
2037 ""scaredOf"": {
2038 ""type"": ""any""
2039 },
2040 ""sexualOrientation"": {
2041 ""type"": ""any""
2042 },
2043 ""smoker"": {
2044 ""type"": ""any""
2045 },
2046 ""sports"": {
2047 ""type"": ""array"",
2048 ""items"": {
2049 ""type"": ""any""
2050 }
2051 },
2052 ""status"": {
2053 ""type"": ""any""
2054 },
2055 ""tags"": {
2056 ""type"": ""array"",
2057 ""items"": {
2058 ""type"": ""any""
2059 }
2060 },
2061 ""thumbnailUrl"": {
2062 ""type"": ""any""
2063 },
2064 ""turnOffs"": {
2065 ""type"": ""array"",
2066 ""items"": {
2067 ""type"": ""any""
2068 }
2069 },
2070 ""turnOns"": {
2071 ""type"": ""array"",
2072 ""items"": {
2073 ""type"": ""any""
2074 }
2075 },
2076 ""tvShows"": {
2077 ""type"": ""array"",
2078 ""items"": {
2079 ""type"": ""any""
2080 }
2081 },
2082 ""updated"": {
2083 ""type"": ""string""
2084 },
2085 ""urls"": {
2086 ""type"": ""array"",
2087 ""items"": {
2088 ""type"": ""object"",
2089 ""properties"": {
2090 ""primary"": {
2091 ""type"": ""any""
2092 },
2093 ""type"": {
2094 ""type"": ""any""
2095 },
2096 ""value"": {
2097 ""type"": ""any""
2098 }
2099 }
2100 }
2101 },
2102 ""utcOffset"": {
2103 ""type"": ""any""
2104 }
2105 }
2106 },
2107 ""PhotosFeed"": {
2108 ""id"": ""PhotosFeed"",
2109 ""type"": ""object"",
2110 ""properties"": {
2111 ""items"": {
2112 ""type"": ""array"",
2113 ""items"": {
2114 ""$ref"": ""ChiliPhotosResourceJson""
2115 }
2116 },
2117 ""kind"": {
2118 ""type"": ""string"",
2119 ""default"": ""buzz#photosFeed""
2120 }
2121 }
2122 },
2123 ""Related"": {
2124 ""id"": ""Related"",
2125 ""type"": ""object"",
2126 ""properties"": {
2127 ""href"": {
2128 ""type"": ""any""
2129 },
2130 ""id"": {
2131 ""type"": ""any""
2132 },
2133 ""kind"": {
2134 ""type"": ""string"",
2135 ""default"": ""buzz#related""
2136 },
2137 ""summary"": {
2138 ""type"": ""any""
2139 },
2140 ""title"": {
2141 ""type"": ""any""
2142 }
2143 }
2144 },
2145 ""RelatedFeed"": {
2146 ""id"": ""RelatedFeed"",
2147 ""type"": ""object"",
2148 ""properties"": {
2149 ""id"": {
2150 ""type"": ""any""
2151 },
2152 ""items"": {
2153 ""type"": ""array"",
2154 ""items"": {
2155 ""$ref"": ""Related""
2156 }
2157 },
2158 ""kind"": {
2159 ""type"": ""string"",
2160 ""default"": ""buzz#relatedFeed""
2161 },
2162 ""links"": {
2163 ""type"": ""object"",
2164 ""additionalProperties"": {
2165 ""type"": ""array"",
2166 ""items"": {
2167 ""type"": ""object"",
2168 ""properties"": {
2169 ""count"": {
2170 ""type"": ""any""
2171 },
2172 ""height"": {
2173 ""type"": ""any""
2174 },
2175 ""href"": {
2176 ""type"": ""any""
2177 },
2178 ""title"": {
2179 ""type"": ""any""
2180 },
2181 ""type"": {
2182 ""type"": ""any""
2183 },
2184 ""updated"": {
2185 ""type"": ""string""
2186 },
2187 ""width"": {
2188 ""type"": ""any""
2189 }
2190 }
2191 }
2192 }
2193 },
2194 ""title"": {
2195 ""type"": ""any""
2196 },
2197 ""updated"": {
2198 ""type"": ""string""
2199 }
2200 }
2201 },
2202 ""StarredEntityFeed"": {
2203 ""id"": ""StarredEntityFeed"",
2204 ""type"": ""object"",
2205 ""properties"": {
2206 ""entry"": {
2207 ""type"": ""array"",
2208 ""items"": {
2209 ""$ref"": ""Entity""
2210 }
2211 },
2212 ""kind"": {
2213 ""type"": ""string"",
2214 ""default"": ""buzz#starredEntityFeed""
2215 }
2216 }
2217 },
2218 ""StarredEntityFeedForUser"": {
2219 ""id"": ""StarredEntityFeedForUser"",
2220 ""type"": ""object"",
2221 ""properties"": {
2222 ""entry"": {
2223 ""type"": ""array"",
2224 ""items"": {
2225 ""$ref"": ""Entity""
2226 }
2227 },
2228 ""itemsPerPage"": {
2229 ""type"": ""any""
2230 },
2231 ""kind"": {
2232 ""type"": ""string"",
2233 ""default"": ""buzz#starredEntityFeedForUser""
2234 },
2235 ""startIndex"": {
2236 ""type"": ""any""
2237 },
2238 ""totalResults"": {
2239 ""type"": ""any""
2240 }
2241 }
2242 },
2243 ""Video"": {
2244 ""id"": ""Video"",
2245 ""type"": ""object"",
2246 ""properties"": {
2247 ""duration"": {
2248 ""type"": ""integer""
2249 },
2250 ""size"": {
2251 ""type"": ""integer""
2252 },
2253 ""streams"": {
2254 ""type"": ""array"",
2255 ""items"": {
2256 ""$ref"": ""Link""
2257 }
2258 }
2259 }
2260 }
2261 },
2262 ""resources"": {
2263 ""activities"": {
2264 ""methods"": {
2265 ""count"": {
2266 ""restPath"": ""activities/count"",
2267 ""rpcMethod"": ""chili.activities.count"",
2268 ""httpMethod"": ""GET"",
2269 ""description"": ""Get a count of link shares"",
2270 ""parameters"": {
2271 ""hl"": {
2272 ""restParameterType"": ""query"",
2273 ""description"": ""Language code to limit language results."",
2274 ""type"": ""string""
2275 },
2276 ""url"": {
2277 ""restParameterType"": ""query"",
2278 ""repeated"": true,
2279 ""description"": ""URLs for which to get share counts."",
2280 ""type"": ""string""
2281 }
2282 },
2283 ""response"": {
2284 ""$ref"": ""CountFeed""
2285 }
2286 },
2287 ""delete"": {
2288 ""restPath"": ""activities/{userId}/{scope}/{postId}"",
2289 ""rpcMethod"": ""chili.activities.delete"",
2290 ""httpMethod"": ""DELETE"",
2291 ""description"": ""Delete an activity"",
2292 ""parameters"": {
2293 ""alt"": {
2294 ""restParameterType"": ""query"",
2295 ""description"": ""Specifies an alternative representation type."",
2296 ""type"": ""string"",
2297 ""enum"": [
2298 ""atom"",
2299 ""json""
2300 ],
2301 ""enumDescriptions"": [
2302 ""Use Atom XML format"",
2303 ""Use JSON format""
2304 ],
2305 ""default"": ""atom""
2306 },
2307 ""hl"": {
2308 ""restParameterType"": ""query"",
2309 ""description"": ""Language code to limit language results."",
2310 ""type"": ""string""
2311 },
2312 ""postId"": {
2313 ""restParameterType"": ""path"",
2314 ""required"": true,
2315 ""description"": ""ID of the activity to delete."",
2316 ""type"": ""string""
2317 },
2318 ""scope"": {
2319 ""restParameterType"": ""path"",
2320 ""required"": true,
2321 ""description"": ""The collection to which the activity belongs."",
2322 ""type"": ""string"",
2323 ""enum"": [
2324 ""@liked"",
2325 ""@muted"",
2326 ""@self""
2327 ],
2328 ""enumDescriptions"": [
2329 ""Activities liked by the user."",
2330 ""Activities muted by the user."",
2331 ""Activities posted by the user.""
2332 ]
2333 },
2334 ""userId"": {
2335 ""restParameterType"": ""path"",
2336 ""required"": true,
2337 ""description"": ""ID of the user whose post to delete."",
2338 ""type"": ""string""
2339 }
2340 },
2341 ""parameterOrder"": [
2342 ""userId"",
2343 ""scope"",
2344 ""postId""
2345 ]
2346 },
2347 ""extractPeopleFromSearch"": {
2348 ""restPath"": ""activities/search/@people"",
2349 ""rpcMethod"": ""chili.activities.extractPeopleFromSearch"",
2350 ""httpMethod"": ""GET"",
2351 ""description"": ""Search for people by topic"",
2352 ""parameters"": {
2353 ""alt"": {
2354 ""restParameterType"": ""query"",
2355 ""description"": ""Specifies an alternative representation type."",
2356 ""type"": ""string"",
2357 ""enum"": [
2358 ""atom"",
2359 ""json""
2360 ],
2361 ""enumDescriptions"": [
2362 ""Use Atom XML format"",
2363 ""Use JSON format""
2364 ],
2365 ""default"": ""atom""
2366 },
2367 ""bbox"": {
2368 ""restParameterType"": ""query"",
2369 ""description"": ""Bounding box to use in a geographic location query."",
2370 ""type"": ""string""
2371 },
2372 ""c"": {
2373 ""restParameterType"": ""query"",
2374 ""description"": ""A continuation token that allows pagination."",
2375 ""type"": ""string""
2376 },
2377 ""hl"": {
2378 ""restParameterType"": ""query"",
2379 ""description"": ""Language code to limit language results."",
2380 ""type"": ""string""
2381 },
2382 ""lat"": {
2383 ""restParameterType"": ""query"",
2384 ""description"": ""Latitude to use in a geographic location query."",
2385 ""type"": ""string""
2386 },
2387 ""lon"": {
2388 ""restParameterType"": ""query"",
2389 ""description"": ""Longitude to use in a geographic location query."",
2390 ""type"": ""string""
2391 },
2392 ""max-results"": {
2393 ""restParameterType"": ""query"",
2394 ""description"": ""Maximum number of results to include."",
2395 ""type"": ""integer"",
2396 ""minimum"": ""0"",
2397 ""maximum"": ""4294967295"",
2398 ""default"": ""20""
2399 },
2400 ""pid"": {
2401 ""restParameterType"": ""query"",
2402 ""description"": ""ID of a place to use in a geographic location query."" ,
2403 ""type"": ""string""
2404 },
2405 ""q"": {
2406 ""restParameterType"": ""query"",
2407 ""description"": ""Full-text search query string."",
2408 ""type"": ""string""
2409 },
2410 ""radius"": {
2411 ""restParameterType"": ""query"",
2412 ""description"": ""Radius to use in a geographic location query."",
2413 ""type"": ""string""
2414 }
2415 },
2416 ""response"": {
2417 ""$ref"": ""PeopleFeed""
2418 }
2419 },
2420 ""get"": {
2421 ""restPath"": ""activities/{userId}/@self/{postId}"",
2422 ""rpcMethod"": ""chili.activities.get"",
2423 ""httpMethod"": ""GET"",
2424 ""description"": ""Get an activity"",
2425 ""parameters"": {
2426 ""alt"": {
2427 ""restParameterType"": ""query"",
2428 ""description"": ""Specifies an alternative representation type."",
2429 ""type"": ""string"",
2430 ""enum"": [
2431 ""atom"",
2432 ""json""
2433 ],
2434 ""enumDescriptions"": [
2435 ""Use Atom XML format"",
2436 ""Use JSON format""
2437 ],
2438 ""default"": ""atom""
2439 },
2440 ""hl"": {
2441 ""restParameterType"": ""query"",
2442 ""description"": ""Language code to limit language results."",
2443 ""type"": ""string""
2444 },
2445 ""max-comments"": {
2446 ""restParameterType"": ""query"",
2447 ""description"": ""Maximum number of comments to include."",
2448 ""type"": ""integer"",
2449 ""minimum"": ""0"",
2450 ""maximum"": ""4294967295""
2451 },
2452 ""max-liked"": {
2453 ""restParameterType"": ""query"",
2454 ""description"": ""Maximum number of likes to include."",
2455 ""type"": ""integer"",
2456 ""minimum"": ""0"",
2457 ""maximum"": ""4294967295"",
2458 ""default"": ""0""
2459 },
2460 ""postId"": {
2461 ""restParameterType"": ""path"",
2462 ""required"": true,
2463 ""description"": ""ID of the post to get."",
2464 ""type"": ""string""
2465 },
2466 ""truncateAtom"": {
2467 ""restParameterType"": ""query"",
2468 ""description"": ""Truncate the value of the atom:content element."",
2469 ""type"": ""boolean""
2470 },
2471 ""userId"": {
2472 ""restParameterType"": ""path"",
2473 ""required"": true,
2474 ""description"": ""ID of the user whose post to get."",
2475 ""type"": ""string""
2476 }
2477 },
2478 ""parameterOrder"": [
2479 ""userId"",
2480 ""postId""
2481 ],
2482 ""response"": {
2483 ""$ref"": ""Activity""
2484 }
2485 },
2486 ""insert"": {
2487 ""restPath"": ""activities/{userId}/@self"",
2488 ""rpcMethod"": ""chili.activities.insert"",
2489 ""httpMethod"": ""POST"",
2490 ""description"": ""Create a new activity"",
2491 ""parameters"": {
2492 ""alt"": {
2493 ""restParameterType"": ""query"",
2494 ""description"": ""Specifies an alternative representation type."",
2495 ""type"": ""string"",
2496 ""enum"": [
2497 ""atom"",
2498 ""json""
2499 ],
2500 ""enumDescriptions"": [
2501 ""Use Atom XML format"",
2502 ""Use JSON format""
2503 ],
2504 ""default"": ""atom""
2505 },
2506 ""hl"": {
2507 ""restParameterType"": ""query"",
2508 ""description"": ""Language code to limit language results."",
2509 ""type"": ""string""
2510 },
2511 ""preview"": {
2512 ""restParameterType"": ""query"",
2513 ""description"": ""If true, only preview the action."",
2514 ""type"": ""boolean"",
2515 ""default"": ""false""
2516 },
2517 ""userId"": {
2518 ""restParameterType"": ""path"",
2519 ""required"": true,
2520 ""description"": ""ID of the user being referenced."",
2521 ""type"": ""string""
2522 }
2523 },
2524 ""parameterOrder"": [
2525 ""userId""
2526 ],
2527 ""request"": {
2528 ""$ref"": ""Activity""
2529 },
2530 ""response"": {
2531 ""$ref"": ""Activity""
2532 }
2533 },
2534 ""list"": {
2535 ""restPath"": ""activities/{userId}/{scope}"",
2536 ""rpcMethod"": ""chili.activities.list"",
2537 ""httpMethod"": ""GET"",
2538 ""description"": ""List activities"",
2539 ""parameters"": {
2540 ""alt"": {
2541 ""restParameterType"": ""query"",
2542 ""description"": ""Specifies an alternative representation type."",
2543 ""type"": ""string"",
2544 ""enum"": [
2545 ""atom"",
2546 ""json""
2547 ],
2548 ""enumDescriptions"": [
2549 ""Use Atom XML format"",
2550 ""Use JSON format""
2551 ],
2552 ""default"": ""atom""
2553 },
2554 ""c"": {
2555 ""restParameterType"": ""query"",
2556 ""description"": ""A continuation token that allows pagination."",
2557 ""type"": ""string""
2558 },
2559 ""hl"": {
2560 ""restParameterType"": ""query"",
2561 ""description"": ""Language code to limit language results."",
2562 ""type"": ""string""
2563 },
2564 ""max-comments"": {
2565 ""restParameterType"": ""query"",
2566 ""description"": ""Maximum number of comments to include."",
2567 ""type"": ""integer"",
2568 ""minimum"": ""0"",
2569 ""maximum"": ""4294967295""
2570 },
2571 ""max-liked"": {
2572 ""restParameterType"": ""query"",
2573 ""description"": ""Maximum number of likes to include."",
2574 ""type"": ""integer"",
2575 ""minimum"": ""0"",
2576 ""maximum"": ""4294967295"",
2577 ""default"": ""0""
2578 },
2579 ""max-results"": {
2580 ""restParameterType"": ""query"",
2581 ""description"": ""Maximum number of results to include."",
2582 ""type"": ""integer"",
2583 ""minimum"": ""0"",
2584 ""maximum"": ""4294967295"",
2585 ""default"": ""20""
2586 },
2587 ""scope"": {
2588 ""restParameterType"": ""path"",
2589 ""required"": true,
2590 ""description"": ""The collection of activities to list."",
2591 ""type"": ""string"",
2592 ""enum"": [
2593 ""@comments"",
2594 ""@consumption"",
2595 ""@liked"",
2596 ""@public"",
2597 ""@self""
2598 ],
2599 ""enumDescriptions"": [
2600 ""Limit to activities commented on by the user."",
2601 ""Limit to activities to be consumed by the user."",
2602 ""Limit to activities liked by the user."",
2603 ""Limit to public activities posted by the user."",
2604 ""Limit to activities posted by the user.""
2605 ]
2606 },
2607 ""truncateAtom"": {
2608 ""restParameterType"": ""query"",
2609 ""description"": ""Truncate the value of the atom:content element."",
2610 ""type"": ""boolean""
2611 },
2612 ""userId"": {
2613 ""restParameterType"": ""path"",
2614 ""required"": true,
2615 ""description"": ""ID of the user being referenced."",
2616 ""type"": ""string""
2617 }
2618 },
2619 ""parameterOrder"": [
2620 ""userId"",
2621 ""scope""
2622 ],
2623 ""response"": {
2624 ""$ref"": ""ActivityFeed""
2625 }
2626 },
2627 ""search"": {
2628 ""restPath"": ""activities/search"",
2629 ""rpcMethod"": ""chili.activities.search"",
2630 ""httpMethod"": ""GET"",
2631 ""description"": ""Search for activities"",
2632 ""parameters"": {
2633 ""alt"": {
2634 ""restParameterType"": ""query"",
2635 ""description"": ""Specifies an alternative representation type."",
2636 ""type"": ""string"",
2637 ""enum"": [
2638 ""atom"",
2639 ""json""
2640 ],
2641 ""enumDescriptions"": [
2642 ""Use Atom XML format"",
2643 ""Use JSON format""
2644 ],
2645 ""default"": ""atom""
2646 },
2647 ""bbox"": {
2648 ""restParameterType"": ""query"",
2649 ""description"": ""Bounding box to use in a geographic location query."",
2650 ""type"": ""string""
2651 },
2652 ""c"": {
2653 ""restParameterType"": ""query"",
2654 ""description"": ""A continuation token that allows pagination."",
2655 ""type"": ""string""
2656 },
2657 ""hl"": {
2658 ""restParameterType"": ""query"",
2659 ""description"": ""Language code to limit language results."",
2660 ""type"": ""string""
2661 },
2662 ""lat"": {
2663 ""restParameterType"": ""query"",
2664 ""description"": ""Latitude to use in a geographic location query."",
2665 ""type"": ""string""
2666 },
2667 ""lon"": {
2668 ""restParameterType"": ""query"",
2669 ""description"": ""Longitude to use in a geographic location query."",
2670 ""type"": ""string""
2671 },
2672 ""max-results"": {
2673 ""restParameterType"": ""query"",
2674 ""description"": ""Maximum number of results to include."",
2675 ""type"": ""integer"",
2676 ""minimum"": ""0"",
2677 ""maximum"": ""4294967295"",
2678 ""default"": ""20""
2679 },
2680 ""pid"": {
2681 ""restParameterType"": ""query"",
2682 ""description"": ""ID of a place to use in a geographic location query."" ,
2683 ""type"": ""string""
2684 },
2685 ""q"": {
2686 ""restParameterType"": ""query"",
2687 ""description"": ""Full-text search query string."",
2688 ""type"": ""string""
2689 },
2690 ""radius"": {
2691 ""restParameterType"": ""query"",
2692 ""description"": ""Radius to use in a geographic location query."",
2693 ""type"": ""string""
2694 },
2695 ""truncateAtom"": {
2696 ""restParameterType"": ""query"",
2697 ""description"": ""Truncate the value of the atom:content element."",
2698 ""type"": ""boolean""
2699 }
2700 },
2701 ""response"": {
2702 ""$ref"": ""ActivityFeed""
2703 }
2704 },
2705 ""track"": {
2706 ""restPath"": ""activities/track"",
2707 ""rpcMethod"": ""chili.activities.track"",
2708 ""httpMethod"": ""GET"",
2709 ""description"": ""Get real-time activity tracking information"",
2710 ""parameters"": {
2711 ""alt"": {
2712 ""restParameterType"": ""query"",
2713 ""description"": ""Specifies an alternative representation type."",
2714 ""type"": ""string"",
2715 ""enum"": [
2716 ""atom"",
2717 ""json""
2718 ],
2719 ""enumDescriptions"": [
2720 ""Use Atom XML format"",
2721 ""Use JSON format""
2722 ],
2723 ""default"": ""atom""
2724 },
2725 ""bbox"": {
2726 ""restParameterType"": ""query"",
2727 ""description"": ""Bounding box to use in a geographic location query."",
2728 ""type"": ""string""
2729 },
2730 ""c"": {
2731 ""restParameterType"": ""query"",
2732 ""description"": ""A continuation token that allows pagination."",
2733 ""type"": ""string""
2734 },
2735 ""hl"": {
2736 ""restParameterType"": ""query"",
2737 ""description"": ""Language code to limit language results."",
2738 ""type"": ""string""
2739 },
2740 ""lat"": {
2741 ""restParameterType"": ""query"",
2742 ""description"": ""Latitude to use in a geographic location query."",
2743 ""type"": ""string""
2744 },
2745 ""lon"": {
2746 ""restParameterType"": ""query"",
2747 ""description"": ""Longitude to use in a geographic location query."",
2748 ""type"": ""string""
2749 },
2750 ""max-results"": {
2751 ""restParameterType"": ""query"",
2752 ""description"": ""Maximum number of results to include."",
2753 ""type"": ""integer"",
2754 ""minimum"": ""0"",
2755 ""maximum"": ""4294967295"",
2756 ""default"": ""20""
2757 },
2758 ""pid"": {
2759 ""restParameterType"": ""query"",
2760 ""description"": ""ID of a place to use in a geographic location query."" ,
2761 ""type"": ""string""
2762 },
2763 ""q"": {
2764 ""restParameterType"": ""query"",
2765 ""description"": ""Full-text search query string."",
2766 ""type"": ""string""
2767 },
2768 ""radius"": {
2769 ""restParameterType"": ""query"",
2770 ""description"": ""Radius to use in a geographic location query."",
2771 ""type"": ""string""
2772 }
2773 },
2774 ""response"": {
2775 ""$ref"": ""ActivityFeed""
2776 }
2777 },
2778 ""update"": {
2779 ""restPath"": ""activities/{userId}/{scope}/{postId}"",
2780 ""rpcMethod"": ""chili.activities.update"",
2781 ""httpMethod"": ""PUT"",
2782 ""description"": ""Update an activity"",
2783 ""parameters"": {
2784 ""abuseType"": {
2785 ""restParameterType"": ""query"",
2786 ""type"": ""string""
2787 },
2788 ""alt"": {
2789 ""restParameterType"": ""query"",
2790 ""description"": ""Specifies an alternative representation type."",
2791 ""type"": ""string"",
2792 ""enum"": [
2793 ""atom"",
2794 ""json""
2795 ],
2796 ""enumDescriptions"": [
2797 ""Use Atom XML format"",
2798 ""Use JSON format""
2799 ],
2800 ""default"": ""atom""
2801 },
2802 ""hl"": {
2803 ""restParameterType"": ""query"",
2804 ""description"": ""Language code to limit language results."",
2805 ""type"": ""string""
2806 },
2807 ""postId"": {
2808 ""restParameterType"": ""path"",
2809 ""required"": true,
2810 ""description"": ""ID of the activity to update."",
2811 ""type"": ""string""
2812 },
2813 ""scope"": {
2814 ""restParameterType"": ""path"",
2815 ""required"": true,
2816 ""description"": ""The collection to which the activity belongs."",
2817 ""type"": ""string"",
2818 ""enum"": [
2819 ""@abuse"",
2820 ""@liked"",
2821 ""@muted"",
2822 ""@self""
2823 ],
2824 ""enumDescriptions"": [
2825 ""Activities reported by the user."",
2826 ""Activities liked by the user."",
2827 ""Activities muted by the user."",
2828 ""Activities posted by the user.""
2829 ]
2830 },
2831 ""userId"": {
2832 ""restParameterType"": ""path"",
2833 ""required"": true,
2834 ""description"": ""ID of the user whose post to update."",
2835 ""type"": ""string""
2836 }
2837 },
2838 ""parameterOrder"": [
2839 ""userId"",
2840 ""scope"",
2841 ""postId""
2842 ],
2843 ""request"": {
2844 ""$ref"": ""Activity""
2845 },
2846 ""response"": {
2847 ""$ref"": ""Activity""
2848 }
2849 }
2850 }
2851 },
2852 ""comments"": {
2853 ""methods"": {
2854 ""delete"": {
2855 ""restPath"": ""activities/{userId}/@self/{postId}/@comments/{commentId}"",
2856 ""rpcMethod"": ""chili.comments.delete"",
2857 ""httpMethod"": ""DELETE"",
2858 ""description"": ""Delete a comment"",
2859 ""parameters"": {
2860 ""alt"": {
2861 ""restParameterType"": ""query"",
2862 ""description"": ""Specifies an alternative representation type."",
2863 ""type"": ""string"",
2864 ""enum"": [
2865 ""atom"",
2866 ""json""
2867 ],
2868 ""enumDescriptions"": [
2869 ""Use Atom XML format"",
2870 ""Use JSON format""
2871 ],
2872 ""default"": ""atom""
2873 },
2874 ""commentId"": {
2875 ""restParameterType"": ""path"",
2876 ""required"": true,
2877 ""description"": ""ID of the comment being referenced."",
2878 ""type"": ""string""
2879 },
2880 ""hl"": {
2881 ""restParameterType"": ""query"",
2882 ""description"": ""Language code to limit language results."",
2883 ""type"": ""string""
2884 },
2885 ""postId"": {
2886 ""restParameterType"": ""path"",
2887 ""required"": true,
2888 ""description"": ""ID of the activity for which to delete the comment."",
2889 ""type"": ""string""
2890 },
2891 ""userId"": {
2892 ""restParameterType"": ""path"",
2893 ""required"": true,
2894 ""description"": ""ID of the user being referenced."",
2895 ""type"": ""string""
2896 }
2897 },
2898 ""parameterOrder"": [
2899 ""userId"",
2900 ""postId"",
2901 ""commentId""
2902 ]
2903 },
2904 ""get"": {
2905 ""restPath"": ""activities/{userId}/@self/{postId}/@comments/{commentId}"",
2906 ""rpcMethod"": ""chili.comments.get"",
2907 ""httpMethod"": ""GET"",
2908 ""description"": ""Get a comment"",
2909 ""parameters"": {
2910 ""alt"": {
2911 ""restParameterType"": ""query"",
2912 ""description"": ""Specifies an alternative representation type."",
2913 ""type"": ""string"",
2914 ""enum"": [
2915 ""atom"",
2916 ""json""
2917 ],
2918 ""enumDescriptions"": [
2919 ""Use Atom XML format"",
2920 ""Use JSON format""
2921 ],
2922 ""default"": ""atom""
2923 },
2924 ""commentId"": {
2925 ""restParameterType"": ""path"",
2926 ""required"": true,
2927 ""description"": ""ID of the comment being referenced."",
2928 ""type"": ""string""
2929 },
2930 ""hl"": {
2931 ""restParameterType"": ""query"",
2932 ""description"": ""Language code to limit language results."",
2933 ""type"": ""string""
2934 },
2935 ""postId"": {
2936 ""restParameterType"": ""path"",
2937 ""required"": true,
2938 ""description"": ""ID of the activity for which to get comments."",
2939 ""type"": ""string""
2940 },
2941 ""userId"": {
2942 ""restParameterType"": ""path"",
2943 ""required"": true,
2944 ""description"": ""ID of the user being referenced."",
2945 ""type"": ""string""
2946 }
2947 },
2948 ""parameterOrder"": [
2949 ""userId"",
2950 ""postId"",
2951 ""commentId""
2952 ],
2953 ""response"": {
2954 ""$ref"": ""Comment""
2955 }
2956 },
2957 ""insert"": {
2958 ""restPath"": ""activities/{userId}/@self/{postId}/@comments"",
2959 ""rpcMethod"": ""chili.comments.insert"",
2960 ""httpMethod"": ""POST"",
2961 ""description"": ""Create a comment"",
2962 ""parameters"": {
2963 ""alt"": {
2964 ""restParameterType"": ""query"",
2965 ""description"": ""Specifies an alternative representation type."",
2966 ""type"": ""string"",
2967 ""enum"": [
2968 ""atom"",
2969 ""json""
2970 ],
2971 ""enumDescriptions"": [
2972 ""Use Atom XML format"",
2973 ""Use JSON format""
2974 ],
2975 ""default"": ""atom""
2976 },
2977 ""hl"": {
2978 ""restParameterType"": ""query"",
2979 ""description"": ""Language code to limit language results."",
2980 ""type"": ""string""
2981 },
2982 ""postId"": {
2983 ""restParameterType"": ""path"",
2984 ""required"": true,
2985 ""description"": ""ID of the activity on which to comment."",
2986 ""type"": ""string""
2987 },
2988 ""userId"": {
2989 ""restParameterType"": ""path"",
2990 ""required"": true,
2991 ""description"": ""ID of the user on whose behalf to comment."",
2992 ""type"": ""string""
2993 }
2994 },
2995 ""parameterOrder"": [
2996 ""userId"",
2997 ""postId""
2998 ],
2999 ""request"": {
3000 ""$ref"": ""Comment""
3001 },
3002 ""response"": {
3003 ""$ref"": ""Comment""
3004 }
3005 },
3006 ""list"": {
3007 ""restPath"": ""activities/{userId}/{scope}/{postId}/@comments"",
3008 ""rpcMethod"": ""chili.comments.list"",
3009 ""httpMethod"": ""GET"",
3010 ""description"": ""List comments"",
3011 ""parameters"": {
3012 ""alt"": {
3013 ""restParameterType"": ""query"",
3014 ""description"": ""Specifies an alternative representation type."",
3015 ""type"": ""string"",
3016 ""enum"": [
3017 ""atom"",
3018 ""json""
3019 ],
3020 ""enumDescriptions"": [
3021 ""Use Atom XML format"",
3022 ""Use JSON format""
3023 ],
3024 ""default"": ""atom""
3025 },
3026 ""c"": {
3027 ""restParameterType"": ""query"",
3028 ""description"": ""A continuation token that allows pagination."",
3029 ""type"": ""string""
3030 },
3031 ""hl"": {
3032 ""restParameterType"": ""query"",
3033 ""description"": ""Language code to limit language results."",
3034 ""type"": ""string""
3035 },
3036 ""max-results"": {
3037 ""restParameterType"": ""query"",
3038 ""description"": ""Maximum number of results to include."",
3039 ""type"": ""integer"",
3040 ""minimum"": ""0"",
3041 ""maximum"": ""4294967295"",
3042 ""default"": ""20""
3043 },
3044 ""postId"": {
3045 ""restParameterType"": ""path"",
3046 ""required"": true,
3047 ""description"": ""ID of the activity for which to get comments."",
3048 ""type"": ""string""
3049 },
3050 ""scope"": {
3051 ""restParameterType"": ""path"",
3052 ""required"": true,
3053 ""description"": ""The collection to which the activity belongs."",
3054 ""type"": ""string"",
3055 ""enum"": [
3056 ""@self""
3057 ],
3058 ""enumDescriptions"": [
3059 ""Activities posted by the user.""
3060 ]
3061 },
3062 ""userId"": {
3063 ""restParameterType"": ""path"",
3064 ""required"": true,
3065 ""description"": ""ID of the user for whose post to get comments."",
3066 ""type"": ""string""
3067 }
3068 },
3069 ""parameterOrder"": [
3070 ""userId"",
3071 ""scope"",
3072 ""postId""
3073 ],
3074 ""response"": {
3075 ""$ref"": ""CommentFeed""
3076 }
3077 },
3078 ""update"": {
3079 ""restPath"": ""activities/{userId}/{scope}/{postId}/@comments/{commentId}" ",
3080 ""rpcMethod"": ""chili.comments.update"",
3081 ""httpMethod"": ""PUT"",
3082 ""description"": ""Update a comment"",
3083 ""parameters"": {
3084 ""abuseType"": {
3085 ""restParameterType"": ""query"",
3086 ""type"": ""string""
3087 },
3088 ""alt"": {
3089 ""restParameterType"": ""query"",
3090 ""description"": ""Specifies an alternative representation type."",
3091 ""type"": ""string"",
3092 ""enum"": [
3093 ""atom"",
3094 ""json""
3095 ],
3096 ""enumDescriptions"": [
3097 ""Use Atom XML format"",
3098 ""Use JSON format""
3099 ],
3100 ""default"": ""atom""
3101 },
3102 ""commentId"": {
3103 ""restParameterType"": ""path"",
3104 ""required"": true,
3105 ""description"": ""ID of the comment being referenced."",
3106 ""type"": ""string""
3107 },
3108 ""hl"": {
3109 ""restParameterType"": ""query"",
3110 ""description"": ""Language code to limit language results."",
3111 ""type"": ""string""
3112 },
3113 ""postId"": {
3114 ""restParameterType"": ""path"",
3115 ""required"": true,
3116 ""description"": ""ID of the activity for which to update the comment."",
3117 ""type"": ""string""
3118 },
3119 ""scope"": {
3120 ""restParameterType"": ""path"",
3121 ""required"": true,
3122 ""description"": ""The collection to which the activity belongs."",
3123 ""type"": ""string"",
3124 ""enum"": [
3125 ""@abuse"",
3126 ""@self""
3127 ],
3128 ""enumDescriptions"": [
3129 ""Comments reported by the user."",
3130 ""Comments posted by the user.""
3131 ]
3132 },
3133 ""userId"": {
3134 ""restParameterType"": ""path"",
3135 ""required"": true,
3136 ""description"": ""ID of the user being referenced."",
3137 ""type"": ""string""
3138 }
3139 },
3140 ""parameterOrder"": [
3141 ""userId"",
3142 ""scope"",
3143 ""postId"",
3144 ""commentId""
3145 ],
3146 ""request"": {
3147 ""$ref"": ""Comment""
3148 },
3149 ""response"": {
3150 ""$ref"": ""Comment""
3151 }
3152 }
3153 }
3154 },
3155 ""groups"": {
3156 ""methods"": {
3157 ""delete"": {
3158 ""restPath"": ""people/{userId}/@groups/{groupId}"",
3159 ""rpcMethod"": ""chili.groups.delete"",
3160 ""httpMethod"": ""DELETE"",
3161 ""description"": ""Delete a group"",
3162 ""parameters"": {
3163 ""alt"": {
3164 ""restParameterType"": ""query"",
3165 ""description"": ""Specifies an alternative representation type."",
3166 ""type"": ""string"",
3167 ""enum"": [
3168 ""atom"",
3169 ""json""
3170 ],
3171 ""enumDescriptions"": [
3172 ""Use Atom XML format"",
3173 ""Use JSON format""
3174 ],
3175 ""default"": ""atom""
3176 },
3177 ""groupId"": {
3178 ""restParameterType"": ""path"",
3179 ""required"": true,
3180 ""description"": ""ID of the group to delete."",
3181 ""type"": ""string""
3182 },
3183 ""hl"": {
3184 ""restParameterType"": ""query"",
3185 ""description"": ""Language code to limit language results."",
3186 ""type"": ""string""
3187 },
3188 ""userId"": {
3189 ""restParameterType"": ""path"",
3190 ""required"": true,
3191 ""description"": ""ID of the user being referenced."",
3192 ""type"": ""string""
3193 }
3194 },
3195 ""parameterOrder"": [
3196 ""userId"",
3197 ""groupId""
3198 ]
3199 },
3200 ""get"": {
3201 ""restPath"": ""people/{userId}/@groups/{groupId}/@self"",
3202 ""rpcMethod"": ""chili.groups.get"",
3203 ""httpMethod"": ""GET"",
3204 ""description"": ""Get a group"",
3205 ""parameters"": {
3206 ""alt"": {
3207 ""restParameterType"": ""query"",
3208 ""description"": ""Specifies an alternative representation type."",
3209 ""type"": ""string"",
3210 ""enum"": [
3211 ""atom"",
3212 ""json""
3213 ],
3214 ""enumDescriptions"": [
3215 ""Use Atom XML format"",
3216 ""Use JSON format""
3217 ],
3218 ""default"": ""atom""
3219 },
3220 ""groupId"": {
3221 ""restParameterType"": ""path"",
3222 ""required"": true,
3223 ""description"": ""ID of the group to get."",
3224 ""type"": ""string""
3225 },
3226 ""hl"": {
3227 ""restParameterType"": ""query"",
3228 ""description"": ""Language code to limit language results."",
3229 ""type"": ""string""
3230 },
3231 ""userId"": {
3232 ""restParameterType"": ""path"",
3233 ""required"": true,
3234 ""description"": ""ID of the user being referenced."",
3235 ""type"": ""string""
3236 }
3237 },
3238 ""parameterOrder"": [
3239 ""userId"",
3240 ""groupId""
3241 ],
3242 ""response"": {
3243 ""$ref"": ""Group""
3244 }
3245 },
3246 ""insert"": {
3247 ""restPath"": ""people/{userId}/@groups"",
3248 ""rpcMethod"": ""chili.groups.insert"",
3249 ""httpMethod"": ""POST"",
3250 ""description"": ""Create a group"",
3251 ""parameters"": {
3252 ""alt"": {
3253 ""restParameterType"": ""query"",
3254 ""description"": ""Specifies an alternative representation type."",
3255 ""type"": ""string"",
3256 ""enum"": [
3257 ""atom"",
3258 ""json""
3259 ],
3260 ""enumDescriptions"": [
3261 ""Use Atom XML format"",
3262 ""Use JSON format""
3263 ],
3264 ""default"": ""atom""
3265 },
3266 ""hl"": {
3267 ""restParameterType"": ""query"",
3268 ""description"": ""Language code to limit language results."",
3269 ""type"": ""string""
3270 },
3271 ""userId"": {
3272 ""restParameterType"": ""path"",
3273 ""required"": true,
3274 ""description"": ""ID of the user being referenced."",
3275 ""type"": ""string""
3276 }
3277 },
3278 ""parameterOrder"": [
3279 ""userId""
3280 ],
3281 ""request"": {
3282 ""$ref"": ""Group""
3283 },
3284 ""response"": {
3285 ""$ref"": ""Group""
3286 }
3287 },
3288 ""list"": {
3289 ""restPath"": ""people/{userId}/@groups"",
3290 ""rpcMethod"": ""chili.groups.list"",
3291 ""httpMethod"": ""GET"",
3292 ""description"": ""Get a user's groups"",
3293 ""parameters"": {
3294 ""alt"": {
3295 ""restParameterType"": ""query"",
3296 ""description"": ""Specifies an alternative representation type."",
3297 ""type"": ""string"",
3298 ""enum"": [
3299 ""atom"",
3300 ""json""
3301 ],
3302 ""enumDescriptions"": [
3303 ""Use Atom XML format"",
3304 ""Use JSON format""
3305 ],
3306 ""default"": ""atom""
3307 },
3308 ""c"": {
3309 ""restParameterType"": ""query"",
3310 ""description"": ""A continuation token that allows pagination."",
3311 ""type"": ""string""
3312 },
3313 ""hl"": {
3314 ""restParameterType"": ""query"",
3315 ""description"": ""Language code to limit language results."",
3316 ""type"": ""string""
3317 },
3318 ""max-results"": {
3319 ""restParameterType"": ""query"",
3320 ""description"": ""Maximum number of results to include."",
3321 ""type"": ""integer"",
3322 ""minimum"": ""0"",
3323 ""maximum"": ""4294967295"",
3324 ""default"": ""20""
3325 },
3326 ""userId"": {
3327 ""restParameterType"": ""path"",
3328 ""required"": true,
3329 ""description"": ""ID of the user being referenced."",
3330 ""type"": ""string""
3331 }
3332 },
3333 ""parameterOrder"": [
3334 ""userId""
3335 ],
3336 ""response"": {
3337 ""$ref"": ""GroupFeed""
3338 }
3339 },
3340 ""update"": {
3341 ""restPath"": ""people/{userId}/@groups/{groupId}/@self"",
3342 ""rpcMethod"": ""chili.groups.update"",
3343 ""httpMethod"": ""PUT"",
3344 ""description"": ""Update a group"",
3345 ""parameters"": {
3346 ""alt"": {
3347 ""restParameterType"": ""query"",
3348 ""description"": ""Specifies an alternative representation type."",
3349 ""type"": ""string"",
3350 ""enum"": [
3351 ""atom"",
3352 ""json""
3353 ],
3354 ""enumDescriptions"": [
3355 ""Use Atom XML format"",
3356 ""Use JSON format""
3357 ],
3358 ""default"": ""atom""
3359 },
3360 ""groupId"": {
3361 ""restParameterType"": ""path"",
3362 ""required"": true,
3363 ""description"": ""ID of the group to update."",
3364 ""type"": ""string""
3365 },
3366 ""hl"": {
3367 ""restParameterType"": ""query"",
3368 ""description"": ""Language code to limit language results."",
3369 ""type"": ""string""
3370 },
3371 ""userId"": {
3372 ""restParameterType"": ""path"",
3373 ""required"": true,
3374 ""description"": ""ID of the user being referenced."",
3375 ""type"": ""string""
3376 }
3377 },
3378 ""parameterOrder"": [
3379 ""userId"",
3380 ""groupId""
3381 ],
3382 ""request"": {
3383 ""$ref"": ""Group""
3384 },
3385 ""response"": {
3386 ""$ref"": ""Group""
3387 }
3388 }
3389 }
3390 },
3391 ""people"": {
3392 ""methods"": {
3393 ""delete"": {
3394 ""restPath"": ""people/{userId}/@groups/{groupId}/{personId}"",
3395 ""rpcMethod"": ""chili.people.delete"",
3396 ""httpMethod"": ""DELETE"",
3397 ""description"": ""Remove a person from a group"",
3398 ""parameters"": {
3399 ""alt"": {
3400 ""restParameterType"": ""query"",
3401 ""description"": ""Specifies an alternative representation type."",
3402 ""type"": ""string"",
3403 ""enum"": [
3404 ""atom"",
3405 ""json""
3406 ],
3407 ""enumDescriptions"": [
3408 ""Use Atom XML format"",
3409 ""Use JSON format""
3410 ],
3411 ""default"": ""atom""
3412 },
3413 ""groupId"": {
3414 ""restParameterType"": ""path"",
3415 ""required"": true,
3416 ""description"": ""ID of the group from which to remove the person."",
3417 ""type"": ""string""
3418 },
3419 ""hl"": {
3420 ""restParameterType"": ""query"",
3421 ""description"": ""Language code to limit language results."",
3422 ""type"": ""string""
3423 },
3424 ""personId"": {
3425 ""restParameterType"": ""path"",
3426 ""required"": true,
3427 ""description"": ""ID of the person to remove from the group."",
3428 ""type"": ""string""
3429 },
3430 ""userId"": {
3431 ""restParameterType"": ""path"",
3432 ""required"": true,
3433 ""description"": ""ID of the owner of the group."",
3434 ""type"": ""string""
3435 }
3436 },
3437 ""parameterOrder"": [
3438 ""userId"",
3439 ""groupId"",
3440 ""personId""
3441 ]
3442 },
3443 ""get"": {
3444 ""restPath"": ""people/{userId}/@self"",
3445 ""rpcMethod"": ""chili.people.get"",
3446 ""httpMethod"": ""GET"",
3447 ""description"": ""Get a user profile"",
3448 ""parameters"": {
3449 ""alt"": {
3450 ""restParameterType"": ""query"",
3451 ""description"": ""Specifies an alternative representation type."",
3452 ""type"": ""string"",
3453 ""enum"": [
3454 ""atom"",
3455 ""json""
3456 ],
3457 ""enumDescriptions"": [
3458 ""Use Atom XML format"",
3459 ""Use JSON format""
3460 ],
3461 ""default"": ""atom""
3462 },
3463 ""hl"": {
3464 ""restParameterType"": ""query"",
3465 ""description"": ""Language code to limit language results."",
3466 ""type"": ""string""
3467 },
3468 ""userId"": {
3469 ""restParameterType"": ""path"",
3470 ""required"": true,
3471 ""description"": ""ID of the user being referenced."",
3472 ""type"": ""string""
3473 }
3474 },
3475 ""parameterOrder"": [
3476 ""userId""
3477 ],
3478 ""response"": {
3479 ""$ref"": ""Person""
3480 }
3481 },
3482 ""liked"": {
3483 ""restPath"": ""activities/{userId}/{scope}/{postId}/{groupId}"",
3484 ""rpcMethod"": ""chili.people.liked"",
3485 ""httpMethod"": ""GET"",
3486 ""description"": ""Get people who liked an activity"",
3487 ""parameters"": {
3488 ""alt"": {
3489 ""restParameterType"": ""query"",
3490 ""description"": ""Specifies an alternative representation type."",
3491 ""type"": ""string"",
3492 ""enum"": [
3493 ""atom"",
3494 ""json""
3495 ],
3496 ""enumDescriptions"": [
3497 ""Use Atom XML format"",
3498 ""Use JSON format""
3499 ],
3500 ""default"": ""atom""
3501 },
3502 ""c"": {
3503 ""restParameterType"": ""query"",
3504 ""description"": ""A continuation token that allows pagination."",
3505 ""type"": ""string""
3506 },
3507 ""groupId"": {
3508 ""restParameterType"": ""path"",
3509 ""required"": true,
3510 ""type"": ""string"",
3511 ""enum"": [
3512 ""@liked""
3513 ],
3514 ""enumDescriptions"": [
3515 ""People who liked this activity.""
3516 ]
3517 },
3518 ""hl"": {
3519 ""restParameterType"": ""query"",
3520 ""description"": ""Language code to limit language results."",
3521 ""type"": ""string""
3522 },
3523 ""max-results"": {
3524 ""restParameterType"": ""query"",
3525 ""description"": ""Maximum number of results to include."",
3526 ""type"": ""integer"",
3527 ""minimum"": ""0"",
3528 ""maximum"": ""4294967295"",
3529 ""default"": ""20""
3530 },
3531 ""postId"": {
3532 ""restParameterType"": ""path"",
3533 ""required"": true,
3534 ""description"": ""ID of the activity that was liked."",
3535 ""type"": ""string""
3536 },
3537 ""scope"": {
3538 ""restParameterType"": ""path"",
3539 ""required"": true,
3540 ""type"": ""string""
3541 },
3542 ""userId"": {
3543 ""restParameterType"": ""path"",
3544 ""required"": true,
3545 ""description"": ""ID of the user being referenced."",
3546 ""type"": ""string""
3547 }
3548 },
3549 ""parameterOrder"": [
3550 ""userId"",
3551 ""scope"",
3552 ""postId"",
3553 ""groupId""
3554 ],
3555 ""response"": {
3556 ""$ref"": ""PeopleFeed""
3557 }
3558 },
3559 ""list"": {
3560 ""restPath"": ""people/{userId}/@groups/{groupId}"",
3561 ""rpcMethod"": ""chili.people.list"",
3562 ""httpMethod"": ""GET"",
3563 ""description"": ""Get people in a group"",
3564 ""parameters"": {
3565 ""alt"": {
3566 ""restParameterType"": ""query"",
3567 ""description"": ""Specifies an alternative representation type."",
3568 ""type"": ""string"",
3569 ""enum"": [
3570 ""atom"",
3571 ""json""
3572 ],
3573 ""enumDescriptions"": [
3574 ""Use Atom XML format"",
3575 ""Use JSON format""
3576 ],
3577 ""default"": ""atom""
3578 },
3579 ""c"": {
3580 ""restParameterType"": ""query"",
3581 ""description"": ""A continuation token that allows pagination."",
3582 ""type"": ""string""
3583 },
3584 ""groupId"": {
3585 ""restParameterType"": ""path"",
3586 ""required"": true,
3587 ""description"": ""ID of the group for which to list users."",
3588 ""type"": ""string""
3589 },
3590 ""hl"": {
3591 ""restParameterType"": ""query"",
3592 ""description"": ""Language code to limit language results."",
3593 ""type"": ""string""
3594 },
3595 ""max-results"": {
3596 ""restParameterType"": ""query"",
3597 ""description"": ""Maximum number of results to include."",
3598 ""type"": ""integer"",
3599 ""minimum"": ""0"",
3600 ""maximum"": ""4294967295"",
3601 ""default"": ""20""
3602 },
3603 ""userId"": {
3604 ""restParameterType"": ""path"",
3605 ""required"": true,
3606 ""description"": ""ID of the user being referenced."",
3607 ""type"": ""string""
3608 }
3609 },
3610 ""parameterOrder"": [
3611 ""userId"",
3612 ""groupId""
3613 ],
3614 ""response"": {
3615 ""$ref"": ""PeopleFeed""
3616 }
3617 },
3618 ""reshared"": {
3619 ""restPath"": ""activities/{userId}/{scope}/{postId}/{groupId}"",
3620 ""rpcMethod"": ""chili.people.reshared"",
3621 ""httpMethod"": ""GET"",
3622 ""description"": ""Get people who reshared an activity"",
3623 ""parameters"": {
3624 ""alt"": {
3625 ""restParameterType"": ""query"",
3626 ""description"": ""Specifies an alternative representation type."",
3627 ""type"": ""string"",
3628 ""enum"": [
3629 ""atom"",
3630 ""json""
3631 ],
3632 ""enumDescriptions"": [
3633 ""Use Atom XML format"",
3634 ""Use JSON format""
3635 ],
3636 ""default"": ""atom""
3637 },
3638 ""c"": {
3639 ""restParameterType"": ""query"",
3640 ""description"": ""A continuation token that allows pagination."",
3641 ""type"": ""string""
3642 },
3643 ""groupId"": {
3644 ""restParameterType"": ""path"",
3645 ""required"": true,
3646 ""type"": ""string"",
3647 ""enum"": [
3648 ""@reshared""
3649 ],
3650 ""enumDescriptions"": [
3651 ""People who reshared this activity.""
3652 ]
3653 },
3654 ""hl"": {
3655 ""restParameterType"": ""query"",
3656 ""description"": ""Language code to limit language results."",
3657 ""type"": ""string""
3658 },
3659 ""max-results"": {
3660 ""restParameterType"": ""query"",
3661 ""description"": ""Maximum number of results to include."",
3662 ""type"": ""integer"",
3663 ""minimum"": ""0"",
3664 ""maximum"": ""4294967295"",
3665 ""default"": ""20""
3666 },
3667 ""postId"": {
3668 ""restParameterType"": ""path"",
3669 ""required"": true,
3670 ""description"": ""ID of the activity that was reshared."",
3671 ""type"": ""string""
3672 },
3673 ""scope"": {
3674 ""restParameterType"": ""path"",
3675 ""required"": true,
3676 ""type"": ""string""
3677 },
3678 ""userId"": {
3679 ""restParameterType"": ""path"",
3680 ""required"": true,
3681 ""description"": ""ID of the user being referenced."",
3682 ""type"": ""string""
3683 }
3684 },
3685 ""parameterOrder"": [
3686 ""userId"",
3687 ""scope"",
3688 ""postId"",
3689 ""groupId""
3690 ],
3691 ""response"": {
3692 ""$ref"": ""PeopleFeed""
3693 }
3694 },
3695 ""search"": {
3696 ""restPath"": ""people/search"",
3697 ""rpcMethod"": ""chili.people.search"",
3698 ""httpMethod"": ""GET"",
3699 ""description"": ""Search for people"",
3700 ""parameters"": {
3701 ""alt"": {
3702 ""restParameterType"": ""query"",
3703 ""description"": ""Specifies an alternative representation type."",
3704 ""type"": ""string"",
3705 ""enum"": [
3706 ""atom"",
3707 ""json""
3708 ],
3709 ""enumDescriptions"": [
3710 ""Use Atom XML format"",
3711 ""Use JSON format""
3712 ],
3713 ""default"": ""atom""
3714 },
3715 ""c"": {
3716 ""restParameterType"": ""query"",
3717 ""description"": ""A continuation token that allows pagination."",
3718 ""type"": ""string""
3719 },
3720 ""hl"": {
3721 ""restParameterType"": ""query"",
3722 ""description"": ""Language code to limit language results."",
3723 ""type"": ""string""
3724 },
3725 ""max-results"": {
3726 ""restParameterType"": ""query"",
3727 ""description"": ""Maximum number of results to include."",
3728 ""type"": ""integer"",
3729 ""minimum"": ""0"",
3730 ""maximum"": ""4294967295"",
3731 ""default"": ""20""
3732 },
3733 ""q"": {
3734 ""restParameterType"": ""query"",
3735 ""description"": ""Full-text search query string."",
3736 ""type"": ""string""
3737 }
3738 },
3739 ""response"": {
3740 ""$ref"": ""PeopleFeed""
3741 }
3742 },
3743 ""update"": {
3744 ""restPath"": ""people/{userId}/@groups/{groupId}/{personId}"",
3745 ""rpcMethod"": ""chili.people.update"",
3746 ""httpMethod"": ""PUT"",
3747 ""description"": ""Add a person to a group"",
3748 ""parameters"": {
3749 ""alt"": {
3750 ""restParameterType"": ""query"",
3751 ""description"": ""Specifies an alternative representation type."",
3752 ""type"": ""string"",
3753 ""enum"": [
3754 ""atom"",
3755 ""json""
3756 ],
3757 ""enumDescriptions"": [
3758 ""Use Atom XML format"",
3759 ""Use JSON format""
3760 ],
3761 ""default"": ""atom""
3762 },
3763 ""groupId"": {
3764 ""restParameterType"": ""path"",
3765 ""required"": true,
3766 ""description"": ""ID of the group to which to add the person."",
3767 ""type"": ""string""
3768 },
3769 ""hl"": {
3770 ""restParameterType"": ""query"",
3771 ""description"": ""Language code to limit language results."",
3772 ""type"": ""string""
3773 },
3774 ""personId"": {
3775 ""restParameterType"": ""path"",
3776 ""required"": true,
3777 ""description"": ""ID of the person to add to the group."",
3778 ""type"": ""string""
3779 },
3780 ""userId"": {
3781 ""restParameterType"": ""path"",
3782 ""required"": true,
3783 ""description"": ""ID of the owner of the group."",
3784 ""type"": ""string""
3785 }
3786 },
3787 ""parameterOrder"": [
3788 ""userId"",
3789 ""groupId"",
3790 ""personId""
3791 ],
3792 ""request"": {
3793 ""$ref"": ""Person""
3794 },
3795 ""response"": {
3796 ""$ref"": ""Person""
3797 }
3798 }
3799 }
3800 },
3801 ""photoAlbums"": {
3802 ""methods"": {
3803 ""delete"": {
3804 ""restPath"": ""photos/{userId}/@self/{albumId}"",
3805 ""rpcMethod"": ""chili.photoAlbums.delete"",
3806 ""httpMethod"": ""DELETE"",
3807 ""description"": ""Delete a photo album"",
3808 ""parameters"": {
3809 ""albumId"": {
3810 ""restParameterType"": ""path"",
3811 ""required"": true,
3812 ""description"": ""ID of the album to delete."",
3813 ""type"": ""string""
3814 },
3815 ""alt"": {
3816 ""restParameterType"": ""query"",
3817 ""description"": ""Specifies an alternative representation type."",
3818 ""type"": ""string"",
3819 ""enum"": [
3820 ""atom"",
3821 ""json""
3822 ],
3823 ""enumDescriptions"": [
3824 ""Use Atom XML format"",
3825 ""Use JSON format""
3826 ],
3827 ""default"": ""atom""
3828 },
3829 ""hl"": {
3830 ""restParameterType"": ""query"",
3831 ""description"": ""Language code to limit language results."",
3832 ""type"": ""string""
3833 },
3834 ""userId"": {
3835 ""restParameterType"": ""path"",
3836 ""required"": true,
3837 ""description"": ""ID of the user being referenced."",
3838 ""type"": ""string""
3839 }
3840 },
3841 ""parameterOrder"": [
3842 ""userId"",
3843 ""albumId""
3844 ]
3845 },
3846 ""get"": {
3847 ""restPath"": ""photos/{userId}/@self/{albumId}"",
3848 ""rpcMethod"": ""chili.photoAlbums.get"",
3849 ""httpMethod"": ""GET"",
3850 ""description"": ""Get a photo album"",
3851 ""parameters"": {
3852 ""albumId"": {
3853 ""restParameterType"": ""path"",
3854 ""required"": true,
3855 ""description"": ""ID of the album to get."",
3856 ""type"": ""string""
3857 },
3858 ""alt"": {
3859 ""restParameterType"": ""query"",
3860 ""description"": ""Specifies an alternative representation type."",
3861 ""type"": ""string"",
3862 ""enum"": [
3863 ""atom"",
3864 ""json""
3865 ],
3866 ""enumDescriptions"": [
3867 ""Use Atom XML format"",
3868 ""Use JSON format""
3869 ],
3870 ""default"": ""atom""
3871 },
3872 ""hl"": {
3873 ""restParameterType"": ""query"",
3874 ""description"": ""Language code to limit language results."",
3875 ""type"": ""string""
3876 },
3877 ""userId"": {
3878 ""restParameterType"": ""path"",
3879 ""required"": true,
3880 ""description"": ""ID of the user being referenced."",
3881 ""type"": ""string""
3882 }
3883 },
3884 ""parameterOrder"": [
3885 ""userId"",
3886 ""albumId""
3887 ],
3888 ""response"": {
3889 ""$ref"": ""Album""
3890 }
3891 },
3892 ""insert"": {
3893 ""restPath"": ""photos/{userId}/@self"",
3894 ""rpcMethod"": ""chili.photoAlbums.insert"",
3895 ""httpMethod"": ""POST"",
3896 ""description"": ""Create a photo album"",
3897 ""parameters"": {
3898 ""alt"": {
3899 ""restParameterType"": ""query"",
3900 ""description"": ""Specifies an alternative representation type."",
3901 ""type"": ""string"",
3902 ""enum"": [
3903 ""atom"",
3904 ""json""
3905 ],
3906 ""enumDescriptions"": [
3907 ""Use Atom XML format"",
3908 ""Use JSON format""
3909 ],
3910 ""default"": ""atom""
3911 },
3912 ""hl"": {
3913 ""restParameterType"": ""query"",
3914 ""description"": ""Language code to limit language results."",
3915 ""type"": ""string""
3916 },
3917 ""userId"": {
3918 ""restParameterType"": ""path"",
3919 ""required"": true,
3920 ""description"": ""ID of the user being referenced."",
3921 ""type"": ""string""
3922 }
3923 },
3924 ""parameterOrder"": [
3925 ""userId""
3926 ],
3927 ""request"": {
3928 ""$ref"": ""Album""
3929 },
3930 ""response"": {
3931 ""$ref"": ""Album""
3932 }
3933 },
3934 ""list"": {
3935 ""restPath"": ""photos/{userId}/{scope}"",
3936 ""rpcMethod"": ""chili.photoAlbums.list"",
3937 ""httpMethod"": ""GET"",
3938 ""description"": ""List a user's photo albums"",
3939 ""parameters"": {
3940 ""alt"": {
3941 ""restParameterType"": ""query"",
3942 ""description"": ""Specifies an alternative representation type."",
3943 ""type"": ""string"",
3944 ""enum"": [
3945 ""atom"",
3946 ""json""
3947 ],
3948 ""enumDescriptions"": [
3949 ""Use Atom XML format"",
3950 ""Use JSON format""
3951 ],
3952 ""default"": ""atom""
3953 },
3954 ""c"": {
3955 ""restParameterType"": ""query"",
3956 ""description"": ""A continuation token that allows pagination."",
3957 ""type"": ""string""
3958 },
3959 ""hl"": {
3960 ""restParameterType"": ""query"",
3961 ""description"": ""Language code to limit language results."",
3962 ""type"": ""string""
3963 },
3964 ""max-results"": {
3965 ""restParameterType"": ""query"",
3966 ""description"": ""Maximum number of results to include."",
3967 ""type"": ""integer"",
3968 ""minimum"": ""0"",
3969 ""maximum"": ""4294967295"",
3970 ""default"": ""20""
3971 },
3972 ""scope"": {
3973 ""restParameterType"": ""path"",
3974 ""required"": true,
3975 ""description"": ""The collection of albums to list."",
3976 ""type"": ""string"",
3977 ""enum"": [
3978 ""@self""
3979 ],
3980 ""enumDescriptions"": [
3981 ""Albums posted by the user.""
3982 ]
3983 },
3984 ""userId"": {
3985 ""restParameterType"": ""path"",
3986 ""required"": true,
3987 ""description"": ""ID of the user being referenced."",
3988 ""type"": ""string""
3989 }
3990 },
3991 ""parameterOrder"": [
3992 ""userId"",
3993 ""scope""
3994 ],
3995 ""response"": {
3996 ""$ref"": ""AlbumsFeed""
3997 }
3998 }
3999 }
4000 },
4001 ""photos"": {
4002 ""methods"": {
4003 ""delete"": {
4004 ""restPath"": ""photos/{userId}/@self/{albumId}/@photos/{photoId}"",
4005 ""rpcMethod"": ""chili.photos.delete"",
4006 ""httpMethod"": ""DELETE"",
4007 ""description"": ""Delete a photo"",
4008 ""parameters"": {
4009 ""albumId"": {
4010 ""restParameterType"": ""path"",
4011 ""required"": true,
4012 ""description"": ""ID of the album to which to photo belongs."",
4013 ""type"": ""string""
4014 },
4015 ""alt"": {
4016 ""restParameterType"": ""query"",
4017 ""description"": ""Specifies an alternative representation type."",
4018 ""type"": ""string"",
4019 ""enum"": [
4020 ""atom"",
4021 ""json""
4022 ],
4023 ""enumDescriptions"": [
4024 ""Use Atom XML format"",
4025 ""Use JSON format""
4026 ],
4027 ""default"": ""atom""
4028 },
4029 ""hl"": {
4030 ""restParameterType"": ""query"",
4031 ""description"": ""Language code to limit language results."",
4032 ""type"": ""string""
4033 },
4034 ""photoId"": {
4035 ""restParameterType"": ""path"",
4036 ""required"": true,
4037 ""description"": ""ID of the photo to delete."",
4038 ""type"": ""string""
4039 },
4040 ""userId"": {
4041 ""restParameterType"": ""path"",
4042 ""required"": true,
4043 ""description"": ""ID of the user being referenced."",
4044 ""type"": ""string""
4045 }
4046 },
4047 ""parameterOrder"": [
4048 ""userId"",
4049 ""albumId"",
4050 ""photoId""
4051 ]
4052 },
4053 ""get"": {
4054 ""restPath"": ""photos/{userId}/@self/{albumId}/@photos/{photoId}"",
4055 ""rpcMethod"": ""chili.photos.get"",
4056 ""httpMethod"": ""GET"",
4057 ""description"": ""Get photo metadata"",
4058 ""parameters"": {
4059 ""albumId"": {
4060 ""restParameterType"": ""path"",
4061 ""required"": true,
4062 ""description"": ""ID of the photo for which to get metadata."",
4063 ""type"": ""string""
4064 },
4065 ""alt"": {
4066 ""restParameterType"": ""query"",
4067 ""description"": ""Specifies an alternative representation type."",
4068 ""type"": ""string"",
4069 ""enum"": [
4070 ""atom"",
4071 ""json""
4072 ],
4073 ""enumDescriptions"": [
4074 ""Use Atom XML format"",
4075 ""Use JSON format""
4076 ],
4077 ""default"": ""atom""
4078 },
4079 ""hl"": {
4080 ""restParameterType"": ""query"",
4081 ""description"": ""Language code to limit language results."",
4082 ""type"": ""string""
4083 },
4084 ""photoId"": {
4085 ""restParameterType"": ""path"",
4086 ""required"": true,
4087 ""description"": ""ID of the album containing the photo."",
4088 ""type"": ""string""
4089 },
4090 ""userId"": {
4091 ""restParameterType"": ""path"",
4092 ""required"": true,
4093 ""description"": ""ID of the user being referenced."",
4094 ""type"": ""string""
4095 }
4096 },
4097 ""parameterOrder"": [
4098 ""userId"",
4099 ""albumId"",
4100 ""photoId""
4101 ],
4102 ""response"": {
4103 ""$ref"": ""ChiliPhotosResourceJson""
4104 }
4105 },
4106 ""insert"": {
4107 ""restPath"": ""photos/{userId}/{albumId}"",
4108 ""rpcMethod"": ""chili.photos.insert"",
4109 ""httpMethod"": ""POST"",
4110 ""description"": ""Upload a photo to an album"",
4111 ""parameters"": {
4112 ""albumId"": {
4113 ""restParameterType"": ""path"",
4114 ""required"": true,
4115 ""description"": ""ID of the album to which to upload."",
4116 ""type"": ""string""
4117 },
4118 ""alt"": {
4119 ""restParameterType"": ""query"",
4120 ""description"": ""Specifies an alternative representation type."",
4121 ""type"": ""string"",
4122 ""enum"": [
4123 ""atom"",
4124 ""json""
4125 ],
4126 ""enumDescriptions"": [
4127 ""Use Atom XML format"",
4128 ""Use JSON format""
4129 ],
4130 ""default"": ""atom""
4131 },
4132 ""hl"": {
4133 ""restParameterType"": ""query"",
4134 ""description"": ""Language code to limit language results."",
4135 ""type"": ""string""
4136 },
4137 ""userId"": {
4138 ""restParameterType"": ""path"",
4139 ""required"": true,
4140 ""description"": ""ID of the user being referenced."",
4141 ""type"": ""string""
4142 }
4143 },
4144 ""parameterOrder"": [
4145 ""userId"",
4146 ""albumId""
4147 ],
4148 ""request"": {
4149 ""$ref"": ""AlbumLite""
4150 },
4151 ""response"": {
4152 ""$ref"": ""AlbumLite""
4153 }
4154 },
4155 ""insert2"": {
4156 ""restPath"": ""photos/{userId}/@self/{albumId}/@photos"",
4157 ""rpcMethod"": ""chili.photos.insert2"",
4158 ""httpMethod"": ""POST"",
4159 ""description"": ""Upload a photo to an album"",
4160 ""parameters"": {
4161 ""albumId"": {
4162 ""restParameterType"": ""path"",
4163 ""required"": true,
4164 ""description"": ""ID of the album to which to upload."",
4165 ""type"": ""string""
4166 },
4167 ""alt"": {
4168 ""restParameterType"": ""query"",
4169 ""description"": ""Specifies an alternative representation type."",
4170 ""type"": ""string"",
4171 ""enum"": [
4172 ""atom"",
4173 ""json""
4174 ],
4175 ""enumDescriptions"": [
4176 ""Use Atom XML format"",
4177 ""Use JSON format""
4178 ],
4179 ""default"": ""atom""
4180 },
4181 ""hl"": {
4182 ""restParameterType"": ""query"",
4183 ""description"": ""Language code to limit language results."",
4184 ""type"": ""string""
4185 },
4186 ""userId"": {
4187 ""restParameterType"": ""path"",
4188 ""required"": true,
4189 ""description"": ""ID of the user being referenced."",
4190 ""type"": ""string""
4191 }
4192 },
4193 ""parameterOrder"": [
4194 ""userId"",
4195 ""albumId""
4196 ],
4197 ""request"": {
4198 ""$ref"": ""ChiliPhotosResourceJson""
4199 },
4200 ""response"": {
4201 ""$ref"": ""ChiliPhotosResourceJson""
4202 }
4203 },
4204 ""listByAlbum"": {
4205 ""restPath"": ""photos/{userId}/@self/{albumId}/@photos"",
4206 ""rpcMethod"": ""chili.photos.listByAlbum"",
4207 ""httpMethod"": ""GET"",
4208 ""description"": ""List photos in an album"",
4209 ""parameters"": {
4210 ""albumId"": {
4211 ""restParameterType"": ""path"",
4212 ""required"": true,
4213 ""description"": ""ID of the album for which to list photos."",
4214 ""type"": ""string""
4215 },
4216 ""alt"": {
4217 ""restParameterType"": ""query"",
4218 ""description"": ""Specifies an alternative representation type."",
4219 ""type"": ""string"",
4220 ""enum"": [
4221 ""atom"",
4222 ""json""
4223 ],
4224 ""enumDescriptions"": [
4225 ""Use Atom XML format"",
4226 ""Use JSON format""
4227 ],
4228 ""default"": ""atom""
4229 },
4230 ""c"": {
4231 ""restParameterType"": ""query"",
4232 ""description"": ""A continuation token that allows pagination."",
4233 ""type"": ""string""
4234 },
4235 ""hl"": {
4236 ""restParameterType"": ""query"",
4237 ""description"": ""Language code to limit language results."",
4238 ""type"": ""string""
4239 },
4240 ""max-results"": {
4241 ""restParameterType"": ""query"",
4242 ""description"": ""Maximum number of results to include."",
4243 ""type"": ""integer"",
4244 ""minimum"": ""0"",
4245 ""maximum"": ""4294967295"",
4246 ""default"": ""20""
4247 },
4248 ""userId"": {
4249 ""restParameterType"": ""path"",
4250 ""required"": true,
4251 ""description"": ""ID of the user being referenced."",
4252 ""type"": ""string""
4253 }
4254 },
4255 ""parameterOrder"": [
4256 ""userId"",
4257 ""albumId""
4258 ],
4259 ""response"": {
4260 ""$ref"": ""PhotosFeed""
4261 }
4262 },
4263 ""listByScope"": {
4264 ""restPath"": ""photos/{userId}/@self/{scope}/@photos"",
4265 ""rpcMethod"": ""chili.photos.listByScope"",
4266 ""httpMethod"": ""GET"",
4267 ""description"": ""Get a user's photos"",
4268 ""parameters"": {
4269 ""alt"": {
4270 ""restParameterType"": ""query"",
4271 ""description"": ""Specifies an alternative representation type."",
4272 ""type"": ""string"",
4273 ""enum"": [
4274 ""atom"",
4275 ""json""
4276 ],
4277 ""enumDescriptions"": [
4278 ""Use Atom XML format"",
4279 ""Use JSON format""
4280 ],
4281 ""default"": ""atom""
4282 },
4283 ""c"": {
4284 ""restParameterType"": ""query"",
4285 ""description"": ""A continuation token that allows pagination."",
4286 ""type"": ""string""
4287 },
4288 ""hl"": {
4289 ""restParameterType"": ""query"",
4290 ""description"": ""Language code to limit language results."",
4291 ""type"": ""string""
4292 },
4293 ""max-results"": {
4294 ""restParameterType"": ""query"",
4295 ""description"": ""Maximum number of results to include."",
4296 ""type"": ""integer"",
4297 ""minimum"": ""0"",
4298 ""maximum"": ""4294967295"",
4299 ""default"": ""20""
4300 },
4301 ""scope"": {
4302 ""restParameterType"": ""path"",
4303 ""required"": true,
4304 ""description"": ""The collection of photos to list."",
4305 ""type"": ""string"",
4306 ""enum"": [
4307 ""@recent""
4308 ],
4309 ""enumDescriptions"": [
4310 ""Recent photos uploaded by the user.""
4311 ]
4312 },
4313 ""userId"": {
4314 ""restParameterType"": ""path"",
4315 ""required"": true,
4316 ""description"": ""ID of the user being referenced."",
4317 ""type"": ""string""
4318 }
4319 },
4320 ""parameterOrder"": [
4321 ""userId"",
4322 ""scope""
4323 ],
4324 ""response"": {
4325 ""$ref"": ""PhotosFeed""
4326 }
4327 }
4328 }
4329 },
4330 ""related"": {
4331 ""methods"": {
4332 ""list"": {
4333 ""restPath"": ""activities/{userId}/{scope}/{postId}/@related"",
4334 ""rpcMethod"": ""chili.related.list"",
4335 ""httpMethod"": ""GET"",
4336 ""description"": ""Get related links for an activity"",
4337 ""parameters"": {
4338 ""alt"": {
4339 ""restParameterType"": ""query"",
4340 ""description"": ""Specifies an alternative representation type."",
4341 ""type"": ""string"",
4342 ""enum"": [
4343 ""atom"",
4344 ""json""
4345 ],
4346 ""enumDescriptions"": [
4347 ""Use Atom XML format"",
4348 ""Use JSON format""
4349 ],
4350 ""default"": ""atom""
4351 },
4352 ""hl"": {
4353 ""restParameterType"": ""query"",
4354 ""description"": ""Language code to limit language results."",
4355 ""type"": ""string""
4356 },
4357 ""postId"": {
4358 ""restParameterType"": ""path"",
4359 ""required"": true,
4360 ""description"": ""ID of the activity to which to get related links."",
4361 ""type"": ""string""
4362 },
4363 ""scope"": {
4364 ""restParameterType"": ""path"",
4365 ""required"": true,
4366 ""description"": ""The collection to which the activity belongs."",
4367 ""type"": ""string"",
4368 ""enum"": [
4369 ""@self""
4370 ],
4371 ""enumDescriptions"": [
4372 ""Activities posted by the user.""
4373 ]
4374 },
4375 ""userId"": {
4376 ""restParameterType"": ""path"",
4377 ""required"": true,
4378 ""description"": ""ID of the user being referenced."",
4379 ""type"": ""string""
4380 }
4381 },
4382 ""parameterOrder"": [
4383 ""userId"",
4384 ""scope"",
4385 ""postId""
4386 ],
4387 ""response"": {
4388 ""$ref"": ""RelatedFeed""
4389 }
4390 }
4391 }
4392 }
4393 }
4394 }
4395
4396 ";
4397
4398 #endregion
4399
4400 /// <summary>
4401 /// Creates a KeyValuePair out of the specified json string
4402 /// </summary>
4403 public static KeyValuePair<string, object> CreateJsonResourceDefinition( string resourceName, string jsonString)
4404 {
4405 var json = (JsonDictionary)JsonReader.Parse(jsonString);
4406
4407 return new KeyValuePair<string, object>(resourceName, json);
4408 }
4409
4410 /// <summary>
4411 /// Creates a resource for discovery v1
4412 /// </summary>
4413 public static IResource CreateResourceDiscoveryV_1_0(string resourceName , string json)
4414 {
4415 return ServiceFactory.Default.CreateResource(resourceName, (JsonDict ionary)JsonReader.Parse(json));
4416 }
4417
4418 protected void AddReferenceToDeclaringAssembly(Type target, CompilerPara meters cp)
4419 {
4420 string assemblyPath = target.Assembly.CodeBase;
4421
4422 // The returned path contains "file:///...", which won't be understo od by the windows compiler,
4423 // but which is required by mono
4424 // -> Trim the file prefix if we are not running on Mono
4425 if (Environment.OSVersion.Platform != PlatformID.Unix && assemblyPat h.StartsWith("file:///"))
4426 {
4427 assemblyPath = assemblyPath.Substring("file:///".Length);
4428 }
4429
4430 cp.ReferencedAssemblies.Add(assemblyPath);
4431 }
4432
4433 /// <summary>
4434 /// Checks that the <code>codeType</code> compiled correctly
4435 /// </summary>
4436 /// <param name="codeType">The code type (class) to compile</param>
4437 /// <param name="warnAsError">A boolean indicating if a warning will be count as an error</param>
4438 /// <param name="errorMessage">The error message</param>
4439 protected void CheckCompile(CodeTypeDeclaration codeType, bool warnAsErr or, string errorMessage)
4440 {
4441 CheckCompile(codeType, warnAsError, errorMessage, null, null);
4442 }
4443
4444 /// <summary>
4445 /// Checks that the <code>codeType</code> compiled correctly
4446 /// </summary>
4447 /// <param name="codeType">The code type (class) to compile</param>
4448 /// <param name="warnAsError">A boolean indicating if a warning will be count as an error</param>
4449 /// <param name="errorMessage">The error message</param>
4450 /// <param name="imports">Additional imports to add to the compile unit< /param>
4451 /// <param name="types">Additional types to add their assembly to the co mpiled unit</param>
4452 protected void CheckCompile(CodeTypeDeclaration codeType, bool warnAsErr or, string errorMessage,
4453 CodeNamespaceImport[] imports, Type[] types)
4454 {
4455 var compileUnit = new CodeCompileUnit();
4456 var client = new CodeNamespace("Google.Apis.Tools.CodeGen.Tests");
4457 compileUnit.Namespaces.Add(client);
4458 client.Types.Add(codeType);
4459
4460 if (imports != null)
4461 client.Imports.AddRange(imports);
4462
4463 CheckCompile(compileUnit, warnAsError, errorMessage, types);
4464 }
4465
4466 /// <summary>
4467 /// Checks that the specified <code>codeCompileUnit</code> compiled corr ectly
4468 /// </summary>
4469 /// <param name="codeCompileUnit">The unit to compile</param>
4470 /// <param name="warnAsError">A boolean indicating if a warning will be count as an error</param>
4471 /// <param name="errorMessage">The error message</param>
4472 protected void CheckCompile(CodeCompileUnit codeCompileUnit, bool warnAs Error, string errorMessage)
4473 {
4474 CheckCompile(codeCompileUnit, warnAsError, errorMessage, null);
4475 }
4476
4477 /// <summary>
4478 /// Checks that the specified <code>codeCompileUnit</code> compiled corr ectly
4479 /// </summary>
4480 /// <param name="codeCompileUnit">The unit to compile</param>
4481 /// <param name="warnAsError">A boolean indicating if a warning will be count as an error</param>
4482 /// <param name="errorMessage">The error message</param>
4483 /// <param name="types">Additional types to add their assembly to the co mpiled unit</param>
4484 protected void CheckCompile(CodeCompileUnit codeCompileUnit, bool warnAs Error, string errorMessage,
4485 Type[] types)
4486 {
4487 string language = "CSharp";
4488 CodeDomProvider provider = CodeDomProvider.CreateProvider(language);
4489 var cp = new CompilerParameters();
4490 // Add an assembly reference.
4491 cp.ReferencedAssemblies.Add("System.dll");
4492 AddReferenceToDeclaringAssembly(typeof(DiscoveryService), cp);
4493 AddReferenceToDeclaringAssembly(typeof(ILog), cp);
4494 AddReferenceToDeclaringAssembly(typeof(JsonSerializer), cp);
4495 if (types != null)
4496 {
4497 foreach (var t in types)
4498 AddReferenceToDeclaringAssembly(t, cp);
4499 }
4500
4501
4502 cp.GenerateExecutable = false;
4503 cp.GenerateInMemory = true;
4504 cp.TreatWarningsAsErrors = warnAsError;
4505 // Warnings are errors.
4506 CompilerResults compilerResults = provider.CompileAssemblyFromDom(cp , codeCompileUnit);
4507 bool hasError = false;
4508 if (compilerResults.Errors.Count > 0)
4509 {
4510 StringBuilder sb = new StringBuilder(errorMessage).AppendLine();
4511 foreach (CompilerError error in compilerResults.Errors)
4512 {
4513 sb.AppendLine(error.ToString());
4514 if (error.IsWarning == false || warnAsError)
4515 {
4516 hasError = true;
4517 }
4518 }
4519 sb.AppendLine();
4520 sb.AppendLine("Generated Code Follows");
4521
4522 using (var sw = new StringWriter(sb))
4523 {
4524 var tw = new IndentedTextWriter(sw);
4525 provider.GenerateCodeFromCompileUnit(codeCompileUnit, tw, ne w CodeGeneratorOptions());
4526 }
4527 Console.Out.WriteLine(sb.ToString());
4528
4529 if (hasError)
4530 {
4531 Assert.Fail(sb.ToString());
4532 }
4533 }
4534 }
4535
4536 protected IService CreateBuzzService()
4537 {
4538 var buzzTestFetcher = new StringDiscoveryDevice { Document = BuzzSer viceAsJson };
4539 var discovery = new DiscoveryService(buzzTestFetcher);
4540 // Build the service based on discovery information.
4541 return discovery.GetService(DiscoveryVersion.Version_0_3, new Factor yParameters("http://test.server.example.com", "/testService"));
4542 }
4543
4544 protected IService CreateAdSenseV1_0Service()
4545 {
4546 var adsenseTestFetcher = new StringDiscoveryDevice { Document = AdSe nseDiscoveryV1 };
4547 var discovery = new DiscoveryService(adsenseTestFetcher);
4548
4549 // Build the service based on discovery information.
4550 return discovery.GetService(DiscoveryVersion.Version_1_0);
4551 }
4552 }
4553 }
OLDNEW
« no previous file with comments | « Src/GoogleApis.Tests/WebDiscoveryDeviceTests.cs ('k') | Src/GoogleApis.Tools.CodeGen.Tests/CachedWebDiscoveryDeviceTests.cs » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b