Index: generated/googleapis/lib/adexperiencereport/v1.dart |
diff --git a/generated/googleapis/lib/adexperiencereport/v1.dart b/generated/googleapis/lib/adexperiencereport/v1.dart |
index 692c9d88d3da40503781a784ffd135b62cf5d791..baafc33e3aba6537b93a759582ec2689e4602815 100644 |
--- a/generated/googleapis/lib/adexperiencereport/v1.dart |
+++ b/generated/googleapis/lib/adexperiencereport/v1.dart |
@@ -9,59 +9,58 @@ 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 adexperiencereport/v1'; |
-/** |
- * View Ad Experience Report data, and get a list of sites that have a |
- * significant number of annoying ads. |
- */ |
+/// View Ad Experience Report data, and get a list of sites that have a |
+/// significant number of annoying ads. |
class AdexperiencereportApi { |
- /** Test scope for access to the Zoo service */ |
+ /// Test scope for access to the Zoo service |
static const XapiZooScope = "https://www.googleapis.com/auth/xapi.zoo"; |
- |
final commons.ApiRequester _requester; |
SitesResourceApi get sites => new SitesResourceApi(_requester); |
- ViolatingSitesResourceApi get violatingSites => new ViolatingSitesResourceApi(_requester); |
- |
- AdexperiencereportApi(http.Client client, {core.String rootUrl: "https://adexperiencereport.googleapis.com/", core.String servicePath: ""}) : |
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
+ ViolatingSitesResourceApi get violatingSites => |
+ new ViolatingSitesResourceApi(_requester); |
+ |
+ AdexperiencereportApi(http.Client client, |
+ {core.String rootUrl: "https://adexperiencereport.googleapis.com/", |
+ core.String servicePath: ""}) |
+ : _requester = |
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
} |
- |
class SitesResourceApi { |
final commons.ApiRequester _requester; |
- SitesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Gets a summary of the ad experience rating of a site. |
- * |
- * Request parameters: |
- * |
- * [name] - The required site name. It should be the site property whose ad |
- * experiences |
- * may have been reviewed, and it should be URL-encoded. For example, |
- * sites/https%3A%2F%2Fwww.google.com. The server will return an error of |
- * BAD_REQUEST if this field is not filled in. Note that if the site property |
- * is not yet verified in Search Console, the reportUrl field returned by the |
- * API will lead to the verification page, prompting the user to go through |
- * that process before they can gain access to the Ad Experience Report. |
- * Value must have pattern "^sites/[^/]+$". |
- * |
- * Completes with a [SiteSummaryResponse]. |
- * |
- * 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. |
- */ |
+ SitesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Gets a summary of the ad experience rating of a site. |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// [name] - The required site name. It should be the site property whose ad |
+ /// experiences |
+ /// may have been reviewed, and it should be URL-encoded. For example, |
+ /// sites/https%3A%2F%2Fwww.google.com. The server will return an error of |
+ /// BAD_REQUEST if this field is not filled in. Note that if the site |
+ /// property |
+ /// is not yet verified in Search Console, the reportUrl field returned by |
+ /// the |
+ /// API will lead to the verification page, prompting the user to go through |
+ /// that process before they can gain access to the Ad Experience Report. |
+ /// Value must have pattern "^sites/[^/]+$". |
+ /// |
+ /// Completes with a [SiteSummaryResponse]. |
+ /// |
+ /// 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<SiteSummaryResponse> get(core.String name) { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -76,38 +75,32 @@ class SitesResourceApi { |
_url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
- 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 SiteSummaryResponse.fromJson(data)); |
} |
- |
} |
- |
class ViolatingSitesResourceApi { |
final commons.ApiRequester _requester; |
- ViolatingSitesResourceApi(commons.ApiRequester client) : |
- _requester = client; |
- |
- /** |
- * Lists sites with Ad Experience Report statuses of "Failing" or "Warning". |
- * |
- * Request parameters: |
- * |
- * Completes with a [ViolatingSitesResponse]. |
- * |
- * 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. |
- */ |
+ ViolatingSitesResourceApi(commons.ApiRequester client) : _requester = client; |
+ |
+ /// Lists sites with Ad Experience Report statuses of "Failing" or "Warning". |
+ /// |
+ /// Request parameters: |
+ /// |
+ /// Completes with a [ViolatingSitesResponse]. |
+ /// |
+ /// 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<ViolatingSitesResponse> list() { |
var _url = null; |
var _queryParams = new core.Map(); |
@@ -116,61 +109,57 @@ class ViolatingSitesResourceApi { |
var _downloadOptions = commons.DownloadOptions.Metadata; |
var _body = null; |
- |
_url = 'v1/violatingSites'; |
- 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 ViolatingSitesResponse.fromJson(data)); |
} |
- |
} |
- |
- |
-/** Summary of the ad experience rating of a site for a specific platform. */ |
+/// Summary of the ad experience rating of a site for a specific platform. |
class PlatformSummary { |
- /** |
- * The status of the site reviewed for abusive ads. |
- * Possible string values are: |
- * - "UNKNOWN" : Not reviewed. |
- * - "PASSING" : Passing. |
- * - "FAILING" : Failing. |
- */ |
+ /// The status of the site reviewed for abusive ads. |
+ /// Possible string values are: |
+ /// - "UNKNOWN" : Not reviewed. |
+ /// - "PASSING" : Passing. |
+ /// - "FAILING" : Failing. |
core.String abusiveStatus; |
- /** |
- * The status of the site reviewed for the Better Ads Standards. |
- * Possible string values are: |
- * - "UNKNOWN" : Not reviewed. |
- * - "PASSING" : Passing. |
- * - "WARNING" : Warning. |
- * - "FAILING" : Failing. |
- */ |
+ |
+ /// The status of the site reviewed for the Better Ads Standards. |
+ /// Possible string values are: |
+ /// - "UNKNOWN" : Not reviewed. |
+ /// - "PASSING" : Passing. |
+ /// - "WARNING" : Warning. |
+ /// - "FAILING" : Failing. |
core.String betterAdsStatus; |
- /** The date on which ad filtering begins. */ |
+ |
+ /// The date on which ad filtering begins. |
core.String enforcementTime; |
- /** |
- * The ad filtering status of the site. |
- * Possible string values are: |
- * - "UNKNOWN" : N/A. |
- * - "ON" : Ad filtering is on. |
- * - "OFF" : Ad filtering is off. |
- * - "PAUSED" : Ad filtering is paused. |
- * - "PENDING" : Ad filtering is pending. |
- */ |
+ |
+ /// The ad filtering status of the site. |
+ /// Possible string values are: |
+ /// - "UNKNOWN" : N/A. |
+ /// - "ON" : Ad filtering is on. |
+ /// - "OFF" : Ad filtering is off. |
+ /// - "PAUSED" : Ad filtering is paused. |
+ /// - "PENDING" : Ad filtering is pending. |
core.String filterStatus; |
- /** The last time that the site changed status. */ |
+ |
+ /// The last time that the site changed status. |
core.String lastChangeTime; |
- /** The assigned regions for the site and platform. */ |
+ |
+ /// The assigned regions for the site and platform. |
core.List<core.String> region; |
- /** A link that leads to a full ad experience report. */ |
+ |
+ /// A link that leads to a full ad experience report. |
core.String reportUrl; |
- /** Whether the site is currently under review. */ |
+ |
+ /// Whether the site is currently under review. |
core.bool underReview; |
PlatformSummary(); |
@@ -203,7 +192,8 @@ class PlatformSummary { |
} |
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 (abusiveStatus != null) { |
_json["abusiveStatus"] = abusiveStatus; |
} |
@@ -232,13 +222,15 @@ class PlatformSummary { |
} |
} |
-/** Response message for GetSiteSummary. */ |
+/// Response message for GetSiteSummary. |
class SiteSummaryResponse { |
- /** Summary for the desktop review of the site. */ |
+ /// Summary for the desktop review of the site. |
PlatformSummary desktopSummary; |
- /** Summary for the mobile review of the site. */ |
+ |
+ /// Summary for the mobile review of the site. |
PlatformSummary mobileSummary; |
- /** The name of the site reviewed. */ |
+ |
+ /// The name of the site reviewed. |
core.String reviewedSite; |
SiteSummaryResponse(); |
@@ -256,7 +248,8 @@ class SiteSummaryResponse { |
} |
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 (desktopSummary != null) { |
_json["desktopSummary"] = (desktopSummary).toJson(); |
} |
@@ -270,23 +263,27 @@ class SiteSummaryResponse { |
} |
} |
-/** Response message for ListViolatingSites. */ |
+/// Response message for ListViolatingSites. |
class ViolatingSitesResponse { |
- /** A list of summaries of violating sites. */ |
+ /// A list of summaries of violating sites. |
core.List<SiteSummaryResponse> violatingSites; |
ViolatingSitesResponse(); |
ViolatingSitesResponse.fromJson(core.Map _json) { |
if (_json.containsKey("violatingSites")) { |
- violatingSites = _json["violatingSites"].map((value) => new SiteSummaryResponse.fromJson(value)).toList(); |
+ violatingSites = _json["violatingSites"] |
+ .map((value) => new SiteSummaryResponse.fromJson(value)) |
+ .toList(); |
} |
} |
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 (violatingSites != null) { |
- _json["violatingSites"] = violatingSites.map((value) => (value).toJson()).toList(); |
+ _json["violatingSites"] = |
+ violatingSites.map((value) => (value).toJson()).toList(); |
} |
return _json; |
} |