| OLD | NEW |
| 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 Loading... |
| 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 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | |
| 54 * indicate where the traffic comes from. | |
| 55 * An identifier has multiple letters created by a team which redirected the | |
| 56 * traffic to us. | |
| 57 * | |
| 58 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 53 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 59 * instead of the user's ID. | 54 * instead of the user's ID. |
| 60 * | 55 * |
| 61 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 56 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 62 * | 57 * |
| 63 * [pageToken] - A token identifying a page of results that the server | 58 * [pageToken] - A token identifying a page of results that the server |
| 64 * returns. | 59 * returns. |
| 65 * Typically, this is the value of `ListAnalyticsResponse.next_page_token` | 60 * Typically, this is the value of `ListAnalyticsResponse.next_page_token` |
| 66 * returned from the previous call to | 61 * returned from the previous call to |
| 67 * ListAnalytics. | 62 * ListAnalytics. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 84 * traffic to us. | 79 * traffic to us. |
| 85 * | 80 * |
| 86 * [requestMetadata_locale] - Locale to use for the current request. | 81 * [requestMetadata_locale] - Locale to use for the current request. |
| 87 * | 82 * |
| 88 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 83 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 89 * the user's geo-located IP address. | 84 * the user's geo-located IP address. |
| 90 * | 85 * |
| 91 * [requestMetadata_experimentIds] - Experiment IDs the current request | 86 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 92 * belongs to. | 87 * belongs to. |
| 93 * | 88 * |
| 89 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 90 * indicate where the traffic comes from. |
| 91 * An identifier has multiple letters created by a team which redirected the |
| 92 * traffic to us. |
| 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_trafficSubId, core.String requestMetadata_userOverrides_userId, core.Strin
g requestMetadata_partnersSessionId, core.String pageToken, core.int pageSize, c
ore.String requestMetadata_trafficSource_trafficSourceId, core.String requestMet
adata_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<cor
e.String> requestMetadata_experimentIds}) { | 102 async.Future<ListAnalyticsResponse> list({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, core.List<core.String> requestMetadata_experimentIds, core.String req
uestMetadata_trafficSource_trafficSubId}) { |
| 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 (requestMetadata_trafficSource_trafficSubId != null) { | |
| 111 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
| 112 } | |
| 113 if (requestMetadata_userOverrides_userId != null) { | 110 if (requestMetadata_userOverrides_userId != null) { |
| 114 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 111 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 115 } | 112 } |
| 116 if (requestMetadata_partnersSessionId != null) { | 113 if (requestMetadata_partnersSessionId != null) { |
| 117 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 114 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 118 } | 115 } |
| 119 if (pageToken != null) { | 116 if (pageToken != null) { |
| 120 _queryParams["pageToken"] = [pageToken]; | 117 _queryParams["pageToken"] = [pageToken]; |
| 121 } | 118 } |
| 122 if (pageSize != null) { | 119 if (pageSize != null) { |
| 123 _queryParams["pageSize"] = ["${pageSize}"]; | 120 _queryParams["pageSize"] = ["${pageSize}"]; |
| 124 } | 121 } |
| 125 if (requestMetadata_trafficSource_trafficSourceId != null) { | 122 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 126 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 123 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 127 } | 124 } |
| 128 if (requestMetadata_locale != null) { | 125 if (requestMetadata_locale != null) { |
| 129 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 126 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 130 } | 127 } |
| 131 if (requestMetadata_userOverrides_ipAddress != null) { | 128 if (requestMetadata_userOverrides_ipAddress != null) { |
| 132 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 129 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 133 } | 130 } |
| 134 if (requestMetadata_experimentIds != null) { | 131 if (requestMetadata_experimentIds != null) { |
| 135 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 132 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 136 } | 133 } |
| 134 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 135 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 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 Loading... |
| 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 | |
| 224 * `COMPANY_VIEW_UNSPECIFIED`. | |
| 225 * Possible string values are: | |
| 226 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. | |
| 227 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. | |
| 228 * | |
| 229 * [requestMetadata_locale] - Locale to use for the current request. | |
| 230 * | |
| 231 * [address] - The address to use for sorting the company's addresses by | |
| 232 * proximity. | |
| 233 * If not given, the geo-located address of the request is used. | |
| 234 * Used when order_by is set. | |
| 235 * | |
| 236 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 218 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 237 * where the traffic comes from. | 219 * where the traffic comes from. |
| 238 * An identifier has multiple letters created by a team which redirected the | 220 * An identifier has multiple letters created by a team which redirected the |
| 239 * traffic to us. | 221 * traffic to us. |
| 240 * | 222 * |
| 241 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 223 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 242 * the user's geo-located IP address. | 224 * the user's geo-located IP address. |
| 243 * | 225 * |
| 226 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 227 * belongs to. |
| 228 * |
| 244 * [currencyCode] - If the company's budget is in a different currency code | 229 * [currencyCode] - If the company's budget is in a different currency code |
| 245 * than this one, then | 230 * than this one, then |
| 246 * the converted budget is converted to this currency code. | 231 * the converted budget is converted to this currency code. |
| 247 * | 232 * |
| 248 * [requestMetadata_experimentIds] - Experiment IDs the current request | |
| 249 * belongs to. | |
| 250 * | |
| 251 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | |
| 252 * indicate where the traffic comes from. | |
| 253 * An identifier has multiple letters created by a team which redirected the | |
| 254 * traffic to us. | |
| 255 * | |
| 256 * [orderBy] - How to order addresses within the returned company. Currently, | 233 * [orderBy] - How to order addresses within the returned company. Currently, |
| 257 * only | 234 * only |
| 258 * `address` and `address desc` is supported which will sorted by closest to | 235 * `address` and `address desc` is supported which will sorted by closest to |
| 259 * farthest in distance from given address and farthest to closest distance | 236 * farthest in distance from given address and farthest to closest distance |
| 260 * from given address respectively. | 237 * from given address respectively. |
| 261 * | 238 * |
| 239 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 240 * indicate where the traffic comes from. |
| 241 * An identifier has multiple letters created by a team which redirected the |
| 242 * traffic to us. |
| 243 * |
| 244 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 245 * instead of the user's ID. |
| 246 * |
| 247 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 248 * |
| 249 * [view] - The view of `Company` resource to be returned. This must not be |
| 250 * `COMPANY_VIEW_UNSPECIFIED`. |
| 251 * Possible string values are: |
| 252 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
| 253 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
| 254 * |
| 255 * [requestMetadata_locale] - Locale to use for the current request. |
| 256 * |
| 257 * [address] - The address to use for sorting the company's addresses by |
| 258 * proximity. |
| 259 * If not given, the geo-located address of the request is used. |
| 260 * Used when order_by is set. |
| 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 reque
stMetadata_trafficSource_trafficSourceId, core.String requestMetadata_userOverri
des_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.String
currencyCode, core.String orderBy, core.String requestMetadata_trafficSource_tr
afficSubId, core.String requestMetadata_userOverrides_userId, core.String reques
tMetadata_partnersSessionId, core.String view, core.String requestMetadata_local
e, core.String address}) { |
| 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) { | 281 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 282 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 282 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 283 } |
| 284 if (requestMetadata_userOverrides_ipAddress != null) { |
| 285 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 286 } |
| 287 if (requestMetadata_experimentIds != null) { |
| 288 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 289 } |
| 290 if (currencyCode != null) { |
| 291 _queryParams["currencyCode"] = [currencyCode]; |
| 292 } |
| 293 if (orderBy != null) { |
| 294 _queryParams["orderBy"] = [orderBy]; |
| 295 } |
| 296 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 297 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 283 } | 298 } |
| 284 if (requestMetadata_userOverrides_userId != null) { | 299 if (requestMetadata_userOverrides_userId != null) { |
| 285 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 300 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 286 } | 301 } |
| 302 if (requestMetadata_partnersSessionId != null) { |
| 303 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 304 } |
| 287 if (view != null) { | 305 if (view != null) { |
| 288 _queryParams["view"] = [view]; | 306 _queryParams["view"] = [view]; |
| 289 } | 307 } |
| 290 if (requestMetadata_locale != null) { | 308 if (requestMetadata_locale != null) { |
| 291 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 309 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 292 } | 310 } |
| 293 if (address != null) { | 311 if (address != null) { |
| 294 _queryParams["address"] = [address]; | 312 _queryParams["address"] = [address]; |
| 295 } | 313 } |
| 296 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
| 297 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
| 298 } | |
| 299 if (requestMetadata_userOverrides_ipAddress != null) { | |
| 300 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | |
| 301 } | |
| 302 if (currencyCode != null) { | |
| 303 _queryParams["currencyCode"] = [currencyCode]; | |
| 304 } | |
| 305 if (requestMetadata_experimentIds != null) { | |
| 306 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | |
| 307 } | |
| 308 if (requestMetadata_trafficSource_trafficSubId != null) { | |
| 309 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
| 310 } | |
| 311 if (orderBy != null) { | |
| 312 _queryParams["orderBy"] = [orderBy]; | |
| 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 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 333 * where the traffic comes from. |
| 334 * An identifier has multiple letters created by a team which redirected the |
| 335 * traffic to us. |
| 336 * |
| 337 * [maxMonthlyBudget_units] - The whole units of the amount. |
| 338 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
| 339 * |
| 340 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 341 * indicate where the traffic comes from. |
| 342 * An identifier has multiple letters created by a team which redirected the |
| 343 * traffic to us. |
| 344 * |
| 345 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. |
| 346 * The value must be between -999,999,999 and +999,999,999 inclusive. |
| 347 * If `units` is positive, `nanos` must be positive or zero. |
| 348 * If `units` is zero, `nanos` can be positive, zero, or negative. |
| 349 * If `units` is negative, `nanos` must be negative or zero. |
| 350 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. |
| 351 * |
| 352 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 353 * |
| 354 * [companyName] - Company name to search for. |
| 355 * |
| 356 * [pageToken] - A token identifying a page of results that the server |
| 357 * returns. |
| 358 * Typically, this is the value of `ListCompaniesResponse.next_page_token` |
| 359 * returned from the previous call to |
| 360 * ListCompanies. |
| 361 * |
| 362 * [industries] - List of industries the company can help with. |
| 363 * |
| 364 * [websiteUrl] - Website URL that will help to find a better matched company. |
| 365 * . |
| 366 * |
| 367 * [gpsMotivations] - List of reasons for using Google Partner Search to get |
| 368 * companies. |
| 369 * |
| 332 * [languageCodes] - List of language codes that company can support. Only | 370 * [languageCodes] - List of language codes that company can support. Only |
| 333 * primary language | 371 * primary language |
| 334 * subtags are accepted as defined by | 372 * subtags are accepted as defined by |
| 335 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> | 373 * <a href="https://tools.ietf.org/html/bcp47">BCP 47</a> |
| 336 * (IETF BCP 47, "Tags for Identifying Languages"). | 374 * (IETF BCP 47, "Tags for Identifying Languages"). |
| 337 * | 375 * |
| 338 * [pageSize] - Requested page size. Server may return fewer companies than | 376 * [pageSize] - Requested page size. Server may return fewer companies than |
| 339 * requested. | 377 * requested. |
| 340 * If unspecified, server picks an appropriate default. | 378 * If unspecified, server picks an appropriate default. |
| 341 * | 379 * |
| (...skipping 10 matching lines...) Expand all Loading... |
| 352 * from given address respectively. | 390 * from given address respectively. |
| 353 * | 391 * |
| 354 * [specializations] - List of specializations that the returned agencies | 392 * [specializations] - List of specializations that the returned agencies |
| 355 * should provide. If this | 393 * should provide. If this |
| 356 * is not empty, any returned agency must have at least one of these | 394 * is not empty, any returned agency must have at least one of these |
| 357 * specializations, or one of the services in the "services" field. | 395 * specializations, or one of the services in the "services" field. |
| 358 * | 396 * |
| 359 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO | 397 * [maxMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO |
| 360 * 4217. | 398 * 4217. |
| 361 * | 399 * |
| 362 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO | |
| 363 * 4217. | |
| 364 * | |
| 365 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 400 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 366 * instead of the user's ID. | 401 * instead of the user's ID. |
| 367 * | 402 * |
| 403 * [minMonthlyBudget_currencyCode] - The 3-letter currency code defined in ISO |
| 404 * 4217. |
| 405 * |
| 368 * [view] - The view of the `Company` resource to be returned. This must not | 406 * [view] - The view of the `Company` resource to be returned. This must not |
| 369 * be | 407 * be |
| 370 * `COMPANY_VIEW_UNSPECIFIED`. | 408 * `COMPANY_VIEW_UNSPECIFIED`. |
| 371 * Possible string values are: | 409 * Possible string values are: |
| 372 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. | 410 * - "COMPANY_VIEW_UNSPECIFIED" : A COMPANY_VIEW_UNSPECIFIED. |
| 373 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. | 411 * - "CV_GOOGLE_PARTNER_SEARCH" : A CV_GOOGLE_PARTNER_SEARCH. |
| 374 * | 412 * |
| 375 * [requestMetadata_locale] - Locale to use for the current request. | |
| 376 * | |
| 377 * [address] - The address to use when searching for companies. | 413 * [address] - The address to use when searching for companies. |
| 378 * If not given, the geo-located address of the request is used. | 414 * If not given, the geo-located address of the request is used. |
| 379 * | 415 * |
| 416 * [requestMetadata_locale] - Locale to use for the current request. |
| 417 * |
| 380 * [minMonthlyBudget_units] - The whole units of the amount. | 418 * [minMonthlyBudget_units] - The whole units of the amount. |
| 381 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | 419 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. |
| 382 * | 420 * |
| 383 * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. | 421 * [maxMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. |
| 384 * The value must be between -999,999,999 and +999,999,999 inclusive. | 422 * The value must be between -999,999,999 and +999,999,999 inclusive. |
| 385 * If `units` is positive, `nanos` must be positive or zero. | 423 * If `units` is positive, `nanos` must be positive or zero. |
| 386 * If `units` is zero, `nanos` can be positive, zero, or negative. | 424 * If `units` is zero, `nanos` can be positive, zero, or negative. |
| 387 * If `units` is negative, `nanos` must be negative or zero. | 425 * If `units` is negative, `nanos` must be negative or zero. |
| 388 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | 426 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. |
| 389 * | 427 * |
| 390 * [services] - List of services that the returned agencies should provide. If | 428 * [services] - List of services that the returned agencies should provide. If |
| 391 * this is | 429 * this is |
| 392 * not empty, any returned agency must have at least one of these services, | 430 * not empty, any returned agency must have at least one of these services, |
| 393 * or one of the specializations in the "specializations" field. | 431 * or one of the specializations in the "specializations" field. |
| 394 * | 432 * |
| 395 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | |
| 396 * where the traffic comes from. | |
| 397 * An identifier has multiple letters created by a team which redirected the | |
| 398 * traffic to us. | |
| 399 * | |
| 400 * [maxMonthlyBudget_units] - The whole units of the amount. | |
| 401 * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. | |
| 402 * | |
| 403 * [minMonthlyBudget_nanos] - Number of nano (10^-9) units of the amount. | |
| 404 * The value must be between -999,999,999 and +999,999,999 inclusive. | |
| 405 * If `units` is positive, `nanos` must be positive or zero. | |
| 406 * If `units` is zero, `nanos` can be positive, zero, or negative. | |
| 407 * If `units` is negative, `nanos` must be negative or zero. | |
| 408 * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. | |
| 409 * | |
| 410 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | |
| 411 * indicate where the traffic comes from. | |
| 412 * An identifier has multiple letters created by a team which redirected the | |
| 413 * traffic to us. | |
| 414 * | |
| 415 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 416 * | |
| 417 * [pageToken] - A token identifying a page of results that the server | |
| 418 * returns. | |
| 419 * Typically, this is the value of `ListCompaniesResponse.next_page_token` | |
| 420 * returned from the previous call to | |
| 421 * ListCompanies. | |
| 422 * | |
| 423 * [companyName] - Company name to search for. | |
| 424 * | |
| 425 * [industries] - List of industries the company can help with. | |
| 426 * | |
| 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 requestMetadata_locale, core.String address,
core.String minMonthlyBudget_units, core.int maxMonthlyBudget_nanos, core.List<c
ore.String> services, core.String requestMetadata_trafficSource_trafficSourceId,
core.String maxMonthlyBudget_units, core.int minMonthlyBudget_nanos, core.Strin
g requestMetadata_trafficSource_trafficSubId, 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 requestMetadata_trafficS
ource_trafficSourceId, core.String maxMonthlyBudget_units, core.String requestMe
tadata_trafficSource_trafficSubId, core.int minMonthlyBudget_nanos, core.String
requestMetadata_partnersSessionId, core.String companyName, core.String pageToke
n, core.List<core.String> industries, core.String websiteUrl, core.List<core.Str
ing> gpsMotivations, core.List<core.String> languageCodes, core.int pageSize, co
re.String requestMetadata_userOverrides_ipAddress, core.List<core.String> reques
tMetadata_experimentIds, core.String orderBy, core.List<core.String> specializat
ions, core.String maxMonthlyBudget_currencyCode, core.String requestMetadata_use
rOverrides_userId, core.String minMonthlyBudget_currencyCode, core.String view,
core.String address, core.String requestMetadata_locale, core.String minMonthlyB
udget_units, core.int maxMonthlyBudget_nanos, core.List<core.String> services})
{ |
| 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 (requestMetadata_trafficSource_trafficSourceId != null) { |
| 450 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 451 } |
| 452 if (maxMonthlyBudget_units != null) { |
| 453 _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; |
| 454 } |
| 455 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 456 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 457 } |
| 458 if (minMonthlyBudget_nanos != null) { |
| 459 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; |
| 460 } |
| 461 if (requestMetadata_partnersSessionId != null) { |
| 462 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 463 } |
| 464 if (companyName != null) { |
| 465 _queryParams["companyName"] = [companyName]; |
| 466 } |
| 467 if (pageToken != null) { |
| 468 _queryParams["pageToken"] = [pageToken]; |
| 469 } |
| 470 if (industries != null) { |
| 471 _queryParams["industries"] = industries; |
| 472 } |
| 473 if (websiteUrl != null) { |
| 474 _queryParams["websiteUrl"] = [websiteUrl]; |
| 475 } |
| 476 if (gpsMotivations != null) { |
| 477 _queryParams["gpsMotivations"] = gpsMotivations; |
| 478 } |
| 449 if (languageCodes != null) { | 479 if (languageCodes != null) { |
| 450 _queryParams["languageCodes"] = languageCodes; | 480 _queryParams["languageCodes"] = languageCodes; |
| 451 } | 481 } |
| 452 if (pageSize != null) { | 482 if (pageSize != null) { |
| 453 _queryParams["pageSize"] = ["${pageSize}"]; | 483 _queryParams["pageSize"] = ["${pageSize}"]; |
| 454 } | 484 } |
| 455 if (requestMetadata_userOverrides_ipAddress != null) { | 485 if (requestMetadata_userOverrides_ipAddress != null) { |
| 456 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 486 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 457 } | 487 } |
| 458 if (requestMetadata_experimentIds != null) { | 488 if (requestMetadata_experimentIds != null) { |
| 459 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 489 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 460 } | 490 } |
| 461 if (orderBy != null) { | 491 if (orderBy != null) { |
| 462 _queryParams["orderBy"] = [orderBy]; | 492 _queryParams["orderBy"] = [orderBy]; |
| 463 } | 493 } |
| 464 if (specializations != null) { | 494 if (specializations != null) { |
| 465 _queryParams["specializations"] = specializations; | 495 _queryParams["specializations"] = specializations; |
| 466 } | 496 } |
| 467 if (maxMonthlyBudget_currencyCode != null) { | 497 if (maxMonthlyBudget_currencyCode != null) { |
| 468 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency
Code]; | 498 _queryParams["maxMonthlyBudget.currencyCode"] = [maxMonthlyBudget_currency
Code]; |
| 469 } | 499 } |
| 500 if (requestMetadata_userOverrides_userId != null) { |
| 501 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 502 } |
| 470 if (minMonthlyBudget_currencyCode != null) { | 503 if (minMonthlyBudget_currencyCode != null) { |
| 471 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency
Code]; | 504 _queryParams["minMonthlyBudget.currencyCode"] = [minMonthlyBudget_currency
Code]; |
| 472 } | 505 } |
| 473 if (requestMetadata_userOverrides_userId != null) { | |
| 474 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 475 } | |
| 476 if (view != null) { | 506 if (view != null) { |
| 477 _queryParams["view"] = [view]; | 507 _queryParams["view"] = [view]; |
| 478 } | 508 } |
| 509 if (address != null) { |
| 510 _queryParams["address"] = [address]; |
| 511 } |
| 479 if (requestMetadata_locale != null) { | 512 if (requestMetadata_locale != null) { |
| 480 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 513 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 481 } | 514 } |
| 482 if (address != null) { | |
| 483 _queryParams["address"] = [address]; | |
| 484 } | |
| 485 if (minMonthlyBudget_units != null) { | 515 if (minMonthlyBudget_units != null) { |
| 486 _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; | 516 _queryParams["minMonthlyBudget.units"] = [minMonthlyBudget_units]; |
| 487 } | 517 } |
| 488 if (maxMonthlyBudget_nanos != null) { | 518 if (maxMonthlyBudget_nanos != null) { |
| 489 _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; | 519 _queryParams["maxMonthlyBudget.nanos"] = ["${maxMonthlyBudget_nanos}"]; |
| 490 } | 520 } |
| 491 if (services != null) { | 521 if (services != null) { |
| 492 _queryParams["services"] = services; | 522 _queryParams["services"] = services; |
| 493 } | 523 } |
| 494 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
| 495 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
| 496 } | |
| 497 if (maxMonthlyBudget_units != null) { | |
| 498 _queryParams["maxMonthlyBudget.units"] = [maxMonthlyBudget_units]; | |
| 499 } | |
| 500 if (minMonthlyBudget_nanos != null) { | |
| 501 _queryParams["minMonthlyBudget.nanos"] = ["${minMonthlyBudget_nanos}"]; | |
| 502 } | |
| 503 if (requestMetadata_trafficSource_trafficSubId != null) { | |
| 504 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
| 505 } | |
| 506 if (requestMetadata_partnersSessionId != null) { | |
| 507 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 508 } | |
| 509 if (pageToken != null) { | |
| 510 _queryParams["pageToken"] = [pageToken]; | |
| 511 } | |
| 512 if (companyName != null) { | |
| 513 _queryParams["companyName"] = [companyName]; | |
| 514 } | |
| 515 if (industries != null) { | |
| 516 _queryParams["industries"] = industries; | |
| 517 } | |
| 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 Loading... |
| 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_trafficSource_trafficSubId] - Second level identifier to |
| 620 * indicate where the traffic comes from. |
| 621 * An identifier has multiple letters created by a team which redirected the |
| 622 * traffic to us. |
| 623 * |
| 624 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 625 * instead of the user's ID. |
| 626 * |
| 627 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 628 * |
| 619 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 629 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 620 * where the traffic comes from. | 630 * where the traffic comes from. |
| 621 * An identifier has multiple letters created by a team which redirected the | 631 * An identifier has multiple letters created by a team which redirected the |
| 622 * traffic to us. | 632 * traffic to us. |
| 623 * | 633 * |
| 624 * [requestMetadata_locale] - Locale to use for the current request. | 634 * [requestMetadata_locale] - Locale to use for the current request. |
| 625 * | 635 * |
| 626 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 636 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 627 * the user's geo-located IP address. | 637 * the user's geo-located IP address. |
| 628 * | 638 * |
| 629 * [requestMetadata_experimentIds] - Experiment IDs the current request | 639 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 630 * belongs to. | 640 * belongs to. |
| 631 * | 641 * |
| 632 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | |
| 633 * indicate where the traffic comes from. | |
| 634 * An identifier has multiple letters created by a team which redirected the | |
| 635 * traffic to us. | |
| 636 * | |
| 637 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 638 * instead of the user's ID. | |
| 639 * | |
| 640 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 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_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.St
ring requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMeta
data_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, core
.String requestMetadata_userOverrides_userId, core.String requestMetadata_partne
rsSessionId}) { | 650 async.Future<ExamToken> getToken(core.String examType, {core.String requestMet
adata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_user
Id, core.String requestMetadata_partnersSessionId, core.String requestMetadata_t
rafficSource_trafficSourceId, core.String requestMetadata_locale, core.String re
questMetadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_ex
perimentIds}) { |
| 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_trafficSource_trafficSubId != null) { |
| 662 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 663 } |
| 664 if (requestMetadata_userOverrides_userId != null) { |
| 665 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 666 } |
| 667 if (requestMetadata_partnersSessionId != null) { |
| 668 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 669 } |
| 661 if (requestMetadata_trafficSource_trafficSourceId != null) { | 670 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 662 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 671 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 663 } | 672 } |
| 664 if (requestMetadata_locale != null) { | 673 if (requestMetadata_locale != null) { |
| 665 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 674 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 666 } | 675 } |
| 667 if (requestMetadata_userOverrides_ipAddress != null) { | 676 if (requestMetadata_userOverrides_ipAddress != null) { |
| 668 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 677 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 669 } | 678 } |
| 670 if (requestMetadata_experimentIds != null) { | 679 if (requestMetadata_experimentIds != null) { |
| 671 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 680 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 672 } | 681 } |
| 673 if (requestMetadata_trafficSource_trafficSubId != null) { | |
| 674 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
| 675 } | |
| 676 if (requestMetadata_userOverrides_userId != null) { | |
| 677 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 678 } | |
| 679 if (requestMetadata_partnersSessionId != null) { | |
| 680 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 681 } | |
| 682 | 682 |
| 683 _url = 'v2/exams/' + commons.Escaper.ecapeVariable('$examType') + '/token'; | 683 _url = 'v2/exams/' + commons.Escaper.ecapeVariable('$examType') + '/token'; |
| 684 | 684 |
| 685 var _response = _requester.request(_url, | 685 var _response = _requester.request(_url, |
| 686 "GET", | 686 "GET", |
| 687 body: _body, | 687 body: _body, |
| 688 queryParams: _queryParams, | 688 queryParams: _queryParams, |
| 689 uploadOptions: _uploadOptions, | 689 uploadOptions: _uploadOptions, |
| 690 uploadMedia: _uploadMedia, | 690 uploadMedia: _uploadMedia, |
| 691 downloadOptions: _downloadOptions); | 691 downloadOptions: _downloadOptions); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 717 * traffic to us. | 717 * traffic to us. |
| 718 * | 718 * |
| 719 * [requestMetadata_locale] - Locale to use for the current request. | 719 * [requestMetadata_locale] - Locale to use for the current request. |
| 720 * | 720 * |
| 721 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 721 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 722 * the user's geo-located IP address. | 722 * the user's geo-located IP address. |
| 723 * | 723 * |
| 724 * [requestMetadata_experimentIds] - Experiment IDs the current request | 724 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 725 * belongs to. | 725 * belongs to. |
| 726 * | 726 * |
| 727 * [orderBy] - How to order Leads. Currently, only `create_time` |
| 728 * and `create_time desc` are supported |
| 729 * |
| 727 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 730 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 728 * indicate where the traffic comes from. | 731 * indicate where the traffic comes from. |
| 729 * An identifier has multiple letters created by a team which redirected the | 732 * An identifier has multiple letters created by a team which redirected the |
| 730 * traffic to us. | 733 * traffic to us. |
| 731 * | 734 * |
| 732 * [orderBy] - How to order Leads. Currently, only `create_time` | 735 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 733 * and `create_time desc` are supported | 736 * instead of the user's ID. |
| 734 * | 737 * |
| 735 * [requestMetadata_partnersSessionId] - Google Partners session ID. | 738 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 736 * | 739 * |
| 737 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 738 * instead of the user's ID. | |
| 739 * | |
| 740 * [pageToken] - A token identifying a page of results that the server | 740 * [pageToken] - A token identifying a page of results that the server |
| 741 * returns. | 741 * returns. |
| 742 * Typically, this is the value of `ListLeadsResponse.next_page_token` | 742 * Typically, this is the value of `ListLeadsResponse.next_page_token` |
| 743 * returned from the previous call to | 743 * returned from the previous call to |
| 744 * ListLeads. | 744 * ListLeads. |
| 745 * | 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.int pageSize, core.String requestMe
tadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.S
tring requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMet
adata_experimentIds, core.String requestMetadata_trafficSource_trafficSubId, cor
e.String orderBy, core.String requestMetadata_partnersSessionId, core.String req
uestMetadata_userOverrides_userId, core.String pageToken}) { | 754 async.Future<ListLeadsResponse> list({core.int pageSize, core.String requestMe
tadata_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.S
tring requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMet
adata_experimentIds, core.String orderBy, core.String requestMetadata_trafficSou
rce_trafficSubId, core.String requestMetadata_userOverrides_userId, core.String
requestMetadata_partnersSessionId, core.String pageToken}) { |
| 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 (pageSize != null) { | 762 if (pageSize != null) { |
| 763 _queryParams["pageSize"] = ["${pageSize}"]; | 763 _queryParams["pageSize"] = ["${pageSize}"]; |
| 764 } | 764 } |
| 765 if (requestMetadata_trafficSource_trafficSourceId != null) { | 765 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 766 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 766 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 767 } | 767 } |
| 768 if (requestMetadata_locale != null) { | 768 if (requestMetadata_locale != null) { |
| 769 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 769 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 770 } | 770 } |
| 771 if (requestMetadata_userOverrides_ipAddress != null) { | 771 if (requestMetadata_userOverrides_ipAddress != null) { |
| 772 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 772 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 773 } | 773 } |
| 774 if (requestMetadata_experimentIds != null) { | 774 if (requestMetadata_experimentIds != null) { |
| 775 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 775 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 776 } | 776 } |
| 777 if (orderBy != null) { |
| 778 _queryParams["orderBy"] = [orderBy]; |
| 779 } |
| 777 if (requestMetadata_trafficSource_trafficSubId != null) { | 780 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 778 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 781 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 779 } | 782 } |
| 780 if (orderBy != null) { | 783 if (requestMetadata_userOverrides_userId != null) { |
| 781 _queryParams["orderBy"] = [orderBy]; | 784 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 782 } | 785 } |
| 783 if (requestMetadata_partnersSessionId != null) { | 786 if (requestMetadata_partnersSessionId != null) { |
| 784 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | 787 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 785 } | 788 } |
| 786 if (requestMetadata_userOverrides_userId != null) { | |
| 787 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 788 } | |
| 789 if (pageToken != null) { | 789 if (pageToken != null) { |
| 790 _queryParams["pageToken"] = [pageToken]; | 790 _queryParams["pageToken"] = [pageToken]; |
| 791 } | 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, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_partnersSessionId] - Google Partners session ID. |
| 909 * |
| 908 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 910 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 909 * instead of the user's ID. | 911 * instead of the user's ID. |
| 910 * | 912 * |
| 911 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 912 * | |
| 913 * [pageToken] - Token to retrieve a specific page. | 913 * [pageToken] - Token to retrieve a specific page. |
| 914 * | 914 * |
| 915 * [pageSize] - Maximum number of rows to return per page. | 915 * [pageSize] - Maximum number of rows to return per page. |
| 916 * | 916 * |
| 917 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 917 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 918 * where the traffic comes from. | 918 * where the traffic comes from. |
| 919 * 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 |
| 920 * traffic to us. | 920 * traffic to us. |
| 921 * | 921 * |
| 922 * [requestMetadata_locale] - Locale to use for the current request. | 922 * [requestMetadata_locale] - Locale to use for the current request. |
| 923 * | 923 * |
| 924 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 924 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 925 * the user's geo-located IP address. | 925 * the user's geo-located IP address. |
| 926 * | 926 * |
| 927 * [entireCompany] - if true, show history for the entire company. Requires |
| 928 * user to be admin. |
| 929 * |
| 927 * [requestMetadata_experimentIds] - Experiment IDs the current request | 930 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 928 * belongs to. | 931 * belongs to. |
| 929 * | 932 * |
| 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.: | 933 * [orderBy] - Comma-separated list of fields to order by, e.g.: |
| 934 * "foo,bar,baz". | 934 * "foo,bar,baz". |
| 935 * Use "foo desc" to sort descending. | 935 * Use "foo desc" to sort descending. |
| 936 * List of valid field names is: name, offer_code, expiration_time, status, | 936 * List of valid field names is: name, offer_code, expiration_time, status, |
| 937 * last_modified_time, sender_name, creation_time, country_code, | 937 * last_modified_time, sender_name, creation_time, country_code, |
| 938 * offer_type. | 938 * offer_type. |
| 939 * | 939 * |
| 940 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 940 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 941 * indicate where the traffic comes from. | 941 * indicate where the traffic comes from. |
| 942 * An identifier has multiple letters created by a team which redirected the | 942 * An identifier has multiple letters created by a team which redirected the |
| 943 * traffic to us. | 943 * traffic to us. |
| 944 * | 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.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}) { | 953 async.Future<ListOffersHistoryResponse> list({core.String requestMetadata_part
nersSessionId, core.String requestMetadata_userOverrides_userId, core.String pag
eToken, core.int pageSize, core.String requestMetadata_trafficSource_trafficSour
ceId, core.String requestMetadata_locale, core.String requestMetadata_userOverri
des_ipAddress, core.bool entireCompany, core.List<core.String> requestMetadata_e
xperimentIds, 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_partnersSessionId != null) { |
| 962 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 963 } |
| 961 if (requestMetadata_userOverrides_userId != null) { | 964 if (requestMetadata_userOverrides_userId != null) { |
| 962 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 965 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 963 } | 966 } |
| 964 if (requestMetadata_partnersSessionId != null) { | |
| 965 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 966 } | |
| 967 if (pageToken != null) { | 967 if (pageToken != null) { |
| 968 _queryParams["pageToken"] = [pageToken]; | 968 _queryParams["pageToken"] = [pageToken]; |
| 969 } | 969 } |
| 970 if (pageSize != null) { | 970 if (pageSize != null) { |
| 971 _queryParams["pageSize"] = ["${pageSize}"]; | 971 _queryParams["pageSize"] = ["${pageSize}"]; |
| 972 } | 972 } |
| 973 if (requestMetadata_trafficSource_trafficSourceId != null) { | 973 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 974 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 974 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 975 } | 975 } |
| 976 if (requestMetadata_locale != null) { | 976 if (requestMetadata_locale != null) { |
| 977 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 977 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 978 } | 978 } |
| 979 if (requestMetadata_userOverrides_ipAddress != null) { | 979 if (requestMetadata_userOverrides_ipAddress != null) { |
| 980 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 980 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 981 } | 981 } |
| 982 if (entireCompany != null) { |
| 983 _queryParams["entireCompany"] = ["${entireCompany}"]; |
| 984 } |
| 982 if (requestMetadata_experimentIds != null) { | 985 if (requestMetadata_experimentIds != null) { |
| 983 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 986 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 984 } | 987 } |
| 985 if (entireCompany != null) { | |
| 986 _queryParams["entireCompany"] = ["${entireCompany}"]; | |
| 987 } | |
| 988 if (orderBy != null) { | 988 if (orderBy != null) { |
| 989 _queryParams["orderBy"] = [orderBy]; | 989 _queryParams["orderBy"] = [orderBy]; |
| 990 } | 990 } |
| 991 if (requestMetadata_trafficSource_trafficSubId != null) { | 991 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 992 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 992 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 993 } | 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, |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_locale] - Locale to use for the current request. |
| 1070 * |
| 1069 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1071 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1070 * the user's geo-located IP address. | 1072 * the user's geo-located IP address. |
| 1071 * | 1073 * |
| 1072 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1074 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1073 * belongs to. | 1075 * belongs to. |
| 1074 * | 1076 * |
| 1075 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1077 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1076 * indicate where the traffic comes from. | 1078 * indicate where the traffic comes from. |
| 1077 * An identifier has multiple letters created by a team which redirected the | 1079 * An identifier has multiple letters created by a team which redirected the |
| 1078 * traffic to us. | 1080 * traffic to us. |
| 1079 * | 1081 * |
| 1082 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1083 * |
| 1080 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1084 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1081 * instead of the user's ID. | 1085 * instead of the user's ID. |
| 1082 * | 1086 * |
| 1083 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 1084 * | |
| 1085 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1087 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1086 * where the traffic comes from. | 1088 * where the traffic comes from. |
| 1087 * An identifier has multiple letters created by a team which redirected the | 1089 * An identifier has multiple letters created by a team which redirected the |
| 1088 * traffic to us. | 1090 * traffic to us. |
| 1089 * | 1091 * |
| 1090 * [requestMetadata_locale] - Locale to use for the current request. | |
| 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.String requestMetadata_userOve
rrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, core.Str
ing requestMetadata_trafficSource_trafficSubId, core.String requestMetadata_user
Overrides_userId, core.String requestMetadata_partnersSessionId, core.String req
uestMetadata_trafficSource_trafficSourceId, core.String requestMetadata_locale})
{ | 1100 async.Future<ListUserStatesResponse> list({core.String requestMetadata_locale,
core.String requestMetadata_userOverrides_ipAddress, core.List<core.String> req
uestMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSub
Id, core.String requestMetadata_partnersSessionId, core.String requestMetadata_u
serOverrides_userId, core.String requestMetadata_trafficSource_trafficSourceId})
{ |
| 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_locale != null) { |
| 1109 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1110 } |
| 1108 if (requestMetadata_userOverrides_ipAddress != null) { | 1111 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1109 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1112 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1110 } | 1113 } |
| 1111 if (requestMetadata_experimentIds != null) { | 1114 if (requestMetadata_experimentIds != null) { |
| 1112 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1115 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1113 } | 1116 } |
| 1114 if (requestMetadata_trafficSource_trafficSubId != null) { | 1117 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1115 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1118 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1116 } | 1119 } |
| 1120 if (requestMetadata_partnersSessionId != null) { |
| 1121 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1122 } |
| 1117 if (requestMetadata_userOverrides_userId != null) { | 1123 if (requestMetadata_userOverrides_userId != null) { |
| 1118 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1124 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1119 } | 1125 } |
| 1120 if (requestMetadata_partnersSessionId != null) { | |
| 1121 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1122 } | |
| 1123 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1126 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1124 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1127 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1125 } | 1128 } |
| 1126 if (requestMetadata_locale != null) { | |
| 1127 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | |
| 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 12 matching lines...) Expand all Loading... |
| 1151 /** | 1151 /** |
| 1152 * Creates a user's company relation. Affiliates the user to a company. | 1152 * Creates a user's company relation. Affiliates the user to a company. |
| 1153 * | 1153 * |
| 1154 * [request] - The metadata request object. | 1154 * [request] - The metadata request object. |
| 1155 * | 1155 * |
| 1156 * Request parameters: | 1156 * Request parameters: |
| 1157 * | 1157 * |
| 1158 * [userId] - The ID of the user. Can be set to <code>me</code> to mean | 1158 * [userId] - The ID of the user. Can be set to <code>me</code> to mean |
| 1159 * the currently authenticated user. | 1159 * the currently authenticated user. |
| 1160 * | 1160 * |
| 1161 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1162 * instead of the user's ID. |
| 1163 * |
| 1164 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1165 * |
| 1161 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1166 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1162 * where the traffic comes from. | 1167 * where the traffic comes from. |
| 1163 * An identifier has multiple letters created by a team which redirected the | 1168 * An identifier has multiple letters created by a team which redirected the |
| 1164 * traffic to us. | 1169 * traffic to us. |
| 1165 * | 1170 * |
| 1166 * [requestMetadata_locale] - Locale to use for the current request. | 1171 * [requestMetadata_locale] - Locale to use for the current request. |
| 1167 * | 1172 * |
| 1168 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1173 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1169 * the user's geo-located IP address. | 1174 * the user's geo-located IP address. |
| 1170 * | 1175 * |
| 1171 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1176 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1172 * belongs to. | 1177 * belongs to. |
| 1173 * | 1178 * |
| 1174 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1179 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1175 * indicate where the traffic comes from. | 1180 * indicate where the traffic comes from. |
| 1176 * An identifier has multiple letters created by a team which redirected the | 1181 * An identifier has multiple letters created by a team which redirected the |
| 1177 * traffic to us. | 1182 * traffic to us. |
| 1178 * | 1183 * |
| 1179 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 1180 * instead of the user's ID. | |
| 1181 * | |
| 1182 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 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.String requestMetadata_trafficSource_trafficSourceId, c
ore.String requestMetadata_locale, core.String requestMetadata_userOverrides_ipA
ddress, core.List<core.String> requestMetadata_experimentIds, core.String reques
tMetadata_trafficSource_trafficSubId, core.String requestMetadata_userOverrides_
userId, core.String requestMetadata_partnersSessionId}) { | 1192 async.Future<CompanyRelation> createCompanyRelation(CompanyRelation request, c
ore.String userId, {core.String requestMetadata_userOverrides_userId, core.Strin
g requestMetadata_partnersSessionId, core.String requestMetadata_trafficSource_t
rafficSourceId, core.String requestMetadata_locale, core.String requestMetadata_
userOverrides_ipAddress, core.List<core.String> requestMetadata_experimentIds, c
ore.String requestMetadata_trafficSource_trafficSubId}) { |
| 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_userOverrides_userId != null) { |
| 1207 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1208 } |
| 1209 if (requestMetadata_partnersSessionId != null) { |
| 1210 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1211 } |
| 1206 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1212 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1207 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1213 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1208 } | 1214 } |
| 1209 if (requestMetadata_locale != null) { | 1215 if (requestMetadata_locale != null) { |
| 1210 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1216 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1211 } | 1217 } |
| 1212 if (requestMetadata_userOverrides_ipAddress != null) { | 1218 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1213 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1219 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1214 } | 1220 } |
| 1215 if (requestMetadata_experimentIds != null) { | 1221 if (requestMetadata_experimentIds != null) { |
| 1216 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1222 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1217 } | 1223 } |
| 1218 if (requestMetadata_trafficSource_trafficSubId != null) { | 1224 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1219 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1225 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1220 } | 1226 } |
| 1221 if (requestMetadata_userOverrides_userId != null) { | |
| 1222 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 1223 } | |
| 1224 if (requestMetadata_partnersSessionId != null) { | |
| 1225 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1226 } | |
| 1227 | 1227 |
| 1228 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRel
ation'; | 1228 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId') + '/companyRel
ation'; |
| 1229 | 1229 |
| 1230 var _response = _requester.request(_url, | 1230 var _response = _requester.request(_url, |
| 1231 "PUT", | 1231 "PUT", |
| 1232 body: _body, | 1232 body: _body, |
| 1233 queryParams: _queryParams, | 1233 queryParams: _queryParams, |
| 1234 uploadOptions: _uploadOptions, | 1234 uploadOptions: _uploadOptions, |
| 1235 uploadMedia: _uploadMedia, | 1235 uploadMedia: _uploadMedia, |
| 1236 downloadOptions: _downloadOptions); | 1236 downloadOptions: _downloadOptions); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_userOverrides_userId] - Logged-in user ID to impersonate | |
| 1334 * instead of the user's ID. | |
| 1335 * | |
| 1336 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 1337 * | |
| 1338 * [userView] - Specifies what parts of the user information to return. | |
| 1339 * Possible string values are: | |
| 1340 * - "BASIC" : A BASIC. | |
| 1341 * - "PROFILE" : A PROFILE. | |
| 1342 * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. | |
| 1343 * | |
| 1344 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1333 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1345 * where the traffic comes from. | 1334 * where the traffic comes from. |
| 1346 * An identifier has multiple letters created by a team which redirected the | 1335 * An identifier has multiple letters created by a team which redirected the |
| 1347 * traffic to us. | 1336 * traffic to us. |
| 1348 * | 1337 * |
| 1349 * [requestMetadata_locale] - Locale to use for the current request. | 1338 * [requestMetadata_locale] - Locale to use for the current request. |
| 1350 * | 1339 * |
| 1351 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1340 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1352 * the user's geo-located IP address. | 1341 * the user's geo-located IP address. |
| 1353 * | 1342 * |
| 1354 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1343 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1355 * belongs to. | 1344 * belongs to. |
| 1356 * | 1345 * |
| 1357 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1346 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1358 * indicate where the traffic comes from. | 1347 * indicate where the traffic comes from. |
| 1359 * An identifier has multiple letters created by a team which redirected the | 1348 * An identifier has multiple letters created by a team which redirected the |
| 1360 * traffic to us. | 1349 * traffic to us. |
| 1361 * | 1350 * |
| 1351 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1352 * |
| 1353 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1354 * instead of the user's ID. |
| 1355 * |
| 1356 * [userView] - Specifies what parts of the user information to return. |
| 1357 * Possible string values are: |
| 1358 * - "BASIC" : A BASIC. |
| 1359 * - "PROFILE" : A PROFILE. |
| 1360 * - "PUBLIC_PROFILE" : A PUBLIC_PROFILE. |
| 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_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}) { | 1370 async.Future<User> get(core.String userId, {core.String requestMetadata_traffi
cSource_trafficSourceId, core.String requestMetadata_locale, core.String request
Metadata_userOverrides_ipAddress, core.List<core.String> requestMetadata_experim
entIds, core.String requestMetadata_trafficSource_trafficSubId, core.String requ
estMetadata_partnersSessionId, core.String requestMetadata_userOverrides_userId,
core.String userView}) { |
| 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 } | |
| 1384 if (requestMetadata_partnersSessionId != null) { | |
| 1385 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1386 } | |
| 1387 if (userView != null) { | |
| 1388 _queryParams["userView"] = [userView]; | |
| 1389 } | |
| 1390 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1381 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1391 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1382 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1392 } | 1383 } |
| 1393 if (requestMetadata_locale != null) { | 1384 if (requestMetadata_locale != null) { |
| 1394 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1385 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1395 } | 1386 } |
| 1396 if (requestMetadata_userOverrides_ipAddress != null) { | 1387 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1397 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1388 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1398 } | 1389 } |
| 1399 if (requestMetadata_experimentIds != null) { | 1390 if (requestMetadata_experimentIds != null) { |
| 1400 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1391 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1401 } | 1392 } |
| 1402 if (requestMetadata_trafficSource_trafficSubId != null) { | 1393 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1403 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1394 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1404 } | 1395 } |
| 1396 if (requestMetadata_partnersSessionId != null) { |
| 1397 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1398 } |
| 1399 if (requestMetadata_userOverrides_userId != null) { |
| 1400 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1401 } |
| 1402 if (userView != null) { |
| 1403 _queryParams["userView"] = [userView]; |
| 1404 } |
| 1405 | 1405 |
| 1406 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId'); | 1406 _url = 'v2/users/' + commons.Escaper.ecapeVariable('$userId'); |
| 1407 | 1407 |
| 1408 var _response = _requester.request(_url, | 1408 var _response = _requester.request(_url, |
| 1409 "GET", | 1409 "GET", |
| 1410 body: _body, | 1410 body: _body, |
| 1411 queryParams: _queryParams, | 1411 queryParams: _queryParams, |
| 1412 uploadOptions: _uploadOptions, | 1412 uploadOptions: _uploadOptions, |
| 1413 uploadMedia: _uploadMedia, | 1413 uploadMedia: _uploadMedia, |
| 1414 downloadOptions: _downloadOptions); | 1414 downloadOptions: _downloadOptions); |
| 1415 return _response.then((data) => new User.fromJson(data)); | 1415 return _response.then((data) => new User.fromJson(data)); |
| 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_trafficSource_trafficSubId] - Second level identifier to |
| 1427 * indicate where the traffic comes from. |
| 1428 * An identifier has multiple letters created by a team which redirected the |
| 1429 * traffic to us. |
| 1430 * |
| 1431 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1432 * |
| 1433 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1434 * instead of the user's ID. |
| 1435 * |
| 1436 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1437 * where the traffic comes from. |
| 1438 * An identifier has multiple letters created by a team which redirected the |
| 1439 * traffic to us. |
| 1440 * |
| 1426 * [requestMetadata_locale] - Locale to use for the current request. | 1441 * [requestMetadata_locale] - Locale to use for the current request. |
| 1427 * | 1442 * |
| 1428 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1443 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1429 * the user's geo-located IP address. | 1444 * the user's geo-located IP address. |
| 1430 * | 1445 * |
| 1431 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1446 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1432 * belongs to. | 1447 * belongs to. |
| 1433 * | 1448 * |
| 1434 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | |
| 1435 * indicate where the traffic comes from. | |
| 1436 * An identifier has multiple letters created by a team which redirected the | |
| 1437 * traffic to us. | |
| 1438 * | |
| 1439 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 1440 * instead of the user's ID. | |
| 1441 * | |
| 1442 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 1443 * | |
| 1444 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | |
| 1445 * where the traffic comes from. | |
| 1446 * An identifier has multiple letters created by a team which redirected the | |
| 1447 * traffic to us. | |
| 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_locale, core.String requestMetadata_userOverrides_ipAddress, core.Li
st<core.String> requestMetadata_experimentIds, core.String requestMetadata_traff
icSource_trafficSubId, core.String requestMetadata_userOverrides_userId, core.St
ring requestMetadata_partnersSessionId, core.String requestMetadata_trafficSourc
e_trafficSourceId}) { | 1457 async.Future<UserProfile> updateProfile(UserProfile request, {core.String requ
estMetadata_trafficSource_trafficSubId, core.String requestMetadata_partnersSess
ionId, core.String requestMetadata_userOverrides_userId, core.String requestMeta
data_trafficSource_trafficSourceId, core.String requestMetadata_locale, core.Str
ing requestMetadata_userOverrides_ipAddress, core.List<core.String> requestMetad
ata_experimentIds}) { |
| 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_trafficSource_trafficSubId != null) { |
| 1469 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1470 } |
| 1471 if (requestMetadata_partnersSessionId != null) { |
| 1472 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1473 } |
| 1474 if (requestMetadata_userOverrides_userId != null) { |
| 1475 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1476 } |
| 1477 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1478 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1479 } |
| 1468 if (requestMetadata_locale != null) { | 1480 if (requestMetadata_locale != null) { |
| 1469 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1481 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1470 } | 1482 } |
| 1471 if (requestMetadata_userOverrides_ipAddress != null) { | 1483 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1472 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1484 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1473 } | 1485 } |
| 1474 if (requestMetadata_experimentIds != null) { | 1486 if (requestMetadata_experimentIds != null) { |
| 1475 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1487 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1476 } | 1488 } |
| 1477 if (requestMetadata_trafficSource_trafficSubId != null) { | |
| 1478 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | |
| 1479 } | |
| 1480 if (requestMetadata_userOverrides_userId != null) { | |
| 1481 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 1482 } | |
| 1483 if (requestMetadata_partnersSessionId != null) { | |
| 1484 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1485 } | |
| 1486 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
| 1487 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
| 1488 } | |
| 1489 | 1489 |
| 1490 _url = 'v2/users/profile'; | 1490 _url = 'v2/users/profile'; |
| 1491 | 1491 |
| 1492 var _response = _requester.request(_url, | 1492 var _response = _requester.request(_url, |
| 1493 "PATCH", | 1493 "PATCH", |
| 1494 body: _body, | 1494 body: _body, |
| 1495 queryParams: _queryParams, | 1495 queryParams: _queryParams, |
| 1496 uploadOptions: _uploadOptions, | 1496 uploadOptions: _uploadOptions, |
| 1497 uploadMedia: _uploadMedia, | 1497 uploadMedia: _uploadMedia, |
| 1498 downloadOptions: _downloadOptions); | 1498 downloadOptions: _downloadOptions); |
| 1499 return _response.then((data) => new UserProfile.fromJson(data)); | 1499 return _response.then((data) => new UserProfile.fromJson(data)); |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 } | 1502 } |
| 1503 | 1503 |
| 1504 | 1504 |
| 1505 class V2ResourceApi { | 1505 class V2ResourceApi { |
| 1506 final commons.ApiRequester _requester; | 1506 final commons.ApiRequester _requester; |
| 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_partnersSessionId] - Google Partners session ID. | |
| 1518 * | |
| 1519 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 1520 * instead of the user's ID. | |
| 1521 * | |
| 1522 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | 1517 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1523 * where the traffic comes from. | 1518 * where the traffic comes from. |
| 1524 * An identifier has multiple letters created by a team which redirected the | 1519 * An identifier has multiple letters created by a team which redirected the |
| 1525 * traffic to us. | 1520 * traffic to us. |
| 1526 * | 1521 * |
| 1527 * [requestMetadata_locale] - Locale to use for the current request. | 1522 * [requestMetadata_locale] - Locale to use for the current request. |
| 1528 * | 1523 * |
| 1529 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1524 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1530 * the user's geo-located IP address. | 1525 * the user's geo-located IP address. |
| 1531 * | 1526 * |
| 1532 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1527 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1533 * belongs to. | 1528 * belongs to. |
| 1534 * | 1529 * |
| 1535 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1530 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1536 * indicate where the traffic comes from. | 1531 * indicate where the traffic comes from. |
| 1537 * An identifier has multiple letters created by a team which redirected the | 1532 * An identifier has multiple letters created by a team which redirected the |
| 1538 * traffic to us. | 1533 * traffic to us. |
| 1539 * | 1534 * |
| 1535 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1536 * |
| 1537 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1538 * instead of the user's ID. |
| 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_partnersSessionId, core.String requestMetadata_userOverrides_userId, co
re.String requestMetadata_trafficSource_trafficSourceId, core.String requestMeta
data_locale, core.String requestMetadata_userOverrides_ipAddress, core.List<core
.String> requestMetadata_experimentIds, core.String requestMetadata_trafficSourc
e_trafficSubId}) { | 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_partnersSessionId, core.String requestMetadata_userOv
errides_userId}) { |
| 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_partnersSessionId != null) { | |
| 1557 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1558 } | |
| 1559 if (requestMetadata_userOverrides_userId != null) { | |
| 1560 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 1561 } | |
| 1562 if (requestMetadata_trafficSource_trafficSourceId != null) { | 1556 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1563 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1557 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1564 } | 1558 } |
| 1565 if (requestMetadata_locale != null) { | 1559 if (requestMetadata_locale != null) { |
| 1566 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1560 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1567 } | 1561 } |
| 1568 if (requestMetadata_userOverrides_ipAddress != null) { | 1562 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1569 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1563 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1570 } | 1564 } |
| 1571 if (requestMetadata_experimentIds != null) { | 1565 if (requestMetadata_experimentIds != null) { |
| 1572 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1566 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1573 } | 1567 } |
| 1574 if (requestMetadata_trafficSource_trafficSubId != null) { | 1568 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1575 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1569 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1576 } | 1570 } |
| 1571 if (requestMetadata_partnersSessionId != null) { |
| 1572 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1573 } |
| 1574 if (requestMetadata_userOverrides_userId != null) { |
| 1575 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 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); |
| 1587 return _response.then((data) => new GetPartnersStatusResponse.fromJson(data)
); | 1587 return _response.then((data) => new GetPartnersStatusResponse.fromJson(data)
); |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 /** | 1590 /** |
| 1591 * Update company. | 1591 * Update company. |
| 1592 * Should only be called within the context of an authorized logged in user. | 1592 * Should only be called within the context of an authorized logged in user. |
| 1593 * | 1593 * |
| 1594 * [request] - The metadata request object. | 1594 * [request] - The metadata request object. |
| 1595 * | 1595 * |
| 1596 * Request parameters: | 1596 * Request parameters: |
| 1597 * | 1597 * |
| 1598 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | |
| 1599 * instead of the user's ID. | |
| 1600 * | |
| 1601 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 1602 * | |
| 1603 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate | |
| 1604 * where the traffic comes from. | |
| 1605 * An identifier has multiple letters created by a team which redirected the | |
| 1606 * traffic to us. | |
| 1607 * | |
| 1608 * [requestMetadata_locale] - Locale to use for the current request. | |
| 1609 * | |
| 1610 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of | 1598 * [requestMetadata_userOverrides_ipAddress] - IP address to use instead of |
| 1611 * the user's geo-located IP address. | 1599 * the user's geo-located IP address. |
| 1612 * | 1600 * |
| 1613 * [updateMask] - Standard field mask for the set of fields to be updated. | 1601 * [updateMask] - Standard field mask for the set of fields to be updated. |
| 1614 * Required with at least 1 value in FieldMask's paths. | 1602 * Required with at least 1 value in FieldMask's paths. |
| 1615 * | 1603 * |
| 1616 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1604 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1617 * belongs to. | 1605 * belongs to. |
| 1618 * | 1606 * |
| 1619 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1607 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1620 * indicate where the traffic comes from. | 1608 * indicate where the traffic comes from. |
| 1621 * An identifier has multiple letters created by a team which redirected the | 1609 * An identifier has multiple letters created by a team which redirected the |
| 1622 * traffic to us. | 1610 * traffic to us. |
| 1623 * | 1611 * |
| 1612 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1613 * instead of the user's ID. |
| 1614 * |
| 1615 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1616 * |
| 1617 * [requestMetadata_trafficSource_trafficSourceId] - Identifier to indicate |
| 1618 * where the traffic comes from. |
| 1619 * An identifier has multiple letters created by a team which redirected the |
| 1620 * traffic to us. |
| 1621 * |
| 1622 * [requestMetadata_locale] - Locale to use for the current request. |
| 1623 * |
| 1624 * Completes with a [Company]. | 1624 * Completes with a [Company]. |
| 1625 * | 1625 * |
| 1626 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1626 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1627 * error. | 1627 * error. |
| 1628 * | 1628 * |
| 1629 * If the used [http.Client] completes with an error when making a REST call, | 1629 * If the used [http.Client] completes with an error when making a REST call, |
| 1630 * this method will complete with the same error. | 1630 * this method will complete with the same error. |
| 1631 */ | 1631 */ |
| 1632 async.Future<Company> updateCompanies(Company request, {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.String updat
eMask, core.List<core.String> requestMetadata_experimentIds, core.String request
Metadata_trafficSource_trafficSubId}) { | 1632 async.Future<Company> updateCompanies(Company request, {core.String requestMet
adata_userOverrides_ipAddress, core.String updateMask, core.List<core.String> re
questMetadata_experimentIds, core.String requestMetadata_trafficSource_trafficSu
bId, core.String requestMetadata_userOverrides_userId, core.String requestMetada
ta_partnersSessionId, core.String requestMetadata_trafficSource_trafficSourceId,
core.String requestMetadata_locale}) { |
| 1633 var _url = null; | 1633 var _url = null; |
| 1634 var _queryParams = new core.Map(); | 1634 var _queryParams = new core.Map(); |
| 1635 var _uploadMedia = null; | 1635 var _uploadMedia = null; |
| 1636 var _uploadOptions = null; | 1636 var _uploadOptions = null; |
| 1637 var _downloadOptions = commons.DownloadOptions.Metadata; | 1637 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1638 var _body = null; | 1638 var _body = null; |
| 1639 | 1639 |
| 1640 if (request != null) { | 1640 if (request != null) { |
| 1641 _body = convert.JSON.encode((request).toJson()); | 1641 _body = convert.JSON.encode((request).toJson()); |
| 1642 } | 1642 } |
| 1643 if (requestMetadata_userOverrides_userId != null) { | |
| 1644 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | |
| 1645 } | |
| 1646 if (requestMetadata_partnersSessionId != null) { | |
| 1647 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1648 } | |
| 1649 if (requestMetadata_trafficSource_trafficSourceId != null) { | |
| 1650 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | |
| 1651 } | |
| 1652 if (requestMetadata_locale != null) { | |
| 1653 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | |
| 1654 } | |
| 1655 if (requestMetadata_userOverrides_ipAddress != null) { | 1643 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1656 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1644 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1657 } | 1645 } |
| 1658 if (updateMask != null) { | 1646 if (updateMask != null) { |
| 1659 _queryParams["updateMask"] = [updateMask]; | 1647 _queryParams["updateMask"] = [updateMask]; |
| 1660 } | 1648 } |
| 1661 if (requestMetadata_experimentIds != null) { | 1649 if (requestMetadata_experimentIds != null) { |
| 1662 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1650 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1663 } | 1651 } |
| 1664 if (requestMetadata_trafficSource_trafficSubId != null) { | 1652 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1665 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1653 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1666 } | 1654 } |
| 1655 if (requestMetadata_userOverrides_userId != null) { |
| 1656 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1657 } |
| 1658 if (requestMetadata_partnersSessionId != null) { |
| 1659 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1660 } |
| 1661 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1662 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1663 } |
| 1664 if (requestMetadata_locale != null) { |
| 1665 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1666 } |
| 1667 | 1667 |
| 1668 _url = 'v2/companies'; | 1668 _url = 'v2/companies'; |
| 1669 | 1669 |
| 1670 var _response = _requester.request(_url, | 1670 var _response = _requester.request(_url, |
| 1671 "PATCH", | 1671 "PATCH", |
| 1672 body: _body, | 1672 body: _body, |
| 1673 queryParams: _queryParams, | 1673 queryParams: _queryParams, |
| 1674 uploadOptions: _uploadOptions, | 1674 uploadOptions: _uploadOptions, |
| 1675 uploadMedia: _uploadMedia, | 1675 uploadMedia: _uploadMedia, |
| 1676 downloadOptions: _downloadOptions); | 1676 downloadOptions: _downloadOptions); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1699 * Only `state` and `adwords_customer_id` are currently supported. | 1699 * Only `state` and `adwords_customer_id` are currently supported. |
| 1700 * | 1700 * |
| 1701 * [requestMetadata_experimentIds] - Experiment IDs the current request | 1701 * [requestMetadata_experimentIds] - Experiment IDs the current request |
| 1702 * belongs to. | 1702 * belongs to. |
| 1703 * | 1703 * |
| 1704 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to | 1704 * [requestMetadata_trafficSource_trafficSubId] - Second level identifier to |
| 1705 * indicate where the traffic comes from. | 1705 * indicate where the traffic comes from. |
| 1706 * An identifier has multiple letters created by a team which redirected the | 1706 * An identifier has multiple letters created by a team which redirected the |
| 1707 * traffic to us. | 1707 * traffic to us. |
| 1708 * | 1708 * |
| 1709 * [requestMetadata_partnersSessionId] - Google Partners session ID. |
| 1710 * |
| 1709 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate | 1711 * [requestMetadata_userOverrides_userId] - Logged-in user ID to impersonate |
| 1710 * instead of the user's ID. | 1712 * instead of the user's ID. |
| 1711 * | 1713 * |
| 1712 * [requestMetadata_partnersSessionId] - Google Partners session ID. | |
| 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_traf
ficSource_trafficSourceId, core.String requestMetadata_locale, core.String reque
stMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.Strin
g> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_traf
ficSubId, core.String requestMetadata_userOverrides_userId, core.String requestM
etadata_partnersSessionId}) { | 1722 async.Future<Lead> updateLeads(Lead request, {core.String requestMetadata_traf
ficSource_trafficSourceId, core.String requestMetadata_locale, core.String reque
stMetadata_userOverrides_ipAddress, core.String updateMask, core.List<core.Strin
g> requestMetadata_experimentIds, core.String requestMetadata_trafficSource_traf
ficSubId, core.String requestMetadata_partnersSessionId, core.String requestMeta
data_userOverrides_userId}) { |
| 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_trafficSource_trafficSourceId != null) { | 1733 if (requestMetadata_trafficSource_trafficSourceId != null) { |
| 1734 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; | 1734 _queryParams["requestMetadata.trafficSource.trafficSourceId"] = [requestMe
tadata_trafficSource_trafficSourceId]; |
| 1735 } | 1735 } |
| 1736 if (requestMetadata_locale != null) { | 1736 if (requestMetadata_locale != null) { |
| 1737 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; | 1737 _queryParams["requestMetadata.locale"] = [requestMetadata_locale]; |
| 1738 } | 1738 } |
| 1739 if (requestMetadata_userOverrides_ipAddress != null) { | 1739 if (requestMetadata_userOverrides_ipAddress != null) { |
| 1740 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; | 1740 _queryParams["requestMetadata.userOverrides.ipAddress"] = [requestMetadata
_userOverrides_ipAddress]; |
| 1741 } | 1741 } |
| 1742 if (updateMask != null) { | 1742 if (updateMask != null) { |
| 1743 _queryParams["updateMask"] = [updateMask]; | 1743 _queryParams["updateMask"] = [updateMask]; |
| 1744 } | 1744 } |
| 1745 if (requestMetadata_experimentIds != null) { | 1745 if (requestMetadata_experimentIds != null) { |
| 1746 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; | 1746 _queryParams["requestMetadata.experimentIds"] = requestMetadata_experiment
Ids; |
| 1747 } | 1747 } |
| 1748 if (requestMetadata_trafficSource_trafficSubId != null) { | 1748 if (requestMetadata_trafficSource_trafficSubId != null) { |
| 1749 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; | 1749 _queryParams["requestMetadata.trafficSource.trafficSubId"] = [requestMetad
ata_trafficSource_trafficSubId]; |
| 1750 } | 1750 } |
| 1751 if (requestMetadata_partnersSessionId != null) { |
| 1752 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; |
| 1753 } |
| 1751 if (requestMetadata_userOverrides_userId != null) { | 1754 if (requestMetadata_userOverrides_userId != null) { |
| 1752 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; | 1755 _queryParams["requestMetadata.userOverrides.userId"] = [requestMetadata_us
erOverrides_userId]; |
| 1753 } | 1756 } |
| 1754 if (requestMetadata_partnersSessionId != null) { | |
| 1755 _queryParams["requestMetadata.partnersSessionId"] = [requestMetadata_partn
ersSessionId]; | |
| 1756 } | |
| 1757 | 1757 |
| 1758 _url = 'v2/leads'; | 1758 _url = 'v2/leads'; |
| 1759 | 1759 |
| 1760 var _response = _requester.request(_url, | 1760 var _response = _requester.request(_url, |
| 1761 "PATCH", | 1761 "PATCH", |
| 1762 body: _body, | 1762 body: _body, |
| 1763 queryParams: _queryParams, | 1763 queryParams: _queryParams, |
| 1764 uploadOptions: _uploadOptions, | 1764 uploadOptions: _uploadOptions, |
| 1765 uploadMedia: _uploadMedia, | 1765 uploadMedia: _uploadMedia, |
| 1766 downloadOptions: _downloadOptions); | 1766 downloadOptions: _downloadOptions); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1785 | 1785 |
| 1786 AdWordsManagerAccountInfo.fromJson(core.Map _json) { | 1786 AdWordsManagerAccountInfo.fromJson(core.Map _json) { |
| 1787 if (_json.containsKey("customerName")) { | 1787 if (_json.containsKey("customerName")) { |
| 1788 customerName = _json["customerName"]; | 1788 customerName = _json["customerName"]; |
| 1789 } | 1789 } |
| 1790 if (_json.containsKey("id")) { | 1790 if (_json.containsKey("id")) { |
| 1791 id = _json["id"]; | 1791 id = _json["id"]; |
| 1792 } | 1792 } |
| 1793 } | 1793 } |
| 1794 | 1794 |
| 1795 core.Map toJson() { | 1795 core.Map<core.String, core.Object> toJson() { |
| 1796 var _json = new core.Map(); | 1796 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1797 if (customerName != null) { | 1797 if (customerName != null) { |
| 1798 _json["customerName"] = customerName; | 1798 _json["customerName"] = customerName; |
| 1799 } | 1799 } |
| 1800 if (id != null) { | 1800 if (id != null) { |
| 1801 _json["id"] = id; | 1801 _json["id"] = id; |
| 1802 } | 1802 } |
| 1803 return _json; | 1803 return _json; |
| 1804 } | 1804 } |
| 1805 } | 1805 } |
| 1806 | 1806 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1834 eventDate = new Date.fromJson(_json["eventDate"]); | 1834 eventDate = new Date.fromJson(_json["eventDate"]); |
| 1835 } | 1835 } |
| 1836 if (_json.containsKey("profileViews")) { | 1836 if (_json.containsKey("profileViews")) { |
| 1837 profileViews = new AnalyticsDataPoint.fromJson(_json["profileViews"]); | 1837 profileViews = new AnalyticsDataPoint.fromJson(_json["profileViews"]); |
| 1838 } | 1838 } |
| 1839 if (_json.containsKey("searchViews")) { | 1839 if (_json.containsKey("searchViews")) { |
| 1840 searchViews = new AnalyticsDataPoint.fromJson(_json["searchViews"]); | 1840 searchViews = new AnalyticsDataPoint.fromJson(_json["searchViews"]); |
| 1841 } | 1841 } |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 core.Map toJson() { | 1844 core.Map<core.String, core.Object> toJson() { |
| 1845 var _json = new core.Map(); | 1845 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1846 if (contacts != null) { | 1846 if (contacts != null) { |
| 1847 _json["contacts"] = (contacts).toJson(); | 1847 _json["contacts"] = (contacts).toJson(); |
| 1848 } | 1848 } |
| 1849 if (eventDate != null) { | 1849 if (eventDate != null) { |
| 1850 _json["eventDate"] = (eventDate).toJson(); | 1850 _json["eventDate"] = (eventDate).toJson(); |
| 1851 } | 1851 } |
| 1852 if (profileViews != null) { | 1852 if (profileViews != null) { |
| 1853 _json["profileViews"] = (profileViews).toJson(); | 1853 _json["profileViews"] = (profileViews).toJson(); |
| 1854 } | 1854 } |
| 1855 if (searchViews != null) { | 1855 if (searchViews != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1873 | 1873 |
| 1874 AnalyticsDataPoint.fromJson(core.Map _json) { | 1874 AnalyticsDataPoint.fromJson(core.Map _json) { |
| 1875 if (_json.containsKey("eventCount")) { | 1875 if (_json.containsKey("eventCount")) { |
| 1876 eventCount = _json["eventCount"]; | 1876 eventCount = _json["eventCount"]; |
| 1877 } | 1877 } |
| 1878 if (_json.containsKey("eventLocations")) { | 1878 if (_json.containsKey("eventLocations")) { |
| 1879 eventLocations = _json["eventLocations"].map((value) => new LatLng.fromJso
n(value)).toList(); | 1879 eventLocations = _json["eventLocations"].map((value) => new LatLng.fromJso
n(value)).toList(); |
| 1880 } | 1880 } |
| 1881 } | 1881 } |
| 1882 | 1882 |
| 1883 core.Map toJson() { | 1883 core.Map<core.String, core.Object> toJson() { |
| 1884 var _json = new core.Map(); | 1884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1885 if (eventCount != null) { | 1885 if (eventCount != null) { |
| 1886 _json["eventCount"] = eventCount; | 1886 _json["eventCount"] = eventCount; |
| 1887 } | 1887 } |
| 1888 if (eventLocations != null) { | 1888 if (eventLocations != null) { |
| 1889 _json["eventLocations"] = eventLocations.map((value) => (value).toJson()).
toList(); | 1889 _json["eventLocations"] = eventLocations.map((value) => (value).toJson()).
toList(); |
| 1890 } | 1890 } |
| 1891 return _json; | 1891 return _json; |
| 1892 } | 1892 } |
| 1893 } | 1893 } |
| 1894 | 1894 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 1916 contactsCount = _json["contactsCount"]; | 1916 contactsCount = _json["contactsCount"]; |
| 1917 } | 1917 } |
| 1918 if (_json.containsKey("profileViewsCount")) { | 1918 if (_json.containsKey("profileViewsCount")) { |
| 1919 profileViewsCount = _json["profileViewsCount"]; | 1919 profileViewsCount = _json["profileViewsCount"]; |
| 1920 } | 1920 } |
| 1921 if (_json.containsKey("searchViewsCount")) { | 1921 if (_json.containsKey("searchViewsCount")) { |
| 1922 searchViewsCount = _json["searchViewsCount"]; | 1922 searchViewsCount = _json["searchViewsCount"]; |
| 1923 } | 1923 } |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 core.Map toJson() { | 1926 core.Map<core.String, core.Object> toJson() { |
| 1927 var _json = new core.Map(); | 1927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1928 if (contactsCount != null) { | 1928 if (contactsCount != null) { |
| 1929 _json["contactsCount"] = contactsCount; | 1929 _json["contactsCount"] = contactsCount; |
| 1930 } | 1930 } |
| 1931 if (profileViewsCount != null) { | 1931 if (profileViewsCount != null) { |
| 1932 _json["profileViewsCount"] = profileViewsCount; | 1932 _json["profileViewsCount"] = profileViewsCount; |
| 1933 } | 1933 } |
| 1934 if (searchViewsCount != null) { | 1934 if (searchViewsCount != null) { |
| 1935 _json["searchViewsCount"] = searchViewsCount; | 1935 _json["searchViewsCount"] = searchViewsCount; |
| 1936 } | 1936 } |
| 1937 return _json; | 1937 return _json; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2024 qualifiedCustomersComplete = _json["qualifiedCustomersComplete"]; | 2024 qualifiedCustomersComplete = _json["qualifiedCustomersComplete"]; |
| 2025 } | 2025 } |
| 2026 if (_json.containsKey("showSpecialOfferCopy")) { | 2026 if (_json.containsKey("showSpecialOfferCopy")) { |
| 2027 showSpecialOfferCopy = _json["showSpecialOfferCopy"]; | 2027 showSpecialOfferCopy = _json["showSpecialOfferCopy"]; |
| 2028 } | 2028 } |
| 2029 if (_json.containsKey("terms")) { | 2029 if (_json.containsKey("terms")) { |
| 2030 terms = _json["terms"]; | 2030 terms = _json["terms"]; |
| 2031 } | 2031 } |
| 2032 } | 2032 } |
| 2033 | 2033 |
| 2034 core.Map toJson() { | 2034 core.Map<core.String, core.Object> toJson() { |
| 2035 var _json = new core.Map(); | 2035 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2036 if (available != null) { | 2036 if (available != null) { |
| 2037 _json["available"] = available; | 2037 _json["available"] = available; |
| 2038 } | 2038 } |
| 2039 if (countryOfferInfos != null) { | 2039 if (countryOfferInfos != null) { |
| 2040 _json["countryOfferInfos"] = countryOfferInfos.map((value) => (value).toJs
on()).toList(); | 2040 _json["countryOfferInfos"] = countryOfferInfos.map((value) => (value).toJs
on()).toList(); |
| 2041 } | 2041 } |
| 2042 if (description != null) { | 2042 if (description != null) { |
| 2043 _json["description"] = description; | 2043 _json["description"] = description; |
| 2044 } | 2044 } |
| 2045 if (id != null) { | 2045 if (id != null) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 expiration = _json["expiration"]; | 2114 expiration = _json["expiration"]; |
| 2115 } | 2115 } |
| 2116 if (_json.containsKey("lastAchieved")) { | 2116 if (_json.containsKey("lastAchieved")) { |
| 2117 lastAchieved = _json["lastAchieved"]; | 2117 lastAchieved = _json["lastAchieved"]; |
| 2118 } | 2118 } |
| 2119 if (_json.containsKey("warning")) { | 2119 if (_json.containsKey("warning")) { |
| 2120 warning = _json["warning"]; | 2120 warning = _json["warning"]; |
| 2121 } | 2121 } |
| 2122 } | 2122 } |
| 2123 | 2123 |
| 2124 core.Map toJson() { | 2124 core.Map<core.String, core.Object> toJson() { |
| 2125 var _json = new core.Map(); | 2125 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2126 if (achieved != null) { | 2126 if (achieved != null) { |
| 2127 _json["achieved"] = achieved; | 2127 _json["achieved"] = achieved; |
| 2128 } | 2128 } |
| 2129 if (certificationType != null) { | 2129 if (certificationType != null) { |
| 2130 _json["certificationType"] = certificationType; | 2130 _json["certificationType"] = certificationType; |
| 2131 } | 2131 } |
| 2132 if (expiration != null) { | 2132 if (expiration != null) { |
| 2133 _json["expiration"] = expiration; | 2133 _json["expiration"] = expiration; |
| 2134 } | 2134 } |
| 2135 if (lastAchieved != null) { | 2135 if (lastAchieved != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2167 | 2167 |
| 2168 CertificationExamStatus.fromJson(core.Map _json) { | 2168 CertificationExamStatus.fromJson(core.Map _json) { |
| 2169 if (_json.containsKey("numberUsersPass")) { | 2169 if (_json.containsKey("numberUsersPass")) { |
| 2170 numberUsersPass = _json["numberUsersPass"]; | 2170 numberUsersPass = _json["numberUsersPass"]; |
| 2171 } | 2171 } |
| 2172 if (_json.containsKey("type")) { | 2172 if (_json.containsKey("type")) { |
| 2173 type = _json["type"]; | 2173 type = _json["type"]; |
| 2174 } | 2174 } |
| 2175 } | 2175 } |
| 2176 | 2176 |
| 2177 core.Map toJson() { | 2177 core.Map<core.String, core.Object> toJson() { |
| 2178 var _json = new core.Map(); | 2178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2179 if (numberUsersPass != null) { | 2179 if (numberUsersPass != null) { |
| 2180 _json["numberUsersPass"] = numberUsersPass; | 2180 _json["numberUsersPass"] = numberUsersPass; |
| 2181 } | 2181 } |
| 2182 if (type != null) { | 2182 if (type != null) { |
| 2183 _json["type"] = type; | 2183 _json["type"] = type; |
| 2184 } | 2184 } |
| 2185 return _json; | 2185 return _json; |
| 2186 } | 2186 } |
| 2187 } | 2187 } |
| 2188 | 2188 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2222 isCertified = _json["isCertified"]; | 2222 isCertified = _json["isCertified"]; |
| 2223 } | 2223 } |
| 2224 if (_json.containsKey("type")) { | 2224 if (_json.containsKey("type")) { |
| 2225 type = _json["type"]; | 2225 type = _json["type"]; |
| 2226 } | 2226 } |
| 2227 if (_json.containsKey("userCount")) { | 2227 if (_json.containsKey("userCount")) { |
| 2228 userCount = _json["userCount"]; | 2228 userCount = _json["userCount"]; |
| 2229 } | 2229 } |
| 2230 } | 2230 } |
| 2231 | 2231 |
| 2232 core.Map toJson() { | 2232 core.Map<core.String, core.Object> toJson() { |
| 2233 var _json = new core.Map(); | 2233 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2234 if (examStatuses != null) { | 2234 if (examStatuses != null) { |
| 2235 _json["examStatuses"] = examStatuses.map((value) => (value).toJson()).toLi
st(); | 2235 _json["examStatuses"] = examStatuses.map((value) => (value).toJson()).toLi
st(); |
| 2236 } | 2236 } |
| 2237 if (isCertified != null) { | 2237 if (isCertified != null) { |
| 2238 _json["isCertified"] = isCertified; | 2238 _json["isCertified"] = isCertified; |
| 2239 } | 2239 } |
| 2240 if (type != null) { | 2240 if (type != null) { |
| 2241 _json["type"] = type; | 2241 _json["type"] = type; |
| 2242 } | 2242 } |
| 2243 if (userCount != null) { | 2243 if (userCount != null) { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 services = _json["services"]; | 2396 services = _json["services"]; |
| 2397 } | 2397 } |
| 2398 if (_json.containsKey("specializationStatus")) { | 2398 if (_json.containsKey("specializationStatus")) { |
| 2399 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); | 2399 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); |
| 2400 } | 2400 } |
| 2401 if (_json.containsKey("websiteUrl")) { | 2401 if (_json.containsKey("websiteUrl")) { |
| 2402 websiteUrl = _json["websiteUrl"]; | 2402 websiteUrl = _json["websiteUrl"]; |
| 2403 } | 2403 } |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 core.Map toJson() { | 2406 core.Map<core.String, core.Object> toJson() { |
| 2407 var _json = new core.Map(); | 2407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2408 if (additionalWebsites != null) { | 2408 if (additionalWebsites != null) { |
| 2409 _json["additionalWebsites"] = additionalWebsites; | 2409 _json["additionalWebsites"] = additionalWebsites; |
| 2410 } | 2410 } |
| 2411 if (autoApprovalEmailDomains != null) { | 2411 if (autoApprovalEmailDomains != null) { |
| 2412 _json["autoApprovalEmailDomains"] = autoApprovalEmailDomains; | 2412 _json["autoApprovalEmailDomains"] = autoApprovalEmailDomains; |
| 2413 } | 2413 } |
| 2414 if (badgeTier != null) { | 2414 if (badgeTier != null) { |
| 2415 _json["badgeTier"] = badgeTier; | 2415 _json["badgeTier"] = badgeTier; |
| 2416 } | 2416 } |
| 2417 if (certificationStatuses != null) { | 2417 if (certificationStatuses != null) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2492 /** | 2492 /** |
| 2493 * The ID of the company. There may be no id if this is a | 2493 * The ID of the company. There may be no id if this is a |
| 2494 * pending company.5 | 2494 * pending company.5 |
| 2495 */ | 2495 */ |
| 2496 core.String companyId; | 2496 core.String companyId; |
| 2497 /** | 2497 /** |
| 2498 * The timestamp of when affiliation was requested. | 2498 * The timestamp of when affiliation was requested. |
| 2499 * @OutputOnly | 2499 * @OutputOnly |
| 2500 */ | 2500 */ |
| 2501 core.String creationTime; | 2501 core.String creationTime; |
| 2502 /** |
| 2503 * The internal company ID. |
| 2504 * Only available for a whitelisted set of api clients. |
| 2505 */ |
| 2506 core.String internalCompanyId; |
| 2502 /** The flag that indicates if the company is pending verification. */ | 2507 /** The flag that indicates if the company is pending verification. */ |
| 2503 core.bool isPending; | 2508 core.bool isPending; |
| 2504 /** A URL to a profile photo, e.g. a G+ profile photo. */ | 2509 /** A URL to a profile photo, e.g. a G+ profile photo. */ |
| 2505 core.String logoUrl; | 2510 core.String logoUrl; |
| 2506 /** The AdWords manager account # associated this company. */ | 2511 /** The AdWords manager account # associated this company. */ |
| 2507 core.String managerAccount; | 2512 core.String managerAccount; |
| 2508 /** The name (in the company's primary language) for the company. */ | 2513 /** The name (in the company's primary language) for the company. */ |
| 2509 core.String name; | 2514 core.String name; |
| 2510 /** The phone number for the company's primary address. */ | 2515 /** The phone number for the company's primary address. */ |
| 2511 core.String phoneNumber; | 2516 core.String phoneNumber; |
| 2517 /** The primary location of the company. */ |
| 2518 Location primaryAddress; |
| 2519 /** The primary country code of the company. */ |
| 2520 core.String primaryCountryCode; |
| 2521 /** The primary language code of the company. */ |
| 2522 core.String primaryLanguageCode; |
| 2512 /** | 2523 /** |
| 2513 * The timestamp when the user was approved. | 2524 * The timestamp when the user was approved. |
| 2514 * @OutputOnly | 2525 * @OutputOnly |
| 2515 */ | 2526 */ |
| 2516 core.String resolvedTimestamp; | 2527 core.String resolvedTimestamp; |
| 2517 /** The segment the company is classified as. */ | 2528 /** The segment the company is classified as. */ |
| 2518 core.List<core.String> segment; | 2529 core.List<core.String> segment; |
| 2519 /** The list of Google Partners specialization statuses for the company. */ | 2530 /** The list of Google Partners specialization statuses for the company. */ |
| 2520 core.List<SpecializationStatus> specializationStatus; | 2531 core.List<SpecializationStatus> specializationStatus; |
| 2521 /** | 2532 /** |
| (...skipping 23 matching lines...) Expand all Loading... |
| 2545 } | 2556 } |
| 2546 if (_json.containsKey("companyAdmin")) { | 2557 if (_json.containsKey("companyAdmin")) { |
| 2547 companyAdmin = _json["companyAdmin"]; | 2558 companyAdmin = _json["companyAdmin"]; |
| 2548 } | 2559 } |
| 2549 if (_json.containsKey("companyId")) { | 2560 if (_json.containsKey("companyId")) { |
| 2550 companyId = _json["companyId"]; | 2561 companyId = _json["companyId"]; |
| 2551 } | 2562 } |
| 2552 if (_json.containsKey("creationTime")) { | 2563 if (_json.containsKey("creationTime")) { |
| 2553 creationTime = _json["creationTime"]; | 2564 creationTime = _json["creationTime"]; |
| 2554 } | 2565 } |
| 2566 if (_json.containsKey("internalCompanyId")) { |
| 2567 internalCompanyId = _json["internalCompanyId"]; |
| 2568 } |
| 2555 if (_json.containsKey("isPending")) { | 2569 if (_json.containsKey("isPending")) { |
| 2556 isPending = _json["isPending"]; | 2570 isPending = _json["isPending"]; |
| 2557 } | 2571 } |
| 2558 if (_json.containsKey("logoUrl")) { | 2572 if (_json.containsKey("logoUrl")) { |
| 2559 logoUrl = _json["logoUrl"]; | 2573 logoUrl = _json["logoUrl"]; |
| 2560 } | 2574 } |
| 2561 if (_json.containsKey("managerAccount")) { | 2575 if (_json.containsKey("managerAccount")) { |
| 2562 managerAccount = _json["managerAccount"]; | 2576 managerAccount = _json["managerAccount"]; |
| 2563 } | 2577 } |
| 2564 if (_json.containsKey("name")) { | 2578 if (_json.containsKey("name")) { |
| 2565 name = _json["name"]; | 2579 name = _json["name"]; |
| 2566 } | 2580 } |
| 2567 if (_json.containsKey("phoneNumber")) { | 2581 if (_json.containsKey("phoneNumber")) { |
| 2568 phoneNumber = _json["phoneNumber"]; | 2582 phoneNumber = _json["phoneNumber"]; |
| 2569 } | 2583 } |
| 2584 if (_json.containsKey("primaryAddress")) { |
| 2585 primaryAddress = new Location.fromJson(_json["primaryAddress"]); |
| 2586 } |
| 2587 if (_json.containsKey("primaryCountryCode")) { |
| 2588 primaryCountryCode = _json["primaryCountryCode"]; |
| 2589 } |
| 2590 if (_json.containsKey("primaryLanguageCode")) { |
| 2591 primaryLanguageCode = _json["primaryLanguageCode"]; |
| 2592 } |
| 2570 if (_json.containsKey("resolvedTimestamp")) { | 2593 if (_json.containsKey("resolvedTimestamp")) { |
| 2571 resolvedTimestamp = _json["resolvedTimestamp"]; | 2594 resolvedTimestamp = _json["resolvedTimestamp"]; |
| 2572 } | 2595 } |
| 2573 if (_json.containsKey("segment")) { | 2596 if (_json.containsKey("segment")) { |
| 2574 segment = _json["segment"]; | 2597 segment = _json["segment"]; |
| 2575 } | 2598 } |
| 2576 if (_json.containsKey("specializationStatus")) { | 2599 if (_json.containsKey("specializationStatus")) { |
| 2577 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); | 2600 specializationStatus = _json["specializationStatus"].map((value) => new Sp
ecializationStatus.fromJson(value)).toList(); |
| 2578 } | 2601 } |
| 2579 if (_json.containsKey("state")) { | 2602 if (_json.containsKey("state")) { |
| 2580 state = _json["state"]; | 2603 state = _json["state"]; |
| 2581 } | 2604 } |
| 2582 if (_json.containsKey("website")) { | 2605 if (_json.containsKey("website")) { |
| 2583 website = _json["website"]; | 2606 website = _json["website"]; |
| 2584 } | 2607 } |
| 2585 } | 2608 } |
| 2586 | 2609 |
| 2587 core.Map toJson() { | 2610 core.Map<core.String, core.Object> toJson() { |
| 2588 var _json = new core.Map(); | 2611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2589 if (address != null) { | 2612 if (address != null) { |
| 2590 _json["address"] = address; | 2613 _json["address"] = address; |
| 2591 } | 2614 } |
| 2592 if (badgeTier != null) { | 2615 if (badgeTier != null) { |
| 2593 _json["badgeTier"] = badgeTier; | 2616 _json["badgeTier"] = badgeTier; |
| 2594 } | 2617 } |
| 2595 if (companyAdmin != null) { | 2618 if (companyAdmin != null) { |
| 2596 _json["companyAdmin"] = companyAdmin; | 2619 _json["companyAdmin"] = companyAdmin; |
| 2597 } | 2620 } |
| 2598 if (companyId != null) { | 2621 if (companyId != null) { |
| 2599 _json["companyId"] = companyId; | 2622 _json["companyId"] = companyId; |
| 2600 } | 2623 } |
| 2601 if (creationTime != null) { | 2624 if (creationTime != null) { |
| 2602 _json["creationTime"] = creationTime; | 2625 _json["creationTime"] = creationTime; |
| 2603 } | 2626 } |
| 2627 if (internalCompanyId != null) { |
| 2628 _json["internalCompanyId"] = internalCompanyId; |
| 2629 } |
| 2604 if (isPending != null) { | 2630 if (isPending != null) { |
| 2605 _json["isPending"] = isPending; | 2631 _json["isPending"] = isPending; |
| 2606 } | 2632 } |
| 2607 if (logoUrl != null) { | 2633 if (logoUrl != null) { |
| 2608 _json["logoUrl"] = logoUrl; | 2634 _json["logoUrl"] = logoUrl; |
| 2609 } | 2635 } |
| 2610 if (managerAccount != null) { | 2636 if (managerAccount != null) { |
| 2611 _json["managerAccount"] = managerAccount; | 2637 _json["managerAccount"] = managerAccount; |
| 2612 } | 2638 } |
| 2613 if (name != null) { | 2639 if (name != null) { |
| 2614 _json["name"] = name; | 2640 _json["name"] = name; |
| 2615 } | 2641 } |
| 2616 if (phoneNumber != null) { | 2642 if (phoneNumber != null) { |
| 2617 _json["phoneNumber"] = phoneNumber; | 2643 _json["phoneNumber"] = phoneNumber; |
| 2618 } | 2644 } |
| 2645 if (primaryAddress != null) { |
| 2646 _json["primaryAddress"] = (primaryAddress).toJson(); |
| 2647 } |
| 2648 if (primaryCountryCode != null) { |
| 2649 _json["primaryCountryCode"] = primaryCountryCode; |
| 2650 } |
| 2651 if (primaryLanguageCode != null) { |
| 2652 _json["primaryLanguageCode"] = primaryLanguageCode; |
| 2653 } |
| 2619 if (resolvedTimestamp != null) { | 2654 if (resolvedTimestamp != null) { |
| 2620 _json["resolvedTimestamp"] = resolvedTimestamp; | 2655 _json["resolvedTimestamp"] = resolvedTimestamp; |
| 2621 } | 2656 } |
| 2622 if (segment != null) { | 2657 if (segment != null) { |
| 2623 _json["segment"] = segment; | 2658 _json["segment"] = segment; |
| 2624 } | 2659 } |
| 2625 if (specializationStatus != null) { | 2660 if (specializationStatus != null) { |
| 2626 _json["specializationStatus"] = specializationStatus.map((value) => (value
).toJson()).toList(); | 2661 _json["specializationStatus"] = specializationStatus.map((value) => (value
).toJson()).toList(); |
| 2627 } | 2662 } |
| 2628 if (state != null) { | 2663 if (state != null) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2663 offerCountryCode = _json["offerCountryCode"]; | 2698 offerCountryCode = _json["offerCountryCode"]; |
| 2664 } | 2699 } |
| 2665 if (_json.containsKey("offerType")) { | 2700 if (_json.containsKey("offerType")) { |
| 2666 offerType = _json["offerType"]; | 2701 offerType = _json["offerType"]; |
| 2667 } | 2702 } |
| 2668 if (_json.containsKey("spendXAmount")) { | 2703 if (_json.containsKey("spendXAmount")) { |
| 2669 spendXAmount = _json["spendXAmount"]; | 2704 spendXAmount = _json["spendXAmount"]; |
| 2670 } | 2705 } |
| 2671 } | 2706 } |
| 2672 | 2707 |
| 2673 core.Map toJson() { | 2708 core.Map<core.String, core.Object> toJson() { |
| 2674 var _json = new core.Map(); | 2709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2675 if (getYAmount != null) { | 2710 if (getYAmount != null) { |
| 2676 _json["getYAmount"] = getYAmount; | 2711 _json["getYAmount"] = getYAmount; |
| 2677 } | 2712 } |
| 2678 if (offerCountryCode != null) { | 2713 if (offerCountryCode != null) { |
| 2679 _json["offerCountryCode"] = offerCountryCode; | 2714 _json["offerCountryCode"] = offerCountryCode; |
| 2680 } | 2715 } |
| 2681 if (offerType != null) { | 2716 if (offerType != null) { |
| 2682 _json["offerType"] = offerType; | 2717 _json["offerType"] = offerType; |
| 2683 } | 2718 } |
| 2684 if (spendXAmount != null) { | 2719 if (spendXAmount != null) { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 2709 lead = new Lead.fromJson(_json["lead"]); | 2744 lead = new Lead.fromJson(_json["lead"]); |
| 2710 } | 2745 } |
| 2711 if (_json.containsKey("recaptchaChallenge")) { | 2746 if (_json.containsKey("recaptchaChallenge")) { |
| 2712 recaptchaChallenge = new RecaptchaChallenge.fromJson(_json["recaptchaChall
enge"]); | 2747 recaptchaChallenge = new RecaptchaChallenge.fromJson(_json["recaptchaChall
enge"]); |
| 2713 } | 2748 } |
| 2714 if (_json.containsKey("requestMetadata")) { | 2749 if (_json.containsKey("requestMetadata")) { |
| 2715 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 2750 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 2716 } | 2751 } |
| 2717 } | 2752 } |
| 2718 | 2753 |
| 2719 core.Map toJson() { | 2754 core.Map<core.String, core.Object> toJson() { |
| 2720 var _json = new core.Map(); | 2755 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2721 if (lead != null) { | 2756 if (lead != null) { |
| 2722 _json["lead"] = (lead).toJson(); | 2757 _json["lead"] = (lead).toJson(); |
| 2723 } | 2758 } |
| 2724 if (recaptchaChallenge != null) { | 2759 if (recaptchaChallenge != null) { |
| 2725 _json["recaptchaChallenge"] = (recaptchaChallenge).toJson(); | 2760 _json["recaptchaChallenge"] = (recaptchaChallenge).toJson(); |
| 2726 } | 2761 } |
| 2727 if (requestMetadata != null) { | 2762 if (requestMetadata != null) { |
| 2728 _json["requestMetadata"] = (requestMetadata).toJson(); | 2763 _json["requestMetadata"] = (requestMetadata).toJson(); |
| 2729 } | 2764 } |
| 2730 return _json; | 2765 return _json; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 2758 lead = new Lead.fromJson(_json["lead"]); | 2793 lead = new Lead.fromJson(_json["lead"]); |
| 2759 } | 2794 } |
| 2760 if (_json.containsKey("recaptchaStatus")) { | 2795 if (_json.containsKey("recaptchaStatus")) { |
| 2761 recaptchaStatus = _json["recaptchaStatus"]; | 2796 recaptchaStatus = _json["recaptchaStatus"]; |
| 2762 } | 2797 } |
| 2763 if (_json.containsKey("responseMetadata")) { | 2798 if (_json.containsKey("responseMetadata")) { |
| 2764 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 2799 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 2765 } | 2800 } |
| 2766 } | 2801 } |
| 2767 | 2802 |
| 2768 core.Map toJson() { | 2803 core.Map<core.String, core.Object> toJson() { |
| 2769 var _json = new core.Map(); | 2804 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2770 if (lead != null) { | 2805 if (lead != null) { |
| 2771 _json["lead"] = (lead).toJson(); | 2806 _json["lead"] = (lead).toJson(); |
| 2772 } | 2807 } |
| 2773 if (recaptchaStatus != null) { | 2808 if (recaptchaStatus != null) { |
| 2774 _json["recaptchaStatus"] = recaptchaStatus; | 2809 _json["recaptchaStatus"] = recaptchaStatus; |
| 2775 } | 2810 } |
| 2776 if (responseMetadata != null) { | 2811 if (responseMetadata != null) { |
| 2777 _json["responseMetadata"] = (responseMetadata).toJson(); | 2812 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 2778 } | 2813 } |
| 2779 return _json; | 2814 return _json; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2810 day = _json["day"]; | 2845 day = _json["day"]; |
| 2811 } | 2846 } |
| 2812 if (_json.containsKey("month")) { | 2847 if (_json.containsKey("month")) { |
| 2813 month = _json["month"]; | 2848 month = _json["month"]; |
| 2814 } | 2849 } |
| 2815 if (_json.containsKey("year")) { | 2850 if (_json.containsKey("year")) { |
| 2816 year = _json["year"]; | 2851 year = _json["year"]; |
| 2817 } | 2852 } |
| 2818 } | 2853 } |
| 2819 | 2854 |
| 2820 core.Map toJson() { | 2855 core.Map<core.String, core.Object> toJson() { |
| 2821 var _json = new core.Map(); | 2856 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2822 if (day != null) { | 2857 if (day != null) { |
| 2823 _json["day"] = day; | 2858 _json["day"] = day; |
| 2824 } | 2859 } |
| 2825 if (month != null) { | 2860 if (month != null) { |
| 2826 _json["month"] = month; | 2861 _json["month"] = month; |
| 2827 } | 2862 } |
| 2828 if (year != null) { | 2863 if (year != null) { |
| 2829 _json["year"] = year; | 2864 _json["year"] = year; |
| 2830 } | 2865 } |
| 2831 return _json; | 2866 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2848 serverInfo = _json["serverInfo"]; | 2883 serverInfo = _json["serverInfo"]; |
| 2849 } | 2884 } |
| 2850 if (_json.containsKey("serverTraceInfo")) { | 2885 if (_json.containsKey("serverTraceInfo")) { |
| 2851 serverTraceInfo = _json["serverTraceInfo"]; | 2886 serverTraceInfo = _json["serverTraceInfo"]; |
| 2852 } | 2887 } |
| 2853 if (_json.containsKey("serviceUrl")) { | 2888 if (_json.containsKey("serviceUrl")) { |
| 2854 serviceUrl = _json["serviceUrl"]; | 2889 serviceUrl = _json["serviceUrl"]; |
| 2855 } | 2890 } |
| 2856 } | 2891 } |
| 2857 | 2892 |
| 2858 core.Map toJson() { | 2893 core.Map<core.String, core.Object> toJson() { |
| 2859 var _json = new core.Map(); | 2894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2860 if (serverInfo != null) { | 2895 if (serverInfo != null) { |
| 2861 _json["serverInfo"] = serverInfo; | 2896 _json["serverInfo"] = serverInfo; |
| 2862 } | 2897 } |
| 2863 if (serverTraceInfo != null) { | 2898 if (serverTraceInfo != null) { |
| 2864 _json["serverTraceInfo"] = serverTraceInfo; | 2899 _json["serverTraceInfo"] = serverTraceInfo; |
| 2865 } | 2900 } |
| 2866 if (serviceUrl != null) { | 2901 if (serviceUrl != null) { |
| 2867 _json["serviceUrl"] = serviceUrl; | 2902 _json["serviceUrl"] = serviceUrl; |
| 2868 } | 2903 } |
| 2869 return _json; | 2904 return _json; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2881 * | 2916 * |
| 2882 * The JSON representation for `Empty` is empty JSON object `{}`. | 2917 * The JSON representation for `Empty` is empty JSON object `{}`. |
| 2883 */ | 2918 */ |
| 2884 class Empty { | 2919 class Empty { |
| 2885 | 2920 |
| 2886 Empty(); | 2921 Empty(); |
| 2887 | 2922 |
| 2888 Empty.fromJson(core.Map _json) { | 2923 Empty.fromJson(core.Map _json) { |
| 2889 } | 2924 } |
| 2890 | 2925 |
| 2891 core.Map toJson() { | 2926 core.Map<core.String, core.Object> toJson() { |
| 2892 var _json = new core.Map(); | 2927 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2893 return _json; | 2928 return _json; |
| 2894 } | 2929 } |
| 2895 } | 2930 } |
| 2896 | 2931 |
| 2897 /** Key value data pair for an event. */ | 2932 /** Key value data pair for an event. */ |
| 2898 class EventData { | 2933 class EventData { |
| 2899 /** | 2934 /** |
| 2900 * Data type. | 2935 * Data type. |
| 2901 * Possible string values are: | 2936 * Possible string values are: |
| 2902 * - "EVENT_DATA_TYPE_UNSPECIFIED" : Unchosen. | 2937 * - "EVENT_DATA_TYPE_UNSPECIFIED" : Unchosen. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2946 | 2981 |
| 2947 EventData.fromJson(core.Map _json) { | 2982 EventData.fromJson(core.Map _json) { |
| 2948 if (_json.containsKey("key")) { | 2983 if (_json.containsKey("key")) { |
| 2949 key = _json["key"]; | 2984 key = _json["key"]; |
| 2950 } | 2985 } |
| 2951 if (_json.containsKey("values")) { | 2986 if (_json.containsKey("values")) { |
| 2952 values = _json["values"]; | 2987 values = _json["values"]; |
| 2953 } | 2988 } |
| 2954 } | 2989 } |
| 2955 | 2990 |
| 2956 core.Map toJson() { | 2991 core.Map<core.String, core.Object> toJson() { |
| 2957 var _json = new core.Map(); | 2992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2958 if (key != null) { | 2993 if (key != null) { |
| 2959 _json["key"] = key; | 2994 _json["key"] = key; |
| 2960 } | 2995 } |
| 2961 if (values != null) { | 2996 if (values != null) { |
| 2962 _json["values"] = values; | 2997 _json["values"] = values; |
| 2963 } | 2998 } |
| 2964 return _json; | 2999 return _json; |
| 2965 } | 3000 } |
| 2966 } | 3001 } |
| 2967 | 3002 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3010 passed = _json["passed"]; | 3045 passed = _json["passed"]; |
| 3011 } | 3046 } |
| 3012 if (_json.containsKey("taken")) { | 3047 if (_json.containsKey("taken")) { |
| 3013 taken = _json["taken"]; | 3048 taken = _json["taken"]; |
| 3014 } | 3049 } |
| 3015 if (_json.containsKey("warning")) { | 3050 if (_json.containsKey("warning")) { |
| 3016 warning = _json["warning"]; | 3051 warning = _json["warning"]; |
| 3017 } | 3052 } |
| 3018 } | 3053 } |
| 3019 | 3054 |
| 3020 core.Map toJson() { | 3055 core.Map<core.String, core.Object> toJson() { |
| 3021 var _json = new core.Map(); | 3056 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3022 if (examType != null) { | 3057 if (examType != null) { |
| 3023 _json["examType"] = examType; | 3058 _json["examType"] = examType; |
| 3024 } | 3059 } |
| 3025 if (expiration != null) { | 3060 if (expiration != null) { |
| 3026 _json["expiration"] = expiration; | 3061 _json["expiration"] = expiration; |
| 3027 } | 3062 } |
| 3028 if (lastPassed != null) { | 3063 if (lastPassed != null) { |
| 3029 _json["lastPassed"] = lastPassed; | 3064 _json["lastPassed"] = lastPassed; |
| 3030 } | 3065 } |
| 3031 if (passed != null) { | 3066 if (passed != null) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3071 examId = _json["examId"]; | 3106 examId = _json["examId"]; |
| 3072 } | 3107 } |
| 3073 if (_json.containsKey("examType")) { | 3108 if (_json.containsKey("examType")) { |
| 3074 examType = _json["examType"]; | 3109 examType = _json["examType"]; |
| 3075 } | 3110 } |
| 3076 if (_json.containsKey("token")) { | 3111 if (_json.containsKey("token")) { |
| 3077 token = _json["token"]; | 3112 token = _json["token"]; |
| 3078 } | 3113 } |
| 3079 } | 3114 } |
| 3080 | 3115 |
| 3081 core.Map toJson() { | 3116 core.Map<core.String, core.Object> toJson() { |
| 3082 var _json = new core.Map(); | 3117 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3083 if (examId != null) { | 3118 if (examId != null) { |
| 3084 _json["examId"] = examId; | 3119 _json["examId"] = examId; |
| 3085 } | 3120 } |
| 3086 if (examType != null) { | 3121 if (examType != null) { |
| 3087 _json["examType"] = examType; | 3122 _json["examType"] = examType; |
| 3088 } | 3123 } |
| 3089 if (token != null) { | 3124 if (token != null) { |
| 3090 _json["token"] = token; | 3125 _json["token"] = token; |
| 3091 } | 3126 } |
| 3092 return _json; | 3127 return _json; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3104 | 3139 |
| 3105 GetCompanyResponse.fromJson(core.Map _json) { | 3140 GetCompanyResponse.fromJson(core.Map _json) { |
| 3106 if (_json.containsKey("company")) { | 3141 if (_json.containsKey("company")) { |
| 3107 company = new Company.fromJson(_json["company"]); | 3142 company = new Company.fromJson(_json["company"]); |
| 3108 } | 3143 } |
| 3109 if (_json.containsKey("responseMetadata")) { | 3144 if (_json.containsKey("responseMetadata")) { |
| 3110 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3145 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3111 } | 3146 } |
| 3112 } | 3147 } |
| 3113 | 3148 |
| 3114 core.Map toJson() { | 3149 core.Map<core.String, core.Object> toJson() { |
| 3115 var _json = new core.Map(); | 3150 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3116 if (company != null) { | 3151 if (company != null) { |
| 3117 _json["company"] = (company).toJson(); | 3152 _json["company"] = (company).toJson(); |
| 3118 } | 3153 } |
| 3119 if (responseMetadata != null) { | 3154 if (responseMetadata != null) { |
| 3120 _json["responseMetadata"] = (responseMetadata).toJson(); | 3155 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3121 } | 3156 } |
| 3122 return _json; | 3157 return _json; |
| 3123 } | 3158 } |
| 3124 } | 3159 } |
| 3125 | 3160 |
| 3126 /** | 3161 /** |
| 3127 * Response message for | 3162 * Response message for |
| 3128 * GetPartnersStatus. | 3163 * GetPartnersStatus. |
| 3129 */ | 3164 */ |
| 3130 class GetPartnersStatusResponse { | 3165 class GetPartnersStatusResponse { |
| 3131 /** Current response metadata. */ | 3166 /** Current response metadata. */ |
| 3132 ResponseMetadata responseMetadata; | 3167 ResponseMetadata responseMetadata; |
| 3133 | 3168 |
| 3134 GetPartnersStatusResponse(); | 3169 GetPartnersStatusResponse(); |
| 3135 | 3170 |
| 3136 GetPartnersStatusResponse.fromJson(core.Map _json) { | 3171 GetPartnersStatusResponse.fromJson(core.Map _json) { |
| 3137 if (_json.containsKey("responseMetadata")) { | 3172 if (_json.containsKey("responseMetadata")) { |
| 3138 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3173 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3139 } | 3174 } |
| 3140 } | 3175 } |
| 3141 | 3176 |
| 3142 core.Map toJson() { | 3177 core.Map<core.String, core.Object> toJson() { |
| 3143 var _json = new core.Map(); | 3178 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3144 if (responseMetadata != null) { | 3179 if (responseMetadata != null) { |
| 3145 _json["responseMetadata"] = (responseMetadata).toJson(); | 3180 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3146 } | 3181 } |
| 3147 return _json; | 3182 return _json; |
| 3148 } | 3183 } |
| 3149 } | 3184 } |
| 3150 | 3185 |
| 3151 /** Historical information about a Google Partners Offer. */ | 3186 /** Historical information about a Google Partners Offer. */ |
| 3152 class HistoricalOffer { | 3187 class HistoricalOffer { |
| 3153 /** Client's AdWords page URL. */ | 3188 /** Client's AdWords page URL. */ |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3227 offerType = _json["offerType"]; | 3262 offerType = _json["offerType"]; |
| 3228 } | 3263 } |
| 3229 if (_json.containsKey("senderName")) { | 3264 if (_json.containsKey("senderName")) { |
| 3230 senderName = _json["senderName"]; | 3265 senderName = _json["senderName"]; |
| 3231 } | 3266 } |
| 3232 if (_json.containsKey("status")) { | 3267 if (_json.containsKey("status")) { |
| 3233 status = _json["status"]; | 3268 status = _json["status"]; |
| 3234 } | 3269 } |
| 3235 } | 3270 } |
| 3236 | 3271 |
| 3237 core.Map toJson() { | 3272 core.Map<core.String, core.Object> toJson() { |
| 3238 var _json = new core.Map(); | 3273 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3239 if (adwordsUrl != null) { | 3274 if (adwordsUrl != null) { |
| 3240 _json["adwordsUrl"] = adwordsUrl; | 3275 _json["adwordsUrl"] = adwordsUrl; |
| 3241 } | 3276 } |
| 3242 if (clientEmail != null) { | 3277 if (clientEmail != null) { |
| 3243 _json["clientEmail"] = clientEmail; | 3278 _json["clientEmail"] = clientEmail; |
| 3244 } | 3279 } |
| 3245 if (clientId != null) { | 3280 if (clientId != null) { |
| 3246 _json["clientId"] = clientId; | 3281 _json["clientId"] = clientId; |
| 3247 } | 3282 } |
| 3248 if (clientName != null) { | 3283 if (clientName != null) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3309 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) | 3344 * assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0) |
| 3310 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) | 3345 * assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0) |
| 3311 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) | 3346 * assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0) |
| 3312 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) | 3347 * assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0) |
| 3313 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) | 3348 * assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0) |
| 3314 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) | 3349 * assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0) |
| 3315 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) | 3350 * assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0) |
| 3316 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) | 3351 * assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0) |
| 3317 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) | 3352 * assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0) |
| 3318 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) | 3353 * assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0) |
| 3319 * | |
| 3320 * The code in logs/storage/validator/logs_validator_traits.cc treats this type | |
| 3321 * as if it were annotated as ST_LOCATION. | |
| 3322 */ | 3354 */ |
| 3323 class LatLng { | 3355 class LatLng { |
| 3324 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ | 3356 /** The latitude in degrees. It must be in the range [-90.0, +90.0]. */ |
| 3325 core.double latitude; | 3357 core.double latitude; |
| 3326 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ | 3358 /** The longitude in degrees. It must be in the range [-180.0, +180.0]. */ |
| 3327 core.double longitude; | 3359 core.double longitude; |
| 3328 | 3360 |
| 3329 LatLng(); | 3361 LatLng(); |
| 3330 | 3362 |
| 3331 LatLng.fromJson(core.Map _json) { | 3363 LatLng.fromJson(core.Map _json) { |
| 3332 if (_json.containsKey("latitude")) { | 3364 if (_json.containsKey("latitude")) { |
| 3333 latitude = _json["latitude"]; | 3365 latitude = _json["latitude"]; |
| 3334 } | 3366 } |
| 3335 if (_json.containsKey("longitude")) { | 3367 if (_json.containsKey("longitude")) { |
| 3336 longitude = _json["longitude"]; | 3368 longitude = _json["longitude"]; |
| 3337 } | 3369 } |
| 3338 } | 3370 } |
| 3339 | 3371 |
| 3340 core.Map toJson() { | 3372 core.Map<core.String, core.Object> toJson() { |
| 3341 var _json = new core.Map(); | 3373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3342 if (latitude != null) { | 3374 if (latitude != null) { |
| 3343 _json["latitude"] = latitude; | 3375 _json["latitude"] = latitude; |
| 3344 } | 3376 } |
| 3345 if (longitude != null) { | 3377 if (longitude != null) { |
| 3346 _json["longitude"] = longitude; | 3378 _json["longitude"] = longitude; |
| 3347 } | 3379 } |
| 3348 return _json; | 3380 return _json; |
| 3349 } | 3381 } |
| 3350 } | 3382 } |
| 3351 | 3383 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3445 state = _json["state"]; | 3477 state = _json["state"]; |
| 3446 } | 3478 } |
| 3447 if (_json.containsKey("type")) { | 3479 if (_json.containsKey("type")) { |
| 3448 type = _json["type"]; | 3480 type = _json["type"]; |
| 3449 } | 3481 } |
| 3450 if (_json.containsKey("websiteUrl")) { | 3482 if (_json.containsKey("websiteUrl")) { |
| 3451 websiteUrl = _json["websiteUrl"]; | 3483 websiteUrl = _json["websiteUrl"]; |
| 3452 } | 3484 } |
| 3453 } | 3485 } |
| 3454 | 3486 |
| 3455 core.Map toJson() { | 3487 core.Map<core.String, core.Object> toJson() { |
| 3456 var _json = new core.Map(); | 3488 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3457 if (adwordsCustomerId != null) { | 3489 if (adwordsCustomerId != null) { |
| 3458 _json["adwordsCustomerId"] = adwordsCustomerId; | 3490 _json["adwordsCustomerId"] = adwordsCustomerId; |
| 3459 } | 3491 } |
| 3460 if (comments != null) { | 3492 if (comments != null) { |
| 3461 _json["comments"] = comments; | 3493 _json["comments"] = comments; |
| 3462 } | 3494 } |
| 3463 if (createTime != null) { | 3495 if (createTime != null) { |
| 3464 _json["createTime"] = createTime; | 3496 _json["createTime"] = createTime; |
| 3465 } | 3497 } |
| 3466 if (email != null) { | 3498 if (email != null) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3540 analyticsSummary = new AnalyticsSummary.fromJson(_json["analyticsSummary"]
); | 3572 analyticsSummary = new AnalyticsSummary.fromJson(_json["analyticsSummary"]
); |
| 3541 } | 3573 } |
| 3542 if (_json.containsKey("nextPageToken")) { | 3574 if (_json.containsKey("nextPageToken")) { |
| 3543 nextPageToken = _json["nextPageToken"]; | 3575 nextPageToken = _json["nextPageToken"]; |
| 3544 } | 3576 } |
| 3545 if (_json.containsKey("responseMetadata")) { | 3577 if (_json.containsKey("responseMetadata")) { |
| 3546 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3578 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3547 } | 3579 } |
| 3548 } | 3580 } |
| 3549 | 3581 |
| 3550 core.Map toJson() { | 3582 core.Map<core.String, core.Object> toJson() { |
| 3551 var _json = new core.Map(); | 3583 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3552 if (analytics != null) { | 3584 if (analytics != null) { |
| 3553 _json["analytics"] = analytics.map((value) => (value).toJson()).toList(); | 3585 _json["analytics"] = analytics.map((value) => (value).toJson()).toList(); |
| 3554 } | 3586 } |
| 3555 if (analyticsSummary != null) { | 3587 if (analyticsSummary != null) { |
| 3556 _json["analyticsSummary"] = (analyticsSummary).toJson(); | 3588 _json["analyticsSummary"] = (analyticsSummary).toJson(); |
| 3557 } | 3589 } |
| 3558 if (nextPageToken != null) { | 3590 if (nextPageToken != null) { |
| 3559 _json["nextPageToken"] = nextPageToken; | 3591 _json["nextPageToken"] = nextPageToken; |
| 3560 } | 3592 } |
| 3561 if (responseMetadata != null) { | 3593 if (responseMetadata != null) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 3590 companies = _json["companies"].map((value) => new Company.fromJson(value))
.toList(); | 3622 companies = _json["companies"].map((value) => new Company.fromJson(value))
.toList(); |
| 3591 } | 3623 } |
| 3592 if (_json.containsKey("nextPageToken")) { | 3624 if (_json.containsKey("nextPageToken")) { |
| 3593 nextPageToken = _json["nextPageToken"]; | 3625 nextPageToken = _json["nextPageToken"]; |
| 3594 } | 3626 } |
| 3595 if (_json.containsKey("responseMetadata")) { | 3627 if (_json.containsKey("responseMetadata")) { |
| 3596 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3628 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3597 } | 3629 } |
| 3598 } | 3630 } |
| 3599 | 3631 |
| 3600 core.Map toJson() { | 3632 core.Map<core.String, core.Object> toJson() { |
| 3601 var _json = new core.Map(); | 3633 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3602 if (companies != null) { | 3634 if (companies != null) { |
| 3603 _json["companies"] = companies.map((value) => (value).toJson()).toList(); | 3635 _json["companies"] = companies.map((value) => (value).toJson()).toList(); |
| 3604 } | 3636 } |
| 3605 if (nextPageToken != null) { | 3637 if (nextPageToken != null) { |
| 3606 _json["nextPageToken"] = nextPageToken; | 3638 _json["nextPageToken"] = nextPageToken; |
| 3607 } | 3639 } |
| 3608 if (responseMetadata != null) { | 3640 if (responseMetadata != null) { |
| 3609 _json["responseMetadata"] = (responseMetadata).toJson(); | 3641 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3610 } | 3642 } |
| 3611 return _json; | 3643 return _json; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 3639 nextPageToken = _json["nextPageToken"]; | 3671 nextPageToken = _json["nextPageToken"]; |
| 3640 } | 3672 } |
| 3641 if (_json.containsKey("responseMetadata")) { | 3673 if (_json.containsKey("responseMetadata")) { |
| 3642 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3674 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3643 } | 3675 } |
| 3644 if (_json.containsKey("totalSize")) { | 3676 if (_json.containsKey("totalSize")) { |
| 3645 totalSize = _json["totalSize"]; | 3677 totalSize = _json["totalSize"]; |
| 3646 } | 3678 } |
| 3647 } | 3679 } |
| 3648 | 3680 |
| 3649 core.Map toJson() { | 3681 core.Map<core.String, core.Object> toJson() { |
| 3650 var _json = new core.Map(); | 3682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3651 if (leads != null) { | 3683 if (leads != null) { |
| 3652 _json["leads"] = leads.map((value) => (value).toJson()).toList(); | 3684 _json["leads"] = leads.map((value) => (value).toJson()).toList(); |
| 3653 } | 3685 } |
| 3654 if (nextPageToken != null) { | 3686 if (nextPageToken != null) { |
| 3655 _json["nextPageToken"] = nextPageToken; | 3687 _json["nextPageToken"] = nextPageToken; |
| 3656 } | 3688 } |
| 3657 if (responseMetadata != null) { | 3689 if (responseMetadata != null) { |
| 3658 _json["responseMetadata"] = (responseMetadata).toJson(); | 3690 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3659 } | 3691 } |
| 3660 if (totalSize != null) { | 3692 if (totalSize != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3697 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3729 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3698 } | 3730 } |
| 3699 if (_json.containsKey("showingEntireCompany")) { | 3731 if (_json.containsKey("showingEntireCompany")) { |
| 3700 showingEntireCompany = _json["showingEntireCompany"]; | 3732 showingEntireCompany = _json["showingEntireCompany"]; |
| 3701 } | 3733 } |
| 3702 if (_json.containsKey("totalResults")) { | 3734 if (_json.containsKey("totalResults")) { |
| 3703 totalResults = _json["totalResults"]; | 3735 totalResults = _json["totalResults"]; |
| 3704 } | 3736 } |
| 3705 } | 3737 } |
| 3706 | 3738 |
| 3707 core.Map toJson() { | 3739 core.Map<core.String, core.Object> toJson() { |
| 3708 var _json = new core.Map(); | 3740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3709 if (canShowEntireCompany != null) { | 3741 if (canShowEntireCompany != null) { |
| 3710 _json["canShowEntireCompany"] = canShowEntireCompany; | 3742 _json["canShowEntireCompany"] = canShowEntireCompany; |
| 3711 } | 3743 } |
| 3712 if (nextPageToken != null) { | 3744 if (nextPageToken != null) { |
| 3713 _json["nextPageToken"] = nextPageToken; | 3745 _json["nextPageToken"] = nextPageToken; |
| 3714 } | 3746 } |
| 3715 if (offers != null) { | 3747 if (offers != null) { |
| 3716 _json["offers"] = offers.map((value) => (value).toJson()).toList(); | 3748 _json["offers"] = offers.map((value) => (value).toJson()).toList(); |
| 3717 } | 3749 } |
| 3718 if (responseMetadata != null) { | 3750 if (responseMetadata != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3751 availableOffers = _json["availableOffers"].map((value) => new AvailableOff
er.fromJson(value)).toList(); | 3783 availableOffers = _json["availableOffers"].map((value) => new AvailableOff
er.fromJson(value)).toList(); |
| 3752 } | 3784 } |
| 3753 if (_json.containsKey("noOfferReason")) { | 3785 if (_json.containsKey("noOfferReason")) { |
| 3754 noOfferReason = _json["noOfferReason"]; | 3786 noOfferReason = _json["noOfferReason"]; |
| 3755 } | 3787 } |
| 3756 if (_json.containsKey("responseMetadata")) { | 3788 if (_json.containsKey("responseMetadata")) { |
| 3757 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3789 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3758 } | 3790 } |
| 3759 } | 3791 } |
| 3760 | 3792 |
| 3761 core.Map toJson() { | 3793 core.Map<core.String, core.Object> toJson() { |
| 3762 var _json = new core.Map(); | 3794 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3763 if (availableOffers != null) { | 3795 if (availableOffers != null) { |
| 3764 _json["availableOffers"] = availableOffers.map((value) => (value).toJson()
).toList(); | 3796 _json["availableOffers"] = availableOffers.map((value) => (value).toJson()
).toList(); |
| 3765 } | 3797 } |
| 3766 if (noOfferReason != null) { | 3798 if (noOfferReason != null) { |
| 3767 _json["noOfferReason"] = noOfferReason; | 3799 _json["noOfferReason"] = noOfferReason; |
| 3768 } | 3800 } |
| 3769 if (responseMetadata != null) { | 3801 if (responseMetadata != null) { |
| 3770 _json["responseMetadata"] = (responseMetadata).toJson(); | 3802 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3771 } | 3803 } |
| 3772 return _json; | 3804 return _json; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3787 | 3819 |
| 3788 ListUserStatesResponse.fromJson(core.Map _json) { | 3820 ListUserStatesResponse.fromJson(core.Map _json) { |
| 3789 if (_json.containsKey("responseMetadata")) { | 3821 if (_json.containsKey("responseMetadata")) { |
| 3790 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 3822 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 3791 } | 3823 } |
| 3792 if (_json.containsKey("userStates")) { | 3824 if (_json.containsKey("userStates")) { |
| 3793 userStates = _json["userStates"]; | 3825 userStates = _json["userStates"]; |
| 3794 } | 3826 } |
| 3795 } | 3827 } |
| 3796 | 3828 |
| 3797 core.Map toJson() { | 3829 core.Map<core.String, core.Object> toJson() { |
| 3798 var _json = new core.Map(); | 3830 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3799 if (responseMetadata != null) { | 3831 if (responseMetadata != null) { |
| 3800 _json["responseMetadata"] = (responseMetadata).toJson(); | 3832 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 3801 } | 3833 } |
| 3802 if (userStates != null) { | 3834 if (userStates != null) { |
| 3803 _json["userStates"] = userStates; | 3835 _json["userStates"] = userStates; |
| 3804 } | 3836 } |
| 3805 return _json; | 3837 return _json; |
| 3806 } | 3838 } |
| 3807 } | 3839 } |
| 3808 | 3840 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3833 displayName = _json["displayName"]; | 3865 displayName = _json["displayName"]; |
| 3834 } | 3866 } |
| 3835 if (_json.containsKey("languageCode")) { | 3867 if (_json.containsKey("languageCode")) { |
| 3836 languageCode = _json["languageCode"]; | 3868 languageCode = _json["languageCode"]; |
| 3837 } | 3869 } |
| 3838 if (_json.containsKey("overview")) { | 3870 if (_json.containsKey("overview")) { |
| 3839 overview = _json["overview"]; | 3871 overview = _json["overview"]; |
| 3840 } | 3872 } |
| 3841 } | 3873 } |
| 3842 | 3874 |
| 3843 core.Map toJson() { | 3875 core.Map<core.String, core.Object> toJson() { |
| 3844 var _json = new core.Map(); | 3876 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3845 if (countryCodes != null) { | 3877 if (countryCodes != null) { |
| 3846 _json["countryCodes"] = countryCodes; | 3878 _json["countryCodes"] = countryCodes; |
| 3847 } | 3879 } |
| 3848 if (displayName != null) { | 3880 if (displayName != null) { |
| 3849 _json["displayName"] = displayName; | 3881 _json["displayName"] = displayName; |
| 3850 } | 3882 } |
| 3851 if (languageCode != null) { | 3883 if (languageCode != null) { |
| 3852 _json["languageCode"] = languageCode; | 3884 _json["languageCode"] = languageCode; |
| 3853 } | 3885 } |
| 3854 if (overview != null) { | 3886 if (overview != null) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3921 postalCode = _json["postalCode"]; | 3953 postalCode = _json["postalCode"]; |
| 3922 } | 3954 } |
| 3923 if (_json.containsKey("regionCode")) { | 3955 if (_json.containsKey("regionCode")) { |
| 3924 regionCode = _json["regionCode"]; | 3956 regionCode = _json["regionCode"]; |
| 3925 } | 3957 } |
| 3926 if (_json.containsKey("sortingCode")) { | 3958 if (_json.containsKey("sortingCode")) { |
| 3927 sortingCode = _json["sortingCode"]; | 3959 sortingCode = _json["sortingCode"]; |
| 3928 } | 3960 } |
| 3929 } | 3961 } |
| 3930 | 3962 |
| 3931 core.Map toJson() { | 3963 core.Map<core.String, core.Object> toJson() { |
| 3932 var _json = new core.Map(); | 3964 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3933 if (address != null) { | 3965 if (address != null) { |
| 3934 _json["address"] = address; | 3966 _json["address"] = address; |
| 3935 } | 3967 } |
| 3936 if (addressLine != null) { | 3968 if (addressLine != null) { |
| 3937 _json["addressLine"] = addressLine; | 3969 _json["addressLine"] = addressLine; |
| 3938 } | 3970 } |
| 3939 if (administrativeArea != null) { | 3971 if (administrativeArea != null) { |
| 3940 _json["administrativeArea"] = administrativeArea; | 3972 _json["administrativeArea"] = administrativeArea; |
| 3941 } | 3973 } |
| 3942 if (dependentLocality != null) { | 3974 if (dependentLocality != null) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3998 details = _json["details"]; | 4030 details = _json["details"]; |
| 3999 } | 4031 } |
| 4000 if (_json.containsKey("level")) { | 4032 if (_json.containsKey("level")) { |
| 4001 level = _json["level"]; | 4033 level = _json["level"]; |
| 4002 } | 4034 } |
| 4003 if (_json.containsKey("requestMetadata")) { | 4035 if (_json.containsKey("requestMetadata")) { |
| 4004 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 4036 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 4005 } | 4037 } |
| 4006 } | 4038 } |
| 4007 | 4039 |
| 4008 core.Map toJson() { | 4040 core.Map<core.String, core.Object> toJson() { |
| 4009 var _json = new core.Map(); | 4041 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4010 if (clientInfo != null) { | 4042 if (clientInfo != null) { |
| 4011 _json["clientInfo"] = clientInfo; | 4043 _json["clientInfo"] = clientInfo; |
| 4012 } | 4044 } |
| 4013 if (details != null) { | 4045 if (details != null) { |
| 4014 _json["details"] = details; | 4046 _json["details"] = details; |
| 4015 } | 4047 } |
| 4016 if (level != null) { | 4048 if (level != null) { |
| 4017 _json["level"] = level; | 4049 _json["level"] = level; |
| 4018 } | 4050 } |
| 4019 if (requestMetadata != null) { | 4051 if (requestMetadata != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 4032 ResponseMetadata responseMetadata; | 4064 ResponseMetadata responseMetadata; |
| 4033 | 4065 |
| 4034 LogMessageResponse(); | 4066 LogMessageResponse(); |
| 4035 | 4067 |
| 4036 LogMessageResponse.fromJson(core.Map _json) { | 4068 LogMessageResponse.fromJson(core.Map _json) { |
| 4037 if (_json.containsKey("responseMetadata")) { | 4069 if (_json.containsKey("responseMetadata")) { |
| 4038 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4070 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 4039 } | 4071 } |
| 4040 } | 4072 } |
| 4041 | 4073 |
| 4042 core.Map toJson() { | 4074 core.Map<core.String, core.Object> toJson() { |
| 4043 var _json = new core.Map(); | 4075 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4044 if (responseMetadata != null) { | 4076 if (responseMetadata != null) { |
| 4045 _json["responseMetadata"] = (responseMetadata).toJson(); | 4077 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 4046 } | 4078 } |
| 4047 return _json; | 4079 return _json; |
| 4048 } | 4080 } |
| 4049 } | 4081 } |
| 4050 | 4082 |
| 4051 /** | 4083 /** |
| 4052 * Request message for | 4084 * Request message for |
| 4053 * LogUserEvent. | 4085 * LogUserEvent. |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4413 lead = new Lead.fromJson(_json["lead"]); | 4445 lead = new Lead.fromJson(_json["lead"]); |
| 4414 } | 4446 } |
| 4415 if (_json.containsKey("requestMetadata")) { | 4447 if (_json.containsKey("requestMetadata")) { |
| 4416 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); | 4448 requestMetadata = new RequestMetadata.fromJson(_json["requestMetadata"]); |
| 4417 } | 4449 } |
| 4418 if (_json.containsKey("url")) { | 4450 if (_json.containsKey("url")) { |
| 4419 url = _json["url"]; | 4451 url = _json["url"]; |
| 4420 } | 4452 } |
| 4421 } | 4453 } |
| 4422 | 4454 |
| 4423 core.Map toJson() { | 4455 core.Map<core.String, core.Object> toJson() { |
| 4424 var _json = new core.Map(); | 4456 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4425 if (eventAction != null) { | 4457 if (eventAction != null) { |
| 4426 _json["eventAction"] = eventAction; | 4458 _json["eventAction"] = eventAction; |
| 4427 } | 4459 } |
| 4428 if (eventCategory != null) { | 4460 if (eventCategory != null) { |
| 4429 _json["eventCategory"] = eventCategory; | 4461 _json["eventCategory"] = eventCategory; |
| 4430 } | 4462 } |
| 4431 if (eventDatas != null) { | 4463 if (eventDatas != null) { |
| 4432 _json["eventDatas"] = eventDatas.map((value) => (value).toJson()).toList()
; | 4464 _json["eventDatas"] = eventDatas.map((value) => (value).toJson()).toList()
; |
| 4433 } | 4465 } |
| 4434 if (eventScope != null) { | 4466 if (eventScope != null) { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4456 ResponseMetadata responseMetadata; | 4488 ResponseMetadata responseMetadata; |
| 4457 | 4489 |
| 4458 LogUserEventResponse(); | 4490 LogUserEventResponse(); |
| 4459 | 4491 |
| 4460 LogUserEventResponse.fromJson(core.Map _json) { | 4492 LogUserEventResponse.fromJson(core.Map _json) { |
| 4461 if (_json.containsKey("responseMetadata")) { | 4493 if (_json.containsKey("responseMetadata")) { |
| 4462 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); | 4494 responseMetadata = new ResponseMetadata.fromJson(_json["responseMetadata"]
); |
| 4463 } | 4495 } |
| 4464 } | 4496 } |
| 4465 | 4497 |
| 4466 core.Map toJson() { | 4498 core.Map<core.String, core.Object> toJson() { |
| 4467 var _json = new core.Map(); | 4499 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4468 if (responseMetadata != null) { | 4500 if (responseMetadata != null) { |
| 4469 _json["responseMetadata"] = (responseMetadata).toJson(); | 4501 _json["responseMetadata"] = (responseMetadata).toJson(); |
| 4470 } | 4502 } |
| 4471 return _json; | 4503 return _json; |
| 4472 } | 4504 } |
| 4473 } | 4505 } |
| 4474 | 4506 |
| 4475 /** Represents an amount of money with its currency type. */ | 4507 /** Represents an amount of money with its currency type. */ |
| 4476 class Money { | 4508 class Money { |
| 4477 /** The 3-letter currency code defined in ISO 4217. */ | 4509 /** The 3-letter currency code defined in ISO 4217. */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4498 currencyCode = _json["currencyCode"]; | 4530 currencyCode = _json["currencyCode"]; |
| 4499 } | 4531 } |
| 4500 if (_json.containsKey("nanos")) { | 4532 if (_json.containsKey("nanos")) { |
| 4501 nanos = _json["nanos"]; | 4533 nanos = _json["nanos"]; |
| 4502 } | 4534 } |
| 4503 if (_json.containsKey("units")) { | 4535 if (_json.containsKey("units")) { |
| 4504 units = _json["units"]; | 4536 units = _json["units"]; |
| 4505 } | 4537 } |
| 4506 } | 4538 } |
| 4507 | 4539 |
| 4508 core.Map toJson() { | 4540 core.Map<core.String, core.Object> toJson() { |
| 4509 var _json = new core.Map(); | 4541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4510 if (currencyCode != null) { | 4542 if (currencyCode != null) { |
| 4511 _json["currencyCode"] = currencyCode; | 4543 _json["currencyCode"] = currencyCode; |
| 4512 } | 4544 } |
| 4513 if (nanos != null) { | 4545 if (nanos != null) { |
| 4514 _json["nanos"] = nanos; | 4546 _json["nanos"] = nanos; |
| 4515 } | 4547 } |
| 4516 if (units != null) { | 4548 if (units != null) { |
| 4517 _json["units"] = units; | 4549 _json["units"] = units; |
| 4518 } | 4550 } |
| 4519 return _json; | 4551 return _json; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4573 name = _json["name"]; | 4605 name = _json["name"]; |
| 4574 } | 4606 } |
| 4575 if (_json.containsKey("offerType")) { | 4607 if (_json.containsKey("offerType")) { |
| 4576 offerType = _json["offerType"]; | 4608 offerType = _json["offerType"]; |
| 4577 } | 4609 } |
| 4578 if (_json.containsKey("spendXAmount")) { | 4610 if (_json.containsKey("spendXAmount")) { |
| 4579 spendXAmount = _json["spendXAmount"]; | 4611 spendXAmount = _json["spendXAmount"]; |
| 4580 } | 4612 } |
| 4581 } | 4613 } |
| 4582 | 4614 |
| 4583 core.Map toJson() { | 4615 core.Map<core.String, core.Object> toJson() { |
| 4584 var _json = new core.Map(); | 4616 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4585 if (adwordsUrl != null) { | 4617 if (adwordsUrl != null) { |
| 4586 _json["adwordsUrl"] = adwordsUrl; | 4618 _json["adwordsUrl"] = adwordsUrl; |
| 4587 } | 4619 } |
| 4588 if (countryCode != null) { | 4620 if (countryCode != null) { |
| 4589 _json["countryCode"] = countryCode; | 4621 _json["countryCode"] = countryCode; |
| 4590 } | 4622 } |
| 4591 if (creationTime != null) { | 4623 if (creationTime != null) { |
| 4592 _json["creationTime"] = creationTime; | 4624 _json["creationTime"] = creationTime; |
| 4593 } | 4625 } |
| 4594 if (eligibilityDaysLeft != null) { | 4626 if (eligibilityDaysLeft != null) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4647 phoneContact = _json["phoneContact"]; | 4679 phoneContact = _json["phoneContact"]; |
| 4648 } | 4680 } |
| 4649 if (_json.containsKey("physicalMail")) { | 4681 if (_json.containsKey("physicalMail")) { |
| 4650 physicalMail = _json["physicalMail"]; | 4682 physicalMail = _json["physicalMail"]; |
| 4651 } | 4683 } |
| 4652 if (_json.containsKey("specialOffers")) { | 4684 if (_json.containsKey("specialOffers")) { |
| 4653 specialOffers = _json["specialOffers"]; | 4685 specialOffers = _json["specialOffers"]; |
| 4654 } | 4686 } |
| 4655 } | 4687 } |
| 4656 | 4688 |
| 4657 core.Map toJson() { | 4689 core.Map<core.String, core.Object> toJson() { |
| 4658 var _json = new core.Map(); | 4690 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4659 if (marketComm != null) { | 4691 if (marketComm != null) { |
| 4660 _json["marketComm"] = marketComm; | 4692 _json["marketComm"] = marketComm; |
| 4661 } | 4693 } |
| 4662 if (performanceSuggestions != null) { | 4694 if (performanceSuggestions != null) { |
| 4663 _json["performanceSuggestions"] = performanceSuggestions; | 4695 _json["performanceSuggestions"] = performanceSuggestions; |
| 4664 } | 4696 } |
| 4665 if (phoneContact != null) { | 4697 if (phoneContact != null) { |
| 4666 _json["phoneContact"] = phoneContact; | 4698 _json["phoneContact"] = phoneContact; |
| 4667 } | 4699 } |
| 4668 if (physicalMail != null) { | 4700 if (physicalMail != null) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4705 id = _json["id"]; | 4737 id = _json["id"]; |
| 4706 } | 4738 } |
| 4707 if (_json.containsKey("profileImage")) { | 4739 if (_json.containsKey("profileImage")) { |
| 4708 profileImage = _json["profileImage"]; | 4740 profileImage = _json["profileImage"]; |
| 4709 } | 4741 } |
| 4710 if (_json.containsKey("url")) { | 4742 if (_json.containsKey("url")) { |
| 4711 url = _json["url"]; | 4743 url = _json["url"]; |
| 4712 } | 4744 } |
| 4713 } | 4745 } |
| 4714 | 4746 |
| 4715 core.Map toJson() { | 4747 core.Map<core.String, core.Object> toJson() { |
| 4716 var _json = new core.Map(); | 4748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4717 if (displayImageUrl != null) { | 4749 if (displayImageUrl != null) { |
| 4718 _json["displayImageUrl"] = displayImageUrl; | 4750 _json["displayImageUrl"] = displayImageUrl; |
| 4719 } | 4751 } |
| 4720 if (displayName != null) { | 4752 if (displayName != null) { |
| 4721 _json["displayName"] = displayName; | 4753 _json["displayName"] = displayName; |
| 4722 } | 4754 } |
| 4723 if (id != null) { | 4755 if (id != null) { |
| 4724 _json["id"] = id; | 4756 _json["id"] = id; |
| 4725 } | 4757 } |
| 4726 if (profileImage != null) { | 4758 if (profileImage != null) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 4749 | 4781 |
| 4750 Rank.fromJson(core.Map _json) { | 4782 Rank.fromJson(core.Map _json) { |
| 4751 if (_json.containsKey("type")) { | 4783 if (_json.containsKey("type")) { |
| 4752 type = _json["type"]; | 4784 type = _json["type"]; |
| 4753 } | 4785 } |
| 4754 if (_json.containsKey("value")) { | 4786 if (_json.containsKey("value")) { |
| 4755 value = _json["value"]; | 4787 value = _json["value"]; |
| 4756 } | 4788 } |
| 4757 } | 4789 } |
| 4758 | 4790 |
| 4759 core.Map toJson() { | 4791 core.Map<core.String, core.Object> toJson() { |
| 4760 var _json = new core.Map(); | 4792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4761 if (type != null) { | 4793 if (type != null) { |
| 4762 _json["type"] = type; | 4794 _json["type"] = type; |
| 4763 } | 4795 } |
| 4764 if (value != null) { | 4796 if (value != null) { |
| 4765 _json["value"] = value; | 4797 _json["value"] = value; |
| 4766 } | 4798 } |
| 4767 return _json; | 4799 return _json; |
| 4768 } | 4800 } |
| 4769 } | 4801 } |
| 4770 | 4802 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4781 | 4813 |
| 4782 RecaptchaChallenge.fromJson(core.Map _json) { | 4814 RecaptchaChallenge.fromJson(core.Map _json) { |
| 4783 if (_json.containsKey("id")) { | 4815 if (_json.containsKey("id")) { |
| 4784 id = _json["id"]; | 4816 id = _json["id"]; |
| 4785 } | 4817 } |
| 4786 if (_json.containsKey("response")) { | 4818 if (_json.containsKey("response")) { |
| 4787 response = _json["response"]; | 4819 response = _json["response"]; |
| 4788 } | 4820 } |
| 4789 } | 4821 } |
| 4790 | 4822 |
| 4791 core.Map toJson() { | 4823 core.Map<core.String, core.Object> toJson() { |
| 4792 var _json = new core.Map(); | 4824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4793 if (id != null) { | 4825 if (id != null) { |
| 4794 _json["id"] = id; | 4826 _json["id"] = id; |
| 4795 } | 4827 } |
| 4796 if (response != null) { | 4828 if (response != null) { |
| 4797 _json["response"] = response; | 4829 _json["response"] = response; |
| 4798 } | 4830 } |
| 4799 return _json; | 4831 return _json; |
| 4800 } | 4832 } |
| 4801 } | 4833 } |
| 4802 | 4834 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 4829 partnersSessionId = _json["partnersSessionId"]; | 4861 partnersSessionId = _json["partnersSessionId"]; |
| 4830 } | 4862 } |
| 4831 if (_json.containsKey("trafficSource")) { | 4863 if (_json.containsKey("trafficSource")) { |
| 4832 trafficSource = new TrafficSource.fromJson(_json["trafficSource"]); | 4864 trafficSource = new TrafficSource.fromJson(_json["trafficSource"]); |
| 4833 } | 4865 } |
| 4834 if (_json.containsKey("userOverrides")) { | 4866 if (_json.containsKey("userOverrides")) { |
| 4835 userOverrides = new UserOverrides.fromJson(_json["userOverrides"]); | 4867 userOverrides = new UserOverrides.fromJson(_json["userOverrides"]); |
| 4836 } | 4868 } |
| 4837 } | 4869 } |
| 4838 | 4870 |
| 4839 core.Map toJson() { | 4871 core.Map<core.String, core.Object> toJson() { |
| 4840 var _json = new core.Map(); | 4872 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4841 if (experimentIds != null) { | 4873 if (experimentIds != null) { |
| 4842 _json["experimentIds"] = experimentIds; | 4874 _json["experimentIds"] = experimentIds; |
| 4843 } | 4875 } |
| 4844 if (locale != null) { | 4876 if (locale != null) { |
| 4845 _json["locale"] = locale; | 4877 _json["locale"] = locale; |
| 4846 } | 4878 } |
| 4847 if (partnersSessionId != null) { | 4879 if (partnersSessionId != null) { |
| 4848 _json["partnersSessionId"] = partnersSessionId; | 4880 _json["partnersSessionId"] = partnersSessionId; |
| 4849 } | 4881 } |
| 4850 if (trafficSource != null) { | 4882 if (trafficSource != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 4863 DebugInfo debugInfo; | 4895 DebugInfo debugInfo; |
| 4864 | 4896 |
| 4865 ResponseMetadata(); | 4897 ResponseMetadata(); |
| 4866 | 4898 |
| 4867 ResponseMetadata.fromJson(core.Map _json) { | 4899 ResponseMetadata.fromJson(core.Map _json) { |
| 4868 if (_json.containsKey("debugInfo")) { | 4900 if (_json.containsKey("debugInfo")) { |
| 4869 debugInfo = new DebugInfo.fromJson(_json["debugInfo"]); | 4901 debugInfo = new DebugInfo.fromJson(_json["debugInfo"]); |
| 4870 } | 4902 } |
| 4871 } | 4903 } |
| 4872 | 4904 |
| 4873 core.Map toJson() { | 4905 core.Map<core.String, core.Object> toJson() { |
| 4874 var _json = new core.Map(); | 4906 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4875 if (debugInfo != null) { | 4907 if (debugInfo != null) { |
| 4876 _json["debugInfo"] = (debugInfo).toJson(); | 4908 _json["debugInfo"] = (debugInfo).toJson(); |
| 4877 } | 4909 } |
| 4878 return _json; | 4910 return _json; |
| 4879 } | 4911 } |
| 4880 } | 4912 } |
| 4881 | 4913 |
| 4882 /** Agency specialization status */ | 4914 /** Agency specialization status */ |
| 4883 class SpecializationStatus { | 4915 class SpecializationStatus { |
| 4884 /** | 4916 /** |
| (...skipping 21 matching lines...) Expand all Loading... |
| 4906 | 4938 |
| 4907 SpecializationStatus.fromJson(core.Map _json) { | 4939 SpecializationStatus.fromJson(core.Map _json) { |
| 4908 if (_json.containsKey("badgeSpecialization")) { | 4940 if (_json.containsKey("badgeSpecialization")) { |
| 4909 badgeSpecialization = _json["badgeSpecialization"]; | 4941 badgeSpecialization = _json["badgeSpecialization"]; |
| 4910 } | 4942 } |
| 4911 if (_json.containsKey("badgeSpecializationState")) { | 4943 if (_json.containsKey("badgeSpecializationState")) { |
| 4912 badgeSpecializationState = _json["badgeSpecializationState"]; | 4944 badgeSpecializationState = _json["badgeSpecializationState"]; |
| 4913 } | 4945 } |
| 4914 } | 4946 } |
| 4915 | 4947 |
| 4916 core.Map toJson() { | 4948 core.Map<core.String, core.Object> toJson() { |
| 4917 var _json = new core.Map(); | 4949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4918 if (badgeSpecialization != null) { | 4950 if (badgeSpecialization != null) { |
| 4919 _json["badgeSpecialization"] = badgeSpecialization; | 4951 _json["badgeSpecialization"] = badgeSpecialization; |
| 4920 } | 4952 } |
| 4921 if (badgeSpecializationState != null) { | 4953 if (badgeSpecializationState != null) { |
| 4922 _json["badgeSpecializationState"] = badgeSpecializationState; | 4954 _json["badgeSpecializationState"] = badgeSpecializationState; |
| 4923 } | 4955 } |
| 4924 return _json; | 4956 return _json; |
| 4925 } | 4957 } |
| 4926 } | 4958 } |
| 4927 | 4959 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4944 | 4976 |
| 4945 TrafficSource.fromJson(core.Map _json) { | 4977 TrafficSource.fromJson(core.Map _json) { |
| 4946 if (_json.containsKey("trafficSourceId")) { | 4978 if (_json.containsKey("trafficSourceId")) { |
| 4947 trafficSourceId = _json["trafficSourceId"]; | 4979 trafficSourceId = _json["trafficSourceId"]; |
| 4948 } | 4980 } |
| 4949 if (_json.containsKey("trafficSubId")) { | 4981 if (_json.containsKey("trafficSubId")) { |
| 4950 trafficSubId = _json["trafficSubId"]; | 4982 trafficSubId = _json["trafficSubId"]; |
| 4951 } | 4983 } |
| 4952 } | 4984 } |
| 4953 | 4985 |
| 4954 core.Map toJson() { | 4986 core.Map<core.String, core.Object> toJson() { |
| 4955 var _json = new core.Map(); | 4987 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4956 if (trafficSourceId != null) { | 4988 if (trafficSourceId != null) { |
| 4957 _json["trafficSourceId"] = trafficSourceId; | 4989 _json["trafficSourceId"] = trafficSourceId; |
| 4958 } | 4990 } |
| 4959 if (trafficSubId != null) { | 4991 if (trafficSubId != null) { |
| 4960 _json["trafficSubId"] = trafficSubId; | 4992 _json["trafficSubId"] = trafficSubId; |
| 4961 } | 4993 } |
| 4962 return _json; | 4994 return _json; |
| 4963 } | 4995 } |
| 4964 } | 4996 } |
| 4965 | 4997 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 4990 */ | 5022 */ |
| 4991 core.String companyVerificationEmail; | 5023 core.String companyVerificationEmail; |
| 4992 /** | 5024 /** |
| 4993 * The list of exams the user ever taken. For each type of exam, only one | 5025 * The list of exams the user ever taken. For each type of exam, only one |
| 4994 * entry is listed. | 5026 * entry is listed. |
| 4995 */ | 5027 */ |
| 4996 core.List<ExamStatus> examStatus; | 5028 core.List<ExamStatus> examStatus; |
| 4997 /** The ID of the user. */ | 5029 /** The ID of the user. */ |
| 4998 core.String id; | 5030 core.String id; |
| 4999 /** | 5031 /** |
| 5032 * The internal user ID. |
| 5033 * Only available for a whitelisted set of api clients. |
| 5034 */ |
| 5035 core.String internalId; |
| 5036 /** |
| 5000 * The most recent time the user interacted with the Partners site. | 5037 * The most recent time the user interacted with the Partners site. |
| 5001 * @OutputOnly | 5038 * @OutputOnly |
| 5002 */ | 5039 */ |
| 5003 core.String lastAccessTime; | 5040 core.String lastAccessTime; |
| 5004 /** | 5041 /** |
| 5005 * The list of emails the user has access to/can select as primary. | 5042 * The list of emails the user has access to/can select as primary. |
| 5006 * @OutputOnly | 5043 * @OutputOnly |
| 5007 */ | 5044 */ |
| 5008 core.List<core.String> primaryEmails; | 5045 core.List<core.String> primaryEmails; |
| 5009 /** | 5046 /** |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5030 } | 5067 } |
| 5031 if (_json.containsKey("companyVerificationEmail")) { | 5068 if (_json.containsKey("companyVerificationEmail")) { |
| 5032 companyVerificationEmail = _json["companyVerificationEmail"]; | 5069 companyVerificationEmail = _json["companyVerificationEmail"]; |
| 5033 } | 5070 } |
| 5034 if (_json.containsKey("examStatus")) { | 5071 if (_json.containsKey("examStatus")) { |
| 5035 examStatus = _json["examStatus"].map((value) => new ExamStatus.fromJson(va
lue)).toList(); | 5072 examStatus = _json["examStatus"].map((value) => new ExamStatus.fromJson(va
lue)).toList(); |
| 5036 } | 5073 } |
| 5037 if (_json.containsKey("id")) { | 5074 if (_json.containsKey("id")) { |
| 5038 id = _json["id"]; | 5075 id = _json["id"]; |
| 5039 } | 5076 } |
| 5077 if (_json.containsKey("internalId")) { |
| 5078 internalId = _json["internalId"]; |
| 5079 } |
| 5040 if (_json.containsKey("lastAccessTime")) { | 5080 if (_json.containsKey("lastAccessTime")) { |
| 5041 lastAccessTime = _json["lastAccessTime"]; | 5081 lastAccessTime = _json["lastAccessTime"]; |
| 5042 } | 5082 } |
| 5043 if (_json.containsKey("primaryEmails")) { | 5083 if (_json.containsKey("primaryEmails")) { |
| 5044 primaryEmails = _json["primaryEmails"]; | 5084 primaryEmails = _json["primaryEmails"]; |
| 5045 } | 5085 } |
| 5046 if (_json.containsKey("profile")) { | 5086 if (_json.containsKey("profile")) { |
| 5047 profile = new UserProfile.fromJson(_json["profile"]); | 5087 profile = new UserProfile.fromJson(_json["profile"]); |
| 5048 } | 5088 } |
| 5049 if (_json.containsKey("publicProfile")) { | 5089 if (_json.containsKey("publicProfile")) { |
| 5050 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); | 5090 publicProfile = new PublicProfile.fromJson(_json["publicProfile"]); |
| 5051 } | 5091 } |
| 5052 } | 5092 } |
| 5053 | 5093 |
| 5054 core.Map toJson() { | 5094 core.Map<core.String, core.Object> toJson() { |
| 5055 var _json = new core.Map(); | 5095 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5056 if (availableAdwordsManagerAccounts != null) { | 5096 if (availableAdwordsManagerAccounts != null) { |
| 5057 _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts
.map((value) => (value).toJson()).toList(); | 5097 _json["availableAdwordsManagerAccounts"] = availableAdwordsManagerAccounts
.map((value) => (value).toJson()).toList(); |
| 5058 } | 5098 } |
| 5059 if (certificationStatus != null) { | 5099 if (certificationStatus != null) { |
| 5060 _json["certificationStatus"] = certificationStatus.map((value) => (value).
toJson()).toList(); | 5100 _json["certificationStatus"] = certificationStatus.map((value) => (value).
toJson()).toList(); |
| 5061 } | 5101 } |
| 5062 if (company != null) { | 5102 if (company != null) { |
| 5063 _json["company"] = (company).toJson(); | 5103 _json["company"] = (company).toJson(); |
| 5064 } | 5104 } |
| 5065 if (companyVerificationEmail != null) { | 5105 if (companyVerificationEmail != null) { |
| 5066 _json["companyVerificationEmail"] = companyVerificationEmail; | 5106 _json["companyVerificationEmail"] = companyVerificationEmail; |
| 5067 } | 5107 } |
| 5068 if (examStatus != null) { | 5108 if (examStatus != null) { |
| 5069 _json["examStatus"] = examStatus.map((value) => (value).toJson()).toList()
; | 5109 _json["examStatus"] = examStatus.map((value) => (value).toJson()).toList()
; |
| 5070 } | 5110 } |
| 5071 if (id != null) { | 5111 if (id != null) { |
| 5072 _json["id"] = id; | 5112 _json["id"] = id; |
| 5073 } | 5113 } |
| 5114 if (internalId != null) { |
| 5115 _json["internalId"] = internalId; |
| 5116 } |
| 5074 if (lastAccessTime != null) { | 5117 if (lastAccessTime != null) { |
| 5075 _json["lastAccessTime"] = lastAccessTime; | 5118 _json["lastAccessTime"] = lastAccessTime; |
| 5076 } | 5119 } |
| 5077 if (primaryEmails != null) { | 5120 if (primaryEmails != null) { |
| 5078 _json["primaryEmails"] = primaryEmails; | 5121 _json["primaryEmails"] = primaryEmails; |
| 5079 } | 5122 } |
| 5080 if (profile != null) { | 5123 if (profile != null) { |
| 5081 _json["profile"] = (profile).toJson(); | 5124 _json["profile"] = (profile).toJson(); |
| 5082 } | 5125 } |
| 5083 if (publicProfile != null) { | 5126 if (publicProfile != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5101 | 5144 |
| 5102 UserOverrides.fromJson(core.Map _json) { | 5145 UserOverrides.fromJson(core.Map _json) { |
| 5103 if (_json.containsKey("ipAddress")) { | 5146 if (_json.containsKey("ipAddress")) { |
| 5104 ipAddress = _json["ipAddress"]; | 5147 ipAddress = _json["ipAddress"]; |
| 5105 } | 5148 } |
| 5106 if (_json.containsKey("userId")) { | 5149 if (_json.containsKey("userId")) { |
| 5107 userId = _json["userId"]; | 5150 userId = _json["userId"]; |
| 5108 } | 5151 } |
| 5109 } | 5152 } |
| 5110 | 5153 |
| 5111 core.Map toJson() { | 5154 core.Map<core.String, core.Object> toJson() { |
| 5112 var _json = new core.Map(); | 5155 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5113 if (ipAddress != null) { | 5156 if (ipAddress != null) { |
| 5114 _json["ipAddress"] = ipAddress; | 5157 _json["ipAddress"] = ipAddress; |
| 5115 } | 5158 } |
| 5116 if (userId != null) { | 5159 if (userId != null) { |
| 5117 _json["userId"] = userId; | 5160 _json["userId"] = userId; |
| 5118 } | 5161 } |
| 5119 return _json; | 5162 return _json; |
| 5120 } | 5163 } |
| 5121 } | 5164 } |
| 5122 | 5165 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5201 phoneNumber = _json["phoneNumber"]; | 5244 phoneNumber = _json["phoneNumber"]; |
| 5202 } | 5245 } |
| 5203 if (_json.containsKey("primaryCountryCode")) { | 5246 if (_json.containsKey("primaryCountryCode")) { |
| 5204 primaryCountryCode = _json["primaryCountryCode"]; | 5247 primaryCountryCode = _json["primaryCountryCode"]; |
| 5205 } | 5248 } |
| 5206 if (_json.containsKey("profilePublic")) { | 5249 if (_json.containsKey("profilePublic")) { |
| 5207 profilePublic = _json["profilePublic"]; | 5250 profilePublic = _json["profilePublic"]; |
| 5208 } | 5251 } |
| 5209 } | 5252 } |
| 5210 | 5253 |
| 5211 core.Map toJson() { | 5254 core.Map<core.String, core.Object> toJson() { |
| 5212 var _json = new core.Map(); | 5255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 5213 if (address != null) { | 5256 if (address != null) { |
| 5214 _json["address"] = (address).toJson(); | 5257 _json["address"] = (address).toJson(); |
| 5215 } | 5258 } |
| 5216 if (adwordsManagerAccount != null) { | 5259 if (adwordsManagerAccount != null) { |
| 5217 _json["adwordsManagerAccount"] = adwordsManagerAccount; | 5260 _json["adwordsManagerAccount"] = adwordsManagerAccount; |
| 5218 } | 5261 } |
| 5219 if (channels != null) { | 5262 if (channels != null) { |
| 5220 _json["channels"] = channels; | 5263 _json["channels"] = channels; |
| 5221 } | 5264 } |
| 5222 if (emailAddress != null) { | 5265 if (emailAddress != null) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 5248 } | 5291 } |
| 5249 if (primaryCountryCode != null) { | 5292 if (primaryCountryCode != null) { |
| 5250 _json["primaryCountryCode"] = primaryCountryCode; | 5293 _json["primaryCountryCode"] = primaryCountryCode; |
| 5251 } | 5294 } |
| 5252 if (profilePublic != null) { | 5295 if (profilePublic != null) { |
| 5253 _json["profilePublic"] = profilePublic; | 5296 _json["profilePublic"] = profilePublic; |
| 5254 } | 5297 } |
| 5255 return _json; | 5298 return _json; |
| 5256 } | 5299 } |
| 5257 } | 5300 } |
| OLD | NEW |