| 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.content.v2; | 3 library googleapis.content.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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 body: _body, | 320 body: _body, |
| 321 queryParams: _queryParams, | 321 queryParams: _queryParams, |
| 322 uploadOptions: _uploadOptions, | 322 uploadOptions: _uploadOptions, |
| 323 uploadMedia: _uploadMedia, | 323 uploadMedia: _uploadMedia, |
| 324 downloadOptions: _downloadOptions); | 324 downloadOptions: _downloadOptions); |
| 325 return _response.then((data) => new AccountsListResponse.fromJson(data)); | 325 return _response.then((data) => new AccountsListResponse.fromJson(data)); |
| 326 } | 326 } |
| 327 | 327 |
| 328 /** | 328 /** |
| 329 * Updates a Merchant Center account. This method can only be called for | 329 * Updates a Merchant Center account. This method can only be called for |
| 330 * multi-client accounts. This method supports patch semantics. | 330 * accounts to which the managing account has access: either the managing |
| 331 * account itself or sub-accounts if the managing account is a multi-client |
| 332 * account. This method supports patch semantics. |
| 331 * | 333 * |
| 332 * [request] - The metadata request object. | 334 * [request] - The metadata request object. |
| 333 * | 335 * |
| 334 * Request parameters: | 336 * Request parameters: |
| 335 * | 337 * |
| 336 * [merchantId] - The ID of the managing account. | 338 * [merchantId] - The ID of the managing account. |
| 337 * | 339 * |
| 338 * [accountId] - The ID of the account. | 340 * [accountId] - The ID of the account. |
| 339 * | 341 * |
| 340 * [dryRun] - Flag to run the request in dry-run mode. | 342 * [dryRun] - Flag to run the request in dry-run mode. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 body: _body, | 377 body: _body, |
| 376 queryParams: _queryParams, | 378 queryParams: _queryParams, |
| 377 uploadOptions: _uploadOptions, | 379 uploadOptions: _uploadOptions, |
| 378 uploadMedia: _uploadMedia, | 380 uploadMedia: _uploadMedia, |
| 379 downloadOptions: _downloadOptions); | 381 downloadOptions: _downloadOptions); |
| 380 return _response.then((data) => new Account.fromJson(data)); | 382 return _response.then((data) => new Account.fromJson(data)); |
| 381 } | 383 } |
| 382 | 384 |
| 383 /** | 385 /** |
| 384 * Updates a Merchant Center account. This method can only be called for | 386 * Updates a Merchant Center account. This method can only be called for |
| 385 * multi-client accounts. | 387 * accounts to which the managing account has access: either the managing |
| 388 * account itself or sub-accounts if the managing account is a multi-client |
| 389 * account. |
| 386 * | 390 * |
| 387 * [request] - The metadata request object. | 391 * [request] - The metadata request object. |
| 388 * | 392 * |
| 389 * Request parameters: | 393 * Request parameters: |
| 390 * | 394 * |
| 391 * [merchantId] - The ID of the managing account. | 395 * [merchantId] - The ID of the managing account. |
| 392 * | 396 * |
| 393 * [accountId] - The ID of the account. | 397 * [accountId] - The ID of the account. |
| 394 * | 398 * |
| 395 * [dryRun] - Flag to run the request in dry-run mode. | 399 * [dryRun] - Flag to run the request in dry-run mode. |
| (...skipping 2839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3235 | 3239 |
| 3236 } | 3240 } |
| 3237 | 3241 |
| 3238 | 3242 |
| 3239 | 3243 |
| 3240 /** Account data. */ | 3244 /** Account data. */ |
| 3241 class Account { | 3245 class Account { |
| 3242 /** Indicates whether the merchant sells adult content. */ | 3246 /** Indicates whether the merchant sells adult content. */ |
| 3243 core.bool adultContent; | 3247 core.bool adultContent; |
| 3244 /** | 3248 /** |
| 3245 * List of linked AdWords accounts, active or pending approval. To create a | 3249 * List of linked AdWords accounts that are active or pending approval. To |
| 3246 * new link request, add a new link with status active to the list. It will | 3250 * create a new link request, add a new link with status active to the list. |
| 3247 * remain is state pending until approved or rejected in the AdWords | 3251 * It will remain in a pending state until approved or rejected either in the |
| 3248 * interface. To delete an active link or to cancel a link request, remove it | 3252 * AdWords interface or through the AdWords API. To delete an active link, or |
| 3249 * from the list. | 3253 * to cancel a link request, remove it from the list. |
| 3250 */ | 3254 */ |
| 3251 core.List<AccountAdwordsLink> adwordsLinks; | 3255 core.List<AccountAdwordsLink> adwordsLinks; |
| 3252 /** Merchant Center account ID. */ | 3256 /** Merchant Center account ID. */ |
| 3253 core.String id; | 3257 core.String id; |
| 3254 /** | 3258 /** |
| 3255 * Identifies what kind of resource this is. Value: the fixed string | 3259 * Identifies what kind of resource this is. Value: the fixed string |
| 3256 * "content#account". | 3260 * "content#account". |
| 3257 */ | 3261 */ |
| 3258 core.String kind; | 3262 core.String kind; |
| 3259 /** Display name for the account. */ | 3263 /** Display name for the account. */ |
| (...skipping 8776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12036 var _json = new core.Map(); | 12040 var _json = new core.Map(); |
| 12037 if (unit != null) { | 12041 if (unit != null) { |
| 12038 _json["unit"] = unit; | 12042 _json["unit"] = unit; |
| 12039 } | 12043 } |
| 12040 if (value != null) { | 12044 if (value != null) { |
| 12041 _json["value"] = value; | 12045 _json["value"] = value; |
| 12042 } | 12046 } |
| 12043 return _json; | 12047 return _json; |
| 12044 } | 12048 } |
| 12045 } | 12049 } |
| OLD | NEW |