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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 body: _body, | 76 body: _body, |
77 queryParams: _queryParams, | 77 queryParams: _queryParams, |
78 uploadOptions: _uploadOptions, | 78 uploadOptions: _uploadOptions, |
79 uploadMedia: _uploadMedia, | 79 uploadMedia: _uploadMedia, |
80 downloadOptions: _downloadOptions); | 80 downloadOptions: _downloadOptions); |
81 return _response.then((data) => new AccountsAuthInfoResponse.fromJson(data))
; | 81 return _response.then((data) => new AccountsAuthInfoResponse.fromJson(data))
; |
82 } | 82 } |
83 | 83 |
84 /** | 84 /** |
85 * Claims the website of a Merchant Center sub-account. This method can only | 85 * Claims the website of a Merchant Center sub-account. This method can only |
86 * be called for multi-client accounts. | 86 * be called for accounts to which the managing account has access: either the |
| 87 * managing account itself or sub-accounts if the managing account is a |
| 88 * multi-client account. |
87 * | 89 * |
88 * Request parameters: | 90 * Request parameters: |
89 * | 91 * |
90 * [merchantId] - The ID of the managing account. | 92 * [merchantId] - The ID of the managing account. |
91 * | 93 * |
92 * [accountId] - The ID of the account whose website is claimed. | 94 * [accountId] - The ID of the account whose website is claimed. |
93 * | 95 * |
94 * [overwrite] - Flag to remove any existing claim on the requested website by | 96 * [overwrite] - Flag to remove any existing claim on the requested website by |
95 * another account and replace it with a claim from this account. | 97 * another account and replace it with a claim from this account. |
96 * | 98 * |
(...skipping 11014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11113 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
11112 if (unit != null) { | 11114 if (unit != null) { |
11113 _json["unit"] = unit; | 11115 _json["unit"] = unit; |
11114 } | 11116 } |
11115 if (value != null) { | 11117 if (value != null) { |
11116 _json["value"] = value; | 11118 _json["value"] = value; |
11117 } | 11119 } |
11118 return _json; | 11120 return _json; |
11119 } | 11121 } |
11120 } | 11122 } |
OLD | NEW |