OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client searchconsole/v1'; | 15 const core.String USER_AGENT = 'dart-api-client searchconsole/v1'; |
16 | 16 |
17 /** Provides tools for running validation tests against single URLs */ | 17 /// Provides tools for running validation tests against single URLs |
18 class SearchconsoleApi { | 18 class SearchconsoleApi { |
19 | |
20 final commons.ApiRequester _requester; | 19 final commons.ApiRequester _requester; |
21 | 20 |
22 UrlTestingToolsResourceApi get urlTestingTools => new UrlTestingToolsResourceA
pi(_requester); | 21 UrlTestingToolsResourceApi get urlTestingTools => |
| 22 new UrlTestingToolsResourceApi(_requester); |
23 | 23 |
24 SearchconsoleApi(http.Client client, {core.String rootUrl: "https://searchcons
ole.googleapis.com/", core.String servicePath: ""}) : | 24 SearchconsoleApi(http.Client client, |
25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 25 {core.String rootUrl: "https://searchconsole.googleapis.com/", |
| 26 core.String servicePath: ""}) |
| 27 : _requester = |
| 28 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
26 } | 29 } |
27 | 30 |
28 | |
29 class UrlTestingToolsResourceApi { | 31 class UrlTestingToolsResourceApi { |
30 final commons.ApiRequester _requester; | 32 final commons.ApiRequester _requester; |
31 | 33 |
32 UrlTestingToolsMobileFriendlyTestResourceApi get mobileFriendlyTest => new Url
TestingToolsMobileFriendlyTestResourceApi(_requester); | 34 UrlTestingToolsMobileFriendlyTestResourceApi get mobileFriendlyTest => |
| 35 new UrlTestingToolsMobileFriendlyTestResourceApi(_requester); |
33 | 36 |
34 UrlTestingToolsResourceApi(commons.ApiRequester client) : | 37 UrlTestingToolsResourceApi(commons.ApiRequester client) : _requester = client; |
35 _requester = client; | |
36 } | 38 } |
37 | 39 |
38 | |
39 class UrlTestingToolsMobileFriendlyTestResourceApi { | 40 class UrlTestingToolsMobileFriendlyTestResourceApi { |
40 final commons.ApiRequester _requester; | 41 final commons.ApiRequester _requester; |
41 | 42 |
42 UrlTestingToolsMobileFriendlyTestResourceApi(commons.ApiRequester client) : | 43 UrlTestingToolsMobileFriendlyTestResourceApi(commons.ApiRequester client) |
43 _requester = client; | 44 : _requester = client; |
44 | 45 |
45 /** | 46 /// Runs Mobile-Friendly Test for a given URL. |
46 * Runs Mobile-Friendly Test for a given URL. | 47 /// |
47 * | 48 /// [request] - The metadata request object. |
48 * [request] - The metadata request object. | 49 /// |
49 * | 50 /// Request parameters: |
50 * Request parameters: | 51 /// |
51 * | 52 /// Completes with a [RunMobileFriendlyTestResponse]. |
52 * Completes with a [RunMobileFriendlyTestResponse]. | 53 /// |
53 * | 54 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
54 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 55 /// an error. |
55 * error. | 56 /// |
56 * | 57 /// If the used [http.Client] completes with an error when making a REST |
57 * If the used [http.Client] completes with an error when making a REST call, | 58 /// call, this method will complete with the same error. |
58 * this method will complete with the same error. | 59 async.Future<RunMobileFriendlyTestResponse> run( |
59 */ | 60 RunMobileFriendlyTestRequest request) { |
60 async.Future<RunMobileFriendlyTestResponse> run(RunMobileFriendlyTestRequest r
equest) { | |
61 var _url = null; | 61 var _url = null; |
62 var _queryParams = new core.Map(); | 62 var _queryParams = new core.Map(); |
63 var _uploadMedia = null; | 63 var _uploadMedia = null; |
64 var _uploadOptions = null; | 64 var _uploadOptions = null; |
65 var _downloadOptions = commons.DownloadOptions.Metadata; | 65 var _downloadOptions = commons.DownloadOptions.Metadata; |
66 var _body = null; | 66 var _body = null; |
67 | 67 |
68 if (request != null) { | 68 if (request != null) { |
69 _body = convert.JSON.encode((request).toJson()); | 69 _body = convert.JSON.encode((request).toJson()); |
70 } | 70 } |
71 | 71 |
72 _url = 'v1/urlTestingTools/mobileFriendlyTest:run'; | 72 _url = 'v1/urlTestingTools/mobileFriendlyTest:run'; |
73 | 73 |
74 var _response = _requester.request(_url, | 74 var _response = _requester.request(_url, "POST", |
75 "POST", | 75 body: _body, |
76 body: _body, | 76 queryParams: _queryParams, |
77 queryParams: _queryParams, | 77 uploadOptions: _uploadOptions, |
78 uploadOptions: _uploadOptions, | 78 uploadMedia: _uploadMedia, |
79 uploadMedia: _uploadMedia, | 79 downloadOptions: _downloadOptions); |
80 downloadOptions: _downloadOptions); | 80 return _response |
81 return _response.then((data) => new RunMobileFriendlyTestResponse.fromJson(d
ata)); | 81 .then((data) => new RunMobileFriendlyTestResponse.fromJson(data)); |
82 } | 82 } |
83 | |
84 } | 83 } |
85 | 84 |
86 | 85 /// Blocked resource. |
87 | |
88 /** Blocked resource. */ | |
89 class BlockedResource { | 86 class BlockedResource { |
90 /** URL of the blocked resource. */ | 87 /// URL of the blocked resource. |
91 core.String url; | 88 core.String url; |
92 | 89 |
93 BlockedResource(); | 90 BlockedResource(); |
94 | 91 |
95 BlockedResource.fromJson(core.Map _json) { | 92 BlockedResource.fromJson(core.Map _json) { |
96 if (_json.containsKey("url")) { | 93 if (_json.containsKey("url")) { |
97 url = _json["url"]; | 94 url = _json["url"]; |
98 } | 95 } |
99 } | 96 } |
100 | 97 |
101 core.Map<core.String, core.Object> toJson() { | 98 core.Map<core.String, core.Object> toJson() { |
102 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 99 final core.Map<core.String, core.Object> _json = |
| 100 new core.Map<core.String, core.Object>(); |
103 if (url != null) { | 101 if (url != null) { |
104 _json["url"] = url; | 102 _json["url"] = url; |
105 } | 103 } |
106 return _json; | 104 return _json; |
107 } | 105 } |
108 } | 106 } |
109 | 107 |
110 /** Describe image data. */ | 108 /// Describe image data. |
111 class Image { | 109 class Image { |
112 /** | 110 /// Image data in format determined by the mime type. Currently, the format |
113 * Image data in format determined by the mime type. Currently, the format | 111 /// will always be "image/png", but this might change in the future. |
114 * will always be "image/png", but this might change in the future. | |
115 */ | |
116 core.String data; | 112 core.String data; |
117 core.List<core.int> get dataAsBytes { | 113 core.List<core.int> get dataAsBytes { |
118 return convert.BASE64.decode(data); | 114 return convert.BASE64.decode(data); |
119 } | 115 } |
120 | 116 |
121 void set dataAsBytes(core.List<core.int> _bytes) { | 117 void set dataAsBytes(core.List<core.int> _bytes) { |
122 data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-
"); | 118 data = |
| 119 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
123 } | 120 } |
124 /** The mime-type of the image data. */ | 121 |
| 122 /// The mime-type of the image data. |
125 core.String mimeType; | 123 core.String mimeType; |
126 | 124 |
127 Image(); | 125 Image(); |
128 | 126 |
129 Image.fromJson(core.Map _json) { | 127 Image.fromJson(core.Map _json) { |
130 if (_json.containsKey("data")) { | 128 if (_json.containsKey("data")) { |
131 data = _json["data"]; | 129 data = _json["data"]; |
132 } | 130 } |
133 if (_json.containsKey("mimeType")) { | 131 if (_json.containsKey("mimeType")) { |
134 mimeType = _json["mimeType"]; | 132 mimeType = _json["mimeType"]; |
135 } | 133 } |
136 } | 134 } |
137 | 135 |
138 core.Map<core.String, core.Object> toJson() { | 136 core.Map<core.String, core.Object> toJson() { |
139 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 137 final core.Map<core.String, core.Object> _json = |
| 138 new core.Map<core.String, core.Object>(); |
140 if (data != null) { | 139 if (data != null) { |
141 _json["data"] = data; | 140 _json["data"] = data; |
142 } | 141 } |
143 if (mimeType != null) { | 142 if (mimeType != null) { |
144 _json["mimeType"] = mimeType; | 143 _json["mimeType"] = mimeType; |
145 } | 144 } |
146 return _json; | 145 return _json; |
147 } | 146 } |
148 } | 147 } |
149 | 148 |
150 /** Mobile-friendly issue. */ | 149 /// Mobile-friendly issue. |
151 class MobileFriendlyIssue { | 150 class MobileFriendlyIssue { |
152 /** | 151 /// Rule violated. |
153 * Rule violated. | 152 /// Possible string values are: |
154 * Possible string values are: | 153 /// - "MOBILE_FRIENDLY_RULE_UNSPECIFIED" : Unknown rule. Sorry, we don't have |
155 * - "MOBILE_FRIENDLY_RULE_UNSPECIFIED" : Unknown rule. Sorry, we don't have | 154 /// any description for the rule that was |
156 * any description for the rule that was | 155 /// broken. |
157 * broken. | 156 /// - "USES_INCOMPATIBLE_PLUGINS" : Plugins incompatible with mobile devices |
158 * - "USES_INCOMPATIBLE_PLUGINS" : Plugins incompatible with mobile devices | 157 /// are being used. [Learn more] |
159 * are being used. [Learn more] | 158 /// (https://support.google.com/webmasters/answer/6352293#flash_usage). |
160 * (https://support.google.com/webmasters/answer/6352293#flash_usage). | 159 /// - "CONFIGURE_VIEWPORT" : Viewsport is not specified using the meta |
161 * - "CONFIGURE_VIEWPORT" : Viewsport is not specified using the meta viewport | 160 /// viewport tag. [Learn more] |
162 * tag. [Learn more] | 161 /// (https://support.google.com/webmasters/answer/6352293#viewport_not_configu
red). |
163 * (https://support.google.com/webmasters/answer/6352293#viewport_not_configur
ed). | 162 /// - "FIXED_WIDTH_VIEWPORT" : Viewport defined to a fixed width. [Learn |
164 * - "FIXED_WIDTH_VIEWPORT" : Viewport defined to a fixed width. [Learn more] | 163 /// more] |
165 * (https://support.google.com/webmasters/answer/6352293#fixed-width_viewport)
. | 164 /// (https://support.google.com/webmasters/answer/6352293#fixed-width_viewport
). |
166 * - "SIZE_CONTENT_TO_VIEWPORT" : Content not sized to viewport. [Learn more] | 165 /// - "SIZE_CONTENT_TO_VIEWPORT" : Content not sized to viewport. [Learn |
167 * (https://support.google.com/webmasters/answer/6352293#content_not_sized_to_
viewport). | 166 /// more] |
168 * - "USE_LEGIBLE_FONT_SIZES" : Font size is too small for easy reading on a | 167 /// (https://support.google.com/webmasters/answer/6352293#content_not_sized_to
_viewport). |
169 * small screen. [Learn More] | 168 /// - "USE_LEGIBLE_FONT_SIZES" : Font size is too small for easy reading on a |
170 * (https://support.google.com/webmasters/answer/6352293#small_font_size). | 169 /// small screen. [Learn More] |
171 * - "TAP_TARGETS_TOO_CLOSE" : Touch elements are too close to each other. | 170 /// (https://support.google.com/webmasters/answer/6352293#small_font_size). |
172 * [Learn more] | 171 /// - "TAP_TARGETS_TOO_CLOSE" : Touch elements are too close to each other. |
173 * (https://support.google.com/webmasters/answer/6352293#touch_elements_too_cl
ose). | 172 /// [Learn more] |
174 */ | 173 /// (https://support.google.com/webmasters/answer/6352293#touch_elements_too_c
lose). |
175 core.String rule; | 174 core.String rule; |
176 | 175 |
177 MobileFriendlyIssue(); | 176 MobileFriendlyIssue(); |
178 | 177 |
179 MobileFriendlyIssue.fromJson(core.Map _json) { | 178 MobileFriendlyIssue.fromJson(core.Map _json) { |
180 if (_json.containsKey("rule")) { | 179 if (_json.containsKey("rule")) { |
181 rule = _json["rule"]; | 180 rule = _json["rule"]; |
182 } | 181 } |
183 } | 182 } |
184 | 183 |
185 core.Map<core.String, core.Object> toJson() { | 184 core.Map<core.String, core.Object> toJson() { |
186 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 185 final core.Map<core.String, core.Object> _json = |
| 186 new core.Map<core.String, core.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<core.String, core.Object> toJson() { | 207 core.Map<core.String, core.Object> toJson() { |
208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 208 final core.Map<core.String, core.Object> _json = |
| 209 new core.Map<core.String, core.Object>(); |
209 if (blockedResource != null) { | 210 if (blockedResource != null) { |
210 _json["blockedResource"] = (blockedResource).toJson(); | 211 _json["blockedResource"] = (blockedResource).toJson(); |
211 } | 212 } |
212 return _json; | 213 return _json; |
213 } | 214 } |
214 } | 215 } |
215 | 216 |
216 /** Mobile-friendly test request. */ | 217 /// Mobile-friendly test request. |
217 class RunMobileFriendlyTestRequest { | 218 class RunMobileFriendlyTestRequest { |
218 /** Whether or not screenshot is requested. Default is false. */ | 219 /// Whether or not screenshot is requested. Default is false. |
219 core.bool requestScreenshot; | 220 core.bool requestScreenshot; |
220 /** URL for inspection. */ | 221 |
| 222 /// URL for inspection. |
221 core.String url; | 223 core.String url; |
222 | 224 |
223 RunMobileFriendlyTestRequest(); | 225 RunMobileFriendlyTestRequest(); |
224 | 226 |
225 RunMobileFriendlyTestRequest.fromJson(core.Map _json) { | 227 RunMobileFriendlyTestRequest.fromJson(core.Map _json) { |
226 if (_json.containsKey("requestScreenshot")) { | 228 if (_json.containsKey("requestScreenshot")) { |
227 requestScreenshot = _json["requestScreenshot"]; | 229 requestScreenshot = _json["requestScreenshot"]; |
228 } | 230 } |
229 if (_json.containsKey("url")) { | 231 if (_json.containsKey("url")) { |
230 url = _json["url"]; | 232 url = _json["url"]; |
231 } | 233 } |
232 } | 234 } |
233 | 235 |
234 core.Map<core.String, core.Object> toJson() { | 236 core.Map<core.String, core.Object> toJson() { |
235 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 237 final core.Map<core.String, core.Object> _json = |
| 238 new core.Map<core.String, core.Object>(); |
236 if (requestScreenshot != null) { | 239 if (requestScreenshot != null) { |
237 _json["requestScreenshot"] = requestScreenshot; | 240 _json["requestScreenshot"] = requestScreenshot; |
238 } | 241 } |
239 if (url != null) { | 242 if (url != null) { |
240 _json["url"] = url; | 243 _json["url"] = url; |
241 } | 244 } |
242 return _json; | 245 return _json; |
243 } | 246 } |
244 } | 247 } |
245 | 248 |
246 /** | 249 /// Mobile-friendly test response, including mobile-friendly issues and |
247 * Mobile-friendly test response, including mobile-friendly issues and resource | 250 /// resource |
248 * issues. | 251 /// issues. |
249 */ | |
250 class RunMobileFriendlyTestResponse { | 252 class RunMobileFriendlyTestResponse { |
251 /** | 253 /// Test verdict, whether the page is mobile friendly or not. |
252 * Test verdict, whether the page is mobile friendly or not. | 254 /// Possible string values are: |
253 * Possible string values are: | 255 /// - "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED" : Internal error when running |
254 * - "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED" : Internal error when running | 256 /// this test. Please try running the test again. |
255 * this test. Please try running the test again. | 257 /// - "MOBILE_FRIENDLY" : The page is mobile friendly. |
256 * - "MOBILE_FRIENDLY" : The page is mobile friendly. | 258 /// - "NOT_MOBILE_FRIENDLY" : The page is not mobile friendly. |
257 * - "NOT_MOBILE_FRIENDLY" : The page is not mobile friendly. | |
258 */ | |
259 core.String mobileFriendliness; | 259 core.String mobileFriendliness; |
260 /** List of mobile-usability issues. */ | 260 |
| 261 /// List of mobile-usability issues. |
261 core.List<MobileFriendlyIssue> mobileFriendlyIssues; | 262 core.List<MobileFriendlyIssue> mobileFriendlyIssues; |
262 /** Information about embedded resources issues. */ | 263 |
| 264 /// Information about embedded resources issues. |
263 core.List<ResourceIssue> resourceIssues; | 265 core.List<ResourceIssue> resourceIssues; |
264 /** Screenshot of the requested URL. */ | 266 |
| 267 /// Screenshot of the requested URL. |
265 Image screenshot; | 268 Image screenshot; |
266 /** Final state of the test, can be either complete or an error. */ | 269 |
| 270 /// Final state of the test, can be either complete or an error. |
267 TestStatus testStatus; | 271 TestStatus testStatus; |
268 | 272 |
269 RunMobileFriendlyTestResponse(); | 273 RunMobileFriendlyTestResponse(); |
270 | 274 |
271 RunMobileFriendlyTestResponse.fromJson(core.Map _json) { | 275 RunMobileFriendlyTestResponse.fromJson(core.Map _json) { |
272 if (_json.containsKey("mobileFriendliness")) { | 276 if (_json.containsKey("mobileFriendliness")) { |
273 mobileFriendliness = _json["mobileFriendliness"]; | 277 mobileFriendliness = _json["mobileFriendliness"]; |
274 } | 278 } |
275 if (_json.containsKey("mobileFriendlyIssues")) { | 279 if (_json.containsKey("mobileFriendlyIssues")) { |
276 mobileFriendlyIssues = _json["mobileFriendlyIssues"].map((value) => new Mo
bileFriendlyIssue.fromJson(value)).toList(); | 280 mobileFriendlyIssues = _json["mobileFriendlyIssues"] |
| 281 .map((value) => new MobileFriendlyIssue.fromJson(value)) |
| 282 .toList(); |
277 } | 283 } |
278 if (_json.containsKey("resourceIssues")) { | 284 if (_json.containsKey("resourceIssues")) { |
279 resourceIssues = _json["resourceIssues"].map((value) => new ResourceIssue.
fromJson(value)).toList(); | 285 resourceIssues = _json["resourceIssues"] |
| 286 .map((value) => new ResourceIssue.fromJson(value)) |
| 287 .toList(); |
280 } | 288 } |
281 if (_json.containsKey("screenshot")) { | 289 if (_json.containsKey("screenshot")) { |
282 screenshot = new Image.fromJson(_json["screenshot"]); | 290 screenshot = new Image.fromJson(_json["screenshot"]); |
283 } | 291 } |
284 if (_json.containsKey("testStatus")) { | 292 if (_json.containsKey("testStatus")) { |
285 testStatus = new TestStatus.fromJson(_json["testStatus"]); | 293 testStatus = new TestStatus.fromJson(_json["testStatus"]); |
286 } | 294 } |
287 } | 295 } |
288 | 296 |
289 core.Map<core.String, core.Object> toJson() { | 297 core.Map<core.String, core.Object> toJson() { |
290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 298 final core.Map<core.String, core.Object> _json = |
| 299 new core.Map<core.String, core.Object>(); |
291 if (mobileFriendliness != null) { | 300 if (mobileFriendliness != null) { |
292 _json["mobileFriendliness"] = mobileFriendliness; | 301 _json["mobileFriendliness"] = mobileFriendliness; |
293 } | 302 } |
294 if (mobileFriendlyIssues != null) { | 303 if (mobileFriendlyIssues != null) { |
295 _json["mobileFriendlyIssues"] = mobileFriendlyIssues.map((value) => (value
).toJson()).toList(); | 304 _json["mobileFriendlyIssues"] = |
| 305 mobileFriendlyIssues.map((value) => (value).toJson()).toList(); |
296 } | 306 } |
297 if (resourceIssues != null) { | 307 if (resourceIssues != null) { |
298 _json["resourceIssues"] = resourceIssues.map((value) => (value).toJson()).
toList(); | 308 _json["resourceIssues"] = |
| 309 resourceIssues.map((value) => (value).toJson()).toList(); |
299 } | 310 } |
300 if (screenshot != null) { | 311 if (screenshot != null) { |
301 _json["screenshot"] = (screenshot).toJson(); | 312 _json["screenshot"] = (screenshot).toJson(); |
302 } | 313 } |
303 if (testStatus != null) { | 314 if (testStatus != null) { |
304 _json["testStatus"] = (testStatus).toJson(); | 315 _json["testStatus"] = (testStatus).toJson(); |
305 } | 316 } |
306 return _json; | 317 return _json; |
307 } | 318 } |
308 } | 319 } |
309 | 320 |
310 /** Final state of the test, including error details if necessary. */ | 321 /// Final state of the test, including error details if necessary. |
311 class TestStatus { | 322 class TestStatus { |
312 /** Error details if applicable. */ | 323 /// Error details if applicable. |
313 core.String details; | 324 core.String details; |
314 /** | 325 |
315 * Status of the test. | 326 /// Status of the test. |
316 * Possible string values are: | 327 /// Possible string values are: |
317 * - "TEST_STATUS_UNSPECIFIED" : Internal error when running this test. Please | 328 /// - "TEST_STATUS_UNSPECIFIED" : Internal error when running this test. |
318 * try running the test again. | 329 /// Please try running the test again. |
319 * - "COMPLETE" : Inspection has completed without errors. | 330 /// - "COMPLETE" : Inspection has completed without errors. |
320 * - "INTERNAL_ERROR" : Inspection terminated in an error state. This | 331 /// - "INTERNAL_ERROR" : Inspection terminated in an error state. This |
321 * indicates a problem in | 332 /// indicates a problem in |
322 * Google's infrastructure, not a user error. Please try again later. | 333 /// Google's infrastructure, not a user error. Please try again later. |
323 * - "PAGE_UNREACHABLE" : Google can not access the URL because of a user | 334 /// - "PAGE_UNREACHABLE" : Google can not access the URL because of a user |
324 * error such as a robots.txt | 335 /// error such as a robots.txt |
325 * blockage, a 403 or 500 code etc. Please make sure that the URL provided is | 336 /// blockage, a 403 or 500 code etc. Please make sure that the URL provided |
326 * accessible by Googlebot and is not password protected. | 337 /// is |
327 */ | 338 /// accessible by Googlebot and is not password protected. |
328 core.String status; | 339 core.String status; |
329 | 340 |
330 TestStatus(); | 341 TestStatus(); |
331 | 342 |
332 TestStatus.fromJson(core.Map _json) { | 343 TestStatus.fromJson(core.Map _json) { |
333 if (_json.containsKey("details")) { | 344 if (_json.containsKey("details")) { |
334 details = _json["details"]; | 345 details = _json["details"]; |
335 } | 346 } |
336 if (_json.containsKey("status")) { | 347 if (_json.containsKey("status")) { |
337 status = _json["status"]; | 348 status = _json["status"]; |
338 } | 349 } |
339 } | 350 } |
340 | 351 |
341 core.Map<core.String, core.Object> toJson() { | 352 core.Map<core.String, core.Object> toJson() { |
342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 353 final core.Map<core.String, core.Object> _json = |
| 354 new core.Map<core.String, core.Object>(); |
343 if (details != null) { | 355 if (details != null) { |
344 _json["details"] = details; | 356 _json["details"] = details; |
345 } | 357 } |
346 if (status != null) { | 358 if (status != null) { |
347 _json["status"] = status; | 359 _json["status"] = status; |
348 } | 360 } |
349 return _json; | 361 return _json; |
350 } | 362 } |
351 } | 363 } |
OLD | NEW |