Index: generated/googleapis/lib/webfonts/v1.dart |
diff --git a/generated/googleapis/lib/webfonts/v1.dart b/generated/googleapis/lib/webfonts/v1.dart |
index 93797a6290d2cedff959962724cb893dbfab3dfa..9b988fa6df066c96b1f0661d6dbf04a67e5a8eca 100644 |
--- a/generated/googleapis/lib/webfonts/v1.dart |
+++ b/generated/googleapis/lib/webfonts/v1.dart |
@@ -9,55 +9,51 @@ import 'dart:convert' as convert; |
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
import 'package:http/http.dart' as http; |
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
- ApiRequestError, DetailedApiRequestError; |
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
+ show ApiRequestError, DetailedApiRequestError; |
const core.String USER_AGENT = 'dart-api-client webfonts/v1'; |
-/** |
- * Accesses the metadata for all families served by Google Fonts, providing a |
- * list of families currently available (including available styles and a list |
- * of supported script subsets). |
- */ |
+/// Accesses the metadata for all families served by Google Fonts, providing a |
+/// list of families currently available (including available styles and a list |
+/// of supported script subsets). |
class WebfontsApi { |
- |
final commons.ApiRequester _requester; |
WebfontsResourceApi get webfonts => new WebfontsResourceApi(_requester); |
- WebfontsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "webfonts/v1/"}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ WebfontsApi(http.Client client, |
+ {core.String rootUrl: "https://www.googleapis.com/", |
+ core.String servicePath: "webfonts/v1/"}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class WebfontsResourceApi { |
final commons.ApiRequester _requester; |
- WebfontsResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Retrieves the list of fonts currently served by the Google Fonts Developer |
- * API |
- * |
- * Request parameters: |
- * |
- * [sort] - Enables sorting of the list |
- * Possible string values are: |
- * - "alpha" : Sort alphabetically |
- * - "date" : Sort by date added |
- * - "popularity" : Sort by popularity |
- * - "style" : Sort by number of styles |
- * - "trending" : Sort by trending |
- * |
- * Completes with a [WebfontList]. |
- * |
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
- * error. |
- * |
- * If the used [http.Client] completes with an error when making a REST call, |
- * this method will complete with the same error. |
- */ |
+ WebfontsResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Retrieves the list of fonts currently served by the Google Fonts |
+ /// Developer API |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [sort] - Enables sorting of the list |
+ /// Possible string values are: |
+ /// - "alpha" : Sort alphabetically |
+ /// - "date" : Sort by date added |
+ /// - "popularity" : Sort by popularity |
+ /// - "style" : Sort by number of styles |
+ /// - "trending" : Sort by trending |
+ /// |
+ /// Completes with a [WebfontList]. |
+ /// |
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
+ /// an error. |
+ /// |
+ /// If the used [http.Client] completes with an error when making a REST |
+ /// call, this method will complete with the same error. |
async.Future<WebfontList> list({core.String sort}) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -72,41 +68,40 @@ class WebfontsResourceApi { |
_url = 'webfonts'; |
- var _response = _requester.request(_url, |
- "GET", |
- body: _body, |
- queryParams: _queryParams, |
- uploadOptions: _uploadOptions, |
- uploadMedia: _uploadMedia, |
- downloadOptions: _downloadOptions); |
+ var _response = _requester.request(_url, "GET", |
+ body: _body, |
+ queryParams: _queryParams, |
+ uploadOptions: _uploadOptions, |
+ uploadMedia: _uploadMedia, |
+ downloadOptions: _downloadOptions); |
return _response.then((data) => new WebfontList.fromJson(data)); |
} |
- |
} |
- |
- |
class Webfont { |
- /** The category of the font. */ |
+ /// The category of the font. |
core.String category; |
- /** The name of the font. */ |
+ |
+ /// The name of the font. |
core.String family; |
- /** |
- * The font files (with all supported scripts) for each one of the available |
- * variants, as a key : value map. |
- */ |
+ |
+ /// The font files (with all supported scripts) for each one of the available |
+ /// variants, as a key : value map. |
core.Map<core.String, core.String> files; |
- /** This kind represents a webfont object in the webfonts service. */ |
+ |
+ /// This kind represents a webfont object in the webfonts service. |
core.String kind; |
- /** |
- * The date (format "yyyy-MM-dd") the font was modified for the last time. |
- */ |
+ |
+ /// The date (format "yyyy-MM-dd") the font was modified for the last time. |
core.DateTime lastModified; |
- /** The scripts supported by the font. */ |
+ |
+ /// The scripts supported by the font. |
core.List<core.String> subsets; |
- /** The available variants for the font. */ |
+ |
+ /// The available variants for the font. |
core.List<core.String> variants; |
- /** The font version. */ |
+ |
+ /// The font version. |
core.String version; |
Webfont(); |
@@ -139,7 +134,8 @@ class Webfont { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (category != null) { |
_json["category"] = category; |
} |
@@ -153,7 +149,8 @@ class Webfont { |
_json["kind"] = kind; |
} |
if (lastModified != null) { |
- _json["lastModified"] = "${(lastModified).year.toString().padLeft(4, '0')}-${(lastModified).month.toString().padLeft(2, '0')}-${(lastModified).day.toString().padLeft(2, '0')}"; |
+ _json["lastModified"] = |
+ "${(lastModified).year.toString().padLeft(4, '0')}-${(lastModified).month.toString().padLeft(2, '0')}-${(lastModified).day.toString().padLeft(2, '0')}"; |
} |
if (subsets != null) { |
_json["subsets"] = subsets; |
@@ -169,18 +166,18 @@ class Webfont { |
} |
class WebfontList { |
- /** The list of fonts currently served by the Google Fonts API. */ |
+ /// The list of fonts currently served by the Google Fonts API. |
core.List<Webfont> items; |
- /** |
- * This kind represents a list of webfont objects in the webfonts service. |
- */ |
+ |
+ /// This kind represents a list of webfont objects in the webfonts service. |
core.String kind; |
WebfontList(); |
WebfontList.fromJson(core.Map _json) { |
if (_json.containsKey("items")) { |
- items = _json["items"].map((value) => new Webfont.fromJson(value)).toList(); |
+ items = |
+ _json["items"].map((value) => new Webfont.fromJson(value)).toList(); |
} |
if (_json.containsKey("kind")) { |
kind = _json["kind"]; |
@@ -188,7 +185,8 @@ class WebfontList { |
} |
core.Map<core.String, core.Object> toJson() { |
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>(); |
+ final core.Map<core.String, core.Object> _json = |
+ new core.Map<core.String, core.Object>(); |
if (items != null) { |
_json["items"] = items.map((value) => (value).toJson()).toList(); |
} |