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

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

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 } 81 }
82 82
83 /** 83 /**
84 * Retrieves, inserts, updates, and deletes multiple Merchant Center 84 * Retrieves, inserts, updates, and deletes multiple Merchant Center
85 * (sub-)accounts in a single request. 85 * (sub-)accounts in a single request.
86 * 86 *
87 * [request] - The metadata request object. 87 * [request] - The metadata request object.
88 * 88 *
89 * Request parameters: 89 * Request parameters:
90 * 90 *
91 * [dryRun] - Flag to run the request in dry-run mode.
92 *
91 * Completes with a [AccountsCustomBatchResponse]. 93 * Completes with a [AccountsCustomBatchResponse].
92 * 94 *
93 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 95 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
94 * error. 96 * error.
95 * 97 *
96 * If the used [http.Client] completes with an error when making a REST call, 98 * If the used [http.Client] completes with an error when making a REST call,
97 * this method will complete with the same error. 99 * this method will complete with the same error.
98 */ 100 */
99 async.Future<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchReque st request) { 101 async.Future<AccountsCustomBatchResponse> custombatch(AccountsCustomBatchReque st request, {core.bool dryRun}) {
100 var _url = null; 102 var _url = null;
101 var _queryParams = new core.Map(); 103 var _queryParams = new core.Map();
102 var _uploadMedia = null; 104 var _uploadMedia = null;
103 var _uploadOptions = null; 105 var _uploadOptions = null;
104 var _downloadOptions = commons.DownloadOptions.Metadata; 106 var _downloadOptions = commons.DownloadOptions.Metadata;
105 var _body = null; 107 var _body = null;
106 108
107 if (request != null) { 109 if (request != null) {
108 _body = convert.JSON.encode((request).toJson()); 110 _body = convert.JSON.encode((request).toJson());
109 } 111 }
112 if (dryRun != null) {
113 _queryParams["dryRun"] = ["${dryRun}"];
114 }
110 115
111 _url = 'accounts/batch'; 116 _url = 'accounts/batch';
112 117
113 var _response = _requester.request(_url, 118 var _response = _requester.request(_url,
114 "POST", 119 "POST",
115 body: _body, 120 body: _body,
116 queryParams: _queryParams, 121 queryParams: _queryParams,
117 uploadOptions: _uploadOptions, 122 uploadOptions: _uploadOptions,
118 uploadMedia: _uploadMedia, 123 uploadMedia: _uploadMedia,
119 downloadOptions: _downloadOptions); 124 downloadOptions: _downloadOptions);
120 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat a)); 125 return _response.then((data) => new AccountsCustomBatchResponse.fromJson(dat a));
121 } 126 }
122 127
123 /** 128 /**
124 * Deletes a Merchant Center sub-account. 129 * Deletes a Merchant Center sub-account.
125 * 130 *
126 * Request parameters: 131 * Request parameters:
127 * 132 *
128 * [merchantId] - The ID of the managing account. 133 * [merchantId] - The ID of the managing account.
129 * 134 *
130 * [accountId] - The ID of the account. 135 * [accountId] - The ID of the account.
131 * 136 *
137 * [dryRun] - Flag to run the request in dry-run mode.
138 *
132 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 139 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
133 * error. 140 * error.
134 * 141 *
135 * If the used [http.Client] completes with an error when making a REST call, 142 * If the used [http.Client] completes with an error when making a REST call,
136 * this method will complete with the same error. 143 * this method will complete with the same error.
137 */ 144 */
138 async.Future delete(core.String merchantId, core.String accountId) { 145 async.Future delete(core.String merchantId, core.String accountId, {core.bool dryRun}) {
139 var _url = null; 146 var _url = null;
140 var _queryParams = new core.Map(); 147 var _queryParams = new core.Map();
141 var _uploadMedia = null; 148 var _uploadMedia = null;
142 var _uploadOptions = null; 149 var _uploadOptions = null;
143 var _downloadOptions = commons.DownloadOptions.Metadata; 150 var _downloadOptions = commons.DownloadOptions.Metadata;
144 var _body = null; 151 var _body = null;
145 152
146 if (merchantId == null) { 153 if (merchantId == null) {
147 throw new core.ArgumentError("Parameter merchantId is required."); 154 throw new core.ArgumentError("Parameter merchantId is required.");
148 } 155 }
149 if (accountId == null) { 156 if (accountId == null) {
150 throw new core.ArgumentError("Parameter accountId is required."); 157 throw new core.ArgumentError("Parameter accountId is required.");
151 } 158 }
159 if (dryRun != null) {
160 _queryParams["dryRun"] = ["${dryRun}"];
161 }
152 162
153 _downloadOptions = null; 163 _downloadOptions = null;
154 164
155 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId'); 165 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId');
156 166
157 var _response = _requester.request(_url, 167 var _response = _requester.request(_url,
158 "DELETE", 168 "DELETE",
159 body: _body, 169 body: _body,
160 queryParams: _queryParams, 170 queryParams: _queryParams,
161 uploadOptions: _uploadOptions, 171 uploadOptions: _uploadOptions,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 220
211 /** 221 /**
212 * Creates a Merchant Center sub-account. 222 * Creates a Merchant Center sub-account.
213 * 223 *
214 * [request] - The metadata request object. 224 * [request] - The metadata request object.
215 * 225 *
216 * Request parameters: 226 * Request parameters:
217 * 227 *
218 * [merchantId] - The ID of the managing account. 228 * [merchantId] - The ID of the managing account.
219 * 229 *
230 * [dryRun] - Flag to run the request in dry-run mode.
231 *
220 * Completes with a [Account]. 232 * Completes with a [Account].
221 * 233 *
222 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 234 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
223 * error. 235 * error.
224 * 236 *
225 * If the used [http.Client] completes with an error when making a REST call, 237 * If the used [http.Client] completes with an error when making a REST call,
226 * this method will complete with the same error. 238 * this method will complete with the same error.
227 */ 239 */
228 async.Future<Account> insert(Account request, core.String merchantId) { 240 async.Future<Account> insert(Account request, core.String merchantId, {core.bo ol dryRun}) {
229 var _url = null; 241 var _url = null;
230 var _queryParams = new core.Map(); 242 var _queryParams = new core.Map();
231 var _uploadMedia = null; 243 var _uploadMedia = null;
232 var _uploadOptions = null; 244 var _uploadOptions = null;
233 var _downloadOptions = commons.DownloadOptions.Metadata; 245 var _downloadOptions = commons.DownloadOptions.Metadata;
234 var _body = null; 246 var _body = null;
235 247
236 if (request != null) { 248 if (request != null) {
237 _body = convert.JSON.encode((request).toJson()); 249 _body = convert.JSON.encode((request).toJson());
238 } 250 }
239 if (merchantId == null) { 251 if (merchantId == null) {
240 throw new core.ArgumentError("Parameter merchantId is required."); 252 throw new core.ArgumentError("Parameter merchantId is required.");
241 } 253 }
254 if (dryRun != null) {
255 _queryParams["dryRun"] = ["${dryRun}"];
256 }
242 257
243 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts'; 258 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts';
244 259
245 var _response = _requester.request(_url, 260 var _response = _requester.request(_url,
246 "POST", 261 "POST",
247 body: _body, 262 body: _body,
248 queryParams: _queryParams, 263 queryParams: _queryParams,
249 uploadOptions: _uploadOptions, 264 uploadOptions: _uploadOptions,
250 uploadMedia: _uploadMedia, 265 uploadMedia: _uploadMedia,
251 downloadOptions: _downloadOptions); 266 downloadOptions: _downloadOptions);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 * Updates a Merchant Center account. This method supports patch semantics. 321 * Updates a Merchant Center account. This method supports patch semantics.
307 * 322 *
308 * [request] - The metadata request object. 323 * [request] - The metadata request object.
309 * 324 *
310 * Request parameters: 325 * Request parameters:
311 * 326 *
312 * [merchantId] - The ID of the managing account. 327 * [merchantId] - The ID of the managing account.
313 * 328 *
314 * [accountId] - The ID of the account. 329 * [accountId] - The ID of the account.
315 * 330 *
331 * [dryRun] - Flag to run the request in dry-run mode.
332 *
316 * Completes with a [Account]. 333 * Completes with a [Account].
317 * 334 *
318 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 335 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
319 * error. 336 * error.
320 * 337 *
321 * If the used [http.Client] completes with an error when making a REST call, 338 * If the used [http.Client] completes with an error when making a REST call,
322 * this method will complete with the same error. 339 * this method will complete with the same error.
323 */ 340 */
324 async.Future<Account> patch(Account request, core.String merchantId, core.Stri ng accountId) { 341 async.Future<Account> patch(Account request, core.String merchantId, core.Stri ng accountId, {core.bool dryRun}) {
325 var _url = null; 342 var _url = null;
326 var _queryParams = new core.Map(); 343 var _queryParams = new core.Map();
327 var _uploadMedia = null; 344 var _uploadMedia = null;
328 var _uploadOptions = null; 345 var _uploadOptions = null;
329 var _downloadOptions = commons.DownloadOptions.Metadata; 346 var _downloadOptions = commons.DownloadOptions.Metadata;
330 var _body = null; 347 var _body = null;
331 348
332 if (request != null) { 349 if (request != null) {
333 _body = convert.JSON.encode((request).toJson()); 350 _body = convert.JSON.encode((request).toJson());
334 } 351 }
335 if (merchantId == null) { 352 if (merchantId == null) {
336 throw new core.ArgumentError("Parameter merchantId is required."); 353 throw new core.ArgumentError("Parameter merchantId is required.");
337 } 354 }
338 if (accountId == null) { 355 if (accountId == null) {
339 throw new core.ArgumentError("Parameter accountId is required."); 356 throw new core.ArgumentError("Parameter accountId is required.");
340 } 357 }
358 if (dryRun != null) {
359 _queryParams["dryRun"] = ["${dryRun}"];
360 }
341 361
342 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId'); 362 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId');
343 363
344 var _response = _requester.request(_url, 364 var _response = _requester.request(_url,
345 "PATCH", 365 "PATCH",
346 body: _body, 366 body: _body,
347 queryParams: _queryParams, 367 queryParams: _queryParams,
348 uploadOptions: _uploadOptions, 368 uploadOptions: _uploadOptions,
349 uploadMedia: _uploadMedia, 369 uploadMedia: _uploadMedia,
350 downloadOptions: _downloadOptions); 370 downloadOptions: _downloadOptions);
351 return _response.then((data) => new Account.fromJson(data)); 371 return _response.then((data) => new Account.fromJson(data));
352 } 372 }
353 373
354 /** 374 /**
355 * Updates a Merchant Center account. 375 * Updates a Merchant Center account.
356 * 376 *
357 * [request] - The metadata request object. 377 * [request] - The metadata request object.
358 * 378 *
359 * Request parameters: 379 * Request parameters:
360 * 380 *
361 * [merchantId] - The ID of the managing account. 381 * [merchantId] - The ID of the managing account.
362 * 382 *
363 * [accountId] - The ID of the account. 383 * [accountId] - The ID of the account.
364 * 384 *
385 * [dryRun] - Flag to run the request in dry-run mode.
386 *
365 * Completes with a [Account]. 387 * Completes with a [Account].
366 * 388 *
367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
368 * error. 390 * error.
369 * 391 *
370 * If the used [http.Client] completes with an error when making a REST call, 392 * If the used [http.Client] completes with an error when making a REST call,
371 * this method will complete with the same error. 393 * this method will complete with the same error.
372 */ 394 */
373 async.Future<Account> update(Account request, core.String merchantId, core.Str ing accountId) { 395 async.Future<Account> update(Account request, core.String merchantId, core.Str ing accountId, {core.bool dryRun}) {
374 var _url = null; 396 var _url = null;
375 var _queryParams = new core.Map(); 397 var _queryParams = new core.Map();
376 var _uploadMedia = null; 398 var _uploadMedia = null;
377 var _uploadOptions = null; 399 var _uploadOptions = null;
378 var _downloadOptions = commons.DownloadOptions.Metadata; 400 var _downloadOptions = commons.DownloadOptions.Metadata;
379 var _body = null; 401 var _body = null;
380 402
381 if (request != null) { 403 if (request != null) {
382 _body = convert.JSON.encode((request).toJson()); 404 _body = convert.JSON.encode((request).toJson());
383 } 405 }
384 if (merchantId == null) { 406 if (merchantId == null) {
385 throw new core.ArgumentError("Parameter merchantId is required."); 407 throw new core.ArgumentError("Parameter merchantId is required.");
386 } 408 }
387 if (accountId == null) { 409 if (accountId == null) {
388 throw new core.ArgumentError("Parameter accountId is required."); 410 throw new core.ArgumentError("Parameter accountId is required.");
389 } 411 }
412 if (dryRun != null) {
413 _queryParams["dryRun"] = ["${dryRun}"];
414 }
390 415
391 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId'); 416 _url = commons.Escaper.ecapeVariable('$merchantId') + '/accounts/' + commons .Escaper.ecapeVariable('$accountId');
392 417
393 var _response = _requester.request(_url, 418 var _response = _requester.request(_url,
394 "PUT", 419 "PUT",
395 body: _body, 420 body: _body,
396 queryParams: _queryParams, 421 queryParams: _queryParams,
397 uploadOptions: _uploadOptions, 422 uploadOptions: _uploadOptions,
398 uploadMedia: _uploadMedia, 423 uploadMedia: _uploadMedia,
399 downloadOptions: _downloadOptions); 424 downloadOptions: _downloadOptions);
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 final commons.ApiRequester _requester; 1093 final commons.ApiRequester _requester;
1069 1094
1070 DatafeedsResourceApi(commons.ApiRequester client) : 1095 DatafeedsResourceApi(commons.ApiRequester client) :
1071 _requester = client; 1096 _requester = client;
1072 1097
1073 /** 1098 /**
1074 * [request] - The metadata request object. 1099 * [request] - The metadata request object.
1075 * 1100 *
1076 * Request parameters: 1101 * Request parameters:
1077 * 1102 *
1103 * [dryRun] - Flag to run the request in dry-run mode.
1104 *
1078 * Completes with a [DatafeedsCustomBatchResponse]. 1105 * Completes with a [DatafeedsCustomBatchResponse].
1079 * 1106 *
1080 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1081 * error. 1108 * error.
1082 * 1109 *
1083 * If the used [http.Client] completes with an error when making a REST call, 1110 * If the used [http.Client] completes with an error when making a REST call,
1084 * this method will complete with the same error. 1111 * this method will complete with the same error.
1085 */ 1112 */
1086 async.Future<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchReq uest request) { 1113 async.Future<DatafeedsCustomBatchResponse> custombatch(DatafeedsCustomBatchReq uest request, {core.bool dryRun}) {
1087 var _url = null; 1114 var _url = null;
1088 var _queryParams = new core.Map(); 1115 var _queryParams = new core.Map();
1089 var _uploadMedia = null; 1116 var _uploadMedia = null;
1090 var _uploadOptions = null; 1117 var _uploadOptions = null;
1091 var _downloadOptions = commons.DownloadOptions.Metadata; 1118 var _downloadOptions = commons.DownloadOptions.Metadata;
1092 var _body = null; 1119 var _body = null;
1093 1120
1094 if (request != null) { 1121 if (request != null) {
1095 _body = convert.JSON.encode((request).toJson()); 1122 _body = convert.JSON.encode((request).toJson());
1096 } 1123 }
1124 if (dryRun != null) {
1125 _queryParams["dryRun"] = ["${dryRun}"];
1126 }
1097 1127
1098 _url = 'datafeeds/batch'; 1128 _url = 'datafeeds/batch';
1099 1129
1100 var _response = _requester.request(_url, 1130 var _response = _requester.request(_url,
1101 "POST", 1131 "POST",
1102 body: _body, 1132 body: _body,
1103 queryParams: _queryParams, 1133 queryParams: _queryParams,
1104 uploadOptions: _uploadOptions, 1134 uploadOptions: _uploadOptions,
1105 uploadMedia: _uploadMedia, 1135 uploadMedia: _uploadMedia,
1106 downloadOptions: _downloadOptions); 1136 downloadOptions: _downloadOptions);
1107 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da ta)); 1137 return _response.then((data) => new DatafeedsCustomBatchResponse.fromJson(da ta));
1108 } 1138 }
1109 1139
1110 /** 1140 /**
1111 * Deletes a datafeed from your Merchant Center account. 1141 * Deletes a datafeed from your Merchant Center account.
1112 * 1142 *
1113 * Request parameters: 1143 * Request parameters:
1114 * 1144 *
1115 * [merchantId] - null 1145 * [merchantId] - null
1116 * 1146 *
1117 * [datafeedId] - null 1147 * [datafeedId] - null
1118 * 1148 *
1149 * [dryRun] - Flag to run the request in dry-run mode.
1150 *
1119 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1120 * error. 1152 * error.
1121 * 1153 *
1122 * If the used [http.Client] completes with an error when making a REST call, 1154 * If the used [http.Client] completes with an error when making a REST call,
1123 * this method will complete with the same error. 1155 * this method will complete with the same error.
1124 */ 1156 */
1125 async.Future delete(core.String merchantId, core.String datafeedId) { 1157 async.Future delete(core.String merchantId, core.String datafeedId, {core.bool dryRun}) {
1126 var _url = null; 1158 var _url = null;
1127 var _queryParams = new core.Map(); 1159 var _queryParams = new core.Map();
1128 var _uploadMedia = null; 1160 var _uploadMedia = null;
1129 var _uploadOptions = null; 1161 var _uploadOptions = null;
1130 var _downloadOptions = commons.DownloadOptions.Metadata; 1162 var _downloadOptions = commons.DownloadOptions.Metadata;
1131 var _body = null; 1163 var _body = null;
1132 1164
1133 if (merchantId == null) { 1165 if (merchantId == null) {
1134 throw new core.ArgumentError("Parameter merchantId is required."); 1166 throw new core.ArgumentError("Parameter merchantId is required.");
1135 } 1167 }
1136 if (datafeedId == null) { 1168 if (datafeedId == null) {
1137 throw new core.ArgumentError("Parameter datafeedId is required."); 1169 throw new core.ArgumentError("Parameter datafeedId is required.");
1138 } 1170 }
1171 if (dryRun != null) {
1172 _queryParams["dryRun"] = ["${dryRun}"];
1173 }
1139 1174
1140 _downloadOptions = null; 1175 _downloadOptions = null;
1141 1176
1142 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId'); 1177 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId');
1143 1178
1144 var _response = _requester.request(_url, 1179 var _response = _requester.request(_url,
1145 "DELETE", 1180 "DELETE",
1146 body: _body, 1181 body: _body,
1147 queryParams: _queryParams, 1182 queryParams: _queryParams,
1148 uploadOptions: _uploadOptions, 1183 uploadOptions: _uploadOptions,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 1232
1198 /** 1233 /**
1199 * Registers a datafeed with your Merchant Center account. 1234 * Registers a datafeed with your Merchant Center account.
1200 * 1235 *
1201 * [request] - The metadata request object. 1236 * [request] - The metadata request object.
1202 * 1237 *
1203 * Request parameters: 1238 * Request parameters:
1204 * 1239 *
1205 * [merchantId] - null 1240 * [merchantId] - null
1206 * 1241 *
1242 * [dryRun] - Flag to run the request in dry-run mode.
1243 *
1207 * Completes with a [Datafeed]. 1244 * Completes with a [Datafeed].
1208 * 1245 *
1209 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1246 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1210 * error. 1247 * error.
1211 * 1248 *
1212 * If the used [http.Client] completes with an error when making a REST call, 1249 * If the used [http.Client] completes with an error when making a REST call,
1213 * this method will complete with the same error. 1250 * this method will complete with the same error.
1214 */ 1251 */
1215 async.Future<Datafeed> insert(Datafeed request, core.String merchantId) { 1252 async.Future<Datafeed> insert(Datafeed request, core.String merchantId, {core. bool dryRun}) {
1216 var _url = null; 1253 var _url = null;
1217 var _queryParams = new core.Map(); 1254 var _queryParams = new core.Map();
1218 var _uploadMedia = null; 1255 var _uploadMedia = null;
1219 var _uploadOptions = null; 1256 var _uploadOptions = null;
1220 var _downloadOptions = commons.DownloadOptions.Metadata; 1257 var _downloadOptions = commons.DownloadOptions.Metadata;
1221 var _body = null; 1258 var _body = null;
1222 1259
1223 if (request != null) { 1260 if (request != null) {
1224 _body = convert.JSON.encode((request).toJson()); 1261 _body = convert.JSON.encode((request).toJson());
1225 } 1262 }
1226 if (merchantId == null) { 1263 if (merchantId == null) {
1227 throw new core.ArgumentError("Parameter merchantId is required."); 1264 throw new core.ArgumentError("Parameter merchantId is required.");
1228 } 1265 }
1266 if (dryRun != null) {
1267 _queryParams["dryRun"] = ["${dryRun}"];
1268 }
1229 1269
1230 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; 1270 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds';
1231 1271
1232 var _response = _requester.request(_url, 1272 var _response = _requester.request(_url,
1233 "POST", 1273 "POST",
1234 body: _body, 1274 body: _body,
1235 queryParams: _queryParams, 1275 queryParams: _queryParams,
1236 uploadOptions: _uploadOptions, 1276 uploadOptions: _uploadOptions,
1237 uploadMedia: _uploadMedia, 1277 uploadMedia: _uploadMedia,
1238 downloadOptions: _downloadOptions); 1278 downloadOptions: _downloadOptions);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 * patch semantics. 1334 * patch semantics.
1295 * 1335 *
1296 * [request] - The metadata request object. 1336 * [request] - The metadata request object.
1297 * 1337 *
1298 * Request parameters: 1338 * Request parameters:
1299 * 1339 *
1300 * [merchantId] - null 1340 * [merchantId] - null
1301 * 1341 *
1302 * [datafeedId] - null 1342 * [datafeedId] - null
1303 * 1343 *
1344 * [dryRun] - Flag to run the request in dry-run mode.
1345 *
1304 * Completes with a [Datafeed]. 1346 * Completes with a [Datafeed].
1305 * 1347 *
1306 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1307 * error. 1349 * error.
1308 * 1350 *
1309 * If the used [http.Client] completes with an error when making a REST call, 1351 * If the used [http.Client] completes with an error when making a REST call,
1310 * this method will complete with the same error. 1352 * this method will complete with the same error.
1311 */ 1353 */
1312 async.Future<Datafeed> patch(Datafeed request, core.String merchantId, core.St ring datafeedId) { 1354 async.Future<Datafeed> patch(Datafeed request, core.String merchantId, core.St ring datafeedId, {core.bool dryRun}) {
1313 var _url = null; 1355 var _url = null;
1314 var _queryParams = new core.Map(); 1356 var _queryParams = new core.Map();
1315 var _uploadMedia = null; 1357 var _uploadMedia = null;
1316 var _uploadOptions = null; 1358 var _uploadOptions = null;
1317 var _downloadOptions = commons.DownloadOptions.Metadata; 1359 var _downloadOptions = commons.DownloadOptions.Metadata;
1318 var _body = null; 1360 var _body = null;
1319 1361
1320 if (request != null) { 1362 if (request != null) {
1321 _body = convert.JSON.encode((request).toJson()); 1363 _body = convert.JSON.encode((request).toJson());
1322 } 1364 }
1323 if (merchantId == null) { 1365 if (merchantId == null) {
1324 throw new core.ArgumentError("Parameter merchantId is required."); 1366 throw new core.ArgumentError("Parameter merchantId is required.");
1325 } 1367 }
1326 if (datafeedId == null) { 1368 if (datafeedId == null) {
1327 throw new core.ArgumentError("Parameter datafeedId is required."); 1369 throw new core.ArgumentError("Parameter datafeedId is required.");
1328 } 1370 }
1371 if (dryRun != null) {
1372 _queryParams["dryRun"] = ["${dryRun}"];
1373 }
1329 1374
1330 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId'); 1375 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId');
1331 1376
1332 var _response = _requester.request(_url, 1377 var _response = _requester.request(_url,
1333 "PATCH", 1378 "PATCH",
1334 body: _body, 1379 body: _body,
1335 queryParams: _queryParams, 1380 queryParams: _queryParams,
1336 uploadOptions: _uploadOptions, 1381 uploadOptions: _uploadOptions,
1337 uploadMedia: _uploadMedia, 1382 uploadMedia: _uploadMedia,
1338 downloadOptions: _downloadOptions); 1383 downloadOptions: _downloadOptions);
1339 return _response.then((data) => new Datafeed.fromJson(data)); 1384 return _response.then((data) => new Datafeed.fromJson(data));
1340 } 1385 }
1341 1386
1342 /** 1387 /**
1343 * Updates a datafeed of your Merchant Center account. 1388 * Updates a datafeed of your Merchant Center account.
1344 * 1389 *
1345 * [request] - The metadata request object. 1390 * [request] - The metadata request object.
1346 * 1391 *
1347 * Request parameters: 1392 * Request parameters:
1348 * 1393 *
1349 * [merchantId] - null 1394 * [merchantId] - null
1350 * 1395 *
1351 * [datafeedId] - null 1396 * [datafeedId] - null
1352 * 1397 *
1398 * [dryRun] - Flag to run the request in dry-run mode.
1399 *
1353 * Completes with a [Datafeed]. 1400 * Completes with a [Datafeed].
1354 * 1401 *
1355 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1402 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1356 * error. 1403 * error.
1357 * 1404 *
1358 * If the used [http.Client] completes with an error when making a REST call, 1405 * If the used [http.Client] completes with an error when making a REST call,
1359 * this method will complete with the same error. 1406 * this method will complete with the same error.
1360 */ 1407 */
1361 async.Future<Datafeed> update(Datafeed request, core.String merchantId, core.S tring datafeedId) { 1408 async.Future<Datafeed> update(Datafeed request, core.String merchantId, core.S tring datafeedId, {core.bool dryRun}) {
1362 var _url = null; 1409 var _url = null;
1363 var _queryParams = new core.Map(); 1410 var _queryParams = new core.Map();
1364 var _uploadMedia = null; 1411 var _uploadMedia = null;
1365 var _uploadOptions = null; 1412 var _uploadOptions = null;
1366 var _downloadOptions = commons.DownloadOptions.Metadata; 1413 var _downloadOptions = commons.DownloadOptions.Metadata;
1367 var _body = null; 1414 var _body = null;
1368 1415
1369 if (request != null) { 1416 if (request != null) {
1370 _body = convert.JSON.encode((request).toJson()); 1417 _body = convert.JSON.encode((request).toJson());
1371 } 1418 }
1372 if (merchantId == null) { 1419 if (merchantId == null) {
1373 throw new core.ArgumentError("Parameter merchantId is required."); 1420 throw new core.ArgumentError("Parameter merchantId is required.");
1374 } 1421 }
1375 if (datafeedId == null) { 1422 if (datafeedId == null) {
1376 throw new core.ArgumentError("Parameter datafeedId is required."); 1423 throw new core.ArgumentError("Parameter datafeedId is required.");
1377 } 1424 }
1425 if (dryRun != null) {
1426 _queryParams["dryRun"] = ["${dryRun}"];
1427 }
1378 1428
1379 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId'); 1429 _url = commons.Escaper.ecapeVariable('$merchantId') + '/datafeeds/' + common s.Escaper.ecapeVariable('$datafeedId');
1380 1430
1381 var _response = _requester.request(_url, 1431 var _response = _requester.request(_url,
1382 "PUT", 1432 "PUT",
1383 body: _body, 1433 body: _body,
1384 queryParams: _queryParams, 1434 queryParams: _queryParams,
1385 uploadOptions: _uploadOptions, 1435 uploadOptions: _uploadOptions,
1386 uploadMedia: _uploadMedia, 1436 uploadMedia: _uploadMedia,
1387 downloadOptions: _downloadOptions); 1437 downloadOptions: _downloadOptions);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 1582
1533 1583
1534 class InventoryResourceApi { 1584 class InventoryResourceApi {
1535 final commons.ApiRequester _requester; 1585 final commons.ApiRequester _requester;
1536 1586
1537 InventoryResourceApi(commons.ApiRequester client) : 1587 InventoryResourceApi(commons.ApiRequester client) :
1538 _requester = client; 1588 _requester = client;
1539 1589
1540 /** 1590 /**
1541 * Updates price and availability for multiple products or stores in a single 1591 * Updates price and availability for multiple products or stores in a single
1542 * request. 1592 * request. This operation does not update the expiration date of the
1593 * products.
1543 * 1594 *
1544 * [request] - The metadata request object. 1595 * [request] - The metadata request object.
1545 * 1596 *
1546 * Request parameters: 1597 * Request parameters:
1547 * 1598 *
1599 * [dryRun] - Flag to run the request in dry-run mode.
1600 *
1548 * Completes with a [InventoryCustomBatchResponse]. 1601 * Completes with a [InventoryCustomBatchResponse].
1549 * 1602 *
1550 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1603 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1551 * error. 1604 * error.
1552 * 1605 *
1553 * If the used [http.Client] completes with an error when making a REST call, 1606 * If the used [http.Client] completes with an error when making a REST call,
1554 * this method will complete with the same error. 1607 * this method will complete with the same error.
1555 */ 1608 */
1556 async.Future<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchReq uest request) { 1609 async.Future<InventoryCustomBatchResponse> custombatch(InventoryCustomBatchReq uest request, {core.bool dryRun}) {
1557 var _url = null; 1610 var _url = null;
1558 var _queryParams = new core.Map(); 1611 var _queryParams = new core.Map();
1559 var _uploadMedia = null; 1612 var _uploadMedia = null;
1560 var _uploadOptions = null; 1613 var _uploadOptions = null;
1561 var _downloadOptions = commons.DownloadOptions.Metadata; 1614 var _downloadOptions = commons.DownloadOptions.Metadata;
1562 var _body = null; 1615 var _body = null;
1563 1616
1564 if (request != null) { 1617 if (request != null) {
1565 _body = convert.JSON.encode((request).toJson()); 1618 _body = convert.JSON.encode((request).toJson());
1566 } 1619 }
1620 if (dryRun != null) {
1621 _queryParams["dryRun"] = ["${dryRun}"];
1622 }
1567 1623
1568 _url = 'inventory/batch'; 1624 _url = 'inventory/batch';
1569 1625
1570 var _response = _requester.request(_url, 1626 var _response = _requester.request(_url,
1571 "POST", 1627 "POST",
1572 body: _body, 1628 body: _body,
1573 queryParams: _queryParams, 1629 queryParams: _queryParams,
1574 uploadOptions: _uploadOptions, 1630 uploadOptions: _uploadOptions,
1575 uploadMedia: _uploadMedia, 1631 uploadMedia: _uploadMedia,
1576 downloadOptions: _downloadOptions); 1632 downloadOptions: _downloadOptions);
1577 return _response.then((data) => new InventoryCustomBatchResponse.fromJson(da ta)); 1633 return _response.then((data) => new InventoryCustomBatchResponse.fromJson(da ta));
1578 } 1634 }
1579 1635
1580 /** 1636 /**
1581 * Updates price and availability of a product in your Merchant Center 1637 * Updates price and availability of a product in your Merchant Center
1582 * account. 1638 * account. This operation does not update the expiration date of the product.
1583 * 1639 *
1584 * [request] - The metadata request object. 1640 * [request] - The metadata request object.
1585 * 1641 *
1586 * Request parameters: 1642 * Request parameters:
1587 * 1643 *
1588 * [merchantId] - The ID of the managing account. 1644 * [merchantId] - The ID of the managing account.
1589 * 1645 *
1590 * [storeCode] - The code of the store for which to update price and 1646 * [storeCode] - The code of the store for which to update price and
1591 * availability. Use online to update price and availability of an online 1647 * availability. Use online to update price and availability of an online
1592 * product. 1648 * product.
1593 * 1649 *
1594 * [productId] - The ID of the product for which to update price and 1650 * [productId] - The ID of the product for which to update price and
1595 * availability. 1651 * availability.
1596 * 1652 *
1653 * [dryRun] - Flag to run the request in dry-run mode.
1654 *
1597 * Completes with a [InventorySetResponse]. 1655 * Completes with a [InventorySetResponse].
1598 * 1656 *
1599 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1657 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1600 * error. 1658 * error.
1601 * 1659 *
1602 * If the used [http.Client] completes with an error when making a REST call, 1660 * If the used [http.Client] completes with an error when making a REST call,
1603 * this method will complete with the same error. 1661 * this method will complete with the same error.
1604 */ 1662 */
1605 async.Future<InventorySetResponse> set(InventorySetRequest request, core.Strin g merchantId, core.String storeCode, core.String productId) { 1663 async.Future<InventorySetResponse> set(InventorySetRequest request, core.Strin g merchantId, core.String storeCode, core.String productId, {core.bool dryRun}) {
1606 var _url = null; 1664 var _url = null;
1607 var _queryParams = new core.Map(); 1665 var _queryParams = new core.Map();
1608 var _uploadMedia = null; 1666 var _uploadMedia = null;
1609 var _uploadOptions = null; 1667 var _uploadOptions = null;
1610 var _downloadOptions = commons.DownloadOptions.Metadata; 1668 var _downloadOptions = commons.DownloadOptions.Metadata;
1611 var _body = null; 1669 var _body = null;
1612 1670
1613 if (request != null) { 1671 if (request != null) {
1614 _body = convert.JSON.encode((request).toJson()); 1672 _body = convert.JSON.encode((request).toJson());
1615 } 1673 }
1616 if (merchantId == null) { 1674 if (merchantId == null) {
1617 throw new core.ArgumentError("Parameter merchantId is required."); 1675 throw new core.ArgumentError("Parameter merchantId is required.");
1618 } 1676 }
1619 if (storeCode == null) { 1677 if (storeCode == null) {
1620 throw new core.ArgumentError("Parameter storeCode is required."); 1678 throw new core.ArgumentError("Parameter storeCode is required.");
1621 } 1679 }
1622 if (productId == null) { 1680 if (productId == null) {
1623 throw new core.ArgumentError("Parameter productId is required."); 1681 throw new core.ArgumentError("Parameter productId is required.");
1624 } 1682 }
1683 if (dryRun != null) {
1684 _queryParams["dryRun"] = ["${dryRun}"];
1685 }
1625 1686
1626 _url = commons.Escaper.ecapeVariable('$merchantId') + '/inventory/' + common s.Escaper.ecapeVariable('$storeCode') + '/products/' + commons.Escaper.ecapeVari able('$productId'); 1687 _url = commons.Escaper.ecapeVariable('$merchantId') + '/inventory/' + common s.Escaper.ecapeVariable('$storeCode') + '/products/' + commons.Escaper.ecapeVari able('$productId');
1627 1688
1628 var _response = _requester.request(_url, 1689 var _response = _requester.request(_url,
1629 "POST", 1690 "POST",
1630 body: _body, 1691 body: _body,
1631 queryParams: _queryParams, 1692 queryParams: _queryParams,
1632 uploadOptions: _uploadOptions, 1693 uploadOptions: _uploadOptions,
1633 uploadMedia: _uploadMedia, 1694 uploadMedia: _uploadMedia,
1634 downloadOptions: _downloadOptions); 1695 downloadOptions: _downloadOptions);
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 /** Additive shipping rate modifier. */ 2335 /** Additive shipping rate modifier. */
2275 Price modifierFlatRate; 2336 Price modifierFlatRate;
2276 /** 2337 /**
2277 * Multiplicative shipping rate modifier in percent. Represented as a floating 2338 * Multiplicative shipping rate modifier in percent. Represented as a floating
2278 * point number without the percentage character. 2339 * point number without the percentage character.
2279 */ 2340 */
2280 core.String modifierPercent; 2341 core.String modifierPercent;
2281 /** The name of the carrier rate. */ 2342 /** The name of the carrier rate. */
2282 core.String name; 2343 core.String name;
2283 /** 2344 /**
2284 * Sale country for which this carrier rate is valid, represented as an ISO 2345 * The sale country for which this carrier rate is valid, represented as a
2285 * 3166-1 Alpha-2 code. 2346 * CLDR territory code.
2286 */ 2347 */
2287 core.String saleCountry; 2348 core.String saleCountry;
2288 /** Shipping origin represented as a postal code. */ 2349 /** Shipping origin represented as a postal code. */
2289 core.String shippingOrigin; 2350 core.String shippingOrigin;
2290 2351
2291 AccountShippingCarrierRate(); 2352 AccountShippingCarrierRate();
2292 2353
2293 AccountShippingCarrierRate.fromJson(core.Map _json) { 2354 AccountShippingCarrierRate.fromJson(core.Map _json) {
2294 if (_json.containsKey("carrier")) { 2355 if (_json.containsKey("carrier")) {
2295 carrier = _json["carrier"]; 2356 carrier = _json["carrier"];
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2423 return _json; 2484 return _json;
2424 } 2485 }
2425 } 2486 }
2426 2487
2427 /** 2488 /**
2428 * A user-defined locations group in a given country. All the locations of the 2489 * A user-defined locations group in a given country. All the locations of the
2429 * group must be of the same type. 2490 * group must be of the same type.
2430 */ 2491 */
2431 class AccountShippingLocationGroup { 2492 class AccountShippingLocationGroup {
2432 /** 2493 /**
2433 * The country in which this location group is, represented as ISO 3166-1 2494 * The CLDR territory code of the country in which this location group is.
2434 * Alpha-2 code.
2435 */ 2495 */
2436 core.String country; 2496 core.String country;
2437 /** 2497 /**
2438 * A location ID (also called criteria ID) representing administrative areas, 2498 * A location ID (also called criteria ID) representing administrative areas,
2439 * smaller country subdivisions (counties), or cities. 2499 * smaller country subdivisions (counties), or cities.
2440 */ 2500 */
2441 core.List<core.String> locationIds; 2501 core.List<core.String> locationIds;
2442 /** The name of the location group. */ 2502 /** The name of the location group. */
2443 core.String name; 2503 core.String name;
2444 /** A postal code range representing a city or a set of cities. */ 2504 /** A postal code range representing a city or a set of cities. */
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
2535 /** 2595 /**
2536 * One-dimensional table cells define one condition along the same dimension. 2596 * One-dimensional table cells define one condition along the same dimension.
2537 * Bi-dimensional table cells use two dimensions with respectively M and N 2597 * Bi-dimensional table cells use two dimensions with respectively M and N
2538 * distinct values and must contain exactly M * N cells with distinct 2598 * distinct values and must contain exactly M * N cells with distinct
2539 * conditions (for each possible value pairs). 2599 * conditions (for each possible value pairs).
2540 */ 2600 */
2541 core.List<AccountShippingRateTableCell> content; 2601 core.List<AccountShippingRateTableCell> content;
2542 /** The name of the rate table. */ 2602 /** The name of the rate table. */
2543 core.String name; 2603 core.String name;
2544 /** 2604 /**
2545 * Sale country for which this table is valid, represented as an ISO 3166-1 2605 * The sale country for which this table is valid, represented as a CLDR
2546 * Alpha-2 code. 2606 * territory code.
2547 */ 2607 */
2548 core.String saleCountry; 2608 core.String saleCountry;
2549 2609
2550 AccountShippingRateTable(); 2610 AccountShippingRateTable();
2551 2611
2552 AccountShippingRateTable.fromJson(core.Map _json) { 2612 AccountShippingRateTable.fromJson(core.Map _json) {
2553 if (_json.containsKey("content")) { 2613 if (_json.containsKey("content")) {
2554 content = _json["content"].map((value) => new AccountShippingRateTableCell .fromJson(value)).toList(); 2614 content = _json["content"].map((value) => new AccountShippingRateTableCell .fromJson(value)).toList();
2555 } 2615 }
2556 if (_json.containsKey("name")) { 2616 if (_json.containsKey("name")) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
2615 class AccountShippingShippingService { 2675 class AccountShippingShippingService {
2616 /** Whether the shipping service is available. */ 2676 /** Whether the shipping service is available. */
2617 core.bool active; 2677 core.bool active;
2618 /** Calculation method for the "simple" case that needs no rules. */ 2678 /** Calculation method for the "simple" case that needs no rules. */
2619 AccountShippingShippingServiceCalculationMethod calculationMethod; 2679 AccountShippingShippingServiceCalculationMethod calculationMethod;
2620 /** Decision tree for "complicated" shipping cost calculation. */ 2680 /** Decision tree for "complicated" shipping cost calculation. */
2621 AccountShippingShippingServiceCostRule costRuleTree; 2681 AccountShippingShippingServiceCostRule costRuleTree;
2622 /** The name of this shipping service. */ 2682 /** The name of this shipping service. */
2623 core.String name; 2683 core.String name;
2624 /** 2684 /**
2625 * Sale country for which this service can be used, represented as an ISO 2685 * The CLDR territory code of the sale country for which this service can be
2626 * 3166-1 Alpha-2 code. 2686 * used.
2627 */ 2687 */
2628 core.String saleCountry; 2688 core.String saleCountry;
2629 2689
2630 AccountShippingShippingService(); 2690 AccountShippingShippingService();
2631 2691
2632 AccountShippingShippingService.fromJson(core.Map _json) { 2692 AccountShippingShippingService.fromJson(core.Map _json) {
2633 if (_json.containsKey("active")) { 2693 if (_json.containsKey("active")) {
2634 active = _json["active"]; 2694 active = _json["active"];
2635 } 2695 }
2636 if (_json.containsKey("calculationMethod")) { 2696 if (_json.containsKey("calculationMethod")) {
(...skipping 1301 matching lines...) Expand 10 before | Expand all | Expand 10 after
3938 */ 3998 */
3939 core.List<core.String> intendedDestinations; 3999 core.List<core.String> intendedDestinations;
3940 /** 4000 /**
3941 * Identifies what kind of resource this is. Value: the fixed string 4001 * Identifies what kind of resource this is. Value: the fixed string
3942 * "content#datafeed". 4002 * "content#datafeed".
3943 */ 4003 */
3944 core.String kind; 4004 core.String kind;
3945 /** A descriptive name of the data feed. */ 4005 /** A descriptive name of the data feed. */
3946 core.String name; 4006 core.String name;
3947 /** 4007 /**
3948 * The two-letter ISO 3166 country where the items in the feed will be 4008 * The country where the items in the feed will be included in the search
3949 * included in the search index. 4009 * index, represented as a CLDR territory code.
3950 */ 4010 */
3951 core.String targetCountry; 4011 core.String targetCountry;
3952 4012
3953 Datafeed(); 4013 Datafeed();
3954 4014
3955 Datafeed.fromJson(core.Map _json) { 4015 Datafeed.fromJson(core.Map _json) {
3956 if (_json.containsKey("attributeLanguage")) { 4016 if (_json.containsKey("attributeLanguage")) {
3957 attributeLanguage = _json["attributeLanguage"]; 4017 attributeLanguage = _json["attributeLanguage"];
3958 } 4018 }
3959 if (_json.containsKey("contentLanguage")) { 4019 if (_json.containsKey("contentLanguage")) {
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
4781 /** 4841 /**
4782 * The sale price of the product. Mandatory if sale_price_effective_date is 4842 * The sale price of the product. Mandatory if sale_price_effective_date is
4783 * defined. 4843 * defined.
4784 */ 4844 */
4785 Price salePrice; 4845 Price salePrice;
4786 /** 4846 /**
4787 * A date range represented by a pair of ISO 8601 dates separated by a space, 4847 * A date range represented by a pair of ISO 8601 dates separated by a space,
4788 * comma, or slash. Both dates might be specified as 'null' if undecided. 4848 * comma, or slash. Both dates might be specified as 'null' if undecided.
4789 */ 4849 */
4790 core.String salePriceEffectiveDate; 4850 core.String salePriceEffectiveDate;
4851 /**
4852 * The quantity of the product that is reserved for sell-on-google ads.
4853 * Supported only for online products.
4854 */
4855 core.int sellOnGoogleQuantity;
4791 4856
4792 Inventory(); 4857 Inventory();
4793 4858
4794 Inventory.fromJson(core.Map _json) { 4859 Inventory.fromJson(core.Map _json) {
4795 if (_json.containsKey("availability")) { 4860 if (_json.containsKey("availability")) {
4796 availability = _json["availability"]; 4861 availability = _json["availability"];
4797 } 4862 }
4798 if (_json.containsKey("kind")) { 4863 if (_json.containsKey("kind")) {
4799 kind = _json["kind"]; 4864 kind = _json["kind"];
4800 } 4865 }
4801 if (_json.containsKey("price")) { 4866 if (_json.containsKey("price")) {
4802 price = new Price.fromJson(_json["price"]); 4867 price = new Price.fromJson(_json["price"]);
4803 } 4868 }
4804 if (_json.containsKey("quantity")) { 4869 if (_json.containsKey("quantity")) {
4805 quantity = _json["quantity"]; 4870 quantity = _json["quantity"];
4806 } 4871 }
4807 if (_json.containsKey("salePrice")) { 4872 if (_json.containsKey("salePrice")) {
4808 salePrice = new Price.fromJson(_json["salePrice"]); 4873 salePrice = new Price.fromJson(_json["salePrice"]);
4809 } 4874 }
4810 if (_json.containsKey("salePriceEffectiveDate")) { 4875 if (_json.containsKey("salePriceEffectiveDate")) {
4811 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; 4876 salePriceEffectiveDate = _json["salePriceEffectiveDate"];
4812 } 4877 }
4878 if (_json.containsKey("sellOnGoogleQuantity")) {
4879 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"];
4880 }
4813 } 4881 }
4814 4882
4815 core.Map toJson() { 4883 core.Map toJson() {
4816 var _json = new core.Map(); 4884 var _json = new core.Map();
4817 if (availability != null) { 4885 if (availability != null) {
4818 _json["availability"] = availability; 4886 _json["availability"] = availability;
4819 } 4887 }
4820 if (kind != null) { 4888 if (kind != null) {
4821 _json["kind"] = kind; 4889 _json["kind"] = kind;
4822 } 4890 }
4823 if (price != null) { 4891 if (price != null) {
4824 _json["price"] = (price).toJson(); 4892 _json["price"] = (price).toJson();
4825 } 4893 }
4826 if (quantity != null) { 4894 if (quantity != null) {
4827 _json["quantity"] = quantity; 4895 _json["quantity"] = quantity;
4828 } 4896 }
4829 if (salePrice != null) { 4897 if (salePrice != null) {
4830 _json["salePrice"] = (salePrice).toJson(); 4898 _json["salePrice"] = (salePrice).toJson();
4831 } 4899 }
4832 if (salePriceEffectiveDate != null) { 4900 if (salePriceEffectiveDate != null) {
4833 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; 4901 _json["salePriceEffectiveDate"] = salePriceEffectiveDate;
4834 } 4902 }
4903 if (sellOnGoogleQuantity != null) {
4904 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity;
4905 }
4835 return _json; 4906 return _json;
4836 } 4907 }
4837 } 4908 }
4838 4909
4839 class InventoryCustomBatchRequest { 4910 class InventoryCustomBatchRequest {
4840 /** The request entries to be processed in the batch. */ 4911 /** The request entries to be processed in the batch. */
4841 core.List<InventoryCustomBatchRequestEntry> entries; 4912 core.List<InventoryCustomBatchRequestEntry> entries;
4842 4913
4843 InventoryCustomBatchRequest(); 4914 InventoryCustomBatchRequest();
4844 4915
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
5000 /** 5071 /**
5001 * The sale price of the product. Mandatory if sale_price_effective_date is 5072 * The sale price of the product. Mandatory if sale_price_effective_date is
5002 * defined. 5073 * defined.
5003 */ 5074 */
5004 Price salePrice; 5075 Price salePrice;
5005 /** 5076 /**
5006 * A date range represented by a pair of ISO 8601 dates separated by a space, 5077 * A date range represented by a pair of ISO 8601 dates separated by a space,
5007 * comma, or slash. Both dates might be specified as 'null' if undecided. 5078 * comma, or slash. Both dates might be specified as 'null' if undecided.
5008 */ 5079 */
5009 core.String salePriceEffectiveDate; 5080 core.String salePriceEffectiveDate;
5081 /**
5082 * The quantity of the product that is reserved for sell-on-google ads.
5083 * Supported only for online products.
5084 */
5085 core.int sellOnGoogleQuantity;
5010 5086
5011 InventorySetRequest(); 5087 InventorySetRequest();
5012 5088
5013 InventorySetRequest.fromJson(core.Map _json) { 5089 InventorySetRequest.fromJson(core.Map _json) {
5014 if (_json.containsKey("availability")) { 5090 if (_json.containsKey("availability")) {
5015 availability = _json["availability"]; 5091 availability = _json["availability"];
5016 } 5092 }
5017 if (_json.containsKey("price")) { 5093 if (_json.containsKey("price")) {
5018 price = new Price.fromJson(_json["price"]); 5094 price = new Price.fromJson(_json["price"]);
5019 } 5095 }
5020 if (_json.containsKey("quantity")) { 5096 if (_json.containsKey("quantity")) {
5021 quantity = _json["quantity"]; 5097 quantity = _json["quantity"];
5022 } 5098 }
5023 if (_json.containsKey("salePrice")) { 5099 if (_json.containsKey("salePrice")) {
5024 salePrice = new Price.fromJson(_json["salePrice"]); 5100 salePrice = new Price.fromJson(_json["salePrice"]);
5025 } 5101 }
5026 if (_json.containsKey("salePriceEffectiveDate")) { 5102 if (_json.containsKey("salePriceEffectiveDate")) {
5027 salePriceEffectiveDate = _json["salePriceEffectiveDate"]; 5103 salePriceEffectiveDate = _json["salePriceEffectiveDate"];
5028 } 5104 }
5105 if (_json.containsKey("sellOnGoogleQuantity")) {
5106 sellOnGoogleQuantity = _json["sellOnGoogleQuantity"];
5107 }
5029 } 5108 }
5030 5109
5031 core.Map toJson() { 5110 core.Map toJson() {
5032 var _json = new core.Map(); 5111 var _json = new core.Map();
5033 if (availability != null) { 5112 if (availability != null) {
5034 _json["availability"] = availability; 5113 _json["availability"] = availability;
5035 } 5114 }
5036 if (price != null) { 5115 if (price != null) {
5037 _json["price"] = (price).toJson(); 5116 _json["price"] = (price).toJson();
5038 } 5117 }
5039 if (quantity != null) { 5118 if (quantity != null) {
5040 _json["quantity"] = quantity; 5119 _json["quantity"] = quantity;
5041 } 5120 }
5042 if (salePrice != null) { 5121 if (salePrice != null) {
5043 _json["salePrice"] = (salePrice).toJson(); 5122 _json["salePrice"] = (salePrice).toJson();
5044 } 5123 }
5045 if (salePriceEffectiveDate != null) { 5124 if (salePriceEffectiveDate != null) {
5046 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; 5125 _json["salePriceEffectiveDate"] = salePriceEffectiveDate;
5047 } 5126 }
5127 if (sellOnGoogleQuantity != null) {
5128 _json["sellOnGoogleQuantity"] = sellOnGoogleQuantity;
5129 }
5048 return _json; 5130 return _json;
5049 } 5131 }
5050 } 5132 }
5051 5133
5052 class InventorySetResponse { 5134 class InventorySetResponse {
5053 /** 5135 /**
5054 * Identifies what kind of resource this is. Value: the fixed string 5136 * Identifies what kind of resource this is. Value: the fixed string
5055 * "content#inventorySetResponse". 5137 * "content#inventorySetResponse".
5056 */ 5138 */
5057 core.String kind; 5139 core.String kind;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
5306 /** Weight of the item for shipping. */ 5388 /** Weight of the item for shipping. */
5307 ProductShippingWeight shippingWeight; 5389 ProductShippingWeight shippingWeight;
5308 /** Width of the item for shipping. */ 5390 /** Width of the item for shipping. */
5309 ProductShippingDimension shippingWidth; 5391 ProductShippingDimension shippingWidth;
5310 /** System in which the size is specified. Recommended for apparel items. */ 5392 /** System in which the size is specified. Recommended for apparel items. */
5311 core.String sizeSystem; 5393 core.String sizeSystem;
5312 /** The cut of the item. Recommended for apparel items. */ 5394 /** The cut of the item. Recommended for apparel items. */
5313 core.String sizeType; 5395 core.String sizeType;
5314 /** Size of the item. */ 5396 /** Size of the item. */
5315 core.List<core.String> sizes; 5397 core.List<core.String> sizes;
5316 /** The two-letter ISO 3166 country code for the item. */ 5398 /** The CLDR territory code for the item. */
5317 core.String targetCountry; 5399 core.String targetCountry;
5318 /** Tax information. */ 5400 /** Tax information. */
5319 core.List<ProductTax> taxes; 5401 core.List<ProductTax> taxes;
5320 /** Title of the item. */ 5402 /** Title of the item. */
5321 core.String title; 5403 core.String title;
5322 /** The preference of the denominator of the unit price. */ 5404 /** The preference of the denominator of the unit price. */
5323 ProductUnitPricingBaseMeasure unitPricingBaseMeasure; 5405 ProductUnitPricingBaseMeasure unitPricingBaseMeasure;
5324 /** The measure and dimension of an item. */ 5406 /** The measure and dimension of an item. */
5325 ProductUnitPricingMeasure unitPricingMeasure; 5407 ProductUnitPricingMeasure unitPricingMeasure;
5326 /** The read-only list of intended destinations which passed validation. */ 5408 /** The read-only list of intended destinations which passed validation. */
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
5925 _json["amount"] = (amount).toJson(); 6007 _json["amount"] = (amount).toJson();
5926 } 6008 }
5927 if (months != null) { 6009 if (months != null) {
5928 _json["months"] = months; 6010 _json["months"] = months;
5929 } 6011 }
5930 return _json; 6012 return _json;
5931 } 6013 }
5932 } 6014 }
5933 6015
5934 class ProductShipping { 6016 class ProductShipping {
5935 /** 6017 /** The CLDR territory code of the country to which an item will ship. */
5936 * The two-letter ISO 3166 country code for the country to which an item will
5937 * ship.
5938 */
5939 core.String country; 6018 core.String country;
5940 /** 6019 /**
5941 * The location where the shipping is applicable, represented by a location 6020 * The location where the shipping is applicable, represented by a location
5942 * group name. 6021 * group name.
5943 */ 6022 */
5944 core.String locationGroupName; 6023 core.String locationGroupName;
5945 /** 6024 /**
5946 * The numeric id of a location that the shipping rate applies to as defined 6025 * The numeric id of a location that the shipping rate applies to as defined
5947 * in the AdWords API. 6026 * in the AdWords API.
5948 */ 6027 */
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
6288 } 6367 }
6289 if (intention != null) { 6368 if (intention != null) {
6290 _json["intention"] = intention; 6369 _json["intention"] = intention;
6291 } 6370 }
6292 return _json; 6371 return _json;
6293 } 6372 }
6294 } 6373 }
6295 6374
6296 class ProductTax { 6375 class ProductTax {
6297 /** 6376 /**
6298 * The country within which the item is taxed, specified with a two-letter ISO 6377 * The country within which the item is taxed, specified as a CLDR territory
6299 * 3166 country code. 6378 * code.
6300 */ 6379 */
6301 core.String country; 6380 core.String country;
6302 /** 6381 /**
6303 * The numeric id of a location that the tax rate applies to as defined in the 6382 * The numeric id of a location that the tax rate applies to as defined in the
6304 * AdWords API. 6383 * AdWords API.
6305 */ 6384 */
6306 core.String locationId; 6385 core.String locationId;
6307 /** 6386 /**
6308 * The postal code range that the tax rate applies to, represented by a ZIP 6387 * The postal code range that the tax rate applies to, represented by a ZIP
6309 * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or 6388 * code, a ZIP code prefix using * wildcard, a range between two ZIP codes or
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
6832 var _json = new core.Map(); 6911 var _json = new core.Map();
6833 if (unit != null) { 6912 if (unit != null) {
6834 _json["unit"] = unit; 6913 _json["unit"] = unit;
6835 } 6914 }
6836 if (value != null) { 6915 if (value != null) {
6837 _json["value"] = value; 6916 _json["value"] = value;
6838 } 6917 }
6839 return _json; 6918 return _json;
6840 } 6919 }
6841 } 6920 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698