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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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/monitoring/v3.dart ('k') | generated/googleapis/lib/people/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.partners.v2; 3 library googleapis.partners.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;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 AnalyticsResourceApi(commons.ApiRequester client) : 44 AnalyticsResourceApi(commons.ApiRequester client) :
45 _requester = client; 45 _requester = client;
46 46
47 /** 47 /**
48 * Lists analytics data for a user's associated company. 48 * Lists analytics data for a user's associated company.
49 * Should only be called within the context of an authorized logged in user. 49 * Should only be called within the context of an authorized logged in user.
50 * 50 *
51 * Request parameters: 51 * Request parameters:
52 * 52 *
53 * [pageSize] - Requested page size. Server may return fewer analytics than
54 * requested.
55 * If unspecified or set to 0, default value is 30.
56 * Specifies the number of days in the date range when querying analytics.
57 * The `page_token` represents the end date of the date range
58 * and the start date is calculated using the `page_size` as the number
59 * of days BEFORE the end date.
60 * Must be a non-negative integer.
61 *
53 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 62 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
54 * where the traffic comes from. 63 * where the traffic comes from.
55 * An identifier has multiple letters created by a team which redirected the 64 * An identifier has multiple letters created by a team which redirected the
56 * traffic to us. 65 * traffic to us.
57 * 66 *
58 * [requestMetadata_locale] - Locale to use for the current request. 67 * [requestMetadata_locale] - Locale to use for the current request.
59 * 68 *
60 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 69 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
61 * the user's geo-located IP address. 70 * the user's geo-located IP address.
62 * 71 *
(...skipping 12 matching lines...) Expand all
75 * 84 *
76 * [pageToken] - A token identifying a page of results that the server 85 * [pageToken] - A token identifying a page of results that the server
77 * returns. 86 * returns.
78 * Typically, this is the value of `ListAnalyticsResponse.next_page_token` 87 * Typically, this is the value of `ListAnalyticsResponse.next_page_token`
79 * returned from the previous call to 88 * returned from the previous call to
80 * ListAnalytics. 89 * ListAnalytics.
81 * Will be a date string in `YYYY-MM-DD` format representing the end date 90 * Will be a date string in `YYYY-MM-DD` format representing the end date
82 * of the date range of results to return. 91 * of the date range of results to return.
83 * If unspecified or set to "", default value is the current date. 92 * If unspecified or set to "", default value is the current date.
84 * 93 *
85 * [pageSize] - Requested page size. Server may return fewer analytics than
86 * requested.
87 * If unspecified or set to 0, default value is 30.
88 * Specifies the number of days in the date range when querying analytics.
89 * The `page_token` represents the end date of the date range
90 * and the start date is calculated using the `page_size` as the number
91 * of days BEFORE the end date.
92 * Must be a non-negative integer.
93 *
94 * Completes with a [ListAnalyticsResponse]. 94 * Completes with a [ListAnalyticsResponse].
95 * 95 *
96 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 96 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
97 * error. 97 * error.
98 * 98 *
99 * If the used [http.Client] completes with an error when making a REST call, 99 * If the used [http.Client] completes with an error when making a REST call,
100 * this method will complete with the same error. 100 * this method will complete with the same error.
101 */ 101 */
102 async.Future<ListAnalyticsResponse> list({core.String requestMetadata_trafficS ource_trafficSourceId, core.String requestMetadata_locale, core.String requestMe tadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimen tIds, core.String requestMetadata_trafficSource_trafficSubId, core.String reques tMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, c ore.String pageToken, core.int pageSize}) { 102 async.Future<ListAnalyticsResponse> list({core.int pageSize, core.String reque stMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, co re.String requestMetadata_userOverrides_ipAddress, core.List<core.String> reques tMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_p artnersSessionId, core.String pageToken}) {
103 var _url = null; 103 var _url = null;
104 var _queryParams = new core.Map(); 104 var _queryParams = new core.Map();
105 var _uploadMedia = null; 105 var _uploadMedia = null;
106 var _uploadOptions = null; 106 var _uploadOptions = null;
107 var _downloadOptions = commons.DownloadOptions.Metadata; 107 var _downloadOptions = commons.DownloadOptions.Metadata;
108 var _body = null; 108 var _body = null;
109 109
110 if (pageSize != null) {
111 _queryParams["pageSize"] = ["${pageSize}"];
112 }
110 if (requestMetadata_trafficSource_trafficSourceId != null) { 113 if (requestMetadata_trafficSource_trafficSourceId != null) {
111 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 114 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
112 } 115 }
113 if (requestMetadata_locale != null) { 116 if (requestMetadata_locale != null) {
114 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 117 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
115 } 118 }
116 if (requestMetadata_userOverrides_ipAddress != null) { 119 if (requestMetadata_userOverrides_ipAddress != null) {
117 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 120 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
118 } 121 }
119 if (requestMetadata_experimentIds != null) { 122 if (requestMetadata_experimentIds != null) {
120 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 123 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
121 } 124 }
122 if (requestMetadata_trafficSource_trafficSubId != null) { 125 if (requestMetadata_trafficSource_trafficSubId != null) {
123 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 126 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
124 } 127 }
125 if (requestMetadata_userOverrides_userId != null) { 128 if (requestMetadata_userOverrides_userId != null) {
126 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 129 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
127 } 130 }
128 if (requestMetadata_partnersSessionId != null) { 131 if (requestMetadata_partnersSessionId != null) {
129 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 132 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
130 } 133 }
131 if (pageToken != null) { 134 if (pageToken != null) {
132 _queryParams["pageToken"] = [pageToken]; 135 _queryParams["pageToken"] = [pageToken];
133 } 136 }
134 if (pageSize != null) {
135 _queryParams["pageSize"] = ["${pageSize}"];
136 }
137 137
138 _url = 'v2/analytics'; 138 _url = 'v2/analytics';
139 139
140 var _response = _requester.request(_url, 140 var _response = _requester.request(_url,
141 "GET", 141 "GET",
142 body: _body, 142 body: _body,
143 queryParams: _queryParams, 143 queryParams: _queryParams,
144 uploadOptions: _uploadOptions, 144 uploadOptions: _uploadOptions,
145 uploadMedia: _uploadMedia, 145 uploadMedia: _uploadMedia,
146 downloadOptions: _downloadOptions); 146 downloadOptions: _downloadOptions);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 CompaniesResourceApi(commons.ApiRequester client) : 208 CompaniesResourceApi(commons.ApiRequester client) :
209 _requester = client; 209 _requester = client;
210 210
211 /** 211 /**
212 * Gets a company. 212 * Gets a company.
213 * 213 *
214 * Request parameters: 214 * Request parameters:
215 * 215 *
216 * [companyId] - The ID of the company to retrieve. 216 * [companyId] - The ID of the company to retrieve.
217 * 217 *
218 * [requestMetadata_partnersSessionId] - Google Partners session ID.
219 *
220 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
221 * instead of the user's ID.
222 *
223 * [view] - The view of `Company` resource to be returned. This must not be 218 * [view] - The view of `Company` resource to be returned. This must not be
224 * `COMPANY_VIEW_UNSPECIFIED`. 219 * `COMPANY_VIEW_UNSPECIFIED`.
225 * Possible string values are: 220 * Possible string values are:
226 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. 221 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED.
227 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. 222 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH.
228 * 223 *
229 * [requestMetadata_locale] - Locale to use for the current request. 224 * [requestMetadata_locale] - Locale to use for the current request.
230 * 225 *
231 * [address] - The address to use for sorting the company's addresses by 226 * [address] - The address to use for sorting the company's addresses by
232 * proximity. 227 * proximity.
(...skipping 19 matching lines...) Expand all
252 * indicate where the traffic comes from. 247 * indicate where the traffic comes from.
253 * An identifier has multiple letters created by a team which redirected the 248 * An identifier has multiple letters created by a team which redirected the
254 * traffic to us. 249 * traffic to us.
255 * 250 *
256 * [orderBy] - How to order addresses within the returned company. Currently, 251 * [orderBy] - How to order addresses within the returned company. Currently,
257 * only 252 * only
258 * `address` and `address desc` is supported which will sorted by closest to 253 * `address` and `address desc` is supported which will sorted by closest to
259 * farthest in distance from given address and farthest to closest distance 254 * farthest in distance from given address and farthest to closest distance
260 * from given address respectively. 255 * from given address respectively.
261 * 256 *
257 * [requestMetadata_partnersSessionId] - Google Partners session ID.
258 *
259 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
260 * instead of the user's ID.
261 *
262 * Completes with a [GetCompanyResponse]. 262 * Completes with a [GetCompanyResponse].
263 * 263 *
264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 264 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
265 * error. 265 * error.
266 * 266 *
267 * If the used [http.Client] completes with an error when making a REST call, 267 * If the used [http.Client] completes with an error when making a REST call,
268 * this method will complete with the same error. 268 * this method will complete with the same error.
269 */ 269 */
270 async.Future<GetCompanyResponse> get(core.String companyId, {core.String reque stMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String view, core.String requestMetadata_locale, core.String address, core. String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadat a_userOverrides_ipAddress, core.String currencyCode, core.List<core.String> requ estMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubI d, core.String orderBy}) { 270 async.Future<GetCompanyResponse> get(core.String companyId, {core.String view, core.String requestMetadata_locale, core.String address, core.String requestMet adata_trafficSource_trafficSourceId, core.String requestMetadata_userOverrides_i pAddress, core.String currencyCode, core.List<core.String> requestMetadata_exper imentIds, core.String requestMetadata_trafficSource_trafficSubId, core.String or derBy, core.String requestMetadata_partnersSessionId, core.String requestMetadat a_userOverrides_userId}) {
271 var _url = null; 271 var _url = null;
272 var _queryParams = new core.Map(); 272 var _queryParams = new core.Map();
273 var _uploadMedia = null; 273 var _uploadMedia = null;
274 var _uploadOptions = null; 274 var _uploadOptions = null;
275 var _downloadOptions = commons.DownloadOptions.Metadata; 275 var _downloadOptions = commons.DownloadOptions.Metadata;
276 var _body = null; 276 var _body = null;
277 277
278 if (companyId == null) { 278 if (companyId == null) {
279 throw new core.ArgumentError("Parameter companyId is required."); 279 throw new core.ArgumentError("Parameter companyId is required.");
280 } 280 }
281 if (requestMetadata_partnersSessionId != null) {
282 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
283 }
284 if (requestMetadata_userOverrides_userId != null) {
285 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
286 }
287 if (view != null) { 281 if (view != null) {
288 _queryParams["view"] = [view]; 282 _queryParams["view"] = [view];
289 } 283 }
290 if (requestMetadata_locale != null) { 284 if (requestMetadata_locale != null) {
291 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 285 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
292 } 286 }
293 if (address != null) { 287 if (address != null) {
294 _queryParams["address"] = [address]; 288 _queryParams["address"] = [address];
295 } 289 }
296 if (requestMetadata_trafficSource_trafficSourceId != null) { 290 if (requestMetadata_trafficSource_trafficSourceId != null) {
297 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 291 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
298 } 292 }
299 if (requestMetadata_userOverrides_ipAddress != null) { 293 if (requestMetadata_userOverrides_ipAddress != null) {
300 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 294 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
301 } 295 }
302 if (currencyCode != null) { 296 if (currencyCode != null) {
303 _queryParams["currencyCode"] = [currencyCode]; 297 _queryParams["currencyCode"] = [currencyCode];
304 } 298 }
305 if (requestMetadata_experimentIds != null) { 299 if (requestMetadata_experimentIds != null) {
306 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 300 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
307 } 301 }
308 if (requestMetadata_trafficSource_trafficSubId != null) { 302 if (requestMetadata_trafficSource_trafficSubId != null) {
309 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 303 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
310 } 304 }
311 if (orderBy != null) { 305 if (orderBy != null) {
312 _queryParams["orderBy"] = [orderBy]; 306 _queryParams["orderBy"] = [orderBy];
313 } 307 }
308 if (requestMetadata_partnersSessionId != null) {
309 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
310 }
311 if (requestMetadata_userOverrides_userId != null) {
312 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
313 }
314 314
315 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId'); 315 _url = 'v2/companies/' + commons.Escaper.ecapeVariable('$companyId');
316 316
317 var _response = _requester.request(_url, 317 var _response = _requester.request(_url,
318 "GET", 318 "GET",
319 body: _body, 319 body: _body,
320 queryParams: _queryParams, 320 queryParams: _queryParams,
321 uploadOptions: _uploadOptions, 321 uploadOptions: _uploadOptions,
322 uploadMedia: _uploadMedia, 322 uploadMedia: _uploadMedia,
323 downloadOptions: _downloadOptions); 323 downloadOptions: _downloadOptions);
324 return _response.then((data) => new GetCompanyResponse.fromJson(data)); 324 return _response.then((data) => new GetCompanyResponse.fromJson(data));
325 } 325 }
326 326
327 /** 327 /**
328 * Lists companies. 328 * Lists companies.
329 * 329 *
330 * Request parameters: 330 * Request parameters:
331 * 331 *
332 * [websiteUrl] - Website URL that will help to find a better matched company.
333 * .
334 *
335 * [gpsMotivations] - List of reasons for using Google Partner Search to get
336 * companies.
337 *
332 * [languageCodes] - List of language codes that company can support. Only 338 * [languageCodes] - List of language codes that company can support. Only
333 * primary language 339 * primary language
334 * subtags are accepted as defined by 340 * subtags are accepted as defined by
335 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> 341 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a>
336 * (IETF BCP 47, "Tags for Identifying Languages"). 342 * (IETF BCP 47, "Tags for Identifying Languages").
337 * 343 *
338 * [pageSize] - Requested page size. Server may return fewer companies than 344 * [pageSize] - Requested page size. Server may return fewer companies than
339 * requested. 345 * requested.
340 * If unspecified, server picks an appropriate default. 346 * If unspecified, server picks an appropriate default.
341 * 347 *
(...skipping 10 matching lines...) Expand all
352 * from given address respectively. 358 * from given address respectively.
353 * 359 *
354 * [specializations] - List of specializations that the returned agencies 360 * [specializations] - List of specializations that the returned agencies
355 * should provide. If this 361 * should provide. If this
356 * is not empty, any returned agency must have at least one of these 362 * is not empty, any returned agency must have at least one of these
357 * specializations, or one of the services in the "services" field. 363 * specializations, or one of the services in the "services" field.
358 * 364 *
359 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO 365 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO
360 * 4217. 366 * 4217.
361 * 367 *
362 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO
363 * 4217.
364 *
365 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 368 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
366 * instead of the user's ID. 369 * instead of the user's ID.
367 * 370 *
371 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO
372 * 4217.
373 *
368 * [view] - The view of the `Company` resource to be returned. This must not 374 * [view] - The view of the `Company` resource to be returned. This must not
369 * be 375 * be
370 * `COMPANY_VIEW_UNSPECIFIED`. 376 * `COMPANY_VIEW_UNSPECIFIED`.
371 * Possible string values are: 377 * Possible string values are:
372 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. 378 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED.
373 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. 379 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH.
374 * 380 *
375 * [address] - The address to use when searching for companies. 381 * [address] - The address to use when searching for companies.
376 * If not given, the geo-located address of the request is used. 382 * If not given, the geo-located address of the request is used.
377 * 383 *
(...skipping 29 matching lines...) Expand all
407 * 413 *
408 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. 414 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount.
409 * The value must be between -999,999,999 and +999,999,999 inclusive. 415 * The value must be between -999,999,999 and +999,999,999 inclusive.
410 * If `units` is positive, `nanos` must be positive or zero. 416 * If `units` is positive, `nanos` must be positive or zero.
411 * If `units` is zero, `nanos` can be positive, zero, or negative. 417 * If `units` is zero, `nanos` can be positive, zero, or negative.
412 * If `units` is negative, `nanos` must be negative or zero. 418 * If `units` is negative, `nanos` must be negative or zero.
413 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. 419 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
414 * 420 *
415 * [requestMetadata_partnersSessionId] - Google Partners session ID. 421 * [requestMetadata_partnersSessionId] - Google Partners session ID.
416 * 422 *
423 * [companyName] - Company name to search for.
424 *
417 * [pageToken] - A token identifying a page of results that the server 425 * [pageToken] - A token identifying a page of results that the server
418 * returns. 426 * returns.
419 * Typically, this is the value of `ListCompaniesResponse.next_page_token` 427 * Typically, this is the value of `ListCompaniesResponse.next_page_token`
420 * returned from the previous call to 428 * returned from the previous call to
421 * ListCompanies. 429 * ListCompanies.
422 * 430 *
423 * [companyName] - Company name to search for.
424 *
425 * [industries] - List of industries the company can help with. 431 * [industries] - List of industries the company can help with.
426 * 432 *
427 * [websiteUrl] - Website URL that will help to find a better matched company.
428 * .
429 *
430 * [gpsMotivations] - List of reasons for using Google Partner Search to get
431 * companies.
432 *
433 * Completes with a [ListCompaniesResponse]. 433 * Completes with a [ListCompaniesResponse].
434 * 434 *
435 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 435 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
436 * error. 436 * error.
437 * 437 *
438 * If the used [http.Client] completes with an error when making a REST call, 438 * If the used [http.Client] completes with an error when making a REST call,
439 * this method will complete with the same error. 439 * this method will complete with the same error.
440 */ 440 */
441 async.Future<ListCompaniesResponse> list({core.List<core.String> languageCodes , core.int pageSize, core.String requestMetadata_userOverrides_ipAddress, core.L ist<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<c ore.String> specializations, core.String maxMonthlyBudget_currencyCode, core.Str ing minMonthlyBudget_currencyCode, core.String requestMetadata_userOverrides_use rId, core.String view, core.String address, core.String requestMetadata_locale, core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<c ore.String> services, core.String maxMonthlyBudget_units, core.String requestMet adata_trafficSource_trafficSourceId, core.String requestMetadata_trafficSource_t rafficSubId, core.int minMonthlyBudget_nanos, core.String requestMetadata_partne rsSessionId, core.String pageToken, core.String companyName, core.List<core.Stri ng> industries, core.String websiteUrl, core.List<core.String> gpsMotivations}) { 441 async.Future<ListCompaniesResponse> list({core.String websiteUrl, core.List<co re.String> gpsMotivations, core.List<core.String> languageCodes, core.int pageSi ze, core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy, core.List<core.String> speci alizations, core.String maxMonthlyBudget_currencyCode, core.String requestMetada ta_userOverrides_userId, core.String minMonthlyBudget_currencyCode, core.String view, core.String address, core.String requestMetadata_locale, core.String minMo nthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> servi ces, core.String maxMonthlyBudget_units, core.String requestMetadata_trafficSour ce_trafficSourceId, core.String requestMetadata_trafficSource_trafficSubId, core .int minMonthlyBudget_nanos, core.String requestMetadata_partnersSessionId, core .String companyName, core.String pageToken, core.List<core.String> industries}) {
442 var _url = null; 442 var _url = null;
443 var _queryParams = new core.Map(); 443 var _queryParams = new core.Map();
444 var _uploadMedia = null; 444 var _uploadMedia = null;
445 var _uploadOptions = null; 445 var _uploadOptions = null;
446 var _downloadOptions = commons.DownloadOptions.Metadata; 446 var _downloadOptions = commons.DownloadOptions.Metadata;
447 var _body = null; 447 var _body = null;
448 448
449 if (websiteUrl != null) {
450 _queryParams["websiteUrl"] = [websiteUrl];
451 }
452 if (gpsMotivations != null) {
453 _queryParams["gpsMotivations"] = gpsMotivations;
454 }
449 if (languageCodes != null) { 455 if (languageCodes != null) {
450 _queryParams["languageCodes"] = languageCodes; 456 _queryParams["languageCodes"] = languageCodes;
451 } 457 }
452 if (pageSize != null) { 458 if (pageSize != null) {
453 _queryParams["pageSize"] = ["${pageSize}"]; 459 _queryParams["pageSize"] = ["${pageSize}"];
454 } 460 }
455 if (requestMetadata_userOverrides_ipAddress != null) { 461 if (requestMetadata_userOverrides_ipAddress != null) {
456 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 462 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
457 } 463 }
458 if (requestMetadata_experimentIds != null) { 464 if (requestMetadata_experimentIds != null) {
459 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 465 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
460 } 466 }
461 if (orderBy != null) { 467 if (orderBy != null) {
462 _queryParams["orderBy"] = [orderBy]; 468 _queryParams["orderBy"] = [orderBy];
463 } 469 }
464 if (specializations != null) { 470 if (specializations != null) {
465 _queryParams["specializations"] = specializations; 471 _queryParams["specializations"] = specializations;
466 } 472 }
467 if (maxMonthlyBudget_currencyCode != null) { 473 if (maxMonthlyBudget_currencyCode != null) {
468 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency Code]; 474 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency Code];
469 } 475 }
476 if (requestMetadata_userOverrides_userId != null) {
477 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
478 }
470 if (minMonthlyBudget_currencyCode != null) { 479 if (minMonthlyBudget_currencyCode != null) {
471 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency Code]; 480 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency Code];
472 } 481 }
473 if (requestMetadata_userOverrides_userId != null) {
474 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
475 }
476 if (view != null) { 482 if (view != null) {
477 _queryParams["view"] = [view]; 483 _queryParams["view"] = [view];
478 } 484 }
479 if (address != null) { 485 if (address != null) {
480 _queryParams["address"] = [address]; 486 _queryParams["address"] = [address];
481 } 487 }
482 if (requestMetadata_locale != null) { 488 if (requestMetadata_locale != null) {
483 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 489 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
484 } 490 }
485 if (minMonthlyBudget_units != null) { 491 if (minMonthlyBudget_units != null) {
(...skipping 13 matching lines...) Expand all
499 } 505 }
500 if (requestMetadata_trafficSource_trafficSubId != null) { 506 if (requestMetadata_trafficSource_trafficSubId != null) {
501 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 507 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
502 } 508 }
503 if (minMonthlyBudget_nanos != null) { 509 if (minMonthlyBudget_nanos != null) {
504 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; 510 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"];
505 } 511 }
506 if (requestMetadata_partnersSessionId != null) { 512 if (requestMetadata_partnersSessionId != null) {
507 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 513 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
508 } 514 }
515 if (companyName != null) {
516 _queryParams["companyName"] = [companyName];
517 }
509 if (pageToken != null) { 518 if (pageToken != null) {
510 _queryParams["pageToken"] = [pageToken]; 519 _queryParams["pageToken"] = [pageToken];
511 } 520 }
512 if (companyName != null) {
513 _queryParams["companyName"] = [companyName];
514 }
515 if (industries != null) { 521 if (industries != null) {
516 _queryParams["industries"] = industries; 522 _queryParams["industries"] = industries;
517 } 523 }
518 if (websiteUrl != null) {
519 _queryParams["websiteUrl"] = [websiteUrl];
520 }
521 if (gpsMotivations != null) {
522 _queryParams["gpsMotivations"] = gpsMotivations;
523 }
524 524
525 _url = 'v2/companies'; 525 _url = 'v2/companies';
526 526
527 var _response = _requester.request(_url, 527 var _response = _requester.request(_url,
528 "GET", 528 "GET",
529 body: _body, 529 body: _body,
530 queryParams: _queryParams, 530 queryParams: _queryParams,
531 uploadOptions: _uploadOptions, 531 uploadOptions: _uploadOptions,
532 uploadMedia: _uploadMedia, 532 uploadMedia: _uploadMedia,
533 downloadOptions: _downloadOptions); 533 downloadOptions: _downloadOptions);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 * - "CET_ADWORDS_ADVANCED_SEARCH" : A CET_ADWORDS_ADVANCED_SEARCH. 609 * - "CET_ADWORDS_ADVANCED_SEARCH" : A CET_ADWORDS_ADVANCED_SEARCH.
610 * - "CET_ADWORDS_ADVANCED_DISPLAY" : A CET_ADWORDS_ADVANCED_DISPLAY. 610 * - "CET_ADWORDS_ADVANCED_DISPLAY" : A CET_ADWORDS_ADVANCED_DISPLAY.
611 * - "CET_VIDEO_ADS" : A CET_VIDEO_ADS. 611 * - "CET_VIDEO_ADS" : A CET_VIDEO_ADS.
612 * - "CET_DOUBLECLICK" : A CET_DOUBLECLICK. 612 * - "CET_DOUBLECLICK" : A CET_DOUBLECLICK.
613 * - "CET_ANALYTICS" : A CET_ANALYTICS. 613 * - "CET_ANALYTICS" : A CET_ANALYTICS.
614 * - "CET_SHOPPING" : A CET_SHOPPING. 614 * - "CET_SHOPPING" : A CET_SHOPPING.
615 * - "CET_MOBILE" : A CET_MOBILE. 615 * - "CET_MOBILE" : A CET_MOBILE.
616 * - "CET_DIGITAL_SALES" : A CET_DIGITAL_SALES. 616 * - "CET_DIGITAL_SALES" : A CET_DIGITAL_SALES.
617 * - "CET_MOBILE_SITES" : A CET_MOBILE_SITES. 617 * - "CET_MOBILE_SITES" : A CET_MOBILE_SITES.
618 * 618 *
619 * [requestMetadata_partnersSessionId] - Google Partners session ID.
620 *
621 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 619 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
622 * instead of the user's ID. 620 * instead of the user's ID.
623 * 621 *
622 * [requestMetadata_partnersSessionId] - Google Partners session ID.
623 *
624 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 624 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
625 * where the traffic comes from. 625 * where the traffic comes from.
626 * An identifier has multiple letters created by a team which redirected the 626 * An identifier has multiple letters created by a team which redirected the
627 * traffic to us. 627 * traffic to us.
628 * 628 *
629 * [requestMetadata_locale] - Locale to use for the current request. 629 * [requestMetadata_locale] - Locale to use for the current request.
630 * 630 *
631 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 631 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
632 * the user's geo-located IP address. 632 * the user's geo-located IP address.
633 * 633 *
634 * [requestMetadata_experimentIds] - Experiment IDs the current request 634 * [requestMetadata_experimentIds] - Experiment IDs the current request
635 * belongs to. 635 * belongs to.
636 * 636 *
637 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 637 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
638 * indicate where the traffic comes from. 638 * indicate where the traffic comes from.
639 * An identifier has multiple letters created by a team which redirected the 639 * An identifier has multiple letters created by a team which redirected the
640 * traffic to us. 640 * traffic to us.
641 * 641 *
642 * Completes with a [ExamToken]. 642 * Completes with a [ExamToken].
643 * 643 *
644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 644 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
645 * error. 645 * error.
646 * 646 *
647 * If the used [http.Client] completes with an error when making a REST call, 647 * If the used [http.Client] completes with an error when making a REST call,
648 * this method will complete with the same error. 648 * this method will complete with the same error.
649 */ 649 */
650 async.Future<ExamToken> getToken(core.String examType, {core.String requestMet adata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core. String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadat a_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.St ring> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_t rafficSubId}) { 650 async.Future<ExamToken> getToken(core.String examType, {core.String requestMet adata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core. String requestMetadata_trafficSource_trafficSourceId, core.String requestMetadat a_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core.St ring> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_t rafficSubId}) {
651 var _url = null; 651 var _url = null;
652 var _queryParams = new core.Map(); 652 var _queryParams = new core.Map();
653 var _uploadMedia = null; 653 var _uploadMedia = null;
654 var _uploadOptions = null; 654 var _uploadOptions = null;
655 var _downloadOptions = commons.DownloadOptions.Metadata; 655 var _downloadOptions = commons.DownloadOptions.Metadata;
656 var _body = null; 656 var _body = null;
657 657
658 if (examType == null) { 658 if (examType == null) {
659 throw new core.ArgumentError("Parameter examType is required."); 659 throw new core.ArgumentError("Parameter examType is required.");
660 } 660 }
661 if (requestMetadata_userOverrides_userId != null) {
662 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
663 }
661 if (requestMetadata_partnersSessionId != null) { 664 if (requestMetadata_partnersSessionId != null) {
662 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 665 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
663 } 666 }
664 if (requestMetadata_userOverrides_userId != null) {
665 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
666 }
667 if (requestMetadata_trafficSource_trafficSourceId != null) { 667 if (requestMetadata_trafficSource_trafficSourceId != null) {
668 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 668 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
669 } 669 }
670 if (requestMetadata_locale != null) { 670 if (requestMetadata_locale != null) {
671 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 671 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
672 } 672 }
673 if (requestMetadata_userOverrides_ipAddress != null) { 673 if (requestMetadata_userOverrides_ipAddress != null) {
674 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 674 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
675 } 675 }
676 if (requestMetadata_experimentIds != null) { 676 if (requestMetadata_experimentIds != null) {
(...skipping 23 matching lines...) Expand all
700 700
701 LeadsResourceApi(commons.ApiRequester client) : 701 LeadsResourceApi(commons.ApiRequester client) :
702 _requester = client; 702 _requester = client;
703 703
704 /** 704 /**
705 * Lists advertiser leads for a user's associated company. 705 * Lists advertiser leads for a user's associated company.
706 * Should only be called within the context of an authorized logged in user. 706 * Should only be called within the context of an authorized logged in user.
707 * 707 *
708 * Request parameters: 708 * Request parameters:
709 * 709 *
710 * [requestMetadata_experimentIds] - Experiment IDs the current request
711 * belongs to.
712 *
713 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
714 * indicate where the traffic comes from.
715 * An identifier has multiple letters created by a team which redirected the
716 * traffic to us.
717 *
718 * [orderBy] - How to order Leads. Currently, only `create_time`
719 * and `create_time desc` are supported
720 *
721 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 710 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
722 * instead of the user's ID. 711 * instead of the user's ID.
723 * 712 *
724 * [requestMetadata_partnersSessionId] - Google Partners session ID. 713 * [requestMetadata_partnersSessionId] - Google Partners session ID.
725 * 714 *
726 * [pageToken] - A token identifying a page of results that the server 715 * [pageToken] - A token identifying a page of results that the server
727 * returns. 716 * returns.
728 * Typically, this is the value of `ListLeadsResponse.next_page_token` 717 * Typically, this is the value of `ListLeadsResponse.next_page_token`
729 * returned from the previous call to 718 * returned from the previous call to
730 * ListLeads. 719 * ListLeads.
731 * 720 *
732 * [pageSize] - Requested page size. Server may return fewer leads than 721 * [pageSize] - Requested page size. Server may return fewer leads than
733 * requested. 722 * requested.
734 * If unspecified, server picks an appropriate default. 723 * If unspecified, server picks an appropriate default.
735 * 724 *
736 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 725 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
737 * where the traffic comes from. 726 * where the traffic comes from.
738 * An identifier has multiple letters created by a team which redirected the 727 * An identifier has multiple letters created by a team which redirected the
739 * traffic to us. 728 * traffic to us.
740 * 729 *
741 * [requestMetadata_locale] - Locale to use for the current request. 730 * [requestMetadata_locale] - Locale to use for the current request.
742 * 731 *
743 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 732 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
744 * the user's geo-located IP address. 733 * the user's geo-located IP address.
745 * 734 *
735 * [requestMetadata_experimentIds] - Experiment IDs the current request
736 * belongs to.
737 *
738 * [orderBy] - How to order Leads. Currently, only `create_time`
739 * and `create_time desc` are supported
740 *
741 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
742 * indicate where the traffic comes from.
743 * An identifier has multiple letters created by a team which redirected the
744 * traffic to us.
745 *
746 * Completes with a [ListLeadsResponse]. 746 * Completes with a [ListLeadsResponse].
747 * 747 *
748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 748 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
749 * error. 749 * error.
750 * 750 *
751 * If the used [http.Client] completes with an error when making a REST call, 751 * If the used [http.Client] completes with an error when making a REST call,
752 * this method will complete with the same error. 752 * this method will complete with the same error.
753 */ 753 */
754 async.Future<ListLeadsResponse> list({core.List<core.String> requestMetadata_e xperimentIds, core.String requestMetadata_trafficSource_trafficSubId, core.Strin g orderBy, core.String requestMetadata_userOverrides_userId, core.String request Metadata_partnersSessionId, core.String pageToken, core.int pageSize, core.Strin g requestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_loc ale, core.String requestMetadata_userOverrides_ipAddress}) { 754 async.Future<ListLeadsResponse> list({core.String requestMetadata_userOverride s_userId, core.String requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId, co re.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAd dress, core.List<core.String> requestMetadata_experimentIds, core.String orderBy , core.String requestMetadata_trafficSource_trafficSubId}) {
755 var _url = null; 755 var _url = null;
756 var _queryParams = new core.Map(); 756 var _queryParams = new core.Map();
757 var _uploadMedia = null; 757 var _uploadMedia = null;
758 var _uploadOptions = null; 758 var _uploadOptions = null;
759 var _downloadOptions = commons.DownloadOptions.Metadata; 759 var _downloadOptions = commons.DownloadOptions.Metadata;
760 var _body = null; 760 var _body = null;
761 761
762 if (requestMetadata_experimentIds != null) {
763 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
764 }
765 if (requestMetadata_trafficSource_trafficSubId != null) {
766 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
767 }
768 if (orderBy != null) {
769 _queryParams["orderBy"] = [orderBy];
770 }
771 if (requestMetadata_userOverrides_userId != null) { 762 if (requestMetadata_userOverrides_userId != null) {
772 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 763 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
773 } 764 }
774 if (requestMetadata_partnersSessionId != null) { 765 if (requestMetadata_partnersSessionId != null) {
775 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 766 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
776 } 767 }
777 if (pageToken != null) { 768 if (pageToken != null) {
778 _queryParams["pageToken"] = [pageToken]; 769 _queryParams["pageToken"] = [pageToken];
779 } 770 }
780 if (pageSize != null) { 771 if (pageSize != null) {
781 _queryParams["pageSize"] = ["${pageSize}"]; 772 _queryParams["pageSize"] = ["${pageSize}"];
782 } 773 }
783 if (requestMetadata_trafficSource_trafficSourceId != null) { 774 if (requestMetadata_trafficSource_trafficSourceId != null) {
784 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 775 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
785 } 776 }
786 if (requestMetadata_locale != null) { 777 if (requestMetadata_locale != null) {
787 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 778 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
788 } 779 }
789 if (requestMetadata_userOverrides_ipAddress != null) { 780 if (requestMetadata_userOverrides_ipAddress != null) {
790 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 781 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
791 } 782 }
783 if (requestMetadata_experimentIds != null) {
784 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
785 }
786 if (orderBy != null) {
787 _queryParams["orderBy"] = [orderBy];
788 }
789 if (requestMetadata_trafficSource_trafficSubId != null) {
790 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
791 }
792 792
793 _url = 'v2/leads'; 793 _url = 'v2/leads';
794 794
795 var _response = _requester.request(_url, 795 var _response = _requester.request(_url,
796 "GET", 796 "GET",
797 body: _body, 797 body: _body,
798 queryParams: _queryParams, 798 queryParams: _queryParams,
799 uploadOptions: _uploadOptions, 799 uploadOptions: _uploadOptions,
800 uploadMedia: _uploadMedia, 800 uploadMedia: _uploadMedia,
801 downloadOptions: _downloadOptions); 801 downloadOptions: _downloadOptions);
802 return _response.then((data) => new ListLeadsResponse.fromJson(data)); 802 return _response.then((data) => new ListLeadsResponse.fromJson(data));
803 } 803 }
804 804
805 } 805 }
806 806
807 807
808 class OffersResourceApi { 808 class OffersResourceApi {
809 final commons.ApiRequester _requester; 809 final commons.ApiRequester _requester;
810 810
811 OffersHistoryResourceApi get history => new OffersHistoryResourceApi(_requeste r); 811 OffersHistoryResourceApi get history => new OffersHistoryResourceApi(_requeste r);
812 812
813 OffersResourceApi(commons.ApiRequester client) : 813 OffersResourceApi(commons.ApiRequester client) :
814 _requester = client; 814 _requester = client;
815 815
816 /** 816 /**
817 * Lists the Offers available for the current user 817 * Lists the Offers available for the current user
818 * 818 *
819 * Request parameters: 819 * Request parameters:
820 * 820 *
821 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
822 * instead of the user's ID.
823 *
824 * [requestMetadata_partnersSessionId] - Google Partners session ID.
825 *
826 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 821 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
827 * where the traffic comes from. 822 * where the traffic comes from.
828 * An identifier has multiple letters created by a team which redirected the 823 * An identifier has multiple letters created by a team which redirected the
829 * traffic to us. 824 * traffic to us.
830 * 825 *
831 * [requestMetadata_locale] - Locale to use for the current request. 826 * [requestMetadata_locale] - Locale to use for the current request.
832 * 827 *
833 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 828 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
834 * the user's geo-located IP address. 829 * the user's geo-located IP address.
835 * 830 *
836 * [requestMetadata_experimentIds] - Experiment IDs the current request 831 * [requestMetadata_experimentIds] - Experiment IDs the current request
837 * belongs to. 832 * belongs to.
838 * 833 *
839 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 834 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
840 * indicate where the traffic comes from. 835 * indicate where the traffic comes from.
841 * An identifier has multiple letters created by a team which redirected the 836 * An identifier has multiple letters created by a team which redirected the
842 * traffic to us. 837 * traffic to us.
843 * 838 *
839 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
840 * instead of the user's ID.
841 *
842 * [requestMetadata_partnersSessionId] - Google Partners session ID.
843 *
844 * Completes with a [ListOffersResponse]. 844 * Completes with a [ListOffersResponse].
845 * 845 *
846 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 846 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
847 * error. 847 * error.
848 * 848 *
849 * If the used [http.Client] completes with an error when making a REST call, 849 * If the used [http.Client] completes with an error when making a REST call,
850 * this method will complete with the same error. 850 * this method will complete with the same error.
851 */ 851 */
852 async.Future<ListOffersResponse> list({core.String requestMetadata_userOverrid es_userId, core.String requestMetadata_partnersSessionId, core.String requestMet adata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.St ring requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMeta data_experimentIds, core.String requestMetadata_trafficSource_trafficSubId}) { 852 async.Future<ListOffersResponse> list({core.String requestMetadata_trafficSour ce_trafficSourceId, core.String requestMetadata_locale, core.String requestMetad ata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentId s, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMe tadata_userOverrides_userId, core.String requestMetadata_partnersSessionId}) {
853 var _url = null; 853 var _url = null;
854 var _queryParams = new core.Map(); 854 var _queryParams = new core.Map();
855 var _uploadMedia = null; 855 var _uploadMedia = null;
856 var _uploadOptions = null; 856 var _uploadOptions = null;
857 var _downloadOptions = commons.DownloadOptions.Metadata; 857 var _downloadOptions = commons.DownloadOptions.Metadata;
858 var _body = null; 858 var _body = null;
859 859
860 if (requestMetadata_userOverrides_userId != null) {
861 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
862 }
863 if (requestMetadata_partnersSessionId != null) {
864 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
865 }
866 if (requestMetadata_trafficSource_trafficSourceId != null) { 860 if (requestMetadata_trafficSource_trafficSourceId != null) {
867 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 861 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
868 } 862 }
869 if (requestMetadata_locale != null) { 863 if (requestMetadata_locale != null) {
870 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 864 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
871 } 865 }
872 if (requestMetadata_userOverrides_ipAddress != null) { 866 if (requestMetadata_userOverrides_ipAddress != null) {
873 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 867 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
874 } 868 }
875 if (requestMetadata_experimentIds != null) { 869 if (requestMetadata_experimentIds != null) {
876 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 870 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
877 } 871 }
878 if (requestMetadata_trafficSource_trafficSubId != null) { 872 if (requestMetadata_trafficSource_trafficSubId != null) {
879 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 873 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
880 } 874 }
875 if (requestMetadata_userOverrides_userId != null) {
876 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
877 }
878 if (requestMetadata_partnersSessionId != null) {
879 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
880 }
881 881
882 _url = 'v2/offers'; 882 _url = 'v2/offers';
883 883
884 var _response = _requester.request(_url, 884 var _response = _requester.request(_url,
885 "GET", 885 "GET",
886 body: _body, 886 body: _body,
887 queryParams: _queryParams, 887 queryParams: _queryParams,
888 uploadOptions: _uploadOptions, 888 uploadOptions: _uploadOptions,
889 uploadMedia: _uploadMedia, 889 uploadMedia: _uploadMedia,
890 downloadOptions: _downloadOptions); 890 downloadOptions: _downloadOptions);
891 return _response.then((data) => new ListOffersResponse.fromJson(data)); 891 return _response.then((data) => new ListOffersResponse.fromJson(data));
892 } 892 }
893 893
894 } 894 }
895 895
896 896
897 class OffersHistoryResourceApi { 897 class OffersHistoryResourceApi {
898 final commons.ApiRequester _requester; 898 final commons.ApiRequester _requester;
899 899
900 OffersHistoryResourceApi(commons.ApiRequester client) : 900 OffersHistoryResourceApi(commons.ApiRequester client) :
901 _requester = client; 901 _requester = client;
902 902
903 /** 903 /**
904 * Lists the Historical Offers for the current user (or user's entire company) 904 * Lists the Historical Offers for the current user (or user's entire company)
905 * 905 *
906 * Request parameters: 906 * Request parameters:
907 * 907 *
908 * [requestMetadata_experimentIds] - Experiment IDs the current request
909 * belongs to.
910 *
911 * [entireCompany] - if true, show history for the entire company. Requires
912 * user to be admin.
913 *
914 * [orderBy] - Comma-separated list of fields to order by, e.g.:
915 * "foo,bar,baz".
916 * Use "foo desc" to sort descending.
917 * List of valid field names is: name, offer_code, expiration_time, status,
918 * last_modified_time, sender_name, creation_time, country_code,
919 * offer_type.
920 *
921 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
922 * indicate where the traffic comes from.
923 * An identifier has multiple letters created by a team which redirected the
924 * traffic to us.
925 *
926 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 908 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
927 * instead of the user's ID. 909 * instead of the user's ID.
928 * 910 *
929 * [requestMetadata_partnersSessionId] - Google Partners session ID. 911 * [requestMetadata_partnersSessionId] - Google Partners session ID.
930 * 912 *
931 * [pageToken] - Token to retrieve a specific page. 913 * [pageToken] - Token to retrieve a specific page.
932 * 914 *
933 * [pageSize] - Maximum number of rows to return per page. 915 * [pageSize] - Maximum number of rows to return per page.
934 * 916 *
935 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 917 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
936 * where the traffic comes from. 918 * where the traffic comes from.
937 * An identifier has multiple letters created by a team which redirected the 919 * An identifier has multiple letters created by a team which redirected the
938 * traffic to us. 920 * traffic to us.
939 * 921 *
940 * [requestMetadata_locale] - Locale to use for the current request. 922 * [requestMetadata_locale] - Locale to use for the current request.
941 * 923 *
942 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 924 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
943 * the user's geo-located IP address. 925 * the user's geo-located IP address.
944 * 926 *
927 * [requestMetadata_experimentIds] - Experiment IDs the current request
928 * belongs to.
929 *
930 * [entireCompany] - if true, show history for the entire company. Requires
931 * user to be admin.
932 *
933 * [orderBy] - Comma-separated list of fields to order by, e.g.:
934 * "foo,bar,baz".
935 * Use "foo desc" to sort descending.
936 * List of valid field names is: name, offer_code, expiration_time, status,
937 * last_modified_time, sender_name, creation_time, country_code,
938 * offer_type.
939 *
940 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
941 * indicate where the traffic comes from.
942 * An identifier has multiple letters created by a team which redirected the
943 * traffic to us.
944 *
945 * Completes with a [ListOffersHistoryResponse]. 945 * Completes with a [ListOffersHistoryResponse].
946 * 946 *
947 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 947 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
948 * error. 948 * error.
949 * 949 *
950 * If the used [http.Client] completes with an error when making a REST call, 950 * If the used [http.Client] completes with an error when making a REST call,
951 * this method will complete with the same error. 951 * this method will complete with the same error.
952 */ 952 */
953 async.Future<ListOffersHistoryResponse> list({core.List<core.String> requestMe tadata_experimentIds, core.bool entireCompany, core.String orderBy, core.String requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOver rides_userId, core.String requestMetadata_partnersSessionId, core.String pageTok en, core.int pageSize, core.String requestMetadata_trafficSource_trafficSourceId , core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ ipAddress}) { 953 async.Future<ListOffersHistoryResponse> list({core.String requestMetadata_user Overrides_userId, core.String requestMetadata_partnersSessionId, core.String pag eToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSour ceId, core.String requestMetadata_locale, core.String requestMetadata_userOverri des_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.bool e ntireCompany, core.String orderBy, core.String requestMetadata_trafficSource_tra fficSubId}) {
954 var _url = null; 954 var _url = null;
955 var _queryParams = new core.Map(); 955 var _queryParams = new core.Map();
956 var _uploadMedia = null; 956 var _uploadMedia = null;
957 var _uploadOptions = null; 957 var _uploadOptions = null;
958 var _downloadOptions = commons.DownloadOptions.Metadata; 958 var _downloadOptions = commons.DownloadOptions.Metadata;
959 var _body = null; 959 var _body = null;
960 960
961 if (requestMetadata_experimentIds != null) {
962 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
963 }
964 if (entireCompany != null) {
965 _queryParams["entireCompany"] = ["${entireCompany}"];
966 }
967 if (orderBy != null) {
968 _queryParams["orderBy"] = [orderBy];
969 }
970 if (requestMetadata_trafficSource_trafficSubId != null) {
971 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
972 }
973 if (requestMetadata_userOverrides_userId != null) { 961 if (requestMetadata_userOverrides_userId != null) {
974 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 962 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
975 } 963 }
976 if (requestMetadata_partnersSessionId != null) { 964 if (requestMetadata_partnersSessionId != null) {
977 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 965 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
978 } 966 }
979 if (pageToken != null) { 967 if (pageToken != null) {
980 _queryParams["pageToken"] = [pageToken]; 968 _queryParams["pageToken"] = [pageToken];
981 } 969 }
982 if (pageSize != null) { 970 if (pageSize != null) {
983 _queryParams["pageSize"] = ["${pageSize}"]; 971 _queryParams["pageSize"] = ["${pageSize}"];
984 } 972 }
985 if (requestMetadata_trafficSource_trafficSourceId != null) { 973 if (requestMetadata_trafficSource_trafficSourceId != null) {
986 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 974 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
987 } 975 }
988 if (requestMetadata_locale != null) { 976 if (requestMetadata_locale != null) {
989 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 977 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
990 } 978 }
991 if (requestMetadata_userOverrides_ipAddress != null) { 979 if (requestMetadata_userOverrides_ipAddress != null) {
992 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 980 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
993 } 981 }
982 if (requestMetadata_experimentIds != null) {
983 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
984 }
985 if (entireCompany != null) {
986 _queryParams["entireCompany"] = ["${entireCompany}"];
987 }
988 if (orderBy != null) {
989 _queryParams["orderBy"] = [orderBy];
990 }
991 if (requestMetadata_trafficSource_trafficSubId != null) {
992 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
993 }
994 994
995 _url = 'v2/offers/history'; 995 _url = 'v2/offers/history';
996 996
997 var _response = _requester.request(_url, 997 var _response = _requester.request(_url,
998 "GET", 998 "GET",
999 body: _body, 999 body: _body,
1000 queryParams: _queryParams, 1000 queryParams: _queryParams,
1001 uploadOptions: _uploadOptions, 1001 uploadOptions: _uploadOptions,
1002 uploadMedia: _uploadMedia, 1002 uploadMedia: _uploadMedia,
1003 downloadOptions: _downloadOptions); 1003 downloadOptions: _downloadOptions);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 final commons.ApiRequester _requester; 1059 final commons.ApiRequester _requester;
1060 1060
1061 UserStatesResourceApi(commons.ApiRequester client) : 1061 UserStatesResourceApi(commons.ApiRequester client) :
1062 _requester = client; 1062 _requester = client;
1063 1063
1064 /** 1064 /**
1065 * Lists states for current user. 1065 * Lists states for current user.
1066 * 1066 *
1067 * Request parameters: 1067 * Request parameters:
1068 * 1068 *
1069 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1070 * where the traffic comes from.
1071 * An identifier has multiple letters created by a team which redirected the
1072 * traffic to us.
1073 *
1074 * [requestMetadata_locale] - Locale to use for the current request.
1075 *
1076 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1077 * the user's geo-located IP address.
1078 *
1069 * [requestMetadata_experimentIds] - Experiment IDs the current request 1079 * [requestMetadata_experimentIds] - Experiment IDs the current request
1070 * belongs to. 1080 * belongs to.
1071 * 1081 *
1072 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 1082 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
1073 * indicate where the traffic comes from. 1083 * indicate where the traffic comes from.
1074 * An identifier has multiple letters created by a team which redirected the 1084 * An identifier has multiple letters created by a team which redirected the
1075 * traffic to us. 1085 * traffic to us.
1076 * 1086 *
1077 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1087 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1078 * instead of the user's ID. 1088 * instead of the user's ID.
1079 * 1089 *
1080 * [requestMetadata_partnersSessionId] - Google Partners session ID. 1090 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1081 * 1091 *
1082 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1083 * where the traffic comes from.
1084 * An identifier has multiple letters created by a team which redirected the
1085 * traffic to us.
1086 *
1087 * [requestMetadata_locale] - Locale to use for the current request.
1088 *
1089 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1090 * the user's geo-located IP address.
1091 *
1092 * Completes with a [ListUserStatesResponse]. 1092 * Completes with a [ListUserStatesResponse].
1093 * 1093 *
1094 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1094 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1095 * error. 1095 * error.
1096 * 1096 *
1097 * If the used [http.Client] completes with an error when making a REST call, 1097 * If the used [http.Client] completes with an error when making a REST call,
1098 * this method will complete with the same error. 1098 * this method will complete with the same error.
1099 */ 1099 */
1100 async.Future<ListUserStatesResponse> list({core.List<core.String> requestMetad ata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core. String requestMetadata_userOverrides_userId, core.String requestMetadata_partner sSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.Stri ng requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress}) { 1100 async.Future<ListUserStatesResponse> list({core.String requestMetadata_traffic Source_trafficSourceId, core.String requestMetadata_locale, core.String requestM etadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experime ntIds, core.String requestMetadata_trafficSource_trafficSubId, core.String reque stMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId}) {
1101 var _url = null; 1101 var _url = null;
1102 var _queryParams = new core.Map(); 1102 var _queryParams = new core.Map();
1103 var _uploadMedia = null; 1103 var _uploadMedia = null;
1104 var _uploadOptions = null; 1104 var _uploadOptions = null;
1105 var _downloadOptions = commons.DownloadOptions.Metadata; 1105 var _downloadOptions = commons.DownloadOptions.Metadata;
1106 var _body = null; 1106 var _body = null;
1107 1107
1108 if (requestMetadata_trafficSource_trafficSourceId != null) {
1109 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1110 }
1111 if (requestMetadata_locale != null) {
1112 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1113 }
1114 if (requestMetadata_userOverrides_ipAddress != null) {
1115 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1116 }
1108 if (requestMetadata_experimentIds != null) { 1117 if (requestMetadata_experimentIds != null) {
1109 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 1118 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
1110 } 1119 }
1111 if (requestMetadata_trafficSource_trafficSubId != null) { 1120 if (requestMetadata_trafficSource_trafficSubId != null) {
1112 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 1121 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
1113 } 1122 }
1114 if (requestMetadata_userOverrides_userId != null) { 1123 if (requestMetadata_userOverrides_userId != null) {
1115 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 1124 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1116 } 1125 }
1117 if (requestMetadata_partnersSessionId != null) { 1126 if (requestMetadata_partnersSessionId != null) {
1118 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 1127 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1119 } 1128 }
1120 if (requestMetadata_trafficSource_trafficSourceId != null) {
1121 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1122 }
1123 if (requestMetadata_locale != null) {
1124 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1125 }
1126 if (requestMetadata_userOverrides_ipAddress != null) {
1127 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1128 }
1129 1129
1130 _url = 'v2/userStates'; 1130 _url = 'v2/userStates';
1131 1131
1132 var _response = _requester.request(_url, 1132 var _response = _requester.request(_url,
1133 "GET", 1133 "GET",
1134 body: _body, 1134 body: _body,
1135 queryParams: _queryParams, 1135 queryParams: _queryParams,
1136 uploadOptions: _uploadOptions, 1136 uploadOptions: _uploadOptions,
1137 uploadMedia: _uploadMedia, 1137 uploadMedia: _uploadMedia,
1138 downloadOptions: _downloadOptions); 1138 downloadOptions: _downloadOptions);
(...skipping 20 matching lines...) Expand all
1159 * the currently authenticated user. 1159 * the currently authenticated user.
1160 * 1160 *
1161 * [requestMetadata_experimentIds] - Experiment IDs the current request 1161 * [requestMetadata_experimentIds] - Experiment IDs the current request
1162 * belongs to. 1162 * belongs to.
1163 * 1163 *
1164 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 1164 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
1165 * indicate where the traffic comes from. 1165 * indicate where the traffic comes from.
1166 * An identifier has multiple letters created by a team which redirected the 1166 * An identifier has multiple letters created by a team which redirected the
1167 * traffic to us. 1167 * traffic to us.
1168 * 1168 *
1169 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1170 *
1169 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1171 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1170 * instead of the user's ID. 1172 * instead of the user's ID.
1171 * 1173 *
1172 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1173 *
1174 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 1174 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1175 * where the traffic comes from. 1175 * where the traffic comes from.
1176 * An identifier has multiple letters created by a team which redirected the 1176 * An identifier has multiple letters created by a team which redirected the
1177 * traffic to us. 1177 * traffic to us.
1178 * 1178 *
1179 * [requestMetadata_locale] - Locale to use for the current request. 1179 * [requestMetadata_locale] - Locale to use for the current request.
1180 * 1180 *
1181 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 1181 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1182 * the user's geo-located IP address. 1182 * the user's geo-located IP address.
1183 * 1183 *
1184 * Completes with a [CompanyRelation]. 1184 * Completes with a [CompanyRelation].
1185 * 1185 *
1186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1187 * error. 1187 * error.
1188 * 1188 *
1189 * If the used [http.Client] completes with an error when making a REST call, 1189 * If the used [http.Client] completes with an error when making a REST call,
1190 * this method will complete with the same error. 1190 * this method will complete with the same error.
1191 */ 1191 */
1192 async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, c ore.String userId, {core.List<core.String> requestMetadata_experimentIds, core.S tring requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_us erOverrides_userId, core.String requestMetadata_partnersSessionId, core.String r equestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale , core.String requestMetadata_userOverrides_ipAddress}) { 1192 async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, c ore.String userId, {core.List<core.String> requestMetadata_experimentIds, core.S tring requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_pa rtnersSessionId, core.String requestMetadata_userOverrides_userId, core.String r equestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale , core.String requestMetadata_userOverrides_ipAddress}) {
1193 var _url = null; 1193 var _url = null;
1194 var _queryParams = new core.Map(); 1194 var _queryParams = new core.Map();
1195 var _uploadMedia = null; 1195 var _uploadMedia = null;
1196 var _uploadOptions = null; 1196 var _uploadOptions = null;
1197 var _downloadOptions = commons.DownloadOptions.Metadata; 1197 var _downloadOptions = commons.DownloadOptions.Metadata;
1198 var _body = null; 1198 var _body = null;
1199 1199
1200 if (request != null) { 1200 if (request != null) {
1201 _body = convert.JSON.encode((request).toJson()); 1201 _body = convert.JSON.encode((request).toJson());
1202 } 1202 }
1203 if (userId == null) { 1203 if (userId == null) {
1204 throw new core.ArgumentError("Parameter userId is required."); 1204 throw new core.ArgumentError("Parameter userId is required.");
1205 } 1205 }
1206 if (requestMetadata_experimentIds != null) { 1206 if (requestMetadata_experimentIds != null) {
1207 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 1207 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
1208 } 1208 }
1209 if (requestMetadata_trafficSource_trafficSubId != null) { 1209 if (requestMetadata_trafficSource_trafficSubId != null) {
1210 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 1210 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
1211 } 1211 }
1212 if (requestMetadata_partnersSessionId != null) {
1213 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1214 }
1212 if (requestMetadata_userOverrides_userId != null) { 1215 if (requestMetadata_userOverrides_userId != null) {
1213 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 1216 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1214 } 1217 }
1215 if (requestMetadata_partnersSessionId != null) {
1216 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1217 }
1218 if (requestMetadata_trafficSource_trafficSourceId != null) { 1218 if (requestMetadata_trafficSource_trafficSourceId != null) {
1219 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 1219 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1220 } 1220 }
1221 if (requestMetadata_locale != null) { 1221 if (requestMetadata_locale != null) {
1222 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 1222 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1223 } 1223 }
1224 if (requestMetadata_userOverrides_ipAddress != null) { 1224 if (requestMetadata_userOverrides_ipAddress != null) {
1225 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 1225 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1226 } 1226 }
1227 1227
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 1323
1324 /** 1324 /**
1325 * Gets a user. 1325 * Gets a user.
1326 * 1326 *
1327 * Request parameters: 1327 * Request parameters:
1328 * 1328 *
1329 * [userId] - Identifier of the user. Can be set to <code>me</code> to mean 1329 * [userId] - Identifier of the user. Can be set to <code>me</code> to mean
1330 * the currently 1330 * the currently
1331 * authenticated user. 1331 * authenticated user.
1332 * 1332 *
1333 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1334 *
1335 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1333 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1336 * instead of the user's ID. 1334 * instead of the user's ID.
1337 * 1335 *
1336 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1337 *
1338 * [userView] - Specifies what parts of the user information to return. 1338 * [userView] - Specifies what parts of the user information to return.
1339 * Possible string values are: 1339 * Possible string values are:
1340 * - "BASIC" : A BASIC. 1340 * - "BASIC" : A BASIC.
1341 * - "PROFILE" : A PROFILE. 1341 * - "PROFILE" : A PROFILE.
1342 * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. 1342 * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE.
1343 * 1343 *
1344 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 1344 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1345 * where the traffic comes from. 1345 * where the traffic comes from.
1346 * An identifier has multiple letters created by a team which redirected the 1346 * An identifier has multiple letters created by a team which redirected the
1347 * traffic to us. 1347 * traffic to us.
(...skipping 12 matching lines...) Expand all
1360 * traffic to us. 1360 * traffic to us.
1361 * 1361 *
1362 * Completes with a [User]. 1362 * Completes with a [User].
1363 * 1363 *
1364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1365 * error. 1365 * error.
1366 * 1366 *
1367 * If the used [http.Client] completes with an error when making a REST call, 1367 * If the used [http.Client] completes with an error when making a REST call,
1368 * this method will complete with the same error. 1368 * this method will complete with the same error.
1369 */ 1369 */
1370 async.Future<User> get(core.String userId, {core.String requestMetadata_partne rsSessionId, core.String requestMetadata_userOverrides_userId, core.String userV iew, core.String requestMetadata_trafficSource_trafficSourceId, core.String requ estMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.Li st<core.String> requestMetadata_experimentIds, core.String requestMetadata_traff icSource_trafficSubId}) { 1370 async.Future<User> get(core.String userId, {core.String requestMetadata_userOv errides_userId, core.String requestMetadata_partnersSessionId, core.String userV iew, core.String requestMetadata_trafficSource_trafficSourceId, core.String requ estMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.Li st<core.String> requestMetadata_experimentIds, core.String requestMetadata_traff icSource_trafficSubId}) {
1371 var _url = null; 1371 var _url = null;
1372 var _queryParams = new core.Map(); 1372 var _queryParams = new core.Map();
1373 var _uploadMedia = null; 1373 var _uploadMedia = null;
1374 var _uploadOptions = null; 1374 var _uploadOptions = null;
1375 var _downloadOptions = commons.DownloadOptions.Metadata; 1375 var _downloadOptions = commons.DownloadOptions.Metadata;
1376 var _body = null; 1376 var _body = null;
1377 1377
1378 if (userId == null) { 1378 if (userId == null) {
1379 throw new core.ArgumentError("Parameter userId is required."); 1379 throw new core.ArgumentError("Parameter userId is required.");
1380 } 1380 }
1381 if (requestMetadata_userOverrides_userId != null) {
1382 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1383 }
1381 if (requestMetadata_partnersSessionId != null) { 1384 if (requestMetadata_partnersSessionId != null) {
1382 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 1385 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1383 } 1386 }
1384 if (requestMetadata_userOverrides_userId != null) {
1385 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1386 }
1387 if (userView != null) { 1387 if (userView != null) {
1388 _queryParams["userView"] = [userView]; 1388 _queryParams["userView"] = [userView];
1389 } 1389 }
1390 if (requestMetadata_trafficSource_trafficSourceId != null) { 1390 if (requestMetadata_trafficSource_trafficSourceId != null) {
1391 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 1391 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1392 } 1392 }
1393 if (requestMetadata_locale != null) { 1393 if (requestMetadata_locale != null) {
1394 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 1394 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1395 } 1395 }
1396 if (requestMetadata_userOverrides_ipAddress != null) { 1396 if (requestMetadata_userOverrides_ipAddress != null) {
(...skipping 19 matching lines...) Expand all
1416 } 1416 }
1417 1417
1418 /** 1418 /**
1419 * Updates a user's profile. A user can only update their own profile and 1419 * Updates a user's profile. A user can only update their own profile and
1420 * should only be called within the context of a logged in user. 1420 * should only be called within the context of a logged in user.
1421 * 1421 *
1422 * [request] - The metadata request object. 1422 * [request] - The metadata request object.
1423 * 1423 *
1424 * Request parameters: 1424 * Request parameters:
1425 * 1425 *
1426 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1427 *
1426 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1428 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1427 * instead of the user's ID. 1429 * instead of the user's ID.
1428 * 1430 *
1429 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1430 *
1431 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 1431 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1432 * where the traffic comes from. 1432 * where the traffic comes from.
1433 * An identifier has multiple letters created by a team which redirected the 1433 * An identifier has multiple letters created by a team which redirected the
1434 * traffic to us. 1434 * traffic to us.
1435 * 1435 *
1436 * [requestMetadata_locale] - Locale to use for the current request. 1436 * [requestMetadata_locale] - Locale to use for the current request.
1437 * 1437 *
1438 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 1438 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1439 * the user's geo-located IP address. 1439 * the user's geo-located IP address.
1440 * 1440 *
1441 * [requestMetadata_experimentIds] - Experiment IDs the current request 1441 * [requestMetadata_experimentIds] - Experiment IDs the current request
1442 * belongs to. 1442 * belongs to.
1443 * 1443 *
1444 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 1444 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
1445 * indicate where the traffic comes from. 1445 * indicate where the traffic comes from.
1446 * An identifier has multiple letters created by a team which redirected the 1446 * An identifier has multiple letters created by a team which redirected the
1447 * traffic to us. 1447 * traffic to us.
1448 * 1448 *
1449 * Completes with a [UserProfile]. 1449 * Completes with a [UserProfile].
1450 * 1450 *
1451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1451 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1452 * error. 1452 * error.
1453 * 1453 *
1454 * If the used [http.Client] completes with an error when making a REST call, 1454 * If the used [http.Client] completes with an error when making a REST call,
1455 * this method will complete with the same error. 1455 * this method will complete with the same error.
1456 */ 1456 */
1457 async.Future<UserProfile> updateProfile(UserProfile request, {core.String requ estMetadata_userOverrides_userId, core.String requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestM etadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<c ore.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSo urce_trafficSubId}) { 1457 async.Future<UserProfile> updateProfile(UserProfile request, {core.String requ estMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId, core.String requestM etadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<c ore.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSo urce_trafficSubId}) {
1458 var _url = null; 1458 var _url = null;
1459 var _queryParams = new core.Map(); 1459 var _queryParams = new core.Map();
1460 var _uploadMedia = null; 1460 var _uploadMedia = null;
1461 var _uploadOptions = null; 1461 var _uploadOptions = null;
1462 var _downloadOptions = commons.DownloadOptions.Metadata; 1462 var _downloadOptions = commons.DownloadOptions.Metadata;
1463 var _body = null; 1463 var _body = null;
1464 1464
1465 if (request != null) { 1465 if (request != null) {
1466 _body = convert.JSON.encode((request).toJson()); 1466 _body = convert.JSON.encode((request).toJson());
1467 } 1467 }
1468 if (requestMetadata_partnersSessionId != null) {
1469 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1470 }
1468 if (requestMetadata_userOverrides_userId != null) { 1471 if (requestMetadata_userOverrides_userId != null) {
1469 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 1472 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1470 } 1473 }
1471 if (requestMetadata_partnersSessionId != null) {
1472 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1473 }
1474 if (requestMetadata_trafficSource_trafficSourceId != null) { 1474 if (requestMetadata_trafficSource_trafficSourceId != null) {
1475 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 1475 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1476 } 1476 }
1477 if (requestMetadata_locale != null) { 1477 if (requestMetadata_locale != null) {
1478 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 1478 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1479 } 1479 }
1480 if (requestMetadata_userOverrides_ipAddress != null) { 1480 if (requestMetadata_userOverrides_ipAddress != null) {
1481 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 1481 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1482 } 1482 }
1483 if (requestMetadata_experimentIds != null) { 1483 if (requestMetadata_experimentIds != null) {
(...skipping 23 matching lines...) Expand all
1507 1507
1508 V2ResourceApi(commons.ApiRequester client) : 1508 V2ResourceApi(commons.ApiRequester client) :
1509 _requester = client; 1509 _requester = client;
1510 1510
1511 /** 1511 /**
1512 * Gets Partners Status of the logged in user's agency. 1512 * Gets Partners Status of the logged in user's agency.
1513 * Should only be called if the logged in user is the admin of the agency. 1513 * Should only be called if the logged in user is the admin of the agency.
1514 * 1514 *
1515 * Request parameters: 1515 * Request parameters:
1516 * 1516 *
1517 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1518 * where the traffic comes from.
1519 * An identifier has multiple letters created by a team which redirected the
1520 * traffic to us.
1521 *
1522 * [requestMetadata_locale] - Locale to use for the current request.
1523 *
1524 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1525 * the user's geo-located IP address.
1526 *
1527 * [requestMetadata_experimentIds] - Experiment IDs the current request 1517 * [requestMetadata_experimentIds] - Experiment IDs the current request
1528 * belongs to. 1518 * belongs to.
1529 * 1519 *
1530 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to 1520 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to
1531 * indicate where the traffic comes from. 1521 * indicate where the traffic comes from.
1532 * An identifier has multiple letters created by a team which redirected the 1522 * An identifier has multiple letters created by a team which redirected the
1533 * traffic to us. 1523 * traffic to us.
1534 * 1524 *
1535 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1525 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1536 * instead of the user's ID. 1526 * instead of the user's ID.
1537 * 1527 *
1538 * [requestMetadata_partnersSessionId] - Google Partners session ID. 1528 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1539 * 1529 *
1530 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1531 * where the traffic comes from.
1532 * An identifier has multiple letters created by a team which redirected the
1533 * traffic to us.
1534 *
1535 * [requestMetadata_locale] - Locale to use for the current request.
1536 *
1537 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1538 * the user's geo-located IP address.
1539 *
1540 * Completes with a [GetPartnersStatusResponse]. 1540 * Completes with a [GetPartnersStatusResponse].
1541 * 1541 *
1542 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1542 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1543 * error. 1543 * error.
1544 * 1544 *
1545 * If the used [http.Client] completes with an error when making a REST call, 1545 * If the used [http.Client] completes with an error when making a REST call,
1546 * this method will complete with the same error. 1546 * this method will complete with the same error.
1547 */ 1547 */
1548 async.Future<GetPartnersStatusResponse> getPartnersstatus({core.String request Metadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core .String requestMetadata_userOverrides_ipAddress, core.List<core.String> requestM etadata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, c ore.String requestMetadata_userOverrides_userId, core.String requestMetadata_par tnersSessionId}) { 1548 async.Future<GetPartnersStatusResponse> getPartnersstatus({core.List<core.Stri ng> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_tra fficSubId, core.String requestMetadata_userOverrides_userId, core.String request Metadata_partnersSessionId, core.String requestMetadata_trafficSource_trafficSou rceId, core.String requestMetadata_locale, core.String requestMetadata_userOverr ides_ipAddress}) {
1549 var _url = null; 1549 var _url = null;
1550 var _queryParams = new core.Map(); 1550 var _queryParams = new core.Map();
1551 var _uploadMedia = null; 1551 var _uploadMedia = null;
1552 var _uploadOptions = null; 1552 var _uploadOptions = null;
1553 var _downloadOptions = commons.DownloadOptions.Metadata; 1553 var _downloadOptions = commons.DownloadOptions.Metadata;
1554 var _body = null; 1554 var _body = null;
1555 1555
1556 if (requestMetadata_trafficSource_trafficSourceId != null) {
1557 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1558 }
1559 if (requestMetadata_locale != null) {
1560 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1561 }
1562 if (requestMetadata_userOverrides_ipAddress != null) {
1563 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1564 }
1565 if (requestMetadata_experimentIds != null) { 1556 if (requestMetadata_experimentIds != null) {
1566 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids; 1557 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment Ids;
1567 } 1558 }
1568 if (requestMetadata_trafficSource_trafficSubId != null) { 1559 if (requestMetadata_trafficSource_trafficSubId != null) {
1569 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId]; 1560 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad ata_trafficSource_trafficSubId];
1570 } 1561 }
1571 if (requestMetadata_userOverrides_userId != null) { 1562 if (requestMetadata_userOverrides_userId != null) {
1572 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId]; 1563 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1573 } 1564 }
1574 if (requestMetadata_partnersSessionId != null) { 1565 if (requestMetadata_partnersSessionId != null) {
1575 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 1566 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1576 } 1567 }
1568 if (requestMetadata_trafficSource_trafficSourceId != null) {
1569 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1570 }
1571 if (requestMetadata_locale != null) {
1572 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1573 }
1574 if (requestMetadata_userOverrides_ipAddress != null) {
1575 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1576 }
1577 1577
1578 _url = 'v2/partnersstatus'; 1578 _url = 'v2/partnersstatus';
1579 1579
1580 var _response = _requester.request(_url, 1580 var _response = _requester.request(_url,
1581 "GET", 1581 "GET",
1582 body: _body, 1582 body: _body,
1583 queryParams: _queryParams, 1583 queryParams: _queryParams,
1584 uploadOptions: _uploadOptions, 1584 uploadOptions: _uploadOptions,
1585 uploadMedia: _uploadMedia, 1585 uploadMedia: _uploadMedia,
1586 downloadOptions: _downloadOptions); 1586 downloadOptions: _downloadOptions);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 return _response.then((data) => new Company.fromJson(data)); 1677 return _response.then((data) => new Company.fromJson(data));
1678 } 1678 }
1679 1679
1680 /** 1680 /**
1681 * Updates the specified lead. 1681 * Updates the specified lead.
1682 * 1682 *
1683 * [request] - The metadata request object. 1683 * [request] - The metadata request object.
1684 * 1684 *
1685 * Request parameters: 1685 * Request parameters:
1686 * 1686 *
1687 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1688 *
1689 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate 1687 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate
1690 * instead of the user's ID. 1688 * instead of the user's ID.
1691 * 1689 *
1690 * [requestMetadata_partnersSessionId] - Google Partners session ID.
1691 *
1692 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate 1692 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate
1693 * where the traffic comes from. 1693 * where the traffic comes from.
1694 * An identifier has multiple letters created by a team which redirected the 1694 * An identifier has multiple letters created by a team which redirected the
1695 * traffic to us. 1695 * traffic to us.
1696 * 1696 *
1697 * [requestMetadata_locale] - Locale to use for the current request. 1697 * [requestMetadata_locale] - Locale to use for the current request.
1698 * 1698 *
1699 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of 1699 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of
1700 * the user's geo-located IP address. 1700 * the user's geo-located IP address.
1701 * 1701 *
(...skipping 10 matching lines...) Expand all
1712 * traffic to us. 1712 * traffic to us.
1713 * 1713 *
1714 * Completes with a [Lead]. 1714 * Completes with a [Lead].
1715 * 1715 *
1716 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1716 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1717 * error. 1717 * error.
1718 * 1718 *
1719 * If the used [http.Client] completes with an error when making a REST call, 1719 * If the used [http.Client] completes with an error when making a REST call,
1720 * this method will complete with the same error. 1720 * this method will complete with the same error.
1721 */ 1721 */
1722 async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_part nersSessionId, core.String requestMetadata_userOverrides_userId, core.String req uestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, cor e.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_t rafficSource_trafficSubId}) { 1722 async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_user Overrides_userId, core.String requestMetadata_partnersSessionId, core.String req uestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipAddress, core.String updateMask, cor e.List<core.String> requestMetadata_experimentIds, core.String requestMetadata_t rafficSource_trafficSubId}) {
1723 var _url = null; 1723 var _url = null;
1724 var _queryParams = new core.Map(); 1724 var _queryParams = new core.Map();
1725 var _uploadMedia = null; 1725 var _uploadMedia = null;
1726 var _uploadOptions = null; 1726 var _uploadOptions = null;
1727 var _downloadOptions = commons.DownloadOptions.Metadata; 1727 var _downloadOptions = commons.DownloadOptions.Metadata;
1728 var _body = null; 1728 var _body = null;
1729 1729
1730 if (request != null) { 1730 if (request != null) {
1731 _body = convert.JSON.encode((request).toJson()); 1731 _body = convert.JSON.encode((request).toJson());
1732 } 1732 }
1733 if (requestMetadata_userOverrides_userId != null) {
1734 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1735 }
1733 if (requestMetadata_partnersSessionId != null) { 1736 if (requestMetadata_partnersSessionId != null) {
1734 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId]; 1737 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn ersSessionId];
1735 } 1738 }
1736 if (requestMetadata_userOverrides_userId != null) {
1737 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us erOverrides_userId];
1738 }
1739 if (requestMetadata_trafficSource_trafficSourceId != null) { 1739 if (requestMetadata_trafficSource_trafficSourceId != null) {
1740 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId]; 1740 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe tadata_trafficSource_trafficSourceId];
1741 } 1741 }
1742 if (requestMetadata_locale != null) { 1742 if (requestMetadata_locale != null) {
1743 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; 1743 _queryParams["requestMetadata.locale"] = [requestMetadata_locale];
1744 } 1744 }
1745 if (requestMetadata_userOverrides_ipAddress != null) { 1745 if (requestMetadata_userOverrides_ipAddress != null) {
1746 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress]; 1746 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata _userOverrides_ipAddress];
1747 } 1747 }
1748 if (updateMask != null) { 1748 if (updateMask != null) {
(...skipping 3499 matching lines...) Expand 10 before | Expand all | Expand 10 after
5248 } 5248 }
5249 if (primaryCountryCode != null) { 5249 if (primaryCountryCode != null) {
5250 _json["primaryCountryCode"] = primaryCountryCode; 5250 _json["primaryCountryCode"] = primaryCountryCode;
5251 } 5251 }
5252 if (profilePublic != null) { 5252 if (profilePublic != null) {
5253 _json["profilePublic"] = profilePublic; 5253 _json["profilePublic"] = profilePublic;
5254 } 5254 }
5255 return _json; 5255 return _json;
5256 } 5256 }
5257 } 5257 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/monitoring/v3.dart ('k') | generated/googleapis/lib/people/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698