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

Side by Side Diff: generated/googleapis/lib/safebrowsing/v4.dart

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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.safebrowsing.v4; 3 library googleapis.safebrowsing.v4;
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 final commons.ApiRequester _requester; 98 final commons.ApiRequester _requester;
99 99
100 EncodedUpdatesResourceApi(commons.ApiRequester client) : 100 EncodedUpdatesResourceApi(commons.ApiRequester client) :
101 _requester = client; 101 _requester = client;
102 102
103 /** 103 /**
104 * Request parameters: 104 * Request parameters:
105 * 105 *
106 * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto. 106 * [encodedRequest] - A serialized FetchThreatListUpdatesRequest proto.
107 * 107 *
108 * [clientVersion] - The version of the client implementation.
109 *
110 * [clientId] - A client ID that uniquely identifies the client implementation 108 * [clientId] - A client ID that uniquely identifies the client implementation
111 * of the Safe 109 * of the Safe
112 * Browsing API. 110 * Browsing API.
113 * 111 *
112 * [clientVersion] - The version of the client implementation.
113 *
114 * Completes with a [FetchThreatListUpdatesResponse]. 114 * Completes with a [FetchThreatListUpdatesResponse].
115 * 115 *
116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 116 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
117 * error. 117 * error.
118 * 118 *
119 * If the used [http.Client] completes with an error when making a REST call, 119 * If the used [http.Client] completes with an error when making a REST call,
120 * this method will complete with the same error. 120 * this method will complete with the same error.
121 */ 121 */
122 async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, { core.String clientVersion, core.String clientId}) { 122 async.Future<FetchThreatListUpdatesResponse> get(core.String encodedRequest, { core.String clientId, core.String clientVersion}) {
123 var _url = null; 123 var _url = null;
124 var _queryParams = new core.Map(); 124 var _queryParams = new core.Map();
125 var _uploadMedia = null; 125 var _uploadMedia = null;
126 var _uploadOptions = null; 126 var _uploadOptions = null;
127 var _downloadOptions = commons.DownloadOptions.Metadata; 127 var _downloadOptions = commons.DownloadOptions.Metadata;
128 var _body = null; 128 var _body = null;
129 129
130 if (encodedRequest == null) { 130 if (encodedRequest == null) {
131 throw new core.ArgumentError("Parameter encodedRequest is required."); 131 throw new core.ArgumentError("Parameter encodedRequest is required.");
132 } 132 }
133 if (clientId != null) {
134 _queryParams["clientId"] = [clientId];
135 }
133 if (clientVersion != null) { 136 if (clientVersion != null) {
134 _queryParams["clientVersion"] = [clientVersion]; 137 _queryParams["clientVersion"] = [clientVersion];
135 } 138 }
136 if (clientId != null) {
137 _queryParams["clientId"] = [clientId];
138 }
139 139
140 _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest '); 140 _url = 'v4/encodedUpdates/' + commons.Escaper.ecapeVariable('$encodedRequest ');
141 141
142 var _response = _requester.request(_url, 142 var _response = _requester.request(_url,
143 "GET", 143 "GET",
144 body: _body, 144 body: _body,
145 queryParams: _queryParams, 145 queryParams: _queryParams,
146 uploadOptions: _uploadOptions, 146 uploadOptions: _uploadOptions,
147 uploadMedia: _uploadMedia, 147 uploadMedia: _uploadMedia,
148 downloadOptions: _downloadOptions); 148 downloadOptions: _downloadOptions);
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 } 1489 }
1490 if (threatEntryType != null) { 1490 if (threatEntryType != null) {
1491 _json["threatEntryType"] = threatEntryType; 1491 _json["threatEntryType"] = threatEntryType;
1492 } 1492 }
1493 if (threatType != null) { 1493 if (threatType != null) {
1494 _json["threatType"] = threatType; 1494 _json["threatType"] = threatType;
1495 } 1495 }
1496 return _json; 1496 return _json;
1497 } 1497 }
1498 } 1498 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/pubsub/v1.dart ('k') | generated/googleapis/lib/servicemanagement/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698