| Index: generated/googleapis/lib/searchconsole/v1.dart
|
| diff --git a/generated/googleapis/lib/searchconsole/v1.dart b/generated/googleapis/lib/searchconsole/v1.dart
|
| index bc36225cce6adeef3a675e66df4c59280ccc386c..899c4f29c76f8594255a85cbf64915041c47ebcd 100644
|
| --- a/generated/googleapis/lib/searchconsole/v1.dart
|
| +++ b/generated/googleapis/lib/searchconsole/v1.dart
|
| @@ -9,55 +9,55 @@ 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 searchconsole/v1';
|
|
|
| -/** Provides tools for running validation tests against single URLs */
|
| +/// Provides tools for running validation tests against single URLs
|
| class SearchconsoleApi {
|
| -
|
| final commons.ApiRequester _requester;
|
|
|
| - UrlTestingToolsResourceApi get urlTestingTools => new UrlTestingToolsResourceApi(_requester);
|
| + UrlTestingToolsResourceApi get urlTestingTools =>
|
| + new UrlTestingToolsResourceApi(_requester);
|
|
|
| - SearchconsoleApi(http.Client client, {core.String rootUrl: "https://searchconsole.googleapis.com/", core.String servicePath: ""}) :
|
| - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| + SearchconsoleApi(http.Client client,
|
| + {core.String rootUrl: "https://searchconsole.googleapis.com/",
|
| + core.String servicePath: ""})
|
| + : _requester =
|
| + new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
|
| }
|
|
|
| -
|
| class UrlTestingToolsResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - UrlTestingToolsMobileFriendlyTestResourceApi get mobileFriendlyTest => new UrlTestingToolsMobileFriendlyTestResourceApi(_requester);
|
| + UrlTestingToolsMobileFriendlyTestResourceApi get mobileFriendlyTest =>
|
| + new UrlTestingToolsMobileFriendlyTestResourceApi(_requester);
|
|
|
| - UrlTestingToolsResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| + UrlTestingToolsResourceApi(commons.ApiRequester client) : _requester = client;
|
| }
|
|
|
| -
|
| class UrlTestingToolsMobileFriendlyTestResourceApi {
|
| final commons.ApiRequester _requester;
|
|
|
| - UrlTestingToolsMobileFriendlyTestResourceApi(commons.ApiRequester client) :
|
| - _requester = client;
|
| -
|
| - /**
|
| - * Runs Mobile-Friendly Test for a given URL.
|
| - *
|
| - * [request] - The metadata request object.
|
| - *
|
| - * Request parameters:
|
| - *
|
| - * Completes with a [RunMobileFriendlyTestResponse].
|
| - *
|
| - * 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<RunMobileFriendlyTestResponse> run(RunMobileFriendlyTestRequest request) {
|
| + UrlTestingToolsMobileFriendlyTestResourceApi(commons.ApiRequester client)
|
| + : _requester = client;
|
| +
|
| + /// Runs Mobile-Friendly Test for a given URL.
|
| + ///
|
| + /// [request] - The metadata request object.
|
| + ///
|
| + /// Request parameters:
|
| + ///
|
| + /// Completes with a [RunMobileFriendlyTestResponse].
|
| + ///
|
| + /// 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<RunMobileFriendlyTestResponse> run(
|
| + RunMobileFriendlyTestRequest request) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -71,23 +71,20 @@ class UrlTestingToolsMobileFriendlyTestResourceApi {
|
|
|
| _url = 'v1/urlTestingTools/mobileFriendlyTest:run';
|
|
|
| - var _response = _requester.request(_url,
|
| - "POST",
|
| - body: _body,
|
| - queryParams: _queryParams,
|
| - uploadOptions: _uploadOptions,
|
| - uploadMedia: _uploadMedia,
|
| - downloadOptions: _downloadOptions);
|
| - return _response.then((data) => new RunMobileFriendlyTestResponse.fromJson(data));
|
| + var _response = _requester.request(_url, "POST",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response
|
| + .then((data) => new RunMobileFriendlyTestResponse.fromJson(data));
|
| }
|
| -
|
| }
|
|
|
| -
|
| -
|
| -/** Blocked resource. */
|
| +/// Blocked resource.
|
| class BlockedResource {
|
| - /** URL of the blocked resource. */
|
| + /// URL of the blocked resource.
|
| core.String url;
|
|
|
| BlockedResource();
|
| @@ -99,7 +96,8 @@ class BlockedResource {
|
| }
|
|
|
| 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 (url != null) {
|
| _json["url"] = url;
|
| }
|
| @@ -107,21 +105,21 @@ class BlockedResource {
|
| }
|
| }
|
|
|
| -/** Describe image data. */
|
| +/// Describe image data.
|
| class Image {
|
| - /**
|
| - * Image data in format determined by the mime type. Currently, the format
|
| - * will always be "image/png", but this might change in the future.
|
| - */
|
| + /// Image data in format determined by the mime type. Currently, the format
|
| + /// will always be "image/png", but this might change in the future.
|
| core.String data;
|
| core.List<core.int> get dataAsBytes {
|
| return convert.BASE64.decode(data);
|
| }
|
|
|
| void set dataAsBytes(core.List<core.int> _bytes) {
|
| - data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| + data =
|
| + convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-");
|
| }
|
| - /** The mime-type of the image data. */
|
| +
|
| + /// The mime-type of the image data.
|
| core.String mimeType;
|
|
|
| Image();
|
| @@ -136,7 +134,8 @@ class Image {
|
| }
|
|
|
| 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 (data != null) {
|
| _json["data"] = data;
|
| }
|
| @@ -147,31 +146,31 @@ class Image {
|
| }
|
| }
|
|
|
| -/** Mobile-friendly issue. */
|
| +/// Mobile-friendly issue.
|
| class MobileFriendlyIssue {
|
| - /**
|
| - * Rule violated.
|
| - * Possible string values are:
|
| - * - "MOBILE_FRIENDLY_RULE_UNSPECIFIED" : Unknown rule. Sorry, we don't have
|
| - * any description for the rule that was
|
| - * broken.
|
| - * - "USES_INCOMPATIBLE_PLUGINS" : Plugins incompatible with mobile devices
|
| - * are being used. [Learn more]
|
| - * (https://support.google.com/webmasters/answer/6352293#flash_usage).
|
| - * - "CONFIGURE_VIEWPORT" : Viewsport is not specified using the meta viewport
|
| - * tag. [Learn more]
|
| - * (https://support.google.com/webmasters/answer/6352293#viewport_not_configured).
|
| - * - "FIXED_WIDTH_VIEWPORT" : Viewport defined to a fixed width. [Learn more]
|
| - * (https://support.google.com/webmasters/answer/6352293#fixed-width_viewport).
|
| - * - "SIZE_CONTENT_TO_VIEWPORT" : Content not sized to viewport. [Learn more]
|
| - * (https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).
|
| - * - "USE_LEGIBLE_FONT_SIZES" : Font size is too small for easy reading on a
|
| - * small screen. [Learn More]
|
| - * (https://support.google.com/webmasters/answer/6352293#small_font_size).
|
| - * - "TAP_TARGETS_TOO_CLOSE" : Touch elements are too close to each other.
|
| - * [Learn more]
|
| - * (https://support.google.com/webmasters/answer/6352293#touch_elements_too_close).
|
| - */
|
| + /// Rule violated.
|
| + /// Possible string values are:
|
| + /// - "MOBILE_FRIENDLY_RULE_UNSPECIFIED" : Unknown rule. Sorry, we don't have
|
| + /// any description for the rule that was
|
| + /// broken.
|
| + /// - "USES_INCOMPATIBLE_PLUGINS" : Plugins incompatible with mobile devices
|
| + /// are being used. [Learn more]
|
| + /// (https://support.google.com/webmasters/answer/6352293#flash_usage).
|
| + /// - "CONFIGURE_VIEWPORT" : Viewsport is not specified using the meta
|
| + /// viewport tag. [Learn more]
|
| + /// (https://support.google.com/webmasters/answer/6352293#viewport_not_configured).
|
| + /// - "FIXED_WIDTH_VIEWPORT" : Viewport defined to a fixed width. [Learn
|
| + /// more]
|
| + /// (https://support.google.com/webmasters/answer/6352293#fixed-width_viewport).
|
| + /// - "SIZE_CONTENT_TO_VIEWPORT" : Content not sized to viewport. [Learn
|
| + /// more]
|
| + /// (https://support.google.com/webmasters/answer/6352293#content_not_sized_to_viewport).
|
| + /// - "USE_LEGIBLE_FONT_SIZES" : Font size is too small for easy reading on a
|
| + /// small screen. [Learn More]
|
| + /// (https://support.google.com/webmasters/answer/6352293#small_font_size).
|
| + /// - "TAP_TARGETS_TOO_CLOSE" : Touch elements are too close to each other.
|
| + /// [Learn more]
|
| + /// (https://support.google.com/webmasters/answer/6352293#touch_elements_too_close).
|
| core.String rule;
|
|
|
| MobileFriendlyIssue();
|
| @@ -183,7 +182,8 @@ class MobileFriendlyIssue {
|
| }
|
|
|
| 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 (rule != null) {
|
| _json["rule"] = rule;
|
| }
|
| @@ -191,9 +191,9 @@ class MobileFriendlyIssue {
|
| }
|
| }
|
|
|
| -/** Information about a resource with issue. */
|
| +/// Information about a resource with issue.
|
| class ResourceIssue {
|
| - /** Describes a blocked resource issue. */
|
| + /// Describes a blocked resource issue.
|
| BlockedResource blockedResource;
|
|
|
| ResourceIssue();
|
| @@ -205,7 +205,8 @@ class ResourceIssue {
|
| }
|
|
|
| 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 (blockedResource != null) {
|
| _json["blockedResource"] = (blockedResource).toJson();
|
| }
|
| @@ -213,11 +214,12 @@ class ResourceIssue {
|
| }
|
| }
|
|
|
| -/** Mobile-friendly test request. */
|
| +/// Mobile-friendly test request.
|
| class RunMobileFriendlyTestRequest {
|
| - /** Whether or not screenshot is requested. Default is false. */
|
| + /// Whether or not screenshot is requested. Default is false.
|
| core.bool requestScreenshot;
|
| - /** URL for inspection. */
|
| +
|
| + /// URL for inspection.
|
| core.String url;
|
|
|
| RunMobileFriendlyTestRequest();
|
| @@ -232,7 +234,8 @@ class RunMobileFriendlyTestRequest {
|
| }
|
|
|
| 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 (requestScreenshot != null) {
|
| _json["requestScreenshot"] = requestScreenshot;
|
| }
|
| @@ -243,27 +246,28 @@ class RunMobileFriendlyTestRequest {
|
| }
|
| }
|
|
|
| -/**
|
| - * Mobile-friendly test response, including mobile-friendly issues and resource
|
| - * issues.
|
| - */
|
| +/// Mobile-friendly test response, including mobile-friendly issues and
|
| +/// resource
|
| +/// issues.
|
| class RunMobileFriendlyTestResponse {
|
| - /**
|
| - * Test verdict, whether the page is mobile friendly or not.
|
| - * Possible string values are:
|
| - * - "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED" : Internal error when running
|
| - * this test. Please try running the test again.
|
| - * - "MOBILE_FRIENDLY" : The page is mobile friendly.
|
| - * - "NOT_MOBILE_FRIENDLY" : The page is not mobile friendly.
|
| - */
|
| + /// Test verdict, whether the page is mobile friendly or not.
|
| + /// Possible string values are:
|
| + /// - "MOBILE_FRIENDLY_TEST_RESULT_UNSPECIFIED" : Internal error when running
|
| + /// this test. Please try running the test again.
|
| + /// - "MOBILE_FRIENDLY" : The page is mobile friendly.
|
| + /// - "NOT_MOBILE_FRIENDLY" : The page is not mobile friendly.
|
| core.String mobileFriendliness;
|
| - /** List of mobile-usability issues. */
|
| +
|
| + /// List of mobile-usability issues.
|
| core.List<MobileFriendlyIssue> mobileFriendlyIssues;
|
| - /** Information about embedded resources issues. */
|
| +
|
| + /// Information about embedded resources issues.
|
| core.List<ResourceIssue> resourceIssues;
|
| - /** Screenshot of the requested URL. */
|
| +
|
| + /// Screenshot of the requested URL.
|
| Image screenshot;
|
| - /** Final state of the test, can be either complete or an error. */
|
| +
|
| + /// Final state of the test, can be either complete or an error.
|
| TestStatus testStatus;
|
|
|
| RunMobileFriendlyTestResponse();
|
| @@ -273,10 +277,14 @@ class RunMobileFriendlyTestResponse {
|
| mobileFriendliness = _json["mobileFriendliness"];
|
| }
|
| if (_json.containsKey("mobileFriendlyIssues")) {
|
| - mobileFriendlyIssues = _json["mobileFriendlyIssues"].map((value) => new MobileFriendlyIssue.fromJson(value)).toList();
|
| + mobileFriendlyIssues = _json["mobileFriendlyIssues"]
|
| + .map((value) => new MobileFriendlyIssue.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("resourceIssues")) {
|
| - resourceIssues = _json["resourceIssues"].map((value) => new ResourceIssue.fromJson(value)).toList();
|
| + resourceIssues = _json["resourceIssues"]
|
| + .map((value) => new ResourceIssue.fromJson(value))
|
| + .toList();
|
| }
|
| if (_json.containsKey("screenshot")) {
|
| screenshot = new Image.fromJson(_json["screenshot"]);
|
| @@ -287,15 +295,18 @@ class RunMobileFriendlyTestResponse {
|
| }
|
|
|
| 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 (mobileFriendliness != null) {
|
| _json["mobileFriendliness"] = mobileFriendliness;
|
| }
|
| if (mobileFriendlyIssues != null) {
|
| - _json["mobileFriendlyIssues"] = mobileFriendlyIssues.map((value) => (value).toJson()).toList();
|
| + _json["mobileFriendlyIssues"] =
|
| + mobileFriendlyIssues.map((value) => (value).toJson()).toList();
|
| }
|
| if (resourceIssues != null) {
|
| - _json["resourceIssues"] = resourceIssues.map((value) => (value).toJson()).toList();
|
| + _json["resourceIssues"] =
|
| + resourceIssues.map((value) => (value).toJson()).toList();
|
| }
|
| if (screenshot != null) {
|
| _json["screenshot"] = (screenshot).toJson();
|
| @@ -307,24 +318,24 @@ class RunMobileFriendlyTestResponse {
|
| }
|
| }
|
|
|
| -/** Final state of the test, including error details if necessary. */
|
| +/// Final state of the test, including error details if necessary.
|
| class TestStatus {
|
| - /** Error details if applicable. */
|
| + /// Error details if applicable.
|
| core.String details;
|
| - /**
|
| - * Status of the test.
|
| - * Possible string values are:
|
| - * - "TEST_STATUS_UNSPECIFIED" : Internal error when running this test. Please
|
| - * try running the test again.
|
| - * - "COMPLETE" : Inspection has completed without errors.
|
| - * - "INTERNAL_ERROR" : Inspection terminated in an error state. This
|
| - * indicates a problem in
|
| - * Google's infrastructure, not a user error. Please try again later.
|
| - * - "PAGE_UNREACHABLE" : Google can not access the URL because of a user
|
| - * error such as a robots.txt
|
| - * blockage, a 403 or 500 code etc. Please make sure that the URL provided is
|
| - * accessible by Googlebot and is not password protected.
|
| - */
|
| +
|
| + /// Status of the test.
|
| + /// Possible string values are:
|
| + /// - "TEST_STATUS_UNSPECIFIED" : Internal error when running this test.
|
| + /// Please try running the test again.
|
| + /// - "COMPLETE" : Inspection has completed without errors.
|
| + /// - "INTERNAL_ERROR" : Inspection terminated in an error state. This
|
| + /// indicates a problem in
|
| + /// Google's infrastructure, not a user error. Please try again later.
|
| + /// - "PAGE_UNREACHABLE" : Google can not access the URL because of a user
|
| + /// error such as a robots.txt
|
| + /// blockage, a 403 or 500 code etc. Please make sure that the URL provided
|
| + /// is
|
| + /// accessible by Googlebot and is not password protected.
|
| core.String status;
|
|
|
| TestStatus();
|
| @@ -339,7 +350,8 @@ class TestStatus {
|
| }
|
|
|
| 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 (details != null) {
|
| _json["details"] = details;
|
| }
|
|
|