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

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

Issue 698403003: Api roll 5: 2014-11-05 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 1 month 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 library googleapis.content.v2; 1 library googleapis.content.v2;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import "package:crypto/crypto.dart" as crypto; 8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http; 9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal; 10 import '../src/common_internal.dart' as common_internal;
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 uploadMedia: _uploadMedia, 698 uploadMedia: _uploadMedia,
699 downloadOptions: _downloadOptions); 699 downloadOptions: _downloadOptions);
700 return _response.then((data) => new Datafeed.fromJson(data)); 700 return _response.then((data) => new Datafeed.fromJson(data));
701 } 701 }
702 702
703 /** 703 /**
704 * Lists the datafeeds in your Merchant Center account. 704 * Lists the datafeeds in your Merchant Center account.
705 * 705 *
706 * Request parameters: 706 * Request parameters:
707 * 707 *
708 * [merchantId] - null 708 * [merchantId] - The ID of the managing account.
709 *
710 * [maxResults] - The maximum number of products to return in the response,
711 * used for paging.
712 *
713 * [pageToken] - The token returned by the previous request.
709 * 714 *
710 * Completes with a [DatafeedsListResponse]. 715 * Completes with a [DatafeedsListResponse].
711 * 716 *
712 * Completes with a [common.ApiRequestError] if the API endpoint returned an 717 * Completes with a [common.ApiRequestError] if the API endpoint returned an
713 * error. 718 * error.
714 * 719 *
715 * If the used [http.Client] completes with an error when making a REST call, 720 * If the used [http.Client] completes with an error when making a REST call,
716 * this method will complete with the same error. 721 * this method will complete with the same error.
717 */ 722 */
718 async.Future<DatafeedsListResponse> list(core.String merchantId) { 723 async.Future<DatafeedsListResponse> list(core.String merchantId, {core.int max Results, core.String pageToken}) {
719 var _url = null; 724 var _url = null;
720 var _queryParams = new core.Map(); 725 var _queryParams = new core.Map();
721 var _uploadMedia = null; 726 var _uploadMedia = null;
722 var _uploadOptions = null; 727 var _uploadOptions = null;
723 var _downloadOptions = common.DownloadOptions.Metadata; 728 var _downloadOptions = common.DownloadOptions.Metadata;
724 var _body = null; 729 var _body = null;
725 730
726 if (merchantId == null) { 731 if (merchantId == null) {
727 throw new core.ArgumentError("Parameter merchantId is required."); 732 throw new core.ArgumentError("Parameter merchantId is required.");
728 } 733 }
734 if (maxResults != null) {
735 _queryParams["maxResults"] = ["${maxResults}"];
736 }
737 if (pageToken != null) {
738 _queryParams["pageToken"] = [pageToken];
739 }
729 740
730 741
731 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds'; 742 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeeds';
732 743
733 var _response = _requester.request(_url, 744 var _response = _requester.request(_url,
734 "GET", 745 "GET",
735 body: _body, 746 body: _body,
736 queryParams: _queryParams, 747 queryParams: _queryParams,
737 uploadOptions: _uploadOptions, 748 uploadOptions: _uploadOptions,
738 uploadMedia: _uploadMedia, 749 uploadMedia: _uploadMedia,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 uploadMedia: _uploadMedia, 945 uploadMedia: _uploadMedia,
935 downloadOptions: _downloadOptions); 946 downloadOptions: _downloadOptions);
936 return _response.then((data) => new DatafeedStatus.fromJson(data)); 947 return _response.then((data) => new DatafeedStatus.fromJson(data));
937 } 948 }
938 949
939 /** 950 /**
940 * Lists the statuses of the datafeeds in your Merchant Center account. 951 * Lists the statuses of the datafeeds in your Merchant Center account.
941 * 952 *
942 * Request parameters: 953 * Request parameters:
943 * 954 *
944 * [merchantId] - null 955 * [merchantId] - The ID of the managing account.
956 *
957 * [maxResults] - The maximum number of products to return in the response,
958 * used for paging.
959 *
960 * [pageToken] - The token returned by the previous request.
945 * 961 *
946 * Completes with a [DatafeedstatusesListResponse]. 962 * Completes with a [DatafeedstatusesListResponse].
947 * 963 *
948 * Completes with a [common.ApiRequestError] if the API endpoint returned an 964 * Completes with a [common.ApiRequestError] if the API endpoint returned an
949 * error. 965 * error.
950 * 966 *
951 * If the used [http.Client] completes with an error when making a REST call, 967 * If the used [http.Client] completes with an error when making a REST call,
952 * this method will complete with the same error. 968 * this method will complete with the same error.
953 */ 969 */
954 async.Future<DatafeedstatusesListResponse> list(core.String merchantId) { 970 async.Future<DatafeedstatusesListResponse> list(core.String merchantId, {core. int maxResults, core.String pageToken}) {
955 var _url = null; 971 var _url = null;
956 var _queryParams = new core.Map(); 972 var _queryParams = new core.Map();
957 var _uploadMedia = null; 973 var _uploadMedia = null;
958 var _uploadOptions = null; 974 var _uploadOptions = null;
959 var _downloadOptions = common.DownloadOptions.Metadata; 975 var _downloadOptions = common.DownloadOptions.Metadata;
960 var _body = null; 976 var _body = null;
961 977
962 if (merchantId == null) { 978 if (merchantId == null) {
963 throw new core.ArgumentError("Parameter merchantId is required."); 979 throw new core.ArgumentError("Parameter merchantId is required.");
964 } 980 }
981 if (maxResults != null) {
982 _queryParams["maxResults"] = ["${maxResults}"];
983 }
984 if (pageToken != null) {
985 _queryParams["pageToken"] = [pageToken];
986 }
965 987
966 988
967 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeedstat uses'; 989 _url = common_internal.Escaper.ecapeVariable('$merchantId') + '/datafeedstat uses';
968 990
969 var _response = _requester.request(_url, 991 var _response = _requester.request(_url,
970 "GET", 992 "GET",
971 body: _body, 993 body: _body,
972 queryParams: _queryParams, 994 queryParams: _queryParams,
973 uploadOptions: _uploadOptions, 995 uploadOptions: _uploadOptions,
974 uploadMedia: _uploadMedia, 996 uploadMedia: _uploadMedia,
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 uploadOptions: _uploadOptions, 1501 uploadOptions: _uploadOptions,
1480 uploadMedia: _uploadMedia, 1502 uploadMedia: _uploadMedia,
1481 downloadOptions: _downloadOptions); 1503 downloadOptions: _downloadOptions);
1482 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat a)); 1504 return _response.then((data) => new ProductstatusesListResponse.fromJson(dat a));
1483 } 1505 }
1484 1506
1485 } 1507 }
1486 1508
1487 1509
1488 1510
1489 /** Not documented yet. */ 1511 /** Account data. */
1490 class Account { 1512 class Account {
1491 /** Indicates whether the merchant sells adult content. */ 1513 /** Indicates whether the merchant sells adult content. */
1492 core.bool adultContent; 1514 core.bool adultContent;
1493 1515
1494 /** List of linked AdWords accounts. */ 1516 /** List of linked AdWords accounts. */
1495 core.List<AccountAdwordsLink> adwordsLinks; 1517 core.List<AccountAdwordsLink> adwordsLinks;
1496 1518
1497 /** Merchant Center account ID. */ 1519 /** Merchant Center account ID. */
1498 core.String id; 1520 core.String id;
1499 1521
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 if (emailAddress != null) { 1874 if (emailAddress != null) {
1853 _json["emailAddress"] = emailAddress; 1875 _json["emailAddress"] = emailAddress;
1854 } 1876 }
1855 return _json; 1877 return _json;
1856 } 1878 }
1857 } 1879 }
1858 1880
1859 1881
1860 /** Not documented yet. */ 1882 /** Not documented yet. */
1861 class AccountsCustomBatchRequest { 1883 class AccountsCustomBatchRequest {
1862 /** Not documented yet. */ 1884 /** The request entries to be processed in the batch. */
1863 core.List<AccountsCustomBatchRequestEntry> entries; 1885 core.List<AccountsCustomBatchRequestEntry> entries;
1864 1886
1865 1887
1866 AccountsCustomBatchRequest(); 1888 AccountsCustomBatchRequest();
1867 1889
1868 AccountsCustomBatchRequest.fromJson(core.Map _json) { 1890 AccountsCustomBatchRequest.fromJson(core.Map _json) {
1869 if (_json.containsKey("entries")) { 1891 if (_json.containsKey("entries")) {
1870 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn try.fromJson(value)).toList(); 1892 entries = _json["entries"].map((value) => new AccountsCustomBatchRequestEn try.fromJson(value)).toList();
1871 } 1893 }
1872 } 1894 }
(...skipping 24 matching lines...) Expand all
1897 * or delete. 1919 * or delete.
1898 */ 1920 */
1899 core.String accountId; 1921 core.String accountId;
1900 1922
1901 /** An entry ID, unique within the batch request. */ 1923 /** An entry ID, unique within the batch request. */
1902 core.int batchId; 1924 core.int batchId;
1903 1925
1904 /** The ID of the managing account. */ 1926 /** The ID of the managing account. */
1905 core.String merchantId; 1927 core.String merchantId;
1906 1928
1907 /** The method (get, insert, update, or delete). */ 1929 /** Not documented yet. */
1908 core.String method; 1930 core.String method;
1909 1931
1910 1932
1911 AccountsCustomBatchRequestEntry(); 1933 AccountsCustomBatchRequestEntry();
1912 1934
1913 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) { 1935 AccountsCustomBatchRequestEntry.fromJson(core.Map _json) {
1914 if (_json.containsKey("account")) { 1936 if (_json.containsKey("account")) {
1915 account = new Account.fromJson(_json["account"]); 1937 account = new Account.fromJson(_json["account"]);
1916 } 1938 }
1917 if (_json.containsKey("accountId")) { 1939 if (_json.containsKey("accountId")) {
(...skipping 27 matching lines...) Expand all
1945 if (method != null) { 1967 if (method != null) {
1946 _json["method"] = method; 1968 _json["method"] = method;
1947 } 1969 }
1948 return _json; 1970 return _json;
1949 } 1971 }
1950 } 1972 }
1951 1973
1952 1974
1953 /** Not documented yet. */ 1975 /** Not documented yet. */
1954 class AccountsCustomBatchResponse { 1976 class AccountsCustomBatchResponse {
1955 /** Not documented yet. */ 1977 /** The result of the execution of the batch requests. */
1956 core.List<AccountsCustomBatchResponseEntry> entries; 1978 core.List<AccountsCustomBatchResponseEntry> entries;
1957 1979
1958 /** 1980 /**
1959 * Identifies what kind of resource this is. Value: the fixed string 1981 * Identifies what kind of resource this is. Value: the fixed string
1960 * "content#accountsCustomBatchResponse". 1982 * "content#accountsCustomBatchResponse".
1961 */ 1983 */
1962 core.String kind; 1984 core.String kind;
1963 1985
1964 1986
1965 AccountsCustomBatchResponse(); 1987 AccountsCustomBatchResponse();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
2047 2069
2048 2070
2049 /** Not documented yet. */ 2071 /** Not documented yet. */
2050 class AccountsListResponse { 2072 class AccountsListResponse {
2051 /** 2073 /**
2052 * Identifies what kind of resource this is. Value: the fixed string 2074 * Identifies what kind of resource this is. Value: the fixed string
2053 * "content#accountsListResponse". 2075 * "content#accountsListResponse".
2054 */ 2076 */
2055 core.String kind; 2077 core.String kind;
2056 2078
2057 /** Not documented yet. */ 2079 /** The token for the retrieval of the next page of accounts. */
2058 core.String nextPageToken; 2080 core.String nextPageToken;
2059 2081
2060 /** Not documented yet. */ 2082 /** Not documented yet. */
2061 core.List<Account> resources; 2083 core.List<Account> resources;
2062 2084
2063 2085
2064 AccountsListResponse(); 2086 AccountsListResponse();
2065 2087
2066 AccountsListResponse.fromJson(core.Map _json) { 2088 AccountsListResponse.fromJson(core.Map _json) {
2067 if (_json.containsKey("kind")) { 2089 if (_json.containsKey("kind")) {
(...skipping 18 matching lines...) Expand all
2086 if (resources != null) { 2108 if (resources != null) {
2087 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 2109 _json["resources"] = resources.map((value) => (value).toJson()).toList();
2088 } 2110 }
2089 return _json; 2111 return _json;
2090 } 2112 }
2091 } 2113 }
2092 2114
2093 2115
2094 /** Not documented yet. */ 2116 /** Not documented yet. */
2095 class AccountstatusesCustomBatchRequest { 2117 class AccountstatusesCustomBatchRequest {
2096 /** Not documented yet. */ 2118 /** The request entries to be processed in the batch. */
2097 core.List<AccountstatusesCustomBatchRequestEntry> entries; 2119 core.List<AccountstatusesCustomBatchRequestEntry> entries;
2098 2120
2099 2121
2100 AccountstatusesCustomBatchRequest(); 2122 AccountstatusesCustomBatchRequest();
2101 2123
2102 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) { 2124 AccountstatusesCustomBatchRequest.fromJson(core.Map _json) {
2103 if (_json.containsKey("entries")) { 2125 if (_json.containsKey("entries")) {
2104 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe questEntry.fromJson(value)).toList(); 2126 entries = _json["entries"].map((value) => new AccountstatusesCustomBatchRe questEntry.fromJson(value)).toList();
2105 } 2127 }
2106 } 2128 }
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 if (method != null) { 2186 if (method != null) {
2165 _json["method"] = method; 2187 _json["method"] = method;
2166 } 2188 }
2167 return _json; 2189 return _json;
2168 } 2190 }
2169 } 2191 }
2170 2192
2171 2193
2172 /** Not documented yet. */ 2194 /** Not documented yet. */
2173 class AccountstatusesCustomBatchResponse { 2195 class AccountstatusesCustomBatchResponse {
2174 /** Not documented yet. */ 2196 /** The result of the execution of the batch requests. */
2175 core.List<AccountstatusesCustomBatchResponseEntry> entries; 2197 core.List<AccountstatusesCustomBatchResponseEntry> entries;
2176 2198
2177 /** 2199 /**
2178 * Identifies what kind of resource this is. Value: the fixed string 2200 * Identifies what kind of resource this is. Value: the fixed string
2179 * "content#accountstatusesCustomBatchResponse". 2201 * "content#accountstatusesCustomBatchResponse".
2180 */ 2202 */
2181 core.String kind; 2203 core.String kind;
2182 2204
2183 2205
2184 AccountstatusesCustomBatchResponse(); 2206 AccountstatusesCustomBatchResponse();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 2276
2255 2277
2256 /** Not documented yet. */ 2278 /** Not documented yet. */
2257 class AccountstatusesListResponse { 2279 class AccountstatusesListResponse {
2258 /** 2280 /**
2259 * Identifies what kind of resource this is. Value: the fixed string 2281 * Identifies what kind of resource this is. Value: the fixed string
2260 * "content#accountstatusesListResponse". 2282 * "content#accountstatusesListResponse".
2261 */ 2283 */
2262 core.String kind; 2284 core.String kind;
2263 2285
2264 /** Not documented yet. */ 2286 /** The token for the retrieval of the next page of account statuses. */
2265 core.String nextPageToken; 2287 core.String nextPageToken;
2266 2288
2267 /** Not documented yet. */ 2289 /** Not documented yet. */
2268 core.List<AccountStatus> resources; 2290 core.List<AccountStatus> resources;
2269 2291
2270 2292
2271 AccountstatusesListResponse(); 2293 AccountstatusesListResponse();
2272 2294
2273 AccountstatusesListResponse.fromJson(core.Map _json) { 2295 AccountstatusesListResponse.fromJson(core.Map _json) {
2274 if (_json.containsKey("kind")) { 2296 if (_json.containsKey("kind")) {
(...skipping 16 matching lines...) Expand all
2291 _json["nextPageToken"] = nextPageToken; 2313 _json["nextPageToken"] = nextPageToken;
2292 } 2314 }
2293 if (resources != null) { 2315 if (resources != null) {
2294 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 2316 _json["resources"] = resources.map((value) => (value).toJson()).toList();
2295 } 2317 }
2296 return _json; 2318 return _json;
2297 } 2319 }
2298 } 2320 }
2299 2321
2300 2322
2301 /** Not documented yet. */ 2323 /** Datafeed data. */
2302 class Datafeed { 2324 class Datafeed {
2303 /** 2325 /**
2304 * The two-letter ISO 639-1 language in which the attributes are defined in 2326 * The two-letter ISO 639-1 language in which the attributes are defined in
2305 * the data feed. 2327 * the data feed.
2306 */ 2328 */
2307 core.String attributeLanguage; 2329 core.String attributeLanguage;
2308 2330
2309 /** The two-letter ISO 639-1 language of the items in the feed. */ 2331 /** The two-letter ISO 639-1 language of the items in the feed. */
2310 core.String contentLanguage; 2332 core.String contentLanguage;
2311 2333
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2559 _json["fileEncoding"] = fileEncoding; 2581 _json["fileEncoding"] = fileEncoding;
2560 } 2582 }
2561 if (quotingMode != null) { 2583 if (quotingMode != null) {
2562 _json["quotingMode"] = quotingMode; 2584 _json["quotingMode"] = quotingMode;
2563 } 2585 }
2564 return _json; 2586 return _json;
2565 } 2587 }
2566 } 2588 }
2567 2589
2568 2590
2569 /** Not documented yet. */ 2591 /**
2592 * The status of a datafeed, i.e., the result of the last retrieval of the
2593 * datafeed computed asynchronously when the feed processing is finished.
2594 */
2570 class DatafeedStatus { 2595 class DatafeedStatus {
2571 /** The ID of the feed for which the status is reported. */ 2596 /** The ID of the feed for which the status is reported. */
2572 core.String datafeedId; 2597 core.String datafeedId;
2573 2598
2574 /** The list of errors occurring in the feed. */ 2599 /** The list of errors occurring in the feed. */
2575 core.List<DatafeedStatusError> errors; 2600 core.List<DatafeedStatusError> errors;
2576 2601
2577 /** The number of items in the feed that were processed. */ 2602 /** The number of items in the feed that were processed. */
2578 core.String itemsTotal; 2603 core.String itemsTotal;
2579 2604
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2735 if (value != null) { 2760 if (value != null) {
2736 _json["value"] = value; 2761 _json["value"] = value;
2737 } 2762 }
2738 return _json; 2763 return _json;
2739 } 2764 }
2740 } 2765 }
2741 2766
2742 2767
2743 /** Not documented yet. */ 2768 /** Not documented yet. */
2744 class DatafeedsCustomBatchRequest { 2769 class DatafeedsCustomBatchRequest {
2745 /** Not documented yet. */ 2770 /** The request entries to be processed in the batch. */
2746 core.List<DatafeedsCustomBatchRequestEntry> entries; 2771 core.List<DatafeedsCustomBatchRequestEntry> entries;
2747 2772
2748 2773
2749 DatafeedsCustomBatchRequest(); 2774 DatafeedsCustomBatchRequest();
2750 2775
2751 DatafeedsCustomBatchRequest.fromJson(core.Map _json) { 2776 DatafeedsCustomBatchRequest.fromJson(core.Map _json) {
2752 if (_json.containsKey("entries")) { 2777 if (_json.containsKey("entries")) {
2753 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE ntry.fromJson(value)).toList(); 2778 entries = _json["entries"].map((value) => new DatafeedsCustomBatchRequestE ntry.fromJson(value)).toList();
2754 } 2779 }
2755 } 2780 }
(...skipping 18 matching lines...) Expand all
2774 2799
2775 /** The data feed to insert. */ 2800 /** The data feed to insert. */
2776 Datafeed datafeed; 2801 Datafeed datafeed;
2777 2802
2778 /** The ID of the data feed to get or delete. */ 2803 /** The ID of the data feed to get or delete. */
2779 core.String datafeedId; 2804 core.String datafeedId;
2780 2805
2781 /** The ID of the managing account. */ 2806 /** The ID of the managing account. */
2782 core.String merchantId; 2807 core.String merchantId;
2783 2808
2784 /** The method (get, insert, update, or delete). */ 2809 /** Not documented yet. */
2785 core.String method; 2810 core.String method;
2786 2811
2787 2812
2788 DatafeedsCustomBatchRequestEntry(); 2813 DatafeedsCustomBatchRequestEntry();
2789 2814
2790 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) { 2815 DatafeedsCustomBatchRequestEntry.fromJson(core.Map _json) {
2791 if (_json.containsKey("batchId")) { 2816 if (_json.containsKey("batchId")) {
2792 batchId = _json["batchId"]; 2817 batchId = _json["batchId"];
2793 } 2818 }
2794 if (_json.containsKey("datafeed")) { 2819 if (_json.containsKey("datafeed")) {
(...skipping 27 matching lines...) Expand all
2822 if (method != null) { 2847 if (method != null) {
2823 _json["method"] = method; 2848 _json["method"] = method;
2824 } 2849 }
2825 return _json; 2850 return _json;
2826 } 2851 }
2827 } 2852 }
2828 2853
2829 2854
2830 /** Not documented yet. */ 2855 /** Not documented yet. */
2831 class DatafeedsCustomBatchResponse { 2856 class DatafeedsCustomBatchResponse {
2832 /** Not documented yet. */ 2857 /** The result of the execution of the batch requests. */
2833 core.List<DatafeedsCustomBatchResponseEntry> entries; 2858 core.List<DatafeedsCustomBatchResponseEntry> entries;
2834 2859
2835 /** 2860 /**
2836 * Identifies what kind of resource this is. Value: the fixed string 2861 * Identifies what kind of resource this is. Value: the fixed string
2837 * "content#datafeedsCustomBatchResponse". 2862 * "content#datafeedsCustomBatchResponse".
2838 */ 2863 */
2839 core.String kind; 2864 core.String kind;
2840 2865
2841 2866
2842 DatafeedsCustomBatchResponse(); 2867 DatafeedsCustomBatchResponse();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 2936
2912 2937
2913 /** Not documented yet. */ 2938 /** Not documented yet. */
2914 class DatafeedsListResponse { 2939 class DatafeedsListResponse {
2915 /** 2940 /**
2916 * Identifies what kind of resource this is. Value: the fixed string 2941 * Identifies what kind of resource this is. Value: the fixed string
2917 * "content#datafeedsListResponse". 2942 * "content#datafeedsListResponse".
2918 */ 2943 */
2919 core.String kind; 2944 core.String kind;
2920 2945
2946 /** The token for the retrieval of the next page of datafeeds. */
2947 core.String nextPageToken;
2948
2921 /** Not documented yet. */ 2949 /** Not documented yet. */
2922 core.List<Datafeed> resources; 2950 core.List<Datafeed> resources;
2923 2951
2924 2952
2925 DatafeedsListResponse(); 2953 DatafeedsListResponse();
2926 2954
2927 DatafeedsListResponse.fromJson(core.Map _json) { 2955 DatafeedsListResponse.fromJson(core.Map _json) {
2928 if (_json.containsKey("kind")) { 2956 if (_json.containsKey("kind")) {
2929 kind = _json["kind"]; 2957 kind = _json["kind"];
2930 } 2958 }
2959 if (_json.containsKey("nextPageToken")) {
2960 nextPageToken = _json["nextPageToken"];
2961 }
2931 if (_json.containsKey("resources")) { 2962 if (_json.containsKey("resources")) {
2932 resources = _json["resources"].map((value) => new Datafeed.fromJson(value) ).toList(); 2963 resources = _json["resources"].map((value) => new Datafeed.fromJson(value) ).toList();
2933 } 2964 }
2934 } 2965 }
2935 2966
2936 core.Map toJson() { 2967 core.Map toJson() {
2937 var _json = new core.Map(); 2968 var _json = new core.Map();
2938 if (kind != null) { 2969 if (kind != null) {
2939 _json["kind"] = kind; 2970 _json["kind"] = kind;
2940 } 2971 }
2972 if (nextPageToken != null) {
2973 _json["nextPageToken"] = nextPageToken;
2974 }
2941 if (resources != null) { 2975 if (resources != null) {
2942 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 2976 _json["resources"] = resources.map((value) => (value).toJson()).toList();
2943 } 2977 }
2944 return _json; 2978 return _json;
2945 } 2979 }
2946 } 2980 }
2947 2981
2948 2982
2949 /** Not documented yet. */ 2983 /** Not documented yet. */
2950 class DatafeedstatusesCustomBatchRequest { 2984 class DatafeedstatusesCustomBatchRequest {
2951 /** Not documented yet. */ 2985 /** The request entries to be processed in the batch. */
2952 core.List<DatafeedstatusesCustomBatchRequestEntry> entries; 2986 core.List<DatafeedstatusesCustomBatchRequestEntry> entries;
2953 2987
2954 2988
2955 DatafeedstatusesCustomBatchRequest(); 2989 DatafeedstatusesCustomBatchRequest();
2956 2990
2957 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) { 2991 DatafeedstatusesCustomBatchRequest.fromJson(core.Map _json) {
2958 if (_json.containsKey("entries")) { 2992 if (_json.containsKey("entries")) {
2959 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR equestEntry.fromJson(value)).toList(); 2993 entries = _json["entries"].map((value) => new DatafeedstatusesCustomBatchR equestEntry.fromJson(value)).toList();
2960 } 2994 }
2961 } 2995 }
(...skipping 15 matching lines...) Expand all
2977 class DatafeedstatusesCustomBatchRequestEntry { 3011 class DatafeedstatusesCustomBatchRequestEntry {
2978 /** An entry ID, unique within the batch request. */ 3012 /** An entry ID, unique within the batch request. */
2979 core.int batchId; 3013 core.int batchId;
2980 3014
2981 /** The ID of the data feed to get or delete. */ 3015 /** The ID of the data feed to get or delete. */
2982 core.String datafeedId; 3016 core.String datafeedId;
2983 3017
2984 /** The ID of the managing account. */ 3018 /** The ID of the managing account. */
2985 core.String merchantId; 3019 core.String merchantId;
2986 3020
2987 /** The method (get). */ 3021 /** Not documented yet. */
2988 core.String method; 3022 core.String method;
2989 3023
2990 3024
2991 DatafeedstatusesCustomBatchRequestEntry(); 3025 DatafeedstatusesCustomBatchRequestEntry();
2992 3026
2993 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { 3027 DatafeedstatusesCustomBatchRequestEntry.fromJson(core.Map _json) {
2994 if (_json.containsKey("batchId")) { 3028 if (_json.containsKey("batchId")) {
2995 batchId = _json["batchId"]; 3029 batchId = _json["batchId"];
2996 } 3030 }
2997 if (_json.containsKey("datafeedId")) { 3031 if (_json.containsKey("datafeedId")) {
(...skipping 21 matching lines...) Expand all
3019 if (method != null) { 3053 if (method != null) {
3020 _json["method"] = method; 3054 _json["method"] = method;
3021 } 3055 }
3022 return _json; 3056 return _json;
3023 } 3057 }
3024 } 3058 }
3025 3059
3026 3060
3027 /** Not documented yet. */ 3061 /** Not documented yet. */
3028 class DatafeedstatusesCustomBatchResponse { 3062 class DatafeedstatusesCustomBatchResponse {
3029 /** Not documented yet. */ 3063 /** The result of the execution of the batch requests. */
3030 core.List<DatafeedstatusesCustomBatchResponseEntry> entries; 3064 core.List<DatafeedstatusesCustomBatchResponseEntry> entries;
3031 3065
3032 /** 3066 /**
3033 * Identifies what kind of resource this is. Value: the fixed string 3067 * Identifies what kind of resource this is. Value: the fixed string
3034 * "content#datafeedstatusesCustomBatchResponse". 3068 * "content#datafeedstatusesCustomBatchResponse".
3035 */ 3069 */
3036 core.String kind; 3070 core.String kind;
3037 3071
3038 3072
3039 DatafeedstatusesCustomBatchResponse(); 3073 DatafeedstatusesCustomBatchResponse();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3109 3143
3110 3144
3111 /** Not documented yet. */ 3145 /** Not documented yet. */
3112 class DatafeedstatusesListResponse { 3146 class DatafeedstatusesListResponse {
3113 /** 3147 /**
3114 * Identifies what kind of resource this is. Value: the fixed string 3148 * Identifies what kind of resource this is. Value: the fixed string
3115 * "content#datafeedstatusesListResponse". 3149 * "content#datafeedstatusesListResponse".
3116 */ 3150 */
3117 core.String kind; 3151 core.String kind;
3118 3152
3153 /** The token for the retrieval of the next page of datafeed statuses. */
3154 core.String nextPageToken;
3155
3119 /** Not documented yet. */ 3156 /** Not documented yet. */
3120 core.List<DatafeedStatus> resources; 3157 core.List<DatafeedStatus> resources;
3121 3158
3122 3159
3123 DatafeedstatusesListResponse(); 3160 DatafeedstatusesListResponse();
3124 3161
3125 DatafeedstatusesListResponse.fromJson(core.Map _json) { 3162 DatafeedstatusesListResponse.fromJson(core.Map _json) {
3126 if (_json.containsKey("kind")) { 3163 if (_json.containsKey("kind")) {
3127 kind = _json["kind"]; 3164 kind = _json["kind"];
3128 } 3165 }
3166 if (_json.containsKey("nextPageToken")) {
3167 nextPageToken = _json["nextPageToken"];
3168 }
3129 if (_json.containsKey("resources")) { 3169 if (_json.containsKey("resources")) {
3130 resources = _json["resources"].map((value) => new DatafeedStatus.fromJson( value)).toList(); 3170 resources = _json["resources"].map((value) => new DatafeedStatus.fromJson( value)).toList();
3131 } 3171 }
3132 } 3172 }
3133 3173
3134 core.Map toJson() { 3174 core.Map toJson() {
3135 var _json = new core.Map(); 3175 var _json = new core.Map();
3136 if (kind != null) { 3176 if (kind != null) {
3137 _json["kind"] = kind; 3177 _json["kind"] = kind;
3138 } 3178 }
3179 if (nextPageToken != null) {
3180 _json["nextPageToken"] = nextPageToken;
3181 }
3139 if (resources != null) { 3182 if (resources != null) {
3140 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 3183 _json["resources"] = resources.map((value) => (value).toJson()).toList();
3141 } 3184 }
3142 return _json; 3185 return _json;
3143 } 3186 }
3144 } 3187 }
3145 3188
3146 3189
3147 /** An error returned by the API. */ 3190 /** An error returned by the API. */
3148 class Error { 3191 class Error {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
3304 if (salePriceEffectiveDate != null) { 3347 if (salePriceEffectiveDate != null) {
3305 _json["salePriceEffectiveDate"] = salePriceEffectiveDate; 3348 _json["salePriceEffectiveDate"] = salePriceEffectiveDate;
3306 } 3349 }
3307 return _json; 3350 return _json;
3308 } 3351 }
3309 } 3352 }
3310 3353
3311 3354
3312 /** Not documented yet. */ 3355 /** Not documented yet. */
3313 class InventoryCustomBatchRequest { 3356 class InventoryCustomBatchRequest {
3314 /** Not documented yet. */ 3357 /** The request entries to be processed in the batch. */
3315 core.List<InventoryCustomBatchRequestEntry> entries; 3358 core.List<InventoryCustomBatchRequestEntry> entries;
3316 3359
3317 3360
3318 InventoryCustomBatchRequest(); 3361 InventoryCustomBatchRequest();
3319 3362
3320 InventoryCustomBatchRequest.fromJson(core.Map _json) { 3363 InventoryCustomBatchRequest.fromJson(core.Map _json) {
3321 if (_json.containsKey("entries")) { 3364 if (_json.containsKey("entries")) {
3322 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE ntry.fromJson(value)).toList(); 3365 entries = _json["entries"].map((value) => new InventoryCustomBatchRequestE ntry.fromJson(value)).toList();
3323 } 3366 }
3324 } 3367 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
3394 if (storeCode != null) { 3437 if (storeCode != null) {
3395 _json["storeCode"] = storeCode; 3438 _json["storeCode"] = storeCode;
3396 } 3439 }
3397 return _json; 3440 return _json;
3398 } 3441 }
3399 } 3442 }
3400 3443
3401 3444
3402 /** Not documented yet. */ 3445 /** Not documented yet. */
3403 class InventoryCustomBatchResponse { 3446 class InventoryCustomBatchResponse {
3404 /** Not documented yet. */ 3447 /** The result of the execution of the batch requests. */
3405 core.List<InventoryCustomBatchResponseEntry> entries; 3448 core.List<InventoryCustomBatchResponseEntry> entries;
3406 3449
3407 /** 3450 /**
3408 * Identifies what kind of resource this is. Value: the fixed string 3451 * Identifies what kind of resource this is. Value: the fixed string
3409 * "content#inventoryCustomBatchResponse". 3452 * "content#inventoryCustomBatchResponse".
3410 */ 3453 */
3411 core.String kind; 3454 core.String kind;
3412 3455
3413 3456
3414 InventoryCustomBatchResponse(); 3457 InventoryCustomBatchResponse();
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after
4858 if (value != null) { 4901 if (value != null) {
4859 _json["value"] = value; 4902 _json["value"] = value;
4860 } 4903 }
4861 return _json; 4904 return _json;
4862 } 4905 }
4863 } 4906 }
4864 4907
4865 4908
4866 /** Not documented yet. */ 4909 /** Not documented yet. */
4867 class ProductsCustomBatchRequest { 4910 class ProductsCustomBatchRequest {
4868 /** Not documented yet. */ 4911 /** The request entries to be processed in the batch. */
4869 core.List<ProductsCustomBatchRequestEntry> entries; 4912 core.List<ProductsCustomBatchRequestEntry> entries;
4870 4913
4871 4914
4872 ProductsCustomBatchRequest(); 4915 ProductsCustomBatchRequest();
4873 4916
4874 ProductsCustomBatchRequest.fromJson(core.Map _json) { 4917 ProductsCustomBatchRequest.fromJson(core.Map _json) {
4875 if (_json.containsKey("entries")) { 4918 if (_json.containsKey("entries")) {
4876 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn try.fromJson(value)).toList(); 4919 entries = _json["entries"].map((value) => new ProductsCustomBatchRequestEn try.fromJson(value)).toList();
4877 } 4920 }
4878 } 4921 }
(...skipping 12 matching lines...) Expand all
4891 * A batch entry encoding a single non-batch request to the products service of 4934 * A batch entry encoding a single non-batch request to the products service of
4892 * the Content API for Shopping. 4935 * the Content API for Shopping.
4893 */ 4936 */
4894 class ProductsCustomBatchRequestEntry { 4937 class ProductsCustomBatchRequestEntry {
4895 /** An entry ID, unique within the batch request. */ 4938 /** An entry ID, unique within the batch request. */
4896 core.int batchId; 4939 core.int batchId;
4897 4940
4898 /** The ID of the managing account. */ 4941 /** The ID of the managing account. */
4899 core.String merchantId; 4942 core.String merchantId;
4900 4943
4901 /** The method (get, insert or delete). */ 4944 /** Not documented yet. */
4902 core.String method; 4945 core.String method;
4903 4946
4904 /** The product to insert. Only required if the method is insert. */ 4947 /** The product to insert. Only required if the method is insert. */
4905 Product product; 4948 Product product;
4906 4949
4907 /** 4950 /**
4908 * The ID of the product to get or delete. Only defined if the method is get 4951 * The ID of the product to get or delete. Only defined if the method is get
4909 * or delete. 4952 * or delete.
4910 */ 4953 */
4911 core.String productId; 4954 core.String productId;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
4948 if (productId != null) { 4991 if (productId != null) {
4949 _json["productId"] = productId; 4992 _json["productId"] = productId;
4950 } 4993 }
4951 return _json; 4994 return _json;
4952 } 4995 }
4953 } 4996 }
4954 4997
4955 4998
4956 /** Not documented yet. */ 4999 /** Not documented yet. */
4957 class ProductsCustomBatchResponse { 5000 class ProductsCustomBatchResponse {
4958 /** Not documented yet. */ 5001 /** The result of the execution of the batch requests. */
4959 core.List<ProductsCustomBatchResponseEntry> entries; 5002 core.List<ProductsCustomBatchResponseEntry> entries;
4960 5003
4961 /** 5004 /**
4962 * Identifies what kind of resource this is. Value: the fixed string 5005 * Identifies what kind of resource this is. Value: the fixed string
4963 * "content#productsCustomBatchResponse". 5006 * "content#productsCustomBatchResponse".
4964 */ 5007 */
4965 core.String kind; 5008 core.String kind;
4966 5009
4967 5010
4968 ProductsCustomBatchResponse(); 5011 ProductsCustomBatchResponse();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
5050 5093
5051 5094
5052 /** Not documented yet. */ 5095 /** Not documented yet. */
5053 class ProductsListResponse { 5096 class ProductsListResponse {
5054 /** 5097 /**
5055 * Identifies what kind of resource this is. Value: the fixed string 5098 * Identifies what kind of resource this is. Value: the fixed string
5056 * "content#productsListResponse". 5099 * "content#productsListResponse".
5057 */ 5100 */
5058 core.String kind; 5101 core.String kind;
5059 5102
5060 /** Not documented yet. */ 5103 /** The token for the retrieval of the next page of products. */
5061 core.String nextPageToken; 5104 core.String nextPageToken;
5062 5105
5063 /** Not documented yet. */ 5106 /** Not documented yet. */
5064 core.List<Product> resources; 5107 core.List<Product> resources;
5065 5108
5066 5109
5067 ProductsListResponse(); 5110 ProductsListResponse();
5068 5111
5069 ProductsListResponse.fromJson(core.Map _json) { 5112 ProductsListResponse.fromJson(core.Map _json) {
5070 if (_json.containsKey("kind")) { 5113 if (_json.containsKey("kind")) {
(...skipping 18 matching lines...) Expand all
5089 if (resources != null) { 5132 if (resources != null) {
5090 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 5133 _json["resources"] = resources.map((value) => (value).toJson()).toList();
5091 } 5134 }
5092 return _json; 5135 return _json;
5093 } 5136 }
5094 } 5137 }
5095 5138
5096 5139
5097 /** Not documented yet. */ 5140 /** Not documented yet. */
5098 class ProductstatusesCustomBatchRequest { 5141 class ProductstatusesCustomBatchRequest {
5099 /** Not documented yet. */ 5142 /** The request entries to be processed in the batch. */
5100 core.List<ProductstatusesCustomBatchRequestEntry> entries; 5143 core.List<ProductstatusesCustomBatchRequestEntry> entries;
5101 5144
5102 5145
5103 ProductstatusesCustomBatchRequest(); 5146 ProductstatusesCustomBatchRequest();
5104 5147
5105 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) { 5148 ProductstatusesCustomBatchRequest.fromJson(core.Map _json) {
5106 if (_json.containsKey("entries")) { 5149 if (_json.containsKey("entries")) {
5107 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList(); 5150 entries = _json["entries"].map((value) => new ProductstatusesCustomBatchRe questEntry.fromJson(value)).toList();
5108 } 5151 }
5109 } 5152 }
(...skipping 12 matching lines...) Expand all
5122 * A batch entry encoding a single non-batch request to the productstatuses 5165 * A batch entry encoding a single non-batch request to the productstatuses
5123 * service of the Content API for Shopping. 5166 * service of the Content API for Shopping.
5124 */ 5167 */
5125 class ProductstatusesCustomBatchRequestEntry { 5168 class ProductstatusesCustomBatchRequestEntry {
5126 /** An entry ID, unique within the batch request. */ 5169 /** An entry ID, unique within the batch request. */
5127 core.int batchId; 5170 core.int batchId;
5128 5171
5129 /** The ID of the managing account. */ 5172 /** The ID of the managing account. */
5130 core.String merchantId; 5173 core.String merchantId;
5131 5174
5132 /** The method (get). */ 5175 /** Not documented yet. */
5133 core.String method; 5176 core.String method;
5134 5177
5135 /** The ID of the product whose status to get. */ 5178 /** The ID of the product whose status to get. */
5136 core.String productId; 5179 core.String productId;
5137 5180
5138 5181
5139 ProductstatusesCustomBatchRequestEntry(); 5182 ProductstatusesCustomBatchRequestEntry();
5140 5183
5141 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) { 5184 ProductstatusesCustomBatchRequestEntry.fromJson(core.Map _json) {
5142 if (_json.containsKey("batchId")) { 5185 if (_json.containsKey("batchId")) {
(...skipping 24 matching lines...) Expand all
5167 if (productId != null) { 5210 if (productId != null) {
5168 _json["productId"] = productId; 5211 _json["productId"] = productId;
5169 } 5212 }
5170 return _json; 5213 return _json;
5171 } 5214 }
5172 } 5215 }
5173 5216
5174 5217
5175 /** Not documented yet. */ 5218 /** Not documented yet. */
5176 class ProductstatusesCustomBatchResponse { 5219 class ProductstatusesCustomBatchResponse {
5177 /** Not documented yet. */ 5220 /** The result of the execution of the batch requests. */
5178 core.List<ProductstatusesCustomBatchResponseEntry> entries; 5221 core.List<ProductstatusesCustomBatchResponseEntry> entries;
5179 5222
5180 /** 5223 /**
5181 * Identifies what kind of resource this is. Value: the fixed string 5224 * Identifies what kind of resource this is. Value: the fixed string
5182 * "content#productstatusesCustomBatchResponse". 5225 * "content#productstatusesCustomBatchResponse".
5183 */ 5226 */
5184 core.String kind; 5227 core.String kind;
5185 5228
5186 5229
5187 ProductstatusesCustomBatchResponse(); 5230 ProductstatusesCustomBatchResponse();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
5268 5311
5269 5312
5270 /** Not documented yet. */ 5313 /** Not documented yet. */
5271 class ProductstatusesListResponse { 5314 class ProductstatusesListResponse {
5272 /** 5315 /**
5273 * Identifies what kind of resource this is. Value: the fixed string 5316 * Identifies what kind of resource this is. Value: the fixed string
5274 * "content#productstatusesListResponse". 5317 * "content#productstatusesListResponse".
5275 */ 5318 */
5276 core.String kind; 5319 core.String kind;
5277 5320
5278 /** Not documented yet. */ 5321 /** The token for the retrieval of the next page of products statuses. */
5279 core.String nextPageToken; 5322 core.String nextPageToken;
5280 5323
5281 /** Not documented yet. */ 5324 /** Not documented yet. */
5282 core.List<ProductStatus> resources; 5325 core.List<ProductStatus> resources;
5283 5326
5284 5327
5285 ProductstatusesListResponse(); 5328 ProductstatusesListResponse();
5286 5329
5287 ProductstatusesListResponse.fromJson(core.Map _json) { 5330 ProductstatusesListResponse.fromJson(core.Map _json) {
5288 if (_json.containsKey("kind")) { 5331 if (_json.containsKey("kind")) {
(...skipping 16 matching lines...) Expand all
5305 _json["nextPageToken"] = nextPageToken; 5348 _json["nextPageToken"] = nextPageToken;
5306 } 5349 }
5307 if (resources != null) { 5350 if (resources != null) {
5308 _json["resources"] = resources.map((value) => (value).toJson()).toList(); 5351 _json["resources"] = resources.map((value) => (value).toJson()).toList();
5309 } 5352 }
5310 return _json; 5353 return _json;
5311 } 5354 }
5312 } 5355 }
5313 5356
5314 5357
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698