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

Side by Side Diff: generated/googleapis/lib/searchconsole/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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.searchconsole.v1; 3 library googleapis.searchconsole.v1;
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 core.String url; 91 core.String url;
92 92
93 BlockedResource(); 93 BlockedResource();
94 94
95 BlockedResource.fromJson(core.Map _json) { 95 BlockedResource.fromJson(core.Map _json) {
96 if (_json.containsKey("url")) { 96 if (_json.containsKey("url")) {
97 url = _json["url"]; 97 url = _json["url"];
98 } 98 }
99 } 99 }
100 100
101 core.Map toJson() { 101 core.Map<core.String, core.Object> toJson() {
102 var _json = new core.Map(); 102 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
103 if (url != null) { 103 if (url != null) {
104 _json["url"] = url; 104 _json["url"] = url;
105 } 105 }
106 return _json; 106 return _json;
107 } 107 }
108 } 108 }
109 109
110 /** Describe image data. */ 110 /** Describe image data. */
111 class Image { 111 class Image {
112 /** 112 /**
(...skipping 15 matching lines...) Expand all
128 128
129 Image.fromJson(core.Map _json) { 129 Image.fromJson(core.Map _json) {
130 if (_json.containsKey("data")) { 130 if (_json.containsKey("data")) {
131 data = _json["data"]; 131 data = _json["data"];
132 } 132 }
133 if (_json.containsKey("mimeType")) { 133 if (_json.containsKey("mimeType")) {
134 mimeType = _json["mimeType"]; 134 mimeType = _json["mimeType"];
135 } 135 }
136 } 136 }
137 137
138 core.Map toJson() { 138 core.Map<core.String, core.Object> toJson() {
139 var _json = new core.Map(); 139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
140 if (data != null) { 140 if (data != null) {
141 _json["data"] = data; 141 _json["data"] = data;
142 } 142 }
143 if (mimeType != null) { 143 if (mimeType != null) {
144 _json["mimeType"] = mimeType; 144 _json["mimeType"] = mimeType;
145 } 145 }
146 return _json; 146 return _json;
147 } 147 }
148 } 148 }
149 149
(...skipping 25 matching lines...) Expand all
175 core.String rule; 175 core.String rule;
176 176
177 MobileFriendlyIssue(); 177 MobileFriendlyIssue();
178 178
179 MobileFriendlyIssue.fromJson(core.Map _json) { 179 MobileFriendlyIssue.fromJson(core.Map _json) {
180 if (_json.containsKey("rule")) { 180 if (_json.containsKey("rule")) {
181 rule = _json["rule"]; 181 rule = _json["rule"];
182 } 182 }
183 } 183 }
184 184
185 core.Map toJson() { 185 core.Map<core.String, core.Object> toJson() {
186 var _json = new core.Map(); 186 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
187 if (rule != null) { 187 if (rule != null) {
188 _json["rule"] = rule; 188 _json["rule"] = rule;
189 } 189 }
190 return _json; 190 return _json;
191 } 191 }
192 } 192 }
193 193
194 /** Information about a resource with issue. */ 194 /** Information about a resource with issue. */
195 class ResourceIssue { 195 class ResourceIssue {
196 /** Describes a blocked resource issue. */ 196 /** Describes a blocked resource issue. */
197 BlockedResource blockedResource; 197 BlockedResource blockedResource;
198 198
199 ResourceIssue(); 199 ResourceIssue();
200 200
201 ResourceIssue.fromJson(core.Map _json) { 201 ResourceIssue.fromJson(core.Map _json) {
202 if (_json.containsKey("blockedResource")) { 202 if (_json.containsKey("blockedResource")) {
203 blockedResource = new BlockedResource.fromJson(_json["blockedResource"]); 203 blockedResource = new BlockedResource.fromJson(_json["blockedResource"]);
204 } 204 }
205 } 205 }
206 206
207 core.Map toJson() { 207 core.Map<core.String, core.Object> toJson() {
208 var _json = new core.Map(); 208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
209 if (blockedResource != null) { 209 if (blockedResource != null) {
210 _json["blockedResource"] = (blockedResource).toJson(); 210 _json["blockedResource"] = (blockedResource).toJson();
211 } 211 }
212 return _json; 212 return _json;
213 } 213 }
214 } 214 }
215 215
216 /** Mobile-friendly test request. */ 216 /** Mobile-friendly test request. */
217 class RunMobileFriendlyTestRequest { 217 class RunMobileFriendlyTestRequest {
218 /** Whether or not screenshot is requested. Default is false. */ 218 /** Whether or not screenshot is requested. Default is false. */
219 core.bool requestScreenshot; 219 core.bool requestScreenshot;
220 /** URL for inspection. */ 220 /** URL for inspection. */
221 core.String url; 221 core.String url;
222 222
223 RunMobileFriendlyTestRequest(); 223 RunMobileFriendlyTestRequest();
224 224
225 RunMobileFriendlyTestRequest.fromJson(core.Map _json) { 225 RunMobileFriendlyTestRequest.fromJson(core.Map _json) {
226 if (_json.containsKey("requestScreenshot")) { 226 if (_json.containsKey("requestScreenshot")) {
227 requestScreenshot = _json["requestScreenshot"]; 227 requestScreenshot = _json["requestScreenshot"];
228 } 228 }
229 if (_json.containsKey("url")) { 229 if (_json.containsKey("url")) {
230 url = _json["url"]; 230 url = _json["url"];
231 } 231 }
232 } 232 }
233 233
234 core.Map toJson() { 234 core.Map<core.String, core.Object> toJson() {
235 var _json = new core.Map(); 235 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
236 if (requestScreenshot != null) { 236 if (requestScreenshot != null) {
237 _json["requestScreenshot"] = requestScreenshot; 237 _json["requestScreenshot"] = requestScreenshot;
238 } 238 }
239 if (url != null) { 239 if (url != null) {
240 _json["url"] = url; 240 _json["url"] = url;
241 } 241 }
242 return _json; 242 return _json;
243 } 243 }
244 } 244 }
245 245
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 resourceIssues = _json["resourceIssues"].map((value) => new ResourceIssue. fromJson(value)).toList(); 279 resourceIssues = _json["resourceIssues"].map((value) => new ResourceIssue. fromJson(value)).toList();
280 } 280 }
281 if (_json.containsKey("screenshot")) { 281 if (_json.containsKey("screenshot")) {
282 screenshot = new Image.fromJson(_json["screenshot"]); 282 screenshot = new Image.fromJson(_json["screenshot"]);
283 } 283 }
284 if (_json.containsKey("testStatus")) { 284 if (_json.containsKey("testStatus")) {
285 testStatus = new TestStatus.fromJson(_json["testStatus"]); 285 testStatus = new TestStatus.fromJson(_json["testStatus"]);
286 } 286 }
287 } 287 }
288 288
289 core.Map toJson() { 289 core.Map<core.String, core.Object> toJson() {
290 var _json = new core.Map(); 290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
291 if (mobileFriendliness != null) { 291 if (mobileFriendliness != null) {
292 _json["mobileFriendliness"] = mobileFriendliness; 292 _json["mobileFriendliness"] = mobileFriendliness;
293 } 293 }
294 if (mobileFriendlyIssues != null) { 294 if (mobileFriendlyIssues != null) {
295 _json["mobileFriendlyIssues"] = mobileFriendlyIssues.map((value) => (value ).toJson()).toList(); 295 _json["mobileFriendlyIssues"] = mobileFriendlyIssues.map((value) => (value ).toJson()).toList();
296 } 296 }
297 if (resourceIssues != null) { 297 if (resourceIssues != null) {
298 _json["resourceIssues"] = resourceIssues.map((value) => (value).toJson()). toList(); 298 _json["resourceIssues"] = resourceIssues.map((value) => (value).toJson()). toList();
299 } 299 }
300 if (screenshot != null) { 300 if (screenshot != null) {
(...skipping 30 matching lines...) Expand all
331 331
332 TestStatus.fromJson(core.Map _json) { 332 TestStatus.fromJson(core.Map _json) {
333 if (_json.containsKey("details")) { 333 if (_json.containsKey("details")) {
334 details = _json["details"]; 334 details = _json["details"];
335 } 335 }
336 if (_json.containsKey("status")) { 336 if (_json.containsKey("status")) {
337 status = _json["status"]; 337 status = _json["status"];
338 } 338 }
339 } 339 }
340 340
341 core.Map toJson() { 341 core.Map<core.String, core.Object> toJson() {
342 var _json = new core.Map(); 342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
343 if (details != null) { 343 if (details != null) {
344 _json["details"] = details; 344 _json["details"] = details;
345 } 345 }
346 if (status != null) { 346 if (status != null) {
347 _json["status"] = status; 347 _json["status"] = status;
348 } 348 }
349 return _json; 349 return _json;
350 } 350 }
351 } 351 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/script/v1.dart ('k') | generated/googleapis/lib/servicecontrol/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698