| 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.pagespeedonline.v1; | 3 library googleapis.pagespeedonline.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 25 matching lines...) Expand all Loading... |
| 36 _requester = client; | 36 _requester = client; |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * Runs PageSpeed analysis on the page at the specified URL, and returns a | 39 * Runs PageSpeed analysis on the page at the specified URL, and returns a |
| 40 * PageSpeed score, a list of suggestions to make that page faster, and other | 40 * PageSpeed score, a list of suggestions to make that page faster, and other |
| 41 * information. | 41 * information. |
| 42 * | 42 * |
| 43 * Request parameters: | 43 * Request parameters: |
| 44 * | 44 * |
| 45 * [url] - The URL to fetch and analyze | 45 * [url] - The URL to fetch and analyze |
| 46 * Value must have pattern "http(s)?://.*". | 46 * Value must have pattern "(?i)http(s)?://.*". |
| 47 * | 47 * |
| 48 * [filterThirdPartyResources] - Indicates if third party resources should be | 48 * [filterThirdPartyResources] - Indicates if third party resources should be |
| 49 * filtered out before PageSpeed analysis. | 49 * filtered out before PageSpeed analysis. |
| 50 * | 50 * |
| 51 * [locale] - The locale used to localize formatted results | 51 * [locale] - The locale used to localize formatted results |
| 52 * Value must have pattern "[a-zA-Z]+(_[a-zA-Z]+)?". | 52 * Value must have pattern "[a-zA-Z]+(_[a-zA-Z]+)?". |
| 53 * | 53 * |
| 54 * [rule] - A PageSpeed rule to run; if none are given, all rules are run | 54 * [rule] - A PageSpeed rule to run; if none are given, all rules are run |
| 55 * Value must have pattern "[a-zA-Z]+". | 55 * Value must have pattern "[a-zA-Z]+". |
| 56 * | 56 * |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 } | 782 } |
| 783 if (title != null) { | 783 if (title != null) { |
| 784 _json["title"] = title; | 784 _json["title"] = title; |
| 785 } | 785 } |
| 786 if (version != null) { | 786 if (version != null) { |
| 787 _json["version"] = (version).toJson(); | 787 _json["version"] = (version).toJson(); |
| 788 } | 788 } |
| 789 return _json; | 789 return _json; |
| 790 } | 790 } |
| 791 } | 791 } |
| OLD | NEW |