Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: generated/googleapis/lib/consumersurveys/v2.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/cloudtrace/v2.dart ('k') | generated/googleapis/lib/container/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.consumersurveys.v2; 3 library googleapis.consumersurveys.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, 13 show
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, 14 ApiRequestError,
15 ByteRange; 15 DetailedApiRequestError,
16 Media,
17 UploadOptions,
18 ResumableUploadOptions,
19 DownloadOptions,
20 PartialDownloadOptions,
21 ByteRange;
16 22
17 const core.String USER_AGENT = 'dart-api-client consumersurveys/v2'; 23 const core.String USER_AGENT = 'dart-api-client consumersurveys/v2';
18 24
19 /** 25 /// Creates and conducts surveys, lists the surveys that an authenticated user
20 * Creates and conducts surveys, lists the surveys that an authenticated user 26 /// owns, and retrieves survey results and information about specified surveys.
21 * owns, and retrieves survey results and information about specified surveys.
22 */
23 class ConsumersurveysApi { 27 class ConsumersurveysApi {
24 /** View and edit your surveys and results */ 28 /// View and edit your surveys and results
25 static const ConsumersurveysScope = "https://www.googleapis.com/auth/consumers urveys"; 29 static const ConsumersurveysScope =
30 "https://www.googleapis.com/auth/consumersurveys";
26 31
27 /** View the results for your surveys */ 32 /// View the results for your surveys
28 static const ConsumersurveysReadonlyScope = "https://www.googleapis.com/auth/c onsumersurveys.readonly"; 33 static const ConsumersurveysReadonlyScope =
34 "https://www.googleapis.com/auth/consumersurveys.readonly";
29 35
30 /** View your email address */ 36 /// View your email address
31 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail"; 37 static const UserinfoEmailScope =
32 38 "https://www.googleapis.com/auth/userinfo.email";
33 39
34 final commons.ApiRequester _requester; 40 final commons.ApiRequester _requester;
35 41
36 MobileapppanelsResourceApi get mobileapppanels => new MobileapppanelsResourceA pi(_requester); 42 MobileapppanelsResourceApi get mobileapppanels =>
43 new MobileapppanelsResourceApi(_requester);
37 ResultsResourceApi get results => new ResultsResourceApi(_requester); 44 ResultsResourceApi get results => new ResultsResourceApi(_requester);
38 SurveysResourceApi get surveys => new SurveysResourceApi(_requester); 45 SurveysResourceApi get surveys => new SurveysResourceApi(_requester);
39 46
40 ConsumersurveysApi(http.Client client, {core.String rootUrl: "https://www.goog leapis.com/", core.String servicePath: "consumersurveys/v2/"}) : 47 ConsumersurveysApi(http.Client client,
41 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 48 {core.String rootUrl: "https://www.googleapis.com/",
49 core.String servicePath: "consumersurveys/v2/"})
50 : _requester =
51 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
42 } 52 }
43 53
44
45 class MobileapppanelsResourceApi { 54 class MobileapppanelsResourceApi {
46 final commons.ApiRequester _requester; 55 final commons.ApiRequester _requester;
47 56
48 MobileapppanelsResourceApi(commons.ApiRequester client) : 57 MobileapppanelsResourceApi(commons.ApiRequester client) : _requester = client;
49 _requester = client;
50 58
51 /** 59 /// Retrieves a MobileAppPanel that is available to the authenticated user.
52 * Retrieves a MobileAppPanel that is available to the authenticated user. 60 ///
53 * 61 /// Request parameters:
54 * Request parameters: 62 ///
55 * 63 /// [panelId] - External URL ID for the panel.
56 * [panelId] - External URL ID for the panel. 64 ///
57 * 65 /// Completes with a [MobileAppPanel].
58 * Completes with a [MobileAppPanel]. 66 ///
59 * 67 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
60 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 68 /// an error.
61 * error. 69 ///
62 * 70 /// If the used [http.Client] completes with an error when making a REST
63 * If the used [http.Client] completes with an error when making a REST call, 71 /// call, this method will complete with the same error.
64 * this method will complete with the same error.
65 */
66 async.Future<MobileAppPanel> get(core.String panelId) { 72 async.Future<MobileAppPanel> get(core.String panelId) {
67 var _url = null; 73 var _url = null;
68 var _queryParams = new core.Map(); 74 var _queryParams = new core.Map();
69 var _uploadMedia = null; 75 var _uploadMedia = null;
70 var _uploadOptions = null; 76 var _uploadOptions = null;
71 var _downloadOptions = commons.DownloadOptions.Metadata; 77 var _downloadOptions = commons.DownloadOptions.Metadata;
72 var _body = null; 78 var _body = null;
73 79
74 if (panelId == null) { 80 if (panelId == null) {
75 throw new core.ArgumentError("Parameter panelId is required."); 81 throw new core.ArgumentError("Parameter panelId is required.");
76 } 82 }
77 83
78 _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId'); 84 _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId');
79 85
80 var _response = _requester.request(_url, 86 var _response = _requester.request(_url, "GET",
81 "GET", 87 body: _body,
82 body: _body, 88 queryParams: _queryParams,
83 queryParams: _queryParams, 89 uploadOptions: _uploadOptions,
84 uploadOptions: _uploadOptions, 90 uploadMedia: _uploadMedia,
85 uploadMedia: _uploadMedia, 91 downloadOptions: _downloadOptions);
86 downloadOptions: _downloadOptions);
87 return _response.then((data) => new MobileAppPanel.fromJson(data)); 92 return _response.then((data) => new MobileAppPanel.fromJson(data));
88 } 93 }
89 94
90 /** 95 /// Lists the MobileAppPanels available to the authenticated user.
91 * Lists the MobileAppPanels available to the authenticated user. 96 ///
92 * 97 /// Request parameters:
93 * Request parameters: 98 ///
94 * 99 /// [maxResults] - null
95 * [maxResults] - null 100 ///
96 * 101 /// [startIndex] - null
97 * [startIndex] - null 102 ///
98 * 103 /// [token] - null
99 * [token] - null 104 ///
100 * 105 /// Completes with a [MobileAppPanelsListResponse].
101 * Completes with a [MobileAppPanelsListResponse]. 106 ///
102 * 107 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
103 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 108 /// an error.
104 * error. 109 ///
105 * 110 /// If the used [http.Client] completes with an error when making a REST
106 * If the used [http.Client] completes with an error when making a REST call, 111 /// call, this method will complete with the same error.
107 * this method will complete with the same error. 112 async.Future<MobileAppPanelsListResponse> list(
108 */ 113 {core.int maxResults, core.int startIndex, core.String token}) {
109 async.Future<MobileAppPanelsListResponse> list({core.int maxResults, core.int startIndex, core.String token}) {
110 var _url = null; 114 var _url = null;
111 var _queryParams = new core.Map(); 115 var _queryParams = new core.Map();
112 var _uploadMedia = null; 116 var _uploadMedia = null;
113 var _uploadOptions = null; 117 var _uploadOptions = null;
114 var _downloadOptions = commons.DownloadOptions.Metadata; 118 var _downloadOptions = commons.DownloadOptions.Metadata;
115 var _body = null; 119 var _body = null;
116 120
117 if (maxResults != null) { 121 if (maxResults != null) {
118 _queryParams["maxResults"] = ["${maxResults}"]; 122 _queryParams["maxResults"] = ["${maxResults}"];
119 } 123 }
120 if (startIndex != null) { 124 if (startIndex != null) {
121 _queryParams["startIndex"] = ["${startIndex}"]; 125 _queryParams["startIndex"] = ["${startIndex}"];
122 } 126 }
123 if (token != null) { 127 if (token != null) {
124 _queryParams["token"] = [token]; 128 _queryParams["token"] = [token];
125 } 129 }
126 130
127 _url = 'mobileAppPanels'; 131 _url = 'mobileAppPanels';
128 132
129 var _response = _requester.request(_url, 133 var _response = _requester.request(_url, "GET",
130 "GET", 134 body: _body,
131 body: _body, 135 queryParams: _queryParams,
132 queryParams: _queryParams, 136 uploadOptions: _uploadOptions,
133 uploadOptions: _uploadOptions, 137 uploadMedia: _uploadMedia,
134 uploadMedia: _uploadMedia, 138 downloadOptions: _downloadOptions);
135 downloadOptions: _downloadOptions); 139 return _response
136 return _response.then((data) => new MobileAppPanelsListResponse.fromJson(dat a)); 140 .then((data) => new MobileAppPanelsListResponse.fromJson(data));
137 } 141 }
138 142
139 /** 143 /// Updates a MobileAppPanel. Currently the only property that can be updated
140 * Updates a MobileAppPanel. Currently the only property that can be updated 144 /// is the owners property.
141 * is the owners property. 145 ///
142 * 146 /// [request] - The metadata request object.
143 * [request] - The metadata request object. 147 ///
144 * 148 /// Request parameters:
145 * Request parameters: 149 ///
146 * 150 /// [panelId] - External URL ID for the panel.
147 * [panelId] - External URL ID for the panel. 151 ///
148 * 152 /// Completes with a [MobileAppPanel].
149 * Completes with a [MobileAppPanel]. 153 ///
150 * 154 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 155 /// an error.
152 * error. 156 ///
153 * 157 /// If the used [http.Client] completes with an error when making a REST
154 * If the used [http.Client] completes with an error when making a REST call, 158 /// call, this method will complete with the same error.
155 * this method will complete with the same error. 159 async.Future<MobileAppPanel> update(
156 */ 160 MobileAppPanel request, core.String panelId) {
157 async.Future<MobileAppPanel> update(MobileAppPanel request, core.String panelI d) {
158 var _url = null; 161 var _url = null;
159 var _queryParams = new core.Map(); 162 var _queryParams = new core.Map();
160 var _uploadMedia = null; 163 var _uploadMedia = null;
161 var _uploadOptions = null; 164 var _uploadOptions = null;
162 var _downloadOptions = commons.DownloadOptions.Metadata; 165 var _downloadOptions = commons.DownloadOptions.Metadata;
163 var _body = null; 166 var _body = null;
164 167
165 if (request != null) { 168 if (request != null) {
166 _body = convert.JSON.encode((request).toJson()); 169 _body = convert.JSON.encode((request).toJson());
167 } 170 }
168 if (panelId == null) { 171 if (panelId == null) {
169 throw new core.ArgumentError("Parameter panelId is required."); 172 throw new core.ArgumentError("Parameter panelId is required.");
170 } 173 }
171 174
172 _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId'); 175 _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId');
173 176
174 var _response = _requester.request(_url, 177 var _response = _requester.request(_url, "PUT",
175 "PUT", 178 body: _body,
176 body: _body, 179 queryParams: _queryParams,
177 queryParams: _queryParams, 180 uploadOptions: _uploadOptions,
178 uploadOptions: _uploadOptions, 181 uploadMedia: _uploadMedia,
179 uploadMedia: _uploadMedia, 182 downloadOptions: _downloadOptions);
180 downloadOptions: _downloadOptions);
181 return _response.then((data) => new MobileAppPanel.fromJson(data)); 183 return _response.then((data) => new MobileAppPanel.fromJson(data));
182 } 184 }
183
184 } 185 }
185 186
186
187 class ResultsResourceApi { 187 class ResultsResourceApi {
188 final commons.ApiRequester _requester; 188 final commons.ApiRequester _requester;
189 189
190 ResultsResourceApi(commons.ApiRequester client) : 190 ResultsResourceApi(commons.ApiRequester client) : _requester = client;
191 _requester = client;
192 191
193 /** 192 /// Retrieves any survey results that have been produced so far. Results are
194 * Retrieves any survey results that have been produced so far. Results are 193 /// formatted as an Excel file. You must add "?alt=media" to the URL as an
195 * formatted as an Excel file. You must add "?alt=media" to the URL as an 194 /// argument to get results.
196 * argument to get results. 195 ///
197 * 196 /// [request] - The metadata request object.
198 * [request] - The metadata request object. 197 ///
199 * 198 /// Request parameters:
200 * Request parameters: 199 ///
201 * 200 /// [surveyUrlId] - External URL ID for the survey.
202 * [surveyUrlId] - External URL ID for the survey. 201 ///
203 * 202 /// [downloadOptions] - Options for downloading. A download can be either a
204 * [downloadOptions] - Options for downloading. A download can be either a 203 /// Metadata (default) or Media download. Partial Media downloads are
205 * Metadata (default) or Media download. Partial Media downloads are possible 204 /// possible as well.
206 * as well. 205 ///
207 * 206 /// Completes with a
208 * Completes with a 207 ///
209 * 208 /// - [SurveyResults] for Metadata downloads (see [downloadOptions]).
210 * - [SurveyResults] for Metadata downloads (see [downloadOptions]). 209 ///
211 * 210 /// - [commons.Media] for Media downloads (see [downloadOptions]).
212 * - [commons.Media] for Media downloads (see [downloadOptions]). 211 ///
213 * 212 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
214 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 213 /// an error.
215 * error. 214 ///
216 * 215 /// If the used [http.Client] completes with an error when making a REST
217 * If the used [http.Client] completes with an error when making a REST call, 216 /// call, this method will complete with the same error.
218 * this method will complete with the same error. 217 async.Future get(ResultsGetRequest request, core.String surveyUrlId,
219 */ 218 {commons.DownloadOptions downloadOptions:
220 async.Future get(ResultsGetRequest request, core.String surveyUrlId, {commons. DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { 219 commons.DownloadOptions.Metadata}) {
221 var _url = null; 220 var _url = null;
222 var _queryParams = new core.Map(); 221 var _queryParams = new core.Map();
223 var _uploadMedia = null; 222 var _uploadMedia = null;
224 var _uploadOptions = null; 223 var _uploadOptions = null;
225 var _downloadOptions = commons.DownloadOptions.Metadata; 224 var _downloadOptions = commons.DownloadOptions.Metadata;
226 var _body = null; 225 var _body = null;
227 226
228 if (request != null) { 227 if (request != null) {
229 _body = convert.JSON.encode((request).toJson()); 228 _body = convert.JSON.encode((request).toJson());
230 } 229 }
231 if (surveyUrlId == null) { 230 if (surveyUrlId == null) {
232 throw new core.ArgumentError("Parameter surveyUrlId is required."); 231 throw new core.ArgumentError("Parameter surveyUrlId is required.");
233 } 232 }
234 233
235 _downloadOptions = downloadOptions; 234 _downloadOptions = downloadOptions;
236 235
237 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId') + '/result s'; 236 _url =
237 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId') + '/results';
238 238
239 var _response = _requester.request(_url, 239 var _response = _requester.request(_url, "GET",
240 "GET", 240 body: _body,
241 body: _body, 241 queryParams: _queryParams,
242 queryParams: _queryParams, 242 uploadOptions: _uploadOptions,
243 uploadOptions: _uploadOptions, 243 uploadMedia: _uploadMedia,
244 uploadMedia: _uploadMedia, 244 downloadOptions: _downloadOptions);
245 downloadOptions: _downloadOptions);
246 if (_downloadOptions == null || 245 if (_downloadOptions == null ||
247 _downloadOptions == commons.DownloadOptions.Metadata) { 246 _downloadOptions == commons.DownloadOptions.Metadata) {
248 return _response.then((data) => new SurveyResults.fromJson(data)); 247 return _response.then((data) => new SurveyResults.fromJson(data));
249 } else { 248 } else {
250 return _response; 249 return _response;
251 } 250 }
252 } 251 }
253
254 } 252 }
255 253
256
257 class SurveysResourceApi { 254 class SurveysResourceApi {
258 final commons.ApiRequester _requester; 255 final commons.ApiRequester _requester;
259 256
260 SurveysResourceApi(commons.ApiRequester client) : 257 SurveysResourceApi(commons.ApiRequester client) : _requester = client;
261 _requester = client;
262 258
263 /** 259 /// Removes a survey from view in all user GET requests.
264 * Removes a survey from view in all user GET requests. 260 ///
265 * 261 /// Request parameters:
266 * Request parameters: 262 ///
267 * 263 /// [surveyUrlId] - External URL ID for the survey.
268 * [surveyUrlId] - External URL ID for the survey. 264 ///
269 * 265 /// Completes with a [SurveysDeleteResponse].
270 * Completes with a [SurveysDeleteResponse]. 266 ///
271 * 267 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
272 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 268 /// an error.
273 * error. 269 ///
274 * 270 /// If the used [http.Client] completes with an error when making a REST
275 * If the used [http.Client] completes with an error when making a REST call, 271 /// call, this method will complete with the same error.
276 * this method will complete with the same error.
277 */
278 async.Future<SurveysDeleteResponse> delete(core.String surveyUrlId) { 272 async.Future<SurveysDeleteResponse> delete(core.String surveyUrlId) {
279 var _url = null; 273 var _url = null;
280 var _queryParams = new core.Map(); 274 var _queryParams = new core.Map();
281 var _uploadMedia = null; 275 var _uploadMedia = null;
282 var _uploadOptions = null; 276 var _uploadOptions = null;
283 var _downloadOptions = commons.DownloadOptions.Metadata; 277 var _downloadOptions = commons.DownloadOptions.Metadata;
284 var _body = null; 278 var _body = null;
285 279
286 if (surveyUrlId == null) { 280 if (surveyUrlId == null) {
287 throw new core.ArgumentError("Parameter surveyUrlId is required."); 281 throw new core.ArgumentError("Parameter surveyUrlId is required.");
288 } 282 }
289 283
290 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); 284 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId');
291 285
292 var _response = _requester.request(_url, 286 var _response = _requester.request(_url, "DELETE",
293 "DELETE", 287 body: _body,
294 body: _body, 288 queryParams: _queryParams,
295 queryParams: _queryParams, 289 uploadOptions: _uploadOptions,
296 uploadOptions: _uploadOptions, 290 uploadMedia: _uploadMedia,
297 uploadMedia: _uploadMedia, 291 downloadOptions: _downloadOptions);
298 downloadOptions: _downloadOptions);
299 return _response.then((data) => new SurveysDeleteResponse.fromJson(data)); 292 return _response.then((data) => new SurveysDeleteResponse.fromJson(data));
300 } 293 }
301 294
302 /** 295 /// Retrieves information about the specified survey.
303 * Retrieves information about the specified survey. 296 ///
304 * 297 /// Request parameters:
305 * Request parameters: 298 ///
306 * 299 /// [surveyUrlId] - External URL ID for the survey.
307 * [surveyUrlId] - External URL ID for the survey. 300 ///
308 * 301 /// Completes with a [Survey].
309 * Completes with a [Survey]. 302 ///
310 * 303 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
311 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 304 /// an error.
312 * error. 305 ///
313 * 306 /// If the used [http.Client] completes with an error when making a REST
314 * If the used [http.Client] completes with an error when making a REST call, 307 /// call, this method will complete with the same error.
315 * this method will complete with the same error.
316 */
317 async.Future<Survey> get(core.String surveyUrlId) { 308 async.Future<Survey> get(core.String surveyUrlId) {
318 var _url = null; 309 var _url = null;
319 var _queryParams = new core.Map(); 310 var _queryParams = new core.Map();
320 var _uploadMedia = null; 311 var _uploadMedia = null;
321 var _uploadOptions = null; 312 var _uploadOptions = null;
322 var _downloadOptions = commons.DownloadOptions.Metadata; 313 var _downloadOptions = commons.DownloadOptions.Metadata;
323 var _body = null; 314 var _body = null;
324 315
325 if (surveyUrlId == null) { 316 if (surveyUrlId == null) {
326 throw new core.ArgumentError("Parameter surveyUrlId is required."); 317 throw new core.ArgumentError("Parameter surveyUrlId is required.");
327 } 318 }
328 319
329 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); 320 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId');
330 321
331 var _response = _requester.request(_url, 322 var _response = _requester.request(_url, "GET",
332 "GET", 323 body: _body,
333 body: _body, 324 queryParams: _queryParams,
334 queryParams: _queryParams, 325 uploadOptions: _uploadOptions,
335 uploadOptions: _uploadOptions, 326 uploadMedia: _uploadMedia,
336 uploadMedia: _uploadMedia, 327 downloadOptions: _downloadOptions);
337 downloadOptions: _downloadOptions);
338 return _response.then((data) => new Survey.fromJson(data)); 328 return _response.then((data) => new Survey.fromJson(data));
339 } 329 }
340 330
341 /** 331 /// Creates a survey.
342 * Creates a survey. 332 ///
343 * 333 /// [request] - The metadata request object.
344 * [request] - The metadata request object. 334 ///
345 * 335 /// Request parameters:
346 * Request parameters: 336 ///
347 * 337 /// Completes with a [Survey].
348 * Completes with a [Survey]. 338 ///
349 * 339 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
350 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 340 /// an error.
351 * error. 341 ///
352 * 342 /// If the used [http.Client] completes with an error when making a REST
353 * If the used [http.Client] completes with an error when making a REST call, 343 /// call, this method will complete with the same error.
354 * this method will complete with the same error.
355 */
356 async.Future<Survey> insert(Survey request) { 344 async.Future<Survey> insert(Survey request) {
357 var _url = null; 345 var _url = null;
358 var _queryParams = new core.Map(); 346 var _queryParams = new core.Map();
359 var _uploadMedia = null; 347 var _uploadMedia = null;
360 var _uploadOptions = null; 348 var _uploadOptions = null;
361 var _downloadOptions = commons.DownloadOptions.Metadata; 349 var _downloadOptions = commons.DownloadOptions.Metadata;
362 var _body = null; 350 var _body = null;
363 351
364 if (request != null) { 352 if (request != null) {
365 _body = convert.JSON.encode((request).toJson()); 353 _body = convert.JSON.encode((request).toJson());
366 } 354 }
367 355
368 _url = 'surveys'; 356 _url = 'surveys';
369 357
370 var _response = _requester.request(_url, 358 var _response = _requester.request(_url, "POST",
371 "POST", 359 body: _body,
372 body: _body, 360 queryParams: _queryParams,
373 queryParams: _queryParams, 361 uploadOptions: _uploadOptions,
374 uploadOptions: _uploadOptions, 362 uploadMedia: _uploadMedia,
375 uploadMedia: _uploadMedia, 363 downloadOptions: _downloadOptions);
376 downloadOptions: _downloadOptions);
377 return _response.then((data) => new Survey.fromJson(data)); 364 return _response.then((data) => new Survey.fromJson(data));
378 } 365 }
379 366
380 /** 367 /// Lists the surveys owned by the authenticated user.
381 * Lists the surveys owned by the authenticated user. 368 ///
382 * 369 /// Request parameters:
383 * Request parameters: 370 ///
384 * 371 /// [maxResults] - null
385 * [maxResults] - null 372 ///
386 * 373 /// [startIndex] - null
387 * [startIndex] - null 374 ///
388 * 375 /// [token] - null
389 * [token] - null 376 ///
390 * 377 /// Completes with a [SurveysListResponse].
391 * Completes with a [SurveysListResponse]. 378 ///
392 * 379 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
393 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 380 /// an error.
394 * error. 381 ///
395 * 382 /// If the used [http.Client] completes with an error when making a REST
396 * If the used [http.Client] completes with an error when making a REST call, 383 /// call, this method will complete with the same error.
397 * this method will complete with the same error. 384 async.Future<SurveysListResponse> list(
398 */ 385 {core.int maxResults, core.int startIndex, core.String token}) {
399 async.Future<SurveysListResponse> list({core.int maxResults, core.int startInd ex, core.String token}) {
400 var _url = null; 386 var _url = null;
401 var _queryParams = new core.Map(); 387 var _queryParams = new core.Map();
402 var _uploadMedia = null; 388 var _uploadMedia = null;
403 var _uploadOptions = null; 389 var _uploadOptions = null;
404 var _downloadOptions = commons.DownloadOptions.Metadata; 390 var _downloadOptions = commons.DownloadOptions.Metadata;
405 var _body = null; 391 var _body = null;
406 392
407 if (maxResults != null) { 393 if (maxResults != null) {
408 _queryParams["maxResults"] = ["${maxResults}"]; 394 _queryParams["maxResults"] = ["${maxResults}"];
409 } 395 }
410 if (startIndex != null) { 396 if (startIndex != null) {
411 _queryParams["startIndex"] = ["${startIndex}"]; 397 _queryParams["startIndex"] = ["${startIndex}"];
412 } 398 }
413 if (token != null) { 399 if (token != null) {
414 _queryParams["token"] = [token]; 400 _queryParams["token"] = [token];
415 } 401 }
416 402
417 _url = 'surveys'; 403 _url = 'surveys';
418 404
419 var _response = _requester.request(_url, 405 var _response = _requester.request(_url, "GET",
420 "GET", 406 body: _body,
421 body: _body, 407 queryParams: _queryParams,
422 queryParams: _queryParams, 408 uploadOptions: _uploadOptions,
423 uploadOptions: _uploadOptions, 409 uploadMedia: _uploadMedia,
424 uploadMedia: _uploadMedia, 410 downloadOptions: _downloadOptions);
425 downloadOptions: _downloadOptions);
426 return _response.then((data) => new SurveysListResponse.fromJson(data)); 411 return _response.then((data) => new SurveysListResponse.fromJson(data));
427 } 412 }
428 413
429 /** 414 /// Begins running a survey.
430 * Begins running a survey. 415 ///
431 * 416 /// [request] - The metadata request object.
432 * [request] - The metadata request object. 417 ///
433 * 418 /// Request parameters:
434 * Request parameters: 419 ///
435 * 420 /// [resourceId] - null
436 * [resourceId] - null 421 ///
437 * 422 /// Completes with a [SurveysStartResponse].
438 * Completes with a [SurveysStartResponse]. 423 ///
439 * 424 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 425 /// an error.
441 * error. 426 ///
442 * 427 /// If the used [http.Client] completes with an error when making a REST
443 * If the used [http.Client] completes with an error when making a REST call, 428 /// call, this method will complete with the same error.
444 * this method will complete with the same error. 429 async.Future<SurveysStartResponse> start(
445 */ 430 SurveysStartRequest request, core.String resourceId) {
446 async.Future<SurveysStartResponse> start(SurveysStartRequest request, core.Str ing resourceId) {
447 var _url = null; 431 var _url = null;
448 var _queryParams = new core.Map(); 432 var _queryParams = new core.Map();
449 var _uploadMedia = null; 433 var _uploadMedia = null;
450 var _uploadOptions = null; 434 var _uploadOptions = null;
451 var _downloadOptions = commons.DownloadOptions.Metadata; 435 var _downloadOptions = commons.DownloadOptions.Metadata;
452 var _body = null; 436 var _body = null;
453 437
454 if (request != null) { 438 if (request != null) {
455 _body = convert.JSON.encode((request).toJson()); 439 _body = convert.JSON.encode((request).toJson());
456 } 440 }
457 if (resourceId == null) { 441 if (resourceId == null) {
458 throw new core.ArgumentError("Parameter resourceId is required."); 442 throw new core.ArgumentError("Parameter resourceId is required.");
459 } 443 }
460 444
461 _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/start'; 445 _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/start';
462 446
463 var _response = _requester.request(_url, 447 var _response = _requester.request(_url, "POST",
464 "POST", 448 body: _body,
465 body: _body, 449 queryParams: _queryParams,
466 queryParams: _queryParams, 450 uploadOptions: _uploadOptions,
467 uploadOptions: _uploadOptions, 451 uploadMedia: _uploadMedia,
468 uploadMedia: _uploadMedia, 452 downloadOptions: _downloadOptions);
469 downloadOptions: _downloadOptions);
470 return _response.then((data) => new SurveysStartResponse.fromJson(data)); 453 return _response.then((data) => new SurveysStartResponse.fromJson(data));
471 } 454 }
472 455
473 /** 456 /// Stops a running survey.
474 * Stops a running survey. 457 ///
475 * 458 /// Request parameters:
476 * Request parameters: 459 ///
477 * 460 /// [resourceId] - null
478 * [resourceId] - null 461 ///
479 * 462 /// Completes with a [SurveysStopResponse].
480 * Completes with a [SurveysStopResponse]. 463 ///
481 * 464 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 465 /// an error.
483 * error. 466 ///
484 * 467 /// If the used [http.Client] completes with an error when making a REST
485 * If the used [http.Client] completes with an error when making a REST call, 468 /// call, this method will complete with the same error.
486 * this method will complete with the same error.
487 */
488 async.Future<SurveysStopResponse> stop(core.String resourceId) { 469 async.Future<SurveysStopResponse> stop(core.String resourceId) {
489 var _url = null; 470 var _url = null;
490 var _queryParams = new core.Map(); 471 var _queryParams = new core.Map();
491 var _uploadMedia = null; 472 var _uploadMedia = null;
492 var _uploadOptions = null; 473 var _uploadOptions = null;
493 var _downloadOptions = commons.DownloadOptions.Metadata; 474 var _downloadOptions = commons.DownloadOptions.Metadata;
494 var _body = null; 475 var _body = null;
495 476
496 if (resourceId == null) { 477 if (resourceId == null) {
497 throw new core.ArgumentError("Parameter resourceId is required."); 478 throw new core.ArgumentError("Parameter resourceId is required.");
498 } 479 }
499 480
500 _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/stop'; 481 _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/stop';
501 482
502 var _response = _requester.request(_url, 483 var _response = _requester.request(_url, "POST",
503 "POST", 484 body: _body,
504 body: _body, 485 queryParams: _queryParams,
505 queryParams: _queryParams, 486 uploadOptions: _uploadOptions,
506 uploadOptions: _uploadOptions, 487 uploadMedia: _uploadMedia,
507 uploadMedia: _uploadMedia, 488 downloadOptions: _downloadOptions);
508 downloadOptions: _downloadOptions);
509 return _response.then((data) => new SurveysStopResponse.fromJson(data)); 489 return _response.then((data) => new SurveysStopResponse.fromJson(data));
510 } 490 }
511 491
512 /** 492 /// Updates a survey. Currently the only property that can be updated is the
513 * Updates a survey. Currently the only property that can be updated is the 493 /// owners property.
514 * owners property. 494 ///
515 * 495 /// [request] - The metadata request object.
516 * [request] - The metadata request object. 496 ///
517 * 497 /// Request parameters:
518 * Request parameters: 498 ///
519 * 499 /// [surveyUrlId] - External URL ID for the survey.
520 * [surveyUrlId] - External URL ID for the survey. 500 ///
521 * 501 /// Completes with a [Survey].
522 * Completes with a [Survey]. 502 ///
523 * 503 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
524 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 504 /// an error.
525 * error. 505 ///
526 * 506 /// If the used [http.Client] completes with an error when making a REST
527 * If the used [http.Client] completes with an error when making a REST call, 507 /// call, this method will complete with the same error.
528 * this method will complete with the same error.
529 */
530 async.Future<Survey> update(Survey request, core.String surveyUrlId) { 508 async.Future<Survey> update(Survey request, core.String surveyUrlId) {
531 var _url = null; 509 var _url = null;
532 var _queryParams = new core.Map(); 510 var _queryParams = new core.Map();
533 var _uploadMedia = null; 511 var _uploadMedia = null;
534 var _uploadOptions = null; 512 var _uploadOptions = null;
535 var _downloadOptions = commons.DownloadOptions.Metadata; 513 var _downloadOptions = commons.DownloadOptions.Metadata;
536 var _body = null; 514 var _body = null;
537 515
538 if (request != null) { 516 if (request != null) {
539 _body = convert.JSON.encode((request).toJson()); 517 _body = convert.JSON.encode((request).toJson());
540 } 518 }
541 if (surveyUrlId == null) { 519 if (surveyUrlId == null) {
542 throw new core.ArgumentError("Parameter surveyUrlId is required."); 520 throw new core.ArgumentError("Parameter surveyUrlId is required.");
543 } 521 }
544 522
545 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); 523 _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId');
546 524
547 var _response = _requester.request(_url, 525 var _response = _requester.request(_url, "PUT",
548 "PUT", 526 body: _body,
549 body: _body, 527 queryParams: _queryParams,
550 queryParams: _queryParams, 528 uploadOptions: _uploadOptions,
551 uploadOptions: _uploadOptions, 529 uploadMedia: _uploadMedia,
552 uploadMedia: _uploadMedia, 530 downloadOptions: _downloadOptions);
553 downloadOptions: _downloadOptions);
554 return _response.then((data) => new Survey.fromJson(data)); 531 return _response.then((data) => new Survey.fromJson(data));
555 } 532 }
556
557 } 533 }
558 534
559
560
561 class FieldMask { 535 class FieldMask {
562 core.List<FieldMask> fields; 536 core.List<FieldMask> fields;
563 core.int id; 537 core.int id;
564 538
565 FieldMask(); 539 FieldMask();
566 540
567 FieldMask.fromJson(core.Map _json) { 541 FieldMask.fromJson(core.Map _json) {
568 if (_json.containsKey("fields")) { 542 if (_json.containsKey("fields")) {
569 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL ist(); 543 fields = _json["fields"]
544 .map((value) => new FieldMask.fromJson(value))
545 .toList();
570 } 546 }
571 if (_json.containsKey("id")) { 547 if (_json.containsKey("id")) {
572 id = _json["id"]; 548 id = _json["id"];
573 } 549 }
574 } 550 }
575 551
576 core.Map<core.String, core.Object> toJson() { 552 core.Map<core.String, core.Object> toJson() {
577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 553 final core.Map<core.String, core.Object> _json =
554 new core.Map<core.String, core.Object>();
578 if (fields != null) { 555 if (fields != null) {
579 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 556 _json["fields"] = fields.map((value) => (value).toJson()).toList();
580 } 557 }
581 if (id != null) { 558 if (id != null) {
582 _json["id"] = id; 559 _json["id"] = id;
583 } 560 }
584 return _json; 561 return _json;
585 } 562 }
586 } 563 }
587 564
(...skipping 22 matching lines...) Expand all
610 } 587 }
611 if (_json.containsKey("name")) { 588 if (_json.containsKey("name")) {
612 name = _json["name"]; 589 name = _json["name"];
613 } 590 }
614 if (_json.containsKey("owners")) { 591 if (_json.containsKey("owners")) {
615 owners = _json["owners"]; 592 owners = _json["owners"];
616 } 593 }
617 } 594 }
618 595
619 core.Map<core.String, core.Object> toJson() { 596 core.Map<core.String, core.Object> toJson() {
620 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 597 final core.Map<core.String, core.Object> _json =
598 new core.Map<core.String, core.Object>();
621 if (country != null) { 599 if (country != null) {
622 _json["country"] = country; 600 _json["country"] = country;
623 } 601 }
624 if (isPublicPanel != null) { 602 if (isPublicPanel != null) {
625 _json["isPublicPanel"] = isPublicPanel; 603 _json["isPublicPanel"] = isPublicPanel;
626 } 604 }
627 if (language != null) { 605 if (language != null) {
628 _json["language"] = language; 606 _json["language"] = language;
629 } 607 }
630 if (mobileAppPanelId != null) { 608 if (mobileAppPanelId != null) {
631 _json["mobileAppPanelId"] = mobileAppPanelId; 609 _json["mobileAppPanelId"] = mobileAppPanelId;
632 } 610 }
633 if (name != null) { 611 if (name != null) {
634 _json["name"] = name; 612 _json["name"] = name;
635 } 613 }
636 if (owners != null) { 614 if (owners != null) {
637 _json["owners"] = owners; 615 _json["owners"] = owners;
638 } 616 }
639 return _json; 617 return _json;
640 } 618 }
641 } 619 }
642 620
643 class MobileAppPanelsListResponse { 621 class MobileAppPanelsListResponse {
644 PageInfo pageInfo; 622 PageInfo pageInfo;
645 /** 623
646 * Unique request ID used for logging and debugging. Please include in any 624 /// Unique request ID used for logging and debugging. Please include in any
647 * error reporting or troubleshooting requests. 625 /// error reporting or troubleshooting requests.
648 */
649 core.String requestId; 626 core.String requestId;
650 /** An individual predefined panel of Opinion Rewards mobile users. */ 627
628 /// An individual predefined panel of Opinion Rewards mobile users.
651 core.List<MobileAppPanel> resources; 629 core.List<MobileAppPanel> resources;
652 TokenPagination tokenPagination; 630 TokenPagination tokenPagination;
653 631
654 MobileAppPanelsListResponse(); 632 MobileAppPanelsListResponse();
655 633
656 MobileAppPanelsListResponse.fromJson(core.Map _json) { 634 MobileAppPanelsListResponse.fromJson(core.Map _json) {
657 if (_json.containsKey("pageInfo")) { 635 if (_json.containsKey("pageInfo")) {
658 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); 636 pageInfo = new PageInfo.fromJson(_json["pageInfo"]);
659 } 637 }
660 if (_json.containsKey("requestId")) { 638 if (_json.containsKey("requestId")) {
661 requestId = _json["requestId"]; 639 requestId = _json["requestId"];
662 } 640 }
663 if (_json.containsKey("resources")) { 641 if (_json.containsKey("resources")) {
664 resources = _json["resources"].map((value) => new MobileAppPanel.fromJson( value)).toList(); 642 resources = _json["resources"]
643 .map((value) => new MobileAppPanel.fromJson(value))
644 .toList();
665 } 645 }
666 if (_json.containsKey("tokenPagination")) { 646 if (_json.containsKey("tokenPagination")) {
667 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); 647 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]);
668 } 648 }
669 } 649 }
670 650
671 core.Map<core.String, core.Object> toJson() { 651 core.Map<core.String, core.Object> toJson() {
672 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 652 final core.Map<core.String, core.Object> _json =
653 new core.Map<core.String, core.Object>();
673 if (pageInfo != null) { 654 if (pageInfo != null) {
674 _json["pageInfo"] = (pageInfo).toJson(); 655 _json["pageInfo"] = (pageInfo).toJson();
675 } 656 }
676 if (requestId != null) { 657 if (requestId != null) {
677 _json["requestId"] = requestId; 658 _json["requestId"] = requestId;
678 } 659 }
679 if (resources != null) { 660 if (resources != null) {
680 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 661 _json["resources"] = resources.map((value) => (value).toJson()).toList();
681 } 662 }
682 if (tokenPagination != null) { 663 if (tokenPagination != null) {
(...skipping 16 matching lines...) Expand all
699 } 680 }
700 if (_json.containsKey("startIndex")) { 681 if (_json.containsKey("startIndex")) {
701 startIndex = _json["startIndex"]; 682 startIndex = _json["startIndex"];
702 } 683 }
703 if (_json.containsKey("totalResults")) { 684 if (_json.containsKey("totalResults")) {
704 totalResults = _json["totalResults"]; 685 totalResults = _json["totalResults"];
705 } 686 }
706 } 687 }
707 688
708 core.Map<core.String, core.Object> toJson() { 689 core.Map<core.String, core.Object> toJson() {
709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 690 final core.Map<core.String, core.Object> _json =
691 new core.Map<core.String, core.Object>();
710 if (resultPerPage != null) { 692 if (resultPerPage != null) {
711 _json["resultPerPage"] = resultPerPage; 693 _json["resultPerPage"] = resultPerPage;
712 } 694 }
713 if (startIndex != null) { 695 if (startIndex != null) {
714 _json["startIndex"] = startIndex; 696 _json["startIndex"] = startIndex;
715 } 697 }
716 if (totalResults != null) { 698 if (totalResults != null) {
717 _json["totalResults"] = totalResults; 699 _json["totalResults"] = totalResults;
718 } 700 }
719 return _json; 701 return _json;
720 } 702 }
721 } 703 }
722 704
723 class ResultsGetRequest { 705 class ResultsGetRequest {
724 ResultsMask resultMask; 706 ResultsMask resultMask;
725 707
726 ResultsGetRequest(); 708 ResultsGetRequest();
727 709
728 ResultsGetRequest.fromJson(core.Map _json) { 710 ResultsGetRequest.fromJson(core.Map _json) {
729 if (_json.containsKey("resultMask")) { 711 if (_json.containsKey("resultMask")) {
730 resultMask = new ResultsMask.fromJson(_json["resultMask"]); 712 resultMask = new ResultsMask.fromJson(_json["resultMask"]);
731 } 713 }
732 } 714 }
733 715
734 core.Map<core.String, core.Object> toJson() { 716 core.Map<core.String, core.Object> toJson() {
735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 717 final core.Map<core.String, core.Object> _json =
718 new core.Map<core.String, core.Object>();
736 if (resultMask != null) { 719 if (resultMask != null) {
737 _json["resultMask"] = (resultMask).toJson(); 720 _json["resultMask"] = (resultMask).toJson();
738 } 721 }
739 return _json; 722 return _json;
740 } 723 }
741 } 724 }
742 725
743 class ResultsMask { 726 class ResultsMask {
744 core.List<FieldMask> fields; 727 core.List<FieldMask> fields;
745 core.String projection; 728 core.String projection;
746 729
747 ResultsMask(); 730 ResultsMask();
748 731
749 ResultsMask.fromJson(core.Map _json) { 732 ResultsMask.fromJson(core.Map _json) {
750 if (_json.containsKey("fields")) { 733 if (_json.containsKey("fields")) {
751 fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toL ist(); 734 fields = _json["fields"]
735 .map((value) => new FieldMask.fromJson(value))
736 .toList();
752 } 737 }
753 if (_json.containsKey("projection")) { 738 if (_json.containsKey("projection")) {
754 projection = _json["projection"]; 739 projection = _json["projection"];
755 } 740 }
756 } 741 }
757 742
758 core.Map<core.String, core.Object> toJson() { 743 core.Map<core.String, core.Object> toJson() {
759 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 744 final core.Map<core.String, core.Object> _json =
745 new core.Map<core.String, core.Object>();
760 if (fields != null) { 746 if (fields != null) {
761 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 747 _json["fields"] = fields.map((value) => (value).toJson()).toList();
762 } 748 }
763 if (projection != null) { 749 if (projection != null) {
764 _json["projection"] = projection; 750 _json["projection"] = projection;
765 } 751 }
766 return _json; 752 return _json;
767 } 753 }
768 } 754 }
769 755
770 class Survey { 756 class Survey {
771 SurveyAudience audience; 757 SurveyAudience audience;
772 SurveyCost cost; 758 SurveyCost cost;
773 core.String customerData; 759 core.String customerData;
774 core.List<core.int> get customerDataAsBytes { 760 core.List<core.int> get customerDataAsBytes {
775 return convert.BASE64.decode(customerData); 761 return convert.BASE64.decode(customerData);
776 } 762 }
777 763
778 void set customerDataAsBytes(core.List<core.int> _bytes) { 764 void set customerDataAsBytes(core.List<core.int> _bytes) {
779 customerData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll ("+", "-"); 765 customerData =
766 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
780 } 767 }
768
781 core.String description; 769 core.String description;
782 core.List<core.String> owners; 770 core.List<core.String> owners;
783 core.List<SurveyQuestion> questions; 771 core.List<SurveyQuestion> questions;
784 SurveyRejection rejectionReason; 772 SurveyRejection rejectionReason;
785 core.String state; 773 core.String state;
786 core.String surveyUrlId; 774 core.String surveyUrlId;
787 core.String title; 775 core.String title;
788 core.int wantedResponseCount; 776 core.int wantedResponseCount;
789 777
790 Survey(); 778 Survey();
791 779
792 Survey.fromJson(core.Map _json) { 780 Survey.fromJson(core.Map _json) {
793 if (_json.containsKey("audience")) { 781 if (_json.containsKey("audience")) {
794 audience = new SurveyAudience.fromJson(_json["audience"]); 782 audience = new SurveyAudience.fromJson(_json["audience"]);
795 } 783 }
796 if (_json.containsKey("cost")) { 784 if (_json.containsKey("cost")) {
797 cost = new SurveyCost.fromJson(_json["cost"]); 785 cost = new SurveyCost.fromJson(_json["cost"]);
798 } 786 }
799 if (_json.containsKey("customerData")) { 787 if (_json.containsKey("customerData")) {
800 customerData = _json["customerData"]; 788 customerData = _json["customerData"];
801 } 789 }
802 if (_json.containsKey("description")) { 790 if (_json.containsKey("description")) {
803 description = _json["description"]; 791 description = _json["description"];
804 } 792 }
805 if (_json.containsKey("owners")) { 793 if (_json.containsKey("owners")) {
806 owners = _json["owners"]; 794 owners = _json["owners"];
807 } 795 }
808 if (_json.containsKey("questions")) { 796 if (_json.containsKey("questions")) {
809 questions = _json["questions"].map((value) => new SurveyQuestion.fromJson( value)).toList(); 797 questions = _json["questions"]
798 .map((value) => new SurveyQuestion.fromJson(value))
799 .toList();
810 } 800 }
811 if (_json.containsKey("rejectionReason")) { 801 if (_json.containsKey("rejectionReason")) {
812 rejectionReason = new SurveyRejection.fromJson(_json["rejectionReason"]); 802 rejectionReason = new SurveyRejection.fromJson(_json["rejectionReason"]);
813 } 803 }
814 if (_json.containsKey("state")) { 804 if (_json.containsKey("state")) {
815 state = _json["state"]; 805 state = _json["state"];
816 } 806 }
817 if (_json.containsKey("surveyUrlId")) { 807 if (_json.containsKey("surveyUrlId")) {
818 surveyUrlId = _json["surveyUrlId"]; 808 surveyUrlId = _json["surveyUrlId"];
819 } 809 }
820 if (_json.containsKey("title")) { 810 if (_json.containsKey("title")) {
821 title = _json["title"]; 811 title = _json["title"];
822 } 812 }
823 if (_json.containsKey("wantedResponseCount")) { 813 if (_json.containsKey("wantedResponseCount")) {
824 wantedResponseCount = _json["wantedResponseCount"]; 814 wantedResponseCount = _json["wantedResponseCount"];
825 } 815 }
826 } 816 }
827 817
828 core.Map<core.String, core.Object> toJson() { 818 core.Map<core.String, core.Object> toJson() {
829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 819 final core.Map<core.String, core.Object> _json =
820 new core.Map<core.String, core.Object>();
830 if (audience != null) { 821 if (audience != null) {
831 _json["audience"] = (audience).toJson(); 822 _json["audience"] = (audience).toJson();
832 } 823 }
833 if (cost != null) { 824 if (cost != null) {
834 _json["cost"] = (cost).toJson(); 825 _json["cost"] = (cost).toJson();
835 } 826 }
836 if (customerData != null) { 827 if (customerData != null) {
837 _json["customerData"] = customerData; 828 _json["customerData"] = customerData;
838 } 829 }
839 if (description != null) { 830 if (description != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 } 884 }
894 if (_json.containsKey("mobileAppPanelId")) { 885 if (_json.containsKey("mobileAppPanelId")) {
895 mobileAppPanelId = _json["mobileAppPanelId"]; 886 mobileAppPanelId = _json["mobileAppPanelId"];
896 } 887 }
897 if (_json.containsKey("populationSource")) { 888 if (_json.containsKey("populationSource")) {
898 populationSource = _json["populationSource"]; 889 populationSource = _json["populationSource"];
899 } 890 }
900 } 891 }
901 892
902 core.Map<core.String, core.Object> toJson() { 893 core.Map<core.String, core.Object> toJson() {
903 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 894 final core.Map<core.String, core.Object> _json =
895 new core.Map<core.String, core.Object>();
904 if (ages != null) { 896 if (ages != null) {
905 _json["ages"] = ages; 897 _json["ages"] = ages;
906 } 898 }
907 if (country != null) { 899 if (country != null) {
908 _json["country"] = country; 900 _json["country"] = country;
909 } 901 }
910 if (countrySubdivision != null) { 902 if (countrySubdivision != null) {
911 _json["countrySubdivision"] = countrySubdivision; 903 _json["countrySubdivision"] = countrySubdivision;
912 } 904 }
913 if (gender != null) { 905 if (gender != null) {
(...skipping 29 matching lines...) Expand all
943 } 935 }
944 if (_json.containsKey("maxCostPerResponseNanos")) { 936 if (_json.containsKey("maxCostPerResponseNanos")) {
945 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; 937 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"];
946 } 938 }
947 if (_json.containsKey("nanos")) { 939 if (_json.containsKey("nanos")) {
948 nanos = _json["nanos"]; 940 nanos = _json["nanos"];
949 } 941 }
950 } 942 }
951 943
952 core.Map<core.String, core.Object> toJson() { 944 core.Map<core.String, core.Object> toJson() {
953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 945 final core.Map<core.String, core.Object> _json =
946 new core.Map<core.String, core.Object>();
954 if (costPerResponseNanos != null) { 947 if (costPerResponseNanos != null) {
955 _json["costPerResponseNanos"] = costPerResponseNanos; 948 _json["costPerResponseNanos"] = costPerResponseNanos;
956 } 949 }
957 if (currencyCode != null) { 950 if (currencyCode != null) {
958 _json["currencyCode"] = currencyCode; 951 _json["currencyCode"] = currencyCode;
959 } 952 }
960 if (maxCostPerResponseNanos != null) { 953 if (maxCostPerResponseNanos != null) {
961 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; 954 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos;
962 } 955 }
963 if (nanos != null) { 956 if (nanos != null) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 if (_json.containsKey("answers")) { 989 if (_json.containsKey("answers")) {
997 answers = _json["answers"]; 990 answers = _json["answers"];
998 } 991 }
999 if (_json.containsKey("hasOther")) { 992 if (_json.containsKey("hasOther")) {
1000 hasOther = _json["hasOther"]; 993 hasOther = _json["hasOther"];
1001 } 994 }
1002 if (_json.containsKey("highValueLabel")) { 995 if (_json.containsKey("highValueLabel")) {
1003 highValueLabel = _json["highValueLabel"]; 996 highValueLabel = _json["highValueLabel"];
1004 } 997 }
1005 if (_json.containsKey("images")) { 998 if (_json.containsKey("images")) {
1006 images = _json["images"].map((value) => new SurveyQuestionImage.fromJson(v alue)).toList(); 999 images = _json["images"]
1000 .map((value) => new SurveyQuestionImage.fromJson(value))
1001 .toList();
1007 } 1002 }
1008 if (_json.containsKey("lastAnswerPositionPinned")) { 1003 if (_json.containsKey("lastAnswerPositionPinned")) {
1009 lastAnswerPositionPinned = _json["lastAnswerPositionPinned"]; 1004 lastAnswerPositionPinned = _json["lastAnswerPositionPinned"];
1010 } 1005 }
1011 if (_json.containsKey("lowValueLabel")) { 1006 if (_json.containsKey("lowValueLabel")) {
1012 lowValueLabel = _json["lowValueLabel"]; 1007 lowValueLabel = _json["lowValueLabel"];
1013 } 1008 }
1014 if (_json.containsKey("mustPickSuggestion")) { 1009 if (_json.containsKey("mustPickSuggestion")) {
1015 mustPickSuggestion = _json["mustPickSuggestion"]; 1010 mustPickSuggestion = _json["mustPickSuggestion"];
1016 } 1011 }
(...skipping 23 matching lines...) Expand all
1040 } 1035 }
1041 if (_json.containsKey("unitOfMeasurementLabel")) { 1036 if (_json.containsKey("unitOfMeasurementLabel")) {
1042 unitOfMeasurementLabel = _json["unitOfMeasurementLabel"]; 1037 unitOfMeasurementLabel = _json["unitOfMeasurementLabel"];
1043 } 1038 }
1044 if (_json.containsKey("videoId")) { 1039 if (_json.containsKey("videoId")) {
1045 videoId = _json["videoId"]; 1040 videoId = _json["videoId"];
1046 } 1041 }
1047 } 1042 }
1048 1043
1049 core.Map<core.String, core.Object> toJson() { 1044 core.Map<core.String, core.Object> toJson() {
1050 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1045 final core.Map<core.String, core.Object> _json =
1046 new core.Map<core.String, core.Object>();
1051 if (answerOrder != null) { 1047 if (answerOrder != null) {
1052 _json["answerOrder"] = answerOrder; 1048 _json["answerOrder"] = answerOrder;
1053 } 1049 }
1054 if (answers != null) { 1050 if (answers != null) {
1055 _json["answers"] = answers; 1051 _json["answers"] = answers;
1056 } 1052 }
1057 if (hasOther != null) { 1053 if (hasOther != null) {
1058 _json["hasOther"] = hasOther; 1054 _json["hasOther"] = hasOther;
1059 } 1055 }
1060 if (highValueLabel != null) { 1056 if (highValueLabel != null) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 } 1103 }
1108 1104
1109 class SurveyQuestionImage { 1105 class SurveyQuestionImage {
1110 core.String altText; 1106 core.String altText;
1111 core.String data; 1107 core.String data;
1112 core.List<core.int> get dataAsBytes { 1108 core.List<core.int> get dataAsBytes {
1113 return convert.BASE64.decode(data); 1109 return convert.BASE64.decode(data);
1114 } 1110 }
1115 1111
1116 void set dataAsBytes(core.List<core.int> _bytes) { 1112 void set dataAsBytes(core.List<core.int> _bytes) {
1117 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "- "); 1113 data =
1114 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
1118 } 1115 }
1116
1119 core.String url; 1117 core.String url;
1120 1118
1121 SurveyQuestionImage(); 1119 SurveyQuestionImage();
1122 1120
1123 SurveyQuestionImage.fromJson(core.Map _json) { 1121 SurveyQuestionImage.fromJson(core.Map _json) {
1124 if (_json.containsKey("altText")) { 1122 if (_json.containsKey("altText")) {
1125 altText = _json["altText"]; 1123 altText = _json["altText"];
1126 } 1124 }
1127 if (_json.containsKey("data")) { 1125 if (_json.containsKey("data")) {
1128 data = _json["data"]; 1126 data = _json["data"];
1129 } 1127 }
1130 if (_json.containsKey("url")) { 1128 if (_json.containsKey("url")) {
1131 url = _json["url"]; 1129 url = _json["url"];
1132 } 1130 }
1133 } 1131 }
1134 1132
1135 core.Map<core.String, core.Object> toJson() { 1133 core.Map<core.String, core.Object> toJson() {
1136 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1134 final core.Map<core.String, core.Object> _json =
1135 new core.Map<core.String, core.Object>();
1137 if (altText != null) { 1136 if (altText != null) {
1138 _json["altText"] = altText; 1137 _json["altText"] = altText;
1139 } 1138 }
1140 if (data != null) { 1139 if (data != null) {
1141 _json["data"] = data; 1140 _json["data"] = data;
1142 } 1141 }
1143 if (url != null) { 1142 if (url != null) {
1144 _json["url"] = url; 1143 _json["url"] = url;
1145 } 1144 }
1146 return _json; 1145 return _json;
1147 } 1146 }
1148 } 1147 }
1149 1148
1150 class SurveyRejection { 1149 class SurveyRejection {
1151 core.String explanation; 1150 core.String explanation;
1152 core.String type; 1151 core.String type;
1153 1152
1154 SurveyRejection(); 1153 SurveyRejection();
1155 1154
1156 SurveyRejection.fromJson(core.Map _json) { 1155 SurveyRejection.fromJson(core.Map _json) {
1157 if (_json.containsKey("explanation")) { 1156 if (_json.containsKey("explanation")) {
1158 explanation = _json["explanation"]; 1157 explanation = _json["explanation"];
1159 } 1158 }
1160 if (_json.containsKey("type")) { 1159 if (_json.containsKey("type")) {
1161 type = _json["type"]; 1160 type = _json["type"];
1162 } 1161 }
1163 } 1162 }
1164 1163
1165 core.Map<core.String, core.Object> toJson() { 1164 core.Map<core.String, core.Object> toJson() {
1166 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1165 final core.Map<core.String, core.Object> _json =
1166 new core.Map<core.String, core.Object>();
1167 if (explanation != null) { 1167 if (explanation != null) {
1168 _json["explanation"] = explanation; 1168 _json["explanation"] = explanation;
1169 } 1169 }
1170 if (type != null) { 1170 if (type != null) {
1171 _json["type"] = type; 1171 _json["type"] = type;
1172 } 1172 }
1173 return _json; 1173 return _json;
1174 } 1174 }
1175 } 1175 }
1176 1176
1177 class SurveyResults { 1177 class SurveyResults {
1178 core.String status; 1178 core.String status;
1179 core.String surveyUrlId; 1179 core.String surveyUrlId;
1180 1180
1181 SurveyResults(); 1181 SurveyResults();
1182 1182
1183 SurveyResults.fromJson(core.Map _json) { 1183 SurveyResults.fromJson(core.Map _json) {
1184 if (_json.containsKey("status")) { 1184 if (_json.containsKey("status")) {
1185 status = _json["status"]; 1185 status = _json["status"];
1186 } 1186 }
1187 if (_json.containsKey("surveyUrlId")) { 1187 if (_json.containsKey("surveyUrlId")) {
1188 surveyUrlId = _json["surveyUrlId"]; 1188 surveyUrlId = _json["surveyUrlId"];
1189 } 1189 }
1190 } 1190 }
1191 1191
1192 core.Map<core.String, core.Object> toJson() { 1192 core.Map<core.String, core.Object> toJson() {
1193 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1193 final core.Map<core.String, core.Object> _json =
1194 new core.Map<core.String, core.Object>();
1194 if (status != null) { 1195 if (status != null) {
1195 _json["status"] = status; 1196 _json["status"] = status;
1196 } 1197 }
1197 if (surveyUrlId != null) { 1198 if (surveyUrlId != null) {
1198 _json["surveyUrlId"] = surveyUrlId; 1199 _json["surveyUrlId"] = surveyUrlId;
1199 } 1200 }
1200 return _json; 1201 return _json;
1201 } 1202 }
1202 } 1203 }
1203 1204
1204 class SurveysDeleteResponse { 1205 class SurveysDeleteResponse {
1205 /** 1206 /// Unique request ID used for logging and debugging. Please include in any
1206 * Unique request ID used for logging and debugging. Please include in any 1207 /// error reporting or troubleshooting requests.
1207 * error reporting or troubleshooting requests.
1208 */
1209 core.String requestId; 1208 core.String requestId;
1210 1209
1211 SurveysDeleteResponse(); 1210 SurveysDeleteResponse();
1212 1211
1213 SurveysDeleteResponse.fromJson(core.Map _json) { 1212 SurveysDeleteResponse.fromJson(core.Map _json) {
1214 if (_json.containsKey("requestId")) { 1213 if (_json.containsKey("requestId")) {
1215 requestId = _json["requestId"]; 1214 requestId = _json["requestId"];
1216 } 1215 }
1217 } 1216 }
1218 1217
1219 core.Map<core.String, core.Object> toJson() { 1218 core.Map<core.String, core.Object> toJson() {
1220 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1219 final core.Map<core.String, core.Object> _json =
1220 new core.Map<core.String, core.Object>();
1221 if (requestId != null) { 1221 if (requestId != null) {
1222 _json["requestId"] = requestId; 1222 _json["requestId"] = requestId;
1223 } 1223 }
1224 return _json; 1224 return _json;
1225 } 1225 }
1226 } 1226 }
1227 1227
1228 class SurveysListResponse { 1228 class SurveysListResponse {
1229 PageInfo pageInfo; 1229 PageInfo pageInfo;
1230 /** 1230
1231 * Unique request ID used for logging and debugging. Please include in any 1231 /// Unique request ID used for logging and debugging. Please include in any
1232 * error reporting or troubleshooting requests. 1232 /// error reporting or troubleshooting requests.
1233 */
1234 core.String requestId; 1233 core.String requestId;
1235 /** An individual survey resource. */ 1234
1235 /// An individual survey resource.
1236 core.List<Survey> resources; 1236 core.List<Survey> resources;
1237 TokenPagination tokenPagination; 1237 TokenPagination tokenPagination;
1238 1238
1239 SurveysListResponse(); 1239 SurveysListResponse();
1240 1240
1241 SurveysListResponse.fromJson(core.Map _json) { 1241 SurveysListResponse.fromJson(core.Map _json) {
1242 if (_json.containsKey("pageInfo")) { 1242 if (_json.containsKey("pageInfo")) {
1243 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); 1243 pageInfo = new PageInfo.fromJson(_json["pageInfo"]);
1244 } 1244 }
1245 if (_json.containsKey("requestId")) { 1245 if (_json.containsKey("requestId")) {
1246 requestId = _json["requestId"]; 1246 requestId = _json["requestId"];
1247 } 1247 }
1248 if (_json.containsKey("resources")) { 1248 if (_json.containsKey("resources")) {
1249 resources = _json["resources"].map((value) => new Survey.fromJson(value)). toList(); 1249 resources = _json["resources"]
1250 .map((value) => new Survey.fromJson(value))
1251 .toList();
1250 } 1252 }
1251 if (_json.containsKey("tokenPagination")) { 1253 if (_json.containsKey("tokenPagination")) {
1252 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); 1254 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]);
1253 } 1255 }
1254 } 1256 }
1255 1257
1256 core.Map<core.String, core.Object> toJson() { 1258 core.Map<core.String, core.Object> toJson() {
1257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1259 final core.Map<core.String, core.Object> _json =
1260 new core.Map<core.String, core.Object>();
1258 if (pageInfo != null) { 1261 if (pageInfo != null) {
1259 _json["pageInfo"] = (pageInfo).toJson(); 1262 _json["pageInfo"] = (pageInfo).toJson();
1260 } 1263 }
1261 if (requestId != null) { 1264 if (requestId != null) {
1262 _json["requestId"] = requestId; 1265 _json["requestId"] = requestId;
1263 } 1266 }
1264 if (resources != null) { 1267 if (resources != null) {
1265 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 1268 _json["resources"] = resources.map((value) => (value).toJson()).toList();
1266 } 1269 }
1267 if (tokenPagination != null) { 1270 if (tokenPagination != null) {
1268 _json["tokenPagination"] = (tokenPagination).toJson(); 1271 _json["tokenPagination"] = (tokenPagination).toJson();
1269 } 1272 }
1270 return _json; 1273 return _json;
1271 } 1274 }
1272 } 1275 }
1273 1276
1274 class SurveysStartRequest { 1277 class SurveysStartRequest {
1275 /** 1278 /// Threshold to start a survey automically if the quoted prices is less than
1276 * Threshold to start a survey automically if the quoted prices is less than 1279 /// or equal to this value. See Survey.Cost for more details.
1277 * or equal to this value. See Survey.Cost for more details.
1278 */
1279 core.String maxCostPerResponseNanos; 1280 core.String maxCostPerResponseNanos;
1280 1281
1281 SurveysStartRequest(); 1282 SurveysStartRequest();
1282 1283
1283 SurveysStartRequest.fromJson(core.Map _json) { 1284 SurveysStartRequest.fromJson(core.Map _json) {
1284 if (_json.containsKey("maxCostPerResponseNanos")) { 1285 if (_json.containsKey("maxCostPerResponseNanos")) {
1285 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; 1286 maxCostPerResponseNanos = _json["maxCostPerResponseNanos"];
1286 } 1287 }
1287 } 1288 }
1288 1289
1289 core.Map<core.String, core.Object> toJson() { 1290 core.Map<core.String, core.Object> toJson() {
1290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1291 final core.Map<core.String, core.Object> _json =
1292 new core.Map<core.String, core.Object>();
1291 if (maxCostPerResponseNanos != null) { 1293 if (maxCostPerResponseNanos != null) {
1292 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; 1294 _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos;
1293 } 1295 }
1294 return _json; 1296 return _json;
1295 } 1297 }
1296 } 1298 }
1297 1299
1298 class SurveysStartResponse { 1300 class SurveysStartResponse {
1299 /** 1301 /// Unique request ID used for logging and debugging. Please include in any
1300 * Unique request ID used for logging and debugging. Please include in any 1302 /// error reporting or troubleshooting requests.
1301 * error reporting or troubleshooting requests.
1302 */
1303 core.String requestId; 1303 core.String requestId;
1304 1304
1305 SurveysStartResponse(); 1305 SurveysStartResponse();
1306 1306
1307 SurveysStartResponse.fromJson(core.Map _json) { 1307 SurveysStartResponse.fromJson(core.Map _json) {
1308 if (_json.containsKey("requestId")) { 1308 if (_json.containsKey("requestId")) {
1309 requestId = _json["requestId"]; 1309 requestId = _json["requestId"];
1310 } 1310 }
1311 } 1311 }
1312 1312
1313 core.Map<core.String, core.Object> toJson() { 1313 core.Map<core.String, core.Object> toJson() {
1314 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1314 final core.Map<core.String, core.Object> _json =
1315 new core.Map<core.String, core.Object>();
1315 if (requestId != null) { 1316 if (requestId != null) {
1316 _json["requestId"] = requestId; 1317 _json["requestId"] = requestId;
1317 } 1318 }
1318 return _json; 1319 return _json;
1319 } 1320 }
1320 } 1321 }
1321 1322
1322 class SurveysStopResponse { 1323 class SurveysStopResponse {
1323 /** 1324 /// Unique request ID used for logging and debugging. Please include in any
1324 * Unique request ID used for logging and debugging. Please include in any 1325 /// error reporting or troubleshooting requests.
1325 * error reporting or troubleshooting requests.
1326 */
1327 core.String requestId; 1326 core.String requestId;
1328 1327
1329 SurveysStopResponse(); 1328 SurveysStopResponse();
1330 1329
1331 SurveysStopResponse.fromJson(core.Map _json) { 1330 SurveysStopResponse.fromJson(core.Map _json) {
1332 if (_json.containsKey("requestId")) { 1331 if (_json.containsKey("requestId")) {
1333 requestId = _json["requestId"]; 1332 requestId = _json["requestId"];
1334 } 1333 }
1335 } 1334 }
1336 1335
1337 core.Map<core.String, core.Object> toJson() { 1336 core.Map<core.String, core.Object> toJson() {
1338 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1337 final core.Map<core.String, core.Object> _json =
1338 new core.Map<core.String, core.Object>();
1339 if (requestId != null) { 1339 if (requestId != null) {
1340 _json["requestId"] = requestId; 1340 _json["requestId"] = requestId;
1341 } 1341 }
1342 return _json; 1342 return _json;
1343 } 1343 }
1344 } 1344 }
1345 1345
1346 class TokenPagination { 1346 class TokenPagination {
1347 core.String nextPageToken; 1347 core.String nextPageToken;
1348 core.String previousPageToken; 1348 core.String previousPageToken;
1349 1349
1350 TokenPagination(); 1350 TokenPagination();
1351 1351
1352 TokenPagination.fromJson(core.Map _json) { 1352 TokenPagination.fromJson(core.Map _json) {
1353 if (_json.containsKey("nextPageToken")) { 1353 if (_json.containsKey("nextPageToken")) {
1354 nextPageToken = _json["nextPageToken"]; 1354 nextPageToken = _json["nextPageToken"];
1355 } 1355 }
1356 if (_json.containsKey("previousPageToken")) { 1356 if (_json.containsKey("previousPageToken")) {
1357 previousPageToken = _json["previousPageToken"]; 1357 previousPageToken = _json["previousPageToken"];
1358 } 1358 }
1359 } 1359 }
1360 1360
1361 core.Map<core.String, core.Object> toJson() { 1361 core.Map<core.String, core.Object> toJson() {
1362 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1362 final core.Map<core.String, core.Object> _json =
1363 new core.Map<core.String, core.Object>();
1363 if (nextPageToken != null) { 1364 if (nextPageToken != null) {
1364 _json["nextPageToken"] = nextPageToken; 1365 _json["nextPageToken"] = nextPageToken;
1365 } 1366 }
1366 if (previousPageToken != null) { 1367 if (previousPageToken != null) {
1367 _json["previousPageToken"] = previousPageToken; 1368 _json["previousPageToken"] = previousPageToken;
1368 } 1369 }
1369 return _json; 1370 return _json;
1370 } 1371 }
1371 } 1372 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/cloudtrace/v2.dart ('k') | generated/googleapis/lib/container/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698