Api-roll 43: 2016-12-13 R=vegorov@google.com Review-Url: https://codereview.chromium.org//2571553005 .
diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 6027dda..181a82a 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md
@@ -1,3 +1,28 @@ +## 0.33.0 + +* [api-new] language:v1 +* [api-new] slides:v1 +* [api-breaking] appengine:v1: resource removal +* [api-breaking] firebasedynamiclinks:v1: schema changes +* [api-breaking] youtube-analytics:v1: removal of resources +* [api-removal] dfareporting:v2_4 +* [api] analyticsreporting:v4: schema changes +* [api] androidenterprise:v1: schema changes +* [api] books:v1: schema changes +* [api] cloudbuild:v1: schema/method changes +* [api] cloudresourcemanager:v1: schema/method changes +* [api] compute:v1: new resources +* [api] deploymentmanager:v2: schema changes +* [api] drive:v2: schema changes +* [api] drive:v3: schema changes +* [api] gmail:v1: schema changes +* [api] identitytoolkit:v3: schema changes +* [api] logging:v2: new resource +* [api] servicemanagement:v1: schema changes +* [api] sheets:v4: schema changes +* [api] storage:v1: schema changes +* [api] youtube:v3: schema changes + ## 0.32.0 * [api-new] dfareporting:v2_7
diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index b631e8b..4264d32 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md
@@ -99,19 +99,19 @@ Official API documentation: https://developers.google.com/ad-exchange/seller-rest/ -####  Admin Data Transfer API - admin datatransfer_v1 +####  Admin Data Transfer API - admin datatransfer_v1 Transfers user data from one user to another. Official API documentation: https://developers.google.com/admin-sdk/data-transfer/ -####  Admin Directory API - admin directory_v1 +####  Admin Directory API - admin directory_v1 The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more. Official API documentation: https://developers.google.com/admin-sdk/directory/ -####  Admin Reports API - admin reports_v1 +####  Admin Reports API - admin reports_v1 Fetches reports for the administrators of Google Apps customers about the usage, collaboration, security, and risk for their users. @@ -159,13 +159,13 @@ Official API documentation: https://cloud.google.com/appengine/docs/admin-api/ -####  Google Apps Activity API - appsactivity v1 +####  Google Apps Activity API - appsactivity v1 Provides a historical view of activity. Official API documentation: https://developers.google.com/google-apps/activity/ -####  Google App State API - appstate v1 +####  Google App State API - appstate v1 The Google App State API. @@ -195,7 +195,7 @@ Official API documentation: https://developers.google.com/google-apps/calendar/firstapp -####  Google Civic Information API - civicinfo v2 +####  Google Civic Information API - civicinfo v2 Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. @@ -243,7 +243,7 @@ Official API documentation: https://developers.google.com/compute/docs/reference/latest/ -####  Consumer Surveys API - consumersurveys v2 +####  Consumer Surveys API - consumersurveys v2 Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys. @@ -253,19 +253,19 @@ Official API documentation: https://cloud.google.com/container-engine/ -####  Content API for Shopping - content v2 +####  Content API for Shopping - content v2 Manages product items, inventory, and Merchant Center accounts for Google Shopping. Official API documentation: https://developers.google.com/shopping-content -####  Content API for Shopping - content v2sandbox +####  Content API for Shopping - content v2sandbox Manages product items, inventory, and Merchant Center accounts for Google Shopping. Official API documentation: https://developers.google.com/shopping-content -####  CustomSearch API - customsearch v1 +####  CustomSearch API - customsearch v1 Lets you search over a website or collection of websites @@ -284,18 +284,12 @@ Official API documentation: https://cloud.google.com/datastore/ -####  Google Cloud Deployment Manager API - deploymentmanager v2 +####  Google Cloud Deployment Manager API - deploymentmanager v2 Declares, configures, and deploys complex solutions on Google Cloud Platform. Official API documentation: https://cloud.google.com/deployment-manager/ -####  DCM/DFA Reporting And Trafficking API - dfareporting v2.4 - -Manages your DoubleClick Campaign Manager ad campaigns and reports. - -Official API documentation: https://developers.google.com/doubleclick-advertisers/reporting/ - ####  DCM/DFA Reporting And Trafficking API - dfareporting v2.5 Manages your DoubleClick Campaign Manager ad campaigns and reports. @@ -320,19 +314,19 @@ Official API documentation: https://developers.google.com/discovery/ -####  Google Cloud DNS API - dns v1 +####  Google Cloud DNS API - dns v1 Configures and serves authoritative DNS records. Official API documentation: https://developers.google.com/cloud-dns -####  DoubleClick Bid Manager API - doubleclickbidmanager v1 +####  DoubleClick Bid Manager API - doubleclickbidmanager v1 API for viewing and managing your reports in DoubleClick Bid Manager. Official API documentation: https://developers.google.com/bid-manager/ -####  DoubleClick Search API - doubleclicksearch v2 +####  DoubleClick Search API - doubleclicksearch v2 Reports and modifies your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions). @@ -363,37 +357,37 @@ Official API documentation: https://firebase.google.com/docs/storage/security -####  Fitness - fitness v1 +####  Fitness - fitness v1 Stores and accesses user data in the fitness store from apps on any platform. Official API documentation: https://developers.google.com/fit/rest/ -####  Fusion Tables API - fusiontables v1 +####  Fusion Tables API - fusiontables v1 API for working with Fusion Tables data. Official API documentation: https://developers.google.com/fusiontables -####  Fusion Tables API - fusiontables v2 +####  Fusion Tables API - fusiontables v2 API for working with Fusion Tables data. Official API documentation: https://developers.google.com/fusiontables -####  Google Play Game Services API - games v1 +####  Google Play Game Services API - games v1 The API for Google Play Game Services. Official API documentation: https://developers.google.com/games/services/ -####  Google Play Game Services Publishing API - gamesConfiguration v1configuration +####  Google Play Game Services Publishing API - gamesConfiguration v1configuration The Publishing API for Google Play Game Services. Official API documentation: https://developers.google.com/games/services -####  Google Play Game Services Management API - gamesManagement v1management +####  Google Play Game Services Management API - gamesManagement v1management The Management API for Google Play Game Services. @@ -417,7 +411,7 @@ Official API documentation: https://developers.google.com/google-apps/groups-migration/ -####  Groups Settings API - groupssettings v1 +####  Groups Settings API - groupssettings v1 Lets you manage permission levels and related settings of a group. @@ -429,7 +423,7 @@ Official API documentation: https://cloud.google.com/iam/ -####  Google Identity Toolkit API - identitytoolkit v3 +####  Google Identity Toolkit API - identitytoolkit v3 Help the third party sites to implement federated login. @@ -441,7 +435,13 @@ Official API documentation: https://developers.google.com/knowledge-graph/ -####  Enterprise License Manager API - licensing v1 +####  Google Cloud Natural Language API - language v1 + +Google Cloud Natural Language API provides natural language understanding technologies to developers. Examples include sentiment analysis, entity recognition, and text annotations. + +Official API documentation: https://cloud.google.com/natural-language/ + +####  Enterprise License Manager API - licensing v1 Licensing API to view and manage license for your domain. @@ -459,7 +459,7 @@ Official API documentation: https://developers.google.com/manufacturers/ -####  Google Mirror API - mirror v1 +####  Google Mirror API - mirror v1 Interacts with Glass users via the timeline. @@ -471,7 +471,7 @@ Official API documentation: https://cloud.google.com/monitoring/api/ -####  Google OAuth2 API - oauth2 v2 +####  Google OAuth2 API - oauth2 v2 Obtains end-user authorization grants for use with other Google APIs. @@ -531,13 +531,13 @@ Official API documentation: https://cloud.google.com/pubsub/docs -####  QPX Express API - qpxExpress v1 +####  QPX Express API - qpxExpress v1 Finds the least expensive flights between an origin and a destination. Official API documentation: http://developers.google.com/qpx-express -####  Enterprise Apps Reseller API - reseller v1 +####  Enterprise Apps Reseller API - reseller v1 Creates and manages your customers and their subscriptions. @@ -580,12 +580,18 @@ Official API documentation: https://developers.google.com/sheets/ -####  Google Site Verification API - siteVerification v1 +####  Google Site Verification API - siteVerification v1 Verifies ownership of websites or domains with Google. Official API documentation: https://developers.google.com/site-verification/ +####  Google Slides API - slides v1 + +An API for creating and editing Google Slides presentations. + +Official API documentation: https://developers.google.com/slides/ + ####  Cloud Storage JSON API - storage v1 Stores and retrieves potentially large, immutable data objects. @@ -598,11 +604,11 @@ Official API documentation: https://cloud.google.com/storage/transfer -####  Surveys API - surveys v2 +####  Surveys API - surveys v2 Creates and conducts surveys, lists the surveys that an authenticated user owns, and retrieves survey results and information about specified surveys. -####  Tag Manager API - tagmanager v1 +####  Tag Manager API - tagmanager v1 Accesses Tag Manager accounts and containers. @@ -620,7 +626,7 @@ Official API documentation: https://developers.google.com/translate/v2/using_rest -####  URL Shortener API - urlshortener v1 +####  URL Shortener API - urlshortener v1 Lets you create, inspect, and manage goo.gl short URLs
diff --git a/generated/googleapis/lib/analyticsreporting/v4.dart b/generated/googleapis/lib/analyticsreporting/v4.dart index 8df2d12..1d0b96f 100644 --- a/generated/googleapis/lib/analyticsreporting/v4.dart +++ b/generated/googleapis/lib/analyticsreporting/v4.dart
@@ -1197,6 +1197,11 @@ /** The data part of the report. */ class ReportData { /** + * The last time the data in the report was refreshed. All the hits received + * before this timestamp are included in the calculation of the report. + */ + core.String dataLastRefreshed; + /** * Indicates if response to this request is golden or not. Data is * golden when the exact same request will not produce any new results if * asked at a later point in time. @@ -1252,6 +1257,9 @@ ReportData(); ReportData.fromJson(core.Map _json) { + if (_json.containsKey("dataLastRefreshed")) { + dataLastRefreshed = _json["dataLastRefreshed"]; + } if (_json.containsKey("isDataGolden")) { isDataGolden = _json["isDataGolden"]; } @@ -1280,6 +1288,9 @@ core.Map toJson() { var _json = new core.Map(); + if (dataLastRefreshed != null) { + _json["dataLastRefreshed"] = dataLastRefreshed; + } if (isDataGolden != null) { _json["isDataGolden"] = isDataGolden; }
diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart index d695c6c..a8a9ed9 100644 --- a/generated/googleapis/lib/androidenterprise/v1.dart +++ b/generated/googleapis/lib/androidenterprise/v1.dart
@@ -6867,9 +6867,11 @@ /** * The interpretation of this product set. "unknown" should never be sent and * ignored if received. "whitelist" means that this product set constitutes a - * whitelist. "includeAll" means that all products are accessible (the value - * of the productId field is therefore ignored). If a value is not supplied, - * it is interpreted to be "whitelist" for backwards compatibility. + * whitelist. "includeAll" means that all products are accessible, including + * products that are approved, not approved, and even products where approval + * has been revoked. If the value is "includeAll", the value of the productId + * field is therefore ignored. If a value is not supplied, it is interpreted + * to be "whitelist" for backwards compatibility. */ core.String productSetBehavior; @@ -7076,6 +7078,13 @@ * "androidenterprise#serviceAccountKey". */ core.String kind; + /** + * Public key data for the credentials file. This is an X.509 cert. If you are + * using the googleCredentials key type, this is identical to the cert that + * can be retrieved by using the X.509 cert url inside of the credentials + * file. + */ + core.String publicData; /** The file format of the generated key data. */ core.String type; @@ -7091,6 +7100,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("publicData")) { + publicData = _json["publicData"]; + } if (_json.containsKey("type")) { type = _json["type"]; } @@ -7107,6 +7119,9 @@ if (kind != null) { _json["kind"] = kind; } + if (publicData != null) { + _json["publicData"] = publicData; + } if (type != null) { _json["type"] = type; } @@ -7285,8 +7300,8 @@ */ core.String kind; /** - * Sets a store layout type. By default, this value is set to "basic". If set - * to "custom", "homepageId" must be specified. If set to "basic", the layout + * The store layout type. By default, this value is set to "basic". If set to + * "custom", "homepageId" must be specified. If set to "basic", the layout * will consist of all approved apps accessible by the user, split in pages of * 100 each; in this case, "homepageId" must not be specified. The "basic" * setting takes precedence over any existing collections setup for this
diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index 122e859..e3cff48 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart
@@ -29,7 +29,6 @@ final commons.ApiRequester _requester; AppsResourceApi get apps => new AppsResourceApi(_requester); - ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_requester); AppengineApi(http.Client client, {core.String rootUrl: "https://appengine.googleapis.com/", core.String servicePath: ""}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); @@ -49,9 +48,9 @@ /** * Creates an App Engine application for a Google Cloud Platform project. This * requires a project that excludes an App Engine application. For details - * about creating a project without an application, see the [Google Cloud - * Resource Manager create project - * topic](https://cloud.google.com/resource-manager/docs/creating-project). + * about creating a project without an application, see the Google Cloud + * Resource Manager create project topic + * (https://cloud.google.com/resource-manager/docs/creating-project). * * [request] - The metadata request object. * @@ -95,7 +94,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the Application resource to get. - * Example: `apps/myapp`. + * Example: apps/myapp. * * Completes with a [Application]. * @@ -130,14 +129,18 @@ } /** - * Updates application fields. + * Updates the specified Application resource. You can update the following + * fields: auth_domain + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#Application.FIELDS.auth_domain) + * default_cookie_expiration + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps#Application.FIELDS.default_cookie_expiration) * * [request] - The metadata request object. * * Request parameters: * - * [appsId] - Part of `name`. Name of the application to update. Example: - * `apps/myapp`. + * [appsId] - Part of `name`. Name of the Application resource to update. + * Example: apps/myapp. * * [updateMask] - Standard field mask for the set of fields to be updated. * @@ -180,17 +183,17 @@ } /** - * Recreates the required App Engine features for the application in your - * project, for example a Cloud Storage bucket or App Engine service account. - * Use this method if you receive an error message about a missing feature, - * for example "*Error retrieving the App Engine service account*". + * Recreates the required App Engine features for the specified App Engine + * application, for example a Cloud Storage bucket or App Engine service + * account. Use this method if you receive an error message about a missing + * feature, for example, Error retrieving the App Engine service account. * * [request] - The metadata request object. * * Request parameters: * * [appsId] - Part of `name`. Name of the application to repair. Example: - * `apps/myapp` + * apps/myapp * * Completes with a [Operation]. * @@ -392,9 +395,9 @@ /** * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users / * /operations`. + * server doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name + * binding below allows API services to override the binding to use different + * resource name schemes, such as users / * /operations. * * Request parameters: * @@ -464,7 +467,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default`. + * apps/myapp/services/default. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -509,7 +512,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default`. + * apps/myapp/services/default. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -554,7 +557,7 @@ * Request parameters: * * [appsId] - Part of `parent`. Name of the parent Application resource. - * Example: `apps/myapp`. + * Example: apps/myapp. * * [pageSize] - Maximum results to return per page. * @@ -606,25 +609,25 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource to update. Example: - * `apps/myapp/services/default`. + * apps/myapp/services/default. * * [servicesId] - Part of `name`. See documentation of `appsId`. * * [updateMask] - Standard field mask for the set of fields to be updated. * - * [migrateTraffic] - Set to `true` to gradually shift traffic from one - * version to another single version. By default, traffic is shifted - * immediately. For gradual traffic migration, the target version must be - * located within instances that are configured for both [warmup - * requests](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) - * and [automatic - * scaling](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling). - * You must specify the - * [`shardBy`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby) + * [migrateTraffic] - Set to true to gradually shift traffic from one version + * to another single version. By default, traffic is shifted immediately. For + * gradual traffic migration, the target version must be located within + * instances that are configured for both warmup requests + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#inboundservicetype) + * and automatic scaling + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#automaticscaling). + * You must specify the shardBy + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services#shardby) * field in the Service resource. Gradual traffic migration is not supported - * in the App Engine flexible environment. For examples, see [Migrating and - * Splitting - * Traffic](https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). + * in the App Engine flexible environment. For examples, see Migrating and + * Splitting Traffic + * (https://cloud.google.com/appengine/docs/admin-api/migrating-splitting-traffic). * * Completes with a [Operation]. * @@ -689,7 +692,7 @@ * Request parameters: * * [appsId] - Part of `parent`. Name of the parent resource to create this - * version under. Example: `apps/myapp/services/default`. + * version under. Example: apps/myapp/services/default. * * [servicesId] - Part of `parent`. See documentation of `appsId`. * @@ -737,7 +740,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. + * apps/myapp/services/default/versions/v1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -782,19 +785,19 @@ } /** - * Gets the specified Version resource. By default, only a `BASIC_VIEW` will - * be returned. Specify the `FULL_VIEW` parameter to get the full resource. + * Gets the specified Version resource. By default, only a BASIC_VIEW will be + * returned. Specify the FULL_VIEW parameter to get the full resource. * * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1`. + * apps/myapp/services/default/versions/v1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * * [versionsId] - Part of `name`. See documentation of `appsId`. * - * [view] - Controls the set of fields returned in the `Get` response. + * [view] - Controls the set of fields returned in the Get response. * Possible string values are: * - "BASIC" : A BASIC. * - "FULL" : A FULL. @@ -846,11 +849,11 @@ * Request parameters: * * [appsId] - Part of `parent`. Name of the parent Service resource. Example: - * `apps/myapp/services/default`. + * apps/myapp/services/default. * * [servicesId] - Part of `parent`. See documentation of `appsId`. * - * [view] - Controls the set of fields returned in the `List` response. + * [view] - Controls the set of fields returned in the List response. * Possible string values are: * - "BASIC" : A BASIC. * - "FULL" : A FULL. @@ -906,16 +909,17 @@ /** * Updates the specified Version resource. You can specify the following * fields depending on the App Engine environment and type of scaling that the - * version resource uses: * - * [`serving_status`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): + * version resource uses: serving_status + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.serving_status): * For Version resources that use basic scaling, manual scaling, or run in the - * App Engine flexible environment. * - * [`instance_class`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): - * For Version resources that run in the App Engine standard environment. * - * [`automatic_scaling.min_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): + * App Engine flexible environment. instance_class + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.instance_class): + * For Version resources that run in the App Engine standard environment. + * automatic_scaling.min_idle_instances + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): * For Version resources that use automatic scaling and run in the App Engine - * standard environment. * - * [`automatic_scaling.max_idle_instances`](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): + * standard environment. automatic_scaling.max_idle_instances + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#Version.FIELDS.automatic_scaling): * For Version resources that use automatic scaling and run in the App Engine * standard environment. * @@ -924,7 +928,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource to update. Example: - * `apps/myapp/services/default/versions/1`. + * apps/myapp/services/default/versions/1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -990,7 +994,7 @@ * to connect to the virtual machine where the instance lives. While in "debug * mode", the instance continues to serve live traffic. You should delete the * instance when you are done debugging and then allow the system to take over - * and determine if another instance should be started. Only applicable for + * and determine if another instance should be started.Only applicable for * instances in App Engine flexible environment. * * [request] - The metadata request object. @@ -998,7 +1002,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. + * apps/myapp/services/default/versions/v1/instances/instance-1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -1056,7 +1060,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. + * apps/myapp/services/default/versions/v1/instances/instance-1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -1111,7 +1115,7 @@ * Request parameters: * * [appsId] - Part of `name`. Name of the resource requested. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. + * apps/myapp/services/default/versions/v1/instances/instance-1. * * [servicesId] - Part of `name`. See documentation of `appsId`. * @@ -1166,7 +1170,7 @@ * Request parameters: * * [appsId] - Part of `parent`. Name of the parent Version resource. Example: - * `apps/myapp/services/default/versions/v1`. + * apps/myapp/services/default/versions/v1. * * [servicesId] - Part of `parent`. See documentation of `appsId`. * @@ -1223,148 +1227,16 @@ } -class ExperimentalResourceApi { - final commons.ApiRequester _requester; - - ExperimentalAppsResourceApi get apps => new ExperimentalAppsResourceApi(_requester); - - ExperimentalResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ExperimentalAppsResourceApi { - final commons.ApiRequester _requester; - - ExperimentalAppsOperationsResourceApi get operations => new ExperimentalAppsOperationsResourceApi(_requester); - - ExperimentalAppsResourceApi(commons.ApiRequester client) : - _requester = client; -} - - -class ExperimentalAppsOperationsResourceApi { - final commons.ApiRequester _requester; - - ExperimentalAppsOperationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets the latest state of a long-running operation. Clients can use this - * method to poll the operation result at intervals as recommended by the API - * service. - * - * Request parameters: - * - * [appsId] - Part of `name`. The name of the operation resource. - * - * [operationsId] - Part of `name`. See documentation of `appsId`. - * - * Completes with a [Operation]. - * - * 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<Operation> get(core.String appsId, core.String operationsId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (appsId == null) { - throw new core.ArgumentError("Parameter appsId is required."); - } - if (operationsId == null) { - throw new core.ArgumentError("Parameter operationsId is required."); - } - - _url = 'experimental/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations/' + commons.Escaper.ecapeVariable('$operationsId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Operation.fromJson(data)); - } - - /** - * Lists operations that match the specified filter in the request. If the - * server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the - * `name` binding below allows API services to override the binding to use - * different resource name schemes, such as `users / * /operations`. - * - * Request parameters: - * - * [appsId] - Part of `name`. The name of the operation collection. - * - * [filter] - The standard list filter. - * - * [pageSize] - The standard list page size. - * - * [pageToken] - The standard list page token. - * - * Completes with a [ListOperationsResponse]. - * - * 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<ListOperationsResponse> list(core.String appsId, {core.String filter, core.int pageSize, core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (appsId == null) { - throw new core.ArgumentError("Parameter appsId is required."); - } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'experimental/apps/' + commons.Escaper.ecapeVariable('$appsId') + '/operations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ListOperationsResponse.fromJson(data)); - } - -} - - /** - * [Google Cloud - * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/) - * configuration for API handlers. + * Google Cloud Endpoints + * (https://cloud.google.com/appengine/docs/python/endpoints/) configuration for + * API handlers. */ class ApiConfigHandler { /** * Action to take when users access resources that require authentication. - * Defaults to `redirect`. + * Defaults to redirect. * Possible string values are: * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. @@ -1372,7 +1244,7 @@ */ core.String authFailAction; /** - * Level of login required to access this resource. Defaults to `optional`. + * Level of login required to access this resource. Defaults to optional. * Possible string values are: * - "LOGIN_UNSPECIFIED" : A LOGIN_UNSPECIFIED. * - "LOGIN_OPTIONAL" : A LOGIN_OPTIONAL. @@ -1465,50 +1337,50 @@ class Application { /** * Google Apps authentication domain that controls which users can access this - * application. Defaults to open access for any Google Account. + * application.Defaults to open access for any Google Account. */ core.String authDomain; /** * Google Cloud Storage bucket that can be used for storing files associated * with this application. This bucket is associated with the application and - * can be used by the gcloud deployment commands. @OutputOnly + * can be used by the gcloud deployment commands.@OutputOnly */ core.String codeBucket; /** * Google Cloud Storage bucket that can be used by this application to store - * content. @OutputOnly + * content.@OutputOnly */ core.String defaultBucket; - /** Cookie expiration policy for this application. @OutputOnly */ + /** Cookie expiration policy for this application. */ core.String defaultCookieExpiration; /** - * Hostname used to reach this application, as resolved by App Engine. - * @OutputOnly + * Hostname used to reach this application, as resolved by App + * Engine.@OutputOnly */ core.String defaultHostname; /** * HTTP path dispatch rules for requests to the application that do not - * explicitly target a service or version. Rules are order-dependent. - * @OutputOnly + * explicitly target a service or version. Rules are + * order-dependent.@OutputOnly */ core.List<UrlDispatchRule> dispatchRules; /** * Identifier of the Application resource. This identifier is equivalent to * the project ID of the Google Cloud Platform project where you want to - * deploy your application. Example: `myapp`. + * deploy your application. Example: myapp. */ core.String id; /** * Location from which this application will be run. Application instances * will run out of data centers in the chosen location, which is also where - * all of the application's end user content is stored. Defaults to - * `us-central`. Options are: `us-central` - Central US `europe-west` - - * Western Europe `us-east1` - Eastern US + * all of the application's end user content is stored.Defaults to + * us-central.Options are:us-central - Central USeurope-west - Western + * Europeus-east1 - Eastern US */ core.String locationId; /** - * Full path to the Application resource in the API. Example: `apps/myapp`. - * @OutputOnly + * Full path to the Application resource in the API. Example: + * apps/myapp.@OutputOnly */ core.String name; @@ -1583,10 +1455,9 @@ */ class AutomaticScaling { /** - * Amount of time that the - * [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/) should wait - * between changes to the number of virtual machines. Only applicable for VM - * runtimes. + * Amount of time that the Autoscaler + * (https://cloud.google.com/compute/docs/autoscaler/) should wait between + * changes to the number of virtual machines. Only applicable for VM runtimes. */ core.String coolDownPeriod; /** Target scaling by CPU usage. */ @@ -1595,7 +1466,7 @@ DiskUtilization diskUtilization; /** * Number of concurrent requests an automatic scaling instance can accept - * before the scheduler spawns a new instance. Defaults to a runtime-specific + * before the scheduler spawns a new instance.Defaults to a runtime-specific * value. */ core.int maxConcurrentRequests; @@ -1812,14 +1683,14 @@ } } -/** Request message for `Instances.DebugInstance`. */ +/** Request message for Instances.DebugInstance. */ class DebugInstanceRequest { /** - * Public SSH key to add to the instance. Example: `[USERNAME]:ssh-rsa - * KEY_VALUE` or `[USERNAME]:ssh-rsa [KEY_VALUE] google-ssh - * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}` For more information, - * see [Adding and Removing SSH - * Keys](https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys) + * Public SSH key to add to the instance. Examples: [USERNAME]:ssh-rsa + * [KEY_VALUE] [USERNAME] [USERNAME]:ssh-rsa [KEY_VALUE] google-ssh + * {"userName":"[USERNAME]","expireOn":"[EXPIRE_TIME]"}For more information, + * see Adding and Removing SSH Keys + * (https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys). */ core.String sshKey; @@ -1931,6 +1802,48 @@ } } +/** + * Cloud Endpoints (https://cloud.google.com/endpoints) configuration. The + * Endpoints API Service provides tooling for serving Open API and gRPC + * endpoints via an NGINX proxy.The fields here refer to the name and + * configuration id of a "service" resource in the Service Management API + * (https://cloud.google.com/service-management/overview). + */ +class EndpointsApiService { + /** + * Endpoints service configuration id as specified by the Service Management + * API. For example "2016-09-19r1" + */ + core.String configId; + /** + * Endpoints service name which is the name of the "service" resource in the + * Service Management API. For example "myapi.endpoints.myproject.cloud.goog" + */ + core.String name; + + EndpointsApiService(); + + EndpointsApiService.fromJson(core.Map _json) { + if (_json.containsKey("configId")) { + configId = _json["configId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (configId != null) { + _json["configId"] = configId; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + /** Custom static error page to be served when an error occurs. */ class ErrorHandler { /** @@ -1943,7 +1856,7 @@ * - "ERROR_CODE_TIMEOUT" : A ERROR_CODE_TIMEOUT. */ core.String errorCode; - /** MIME type of file. Defaults to `text/html`. */ + /** MIME type of file. Defaults to text/html. */ core.String mimeType; /** Static file content to be served for this error. */ core.String staticFile; @@ -1983,14 +1896,14 @@ */ class FileInfo { /** - * The MIME type of the file. Defaults to the value from Google Cloud Storage. + * The MIME type of the file.Defaults to the value from Google Cloud Storage. */ core.String mimeType; /** The SHA1 hash of the file, in hex. */ core.String sha1Sum; /** * URL source to use to fetch this file. Must be a URL to a resource in Google - * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. + * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. */ core.String sourceUrl; @@ -2114,66 +2027,66 @@ * automatically scale an application. */ class Instance { - /** App Engine release this instance is running on. @OutputOnly */ + /** App Engine release this instance is running on.@OutputOnly */ core.String appEngineRelease; /** - * Availability of the instance. @OutputOnly + * Availability of the instance.@OutputOnly * Possible string values are: * - "UNSPECIFIED" : A UNSPECIFIED. * - "RESIDENT" : A RESIDENT. * - "DYNAMIC" : A DYNAMIC. */ core.String availability; - /** Average latency (ms) over the last minute. @OutputOnly */ + /** Average latency (ms) over the last minute.@OutputOnly */ core.int averageLatency; - /** Number of errors since this instance was started. @OutputOnly */ + /** Number of errors since this instance was started.@OutputOnly */ core.int errors; /** - * Relative name of the instance within the version. Example: `instance-1`. - * @OutputOnly + * Relative name of the instance within the version. Example: + * instance-1.@OutputOnly */ core.String id; - /** Total memory in use (bytes). @OutputOnly */ + /** Total memory in use (bytes).@OutputOnly */ core.String memoryUsage; /** * Full path to the Instance resource in the API. Example: - * `apps/myapp/services/default/versions/v1/instances/instance-1`. @OutputOnly + * apps/myapp/services/default/versions/v1/instances/instance-1.@OutputOnly */ core.String name; - /** Average queries per second (QPS) over the last minute. @OutputOnly */ + /** Average queries per second (QPS) over the last minute.@OutputOnly */ core.double qps; - /** Number of requests since this instance was started. @OutputOnly */ + /** Number of requests since this instance was started.@OutputOnly */ core.int requests; - /** Time that this instance was started. @OutputOnly */ + /** Time that this instance was started.@OutputOnly */ core.String startTime; /** * Whether this instance is in debug mode. Only applicable for instances in - * App Engine flexible environment. @OutputOnly + * App Engine flexible environment.@OutputOnly */ core.bool vmDebugEnabled; /** * Virtual machine ID of this instance. Only applicable for instances in App - * Engine flexible environment. @OutputOnly + * Engine flexible environment.@OutputOnly */ core.String vmId; /** * The IP address of this instance. Only applicable for instances in App - * Engine flexible environment. @OutputOnly + * Engine flexible environment.@OutputOnly */ core.String vmIp; /** * Name of the virtual machine where this instance lives. Only applicable for - * instances in App Engine flexible environment. @OutputOnly + * instances in App Engine flexible environment.@OutputOnly */ core.String vmName; /** * Status of the virtual machine where this instance lives. Only applicable - * for instances in App Engine flexible environment. @OutputOnly + * for instances in App Engine flexible environment.@OutputOnly */ core.String vmStatus; /** * Zone where the virtual machine is located. Only applicable for instances in - * App Engine flexible environment. @OutputOnly + * App Engine flexible environment.@OutputOnly */ core.String vmZoneName; @@ -2314,7 +2227,7 @@ } } -/** Response message for `Instances.ListInstances`. */ +/** Response message for Instances.ListInstances. */ class ListInstancesResponse { /** The instances belonging to the requested version. */ core.List<Instance> instances; @@ -2404,7 +2317,7 @@ } } -/** Response message for `Services.ListServices`. */ +/** Response message for Services.ListServices. */ class ListServicesResponse { /** Continuation token for fetching the next page of results. */ core.String nextPageToken; @@ -2434,7 +2347,7 @@ } } -/** Response message for `Versions.ListVersions`. */ +/** Response message for Versions.ListVersions. */ class ListVersionsResponse { /** Continuation token for fetching the next page of results. */ core.String nextPageToken; @@ -2471,7 +2384,7 @@ * {"cloud.googleapis.com/region": "us-east1"} */ core.Map<core.String, core.String> labels; - /** The canonical id for this location. For example: `"us-east1"`. */ + /** The canonical id for this location. For example: "us-east1". */ core.String locationId; /** * Service-specific metadata. For example the available capacity at the given @@ -2483,7 +2396,7 @@ core.Map<core.String, core.Object> metadata; /** * Resource name for the location, which may vary between implementations. For - * example: `"projects/example-project/locations/us-east1"` + * example: "projects/example-project/locations/us-east1" */ core.String name; @@ -2525,13 +2438,13 @@ /** Metadata for the given google.cloud.location.Location. */ class LocationMetadata { /** - * App Engine Flexible Environment is available in the given location. - * @OutputOnly + * App Engine Flexible Environment is available in the given + * location.@OutputOnly */ core.bool flexibleEnvironmentAvailable; /** - * App Engine Standard Environment is available in the given location. - * @OutputOnly + * App Engine Standard Environment is available in the given + * location.@OutputOnly */ core.bool standardEnvironmentAvailable; @@ -2565,9 +2478,9 @@ class ManualScaling { /** * Number of instances to assign to the service at the start. This number can - * later be altered by using the [Modules - * API](https://cloud.google.com/appengine/docs/python/modules/functions) - * `set_num_instances()` function. + * later be altered by using the Modules API + * (https://cloud.google.com/appengine/docs/python/modules/functions) + * set_num_instances() function. */ core.int instances; @@ -2599,9 +2512,25 @@ core.String instanceTag; /** * Google Cloud Platform network where the virtual machines are created. - * Specify the short name, not the resource path. Defaults to `default`. + * Specify the short name, not the resource path.Defaults to default. */ core.String name; + /** + * Google Cloud Platform sub-network where the virtual machines are created. + * Specify the short name, not the resource path.If a subnetwork name is + * specified, a network name will also be required unless it is for the + * default network. If the network the VM instance is being created in is a + * Legacy network, then the IP address is allocated from the IPv4Range. If the + * network the VM instance is being created in is an auto Subnet Mode Network, + * then only network name should be specified (not the subnetwork_name) and + * the IP address is created from the IPCidrRange of the subnetwork that + * exists in that zone for that network. If the network the VM instance is + * being created in is a custom Subnet Mode Network, then the subnetwork_name + * must be specified and the IP address is created from the IPCidrRange of the + * subnetwork.If specified, the subnetwork must exist in the same region as + * the Flex app. + */ + core.String subnetworkName; Network(); @@ -2615,6 +2544,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("subnetworkName")) { + subnetworkName = _json["subnetworkName"]; + } } core.Map toJson() { @@ -2628,6 +2560,9 @@ if (name != null) { _json["name"] = name; } + if (subnetworkName != null) { + _json["subnetworkName"] = subnetworkName; + } return _json; } } @@ -2684,8 +2619,8 @@ */ class Operation { /** - * If the value is `false`, it means the operation is still in progress. If - * true, the operation is completed, and either `error` or `response` is + * If the value is false, it means the operation is still in progress. If + * true, the operation is completed, and either error or response is * available. */ core.bool done; @@ -2703,18 +2638,18 @@ core.Map<core.String, core.Object> metadata; /** * The server-assigned name, which is only unique within the same service that - * originally returns it. If you use the default HTTP mapping, the `name` - * should have the format of `operations/some/unique/name`. + * originally returns it. If you use the default HTTP mapping, the name should + * have the format of operations/some/unique/name. */ core.String name; /** * The normal response of the operation in case of success. If the original - * method returns no data on success, such as `Delete`, the response is - * `google.protobuf.Empty`. If the original method is standard - * `Get`/`Create`/`Update`, the response should be the resource. For other - * methods, the response should have the type `XxxResponse`, where `Xxx` is - * the original method name. For example, if the original method name is - * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * method returns no data on success, such as Delete, the response is + * google.protobuf.Empty. If the original method is standard + * Get/Create/Update, the response should be the resource. For other methods, + * the response should have the type XxxResponse, where Xxx is the original + * method name. For example, if the original method name is TakeSnapshot(), + * the inferred response type is TakeSnapshotResponse. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -2764,26 +2699,26 @@ /** Metadata for the given google.longrunning.Operation. */ class OperationMetadata { - /** Timestamp that this operation completed. @OutputOnly */ + /** Timestamp that this operation completed.@OutputOnly */ core.String endTime; - /** Timestamp that this operation was created. @OutputOnly */ + /** Timestamp that this operation was created.@OutputOnly */ core.String insertTime; /** * API method that initiated this operation. Example: - * `google.appengine.v1beta4.Version.CreateVersion`. @OutputOnly + * google.appengine.v1beta4.Version.CreateVersion.@OutputOnly */ core.String method; /** * Type of this operation. Deprecated, use method field instead. Example: - * "create_version". @OutputOnly + * "create_version".@OutputOnly */ core.String operationType; /** * Name of the resource that this operation is acting on. Example: - * `apps/myapp/modules/default`. @OutputOnly + * apps/myapp/modules/default.@OutputOnly */ core.String target; - /** User who requested this operation. @OutputOnly */ + /** User who requested this operation.@OutputOnly */ core.String user; OperationMetadata(); @@ -2835,22 +2770,21 @@ /** Metadata for the given google.longrunning.Operation. */ class OperationMetadataExperimental { - /** Time that this operation completed. @OutputOnly */ + /** Time that this operation completed.@OutputOnly */ core.String endTime; - /** Time that this operation was created. @OutputOnly */ + /** Time that this operation was created.@OutputOnly */ core.String insertTime; /** * API method that initiated this operation. Example: - * `google.appengine.experimental.CustomDomains.CreateCustomDomain`. - * @OutputOnly + * google.appengine.experimental.CustomDomains.CreateCustomDomain.@OutputOnly */ core.String method; /** * Name of the resource that this operation is acting on. Example: - * `apps/myapp/customDomains/example.com`. @OutputOnly + * apps/myapp/customDomains/example.com.@OutputOnly */ core.String target; - /** User who requested this operation. @OutputOnly */ + /** User who requested this operation.@OutputOnly */ core.String user; OperationMetadataExperimental(); @@ -2896,22 +2830,29 @@ /** Metadata for the given google.longrunning.Operation. */ class OperationMetadataV1 { - /** Time that this operation completed. @OutputOnly */ + /** Time that this operation completed.@OutputOnly */ core.String endTime; - /** Time that this operation was created. @OutputOnly */ + /** + * Ephemeral message that may change every time the operation is polled. + * @OutputOnly + */ + core.String ephemeralMessage; + /** Time that this operation was created.@OutputOnly */ core.String insertTime; /** * API method that initiated this operation. Example: - * `google.appengine.v1.Versions.CreateVersion`. @OutputOnly + * google.appengine.v1.Versions.CreateVersion.@OutputOnly */ core.String method; /** * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. @OutputOnly + * apps/myapp/services/default.@OutputOnly */ core.String target; - /** User who requested this operation. @OutputOnly */ + /** User who requested this operation.@OutputOnly */ core.String user; + /** Durable messages that persist on every operation poll. @OutputOnly */ + core.List<core.String> warning; OperationMetadataV1(); @@ -2919,6 +2860,9 @@ if (_json.containsKey("endTime")) { endTime = _json["endTime"]; } + if (_json.containsKey("ephemeralMessage")) { + ephemeralMessage = _json["ephemeralMessage"]; + } if (_json.containsKey("insertTime")) { insertTime = _json["insertTime"]; } @@ -2931,6 +2875,9 @@ if (_json.containsKey("user")) { user = _json["user"]; } + if (_json.containsKey("warning")) { + warning = _json["warning"]; + } } core.Map toJson() { @@ -2938,6 +2885,9 @@ if (endTime != null) { _json["endTime"] = endTime; } + if (ephemeralMessage != null) { + _json["ephemeralMessage"] = ephemeralMessage; + } if (insertTime != null) { _json["insertTime"] = insertTime; } @@ -2950,27 +2900,30 @@ if (user != null) { _json["user"] = user; } + if (warning != null) { + _json["warning"] = warning; + } return _json; } } /** Metadata for the given google.longrunning.Operation. */ class OperationMetadataV1Beta5 { - /** Timestamp that this operation completed. @OutputOnly */ + /** Timestamp that this operation completed.@OutputOnly */ core.String endTime; - /** Timestamp that this operation was created. @OutputOnly */ + /** Timestamp that this operation was created.@OutputOnly */ core.String insertTime; /** * API method name that initiated this operation. Example: - * `google.appengine.v1beta5.Version.CreateVersion`. @OutputOnly + * google.appengine.v1beta5.Version.CreateVersion.@OutputOnly */ core.String method; /** * Name of the resource that this operation is acting on. Example: - * `apps/myapp/services/default`. @OutputOnly + * apps/myapp/services/default.@OutputOnly */ core.String target; - /** User who requested this operation. @OutputOnly */ + /** User who requested this operation.@OutputOnly */ core.String user; OperationMetadataV1Beta5(); @@ -3066,6 +3019,8 @@ core.double diskGb; /** Memory (GB) needed. */ core.double memoryGb; + /** User specified volumes. */ + core.List<Volume> volumes; Resources(); @@ -3079,6 +3034,9 @@ if (_json.containsKey("memoryGb")) { memoryGb = _json["memoryGb"]; } + if (_json.containsKey("volumes")) { + volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toList(); + } } core.Map toJson() { @@ -3092,6 +3050,9 @@ if (memoryGb != null) { _json["memoryGb"] = memoryGb; } + if (volumes != null) { + _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -3128,13 +3089,13 @@ */ class Service { /** - * Relative name of the service within the application. Example: `default`. - * @OutputOnly + * Relative name of the service within the application. Example: + * default.@OutputOnly */ core.String id; /** * Full path to the Service resource in the API. Example: - * `apps/myapp/services/default`. @OutputOnly + * apps/myapp/services/default.@OutputOnly */ core.String name; /** @@ -3195,7 +3156,7 @@ /** HTTP headers to use for all responses from these URLs. */ core.Map<core.String, core.String> httpHeaders; /** - * MIME type used to serve all files served by this handler. Defaults to + * MIME type used to serve all files served by this handler.Defaults to * file-specific MIME types, which are derived from each file's filename * extension. */ @@ -3271,39 +3232,38 @@ } /** - * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). The error model is designed to be: - - * Simple to use and understand for most users - Flexible enough to meet - * unexpected needs # Overview The `Status` message contains three pieces of - * data: error code, error message, and error details. The error code should be - * an enum value of google.rpc.Code, but it may accept additional error codes if - * needed. The error message should be a developer-facing English message that - * helps developers *understand* and *resolve* the error. If a localized - * user-facing error message is needed, put the localized message in the error - * details or localize it in the client. The optional error details may contain - * arbitrary information about the error. There is a predefined set of error - * detail types in the package `google.rpc` which can be used for common error - * conditions. # Language mapping The `Status` message is the logical - * representation of the error model, but it is not necessarily the actual wire - * format. When the `Status` message is exposed in different client libraries - * and different wire protocols, it can be mapped differently. For example, it - * will likely be mapped to some exceptions in Java, but more likely mapped to - * some error codes in C. # Other uses The error model and the `Status` message - * can be used in a variety of environments, either with or without APIs, to - * provide a consistent developer experience across different environments. - * Example uses of this error model include: - Partial errors. If a service - * needs to return partial errors to the client, it may embed the `Status` in - * the normal response to indicate the partial errors. - Workflow errors. A - * typical workflow has multiple steps. Each step may have a `Status` message - * for error reporting purpose. - Batch operations. If a client uses batch - * request and batch response, the `Status` message should be used directly - * inside batch response, one for each error sub-response. - Asynchronous - * operations. If an API call embeds asynchronous operation results in its - * response, the status of those operations should be represented directly using - * the `Status` message. - Logging. If some API errors are stored in logs, the - * message `Status` could be used directly after any stripping needed for - * security/privacy reasons. + * The Status type defines a logical error model that is suitable for different + * programming environments, including REST APIs and RPC APIs. It is used by + * gRPC (https://github.com/grpc). The error model is designed to be: Simple to + * use and understand for most users Flexible enough to meet unexpected + * needsOverviewThe Status message contains three pieces of data: error code, + * error message, and error details. The error code should be an enum value of + * google.rpc.Code, but it may accept additional error codes if needed. The + * error message should be a developer-facing English message that helps + * developers understand and resolve the error. If a localized user-facing error + * message is needed, put the localized message in the error details or localize + * it in the client. The optional error details may contain arbitrary + * information about the error. There is a predefined set of error detail types + * in the package google.rpc which can be used for common error + * conditions.Language mappingThe Status message is the logical representation + * of the error model, but it is not necessarily the actual wire format. When + * the Status message is exposed in different client libraries and different + * wire protocols, it can be mapped differently. For example, it will likely be + * mapped to some exceptions in Java, but more likely mapped to some error codes + * in C.Other usesThe error model and the Status message can be used in a + * variety of environments, either with or without APIs, to provide a consistent + * developer experience across different environments.Example uses of this error + * model include: Partial errors. If a service needs to return partial errors to + * the client, it may embed the Status in the normal response to indicate the + * partial errors. Workflow errors. A typical workflow has multiple steps. Each + * step may have a Status message for error reporting purpose. Batch operations. + * If a client uses batch request and batch response, the Status message should + * be used directly inside batch response, one for each error sub-response. + * Asynchronous operations. If an API call embeds asynchronous operation results + * in its response, the status of those operations should be represented + * directly using the Status message. Logging. If some API errors are stored in + * logs, the message Status could be used directly after any stripping needed + * for security/privacy reasons. */ class Status { /** The status code, which should be an enum value of google.rpc.Code. */ @@ -3404,19 +3364,19 @@ /** Rules to match an HTTP request and dispatch that request to a service. */ class UrlDispatchRule { /** - * Domain name to match against. The wildcard "`*`" is supported if specified - * before a period: "`*.`". Defaults to matching all domains: "`*`". + * Domain name to match against. The wildcard "*" is supported if specified + * before a period: "*.".Defaults to matching all domains: "*". */ core.String domain; /** - * Pathname within the host. Must start with a "`/`". A single "`*`" can be + * Pathname within the host. Must start with a "/". A single "*" can be * included at the end of the path. The sum of the lengths of the domain and * path may not exceed 100 characters. */ core.String path; /** * Resource ID of a service in this application that should serve the matched - * request. The service must already exist. Example: `default`. + * request. The service must already exist. Example: default. */ core.String service; @@ -3459,7 +3419,7 @@ ApiEndpointHandler apiEndpoint; /** * Action to take when users access resources that require authentication. - * Defaults to `redirect`. + * Defaults to redirect. * Possible string values are: * - "AUTH_FAIL_ACTION_UNSPECIFIED" : A AUTH_FAIL_ACTION_UNSPECIFIED. * - "AUTH_FAIL_ACTION_REDIRECT" : A AUTH_FAIL_ACTION_REDIRECT. @@ -3476,8 +3436,8 @@ */ core.String login; /** - * `30x` code to use when performing redirects for the `secure` field. - * Defaults to `302`. + * 30x code to use when performing redirects for the secure field. Defaults to + * 302. * Possible string values are: * - "REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED" : A * REDIRECT_HTTP_RESPONSE_CODE_UNSPECIFIED. @@ -3574,9 +3534,9 @@ */ class Version { /** - * Serving configuration for [Google Cloud - * Endpoints](https://cloud.google.com/appengine/docs/python/endpoints/). Only - * returned in `GET` requests if `view=FULL` is set. + * Serving configuration for Google Cloud Endpoints + * (https://cloud.google.com/appengine/docs/python/endpoints/).Only returned + * in GET requests if view=FULL is set. */ ApiConfigHandler apiConfig; /** @@ -3596,59 +3556,65 @@ * features. */ core.Map<core.String, core.String> betaSettings; - /** Time that this version was created. @OutputOnly */ + /** Time that this version was created.@OutputOnly */ core.String createTime; - /** Email address of the user who created this version. @OutputOnly */ + /** Email address of the user who created this version.@OutputOnly */ core.String createdBy; /** * Duration that static files should be cached by web proxies and browsers. - * Only applicable if the corresponding - * [StaticFilesHandler](https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) - * does not specify its own expiration time. Only returned in `GET` requests - * if `view=FULL` is set. + * Only applicable if the corresponding StaticFilesHandler + * (https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#staticfileshandler) + * does not specify its own expiration time.Only returned in GET requests if + * view=FULL is set. */ core.String defaultExpiration; /** - * Code and application artifacts that make up this version. Only returned in - * `GET` requests if `view=FULL` is set. + * Code and application artifacts that make up this version.Only returned in + * GET requests if view=FULL is set. */ Deployment deployment; /** * Total size in bytes of all the files that are included in this version and - * curerntly hosted on the App Engine disk. @OutputOnly + * curerntly hosted on the App Engine disk.@OutputOnly */ core.String diskUsageBytes; /** - * App Engine execution environment for this version. Defaults to `standard`. + * Cloud Endpoints configuration.If endpoints_api_service is set, the Cloud + * Endpoints Extensible Service Proxy will be provided to serve the API + * implemented by the app. + */ + EndpointsApiService endpointsApiService; + /** + * App Engine execution environment for this version.Defaults to standard. */ core.String env; /** - * Environment variables available to the application. Only returned in `GET` - * requests if `view=FULL` is set. + * Environment variables available to the application.Only returned in GET + * requests if view=FULL is set. */ core.Map<core.String, core.String> envVariables; /** - * Custom static error pages. Limited to 10KB per page. Only returned in `GET` - * requests if `view=FULL` is set. + * Custom static error pages. Limited to 10KB per page.Only returned in GET + * requests if view=FULL is set. */ core.List<ErrorHandler> errorHandlers; /** * An ordered list of URL-matching patterns that should be applied to incoming * requests. The first matching URL handles the request and other request - * handlers are not attempted. Only returned in `GET` requests if `view=FULL` - * is set. + * handlers are not attempted.Only returned in GET requests if view=FULL is + * set. */ core.List<UrlMap> handlers; /** * Configures health checking for VM instances. Unhealthy instances are - * stopped and replaced with new instances. Only applicable for VM runtimes. - * Only returned in `GET` requests if `view=FULL` is set. + * stopped and replaced with new instances. Only applicable for VM + * runtimes.Only returned in GET requests if view=FULL is set. */ HealthCheck healthCheck; /** - * Relative name of the version within the service. Example: `v1`. Version - * names can contain only lowercase letters, numbers, or hyphens. Reserved - * names: "default", "latest", and any name with the prefix "ah-". + * Relative name of the version within the service. Example: v1. Version names + * can contain only lowercase letters, numbers, or hyphens. Reserved names: + * "default", "latest", and any name with the prefix "ah-". */ core.String id; /** @@ -3657,15 +3623,15 @@ */ core.List<core.String> inboundServices; /** - * Instance class that is used to run this version. Valid values are: * - * AutomaticScaling: `F1`, `F2`, `F4`, `F4_1G` * ManualScaling or - * BasicScaling: `B1`, `B2`, `B4`, `B8`, `B4_1G` Defaults to `F1` for - * AutomaticScaling and `B1` for ManualScaling or BasicScaling. + * Instance class that is used to run this version. Valid values are: + * AutomaticScaling: F1, F2, F4, F4_1G ManualScaling or BasicScaling: B1, B2, + * B4, B8, B4_1GDefaults to F1 for AutomaticScaling and B1 for ManualScaling + * or BasicScaling. */ core.String instanceClass; /** * Configuration for third-party Python runtime libraries that are required by - * the application. Only returned in `GET` requests if `view=FULL` is set. + * the application.Only returned in GET requests if view=FULL is set. */ core.List<Library> libraries; /** @@ -3675,25 +3641,25 @@ ManualScaling manualScaling; /** * Full path to the Version resource in the API. Example: - * `apps/myapp/services/default/versions/v1`. @OutputOnly + * apps/myapp/services/default/versions/v1.@OutputOnly */ core.String name; /** Extra network settings. Only applicable for VM runtimes. */ Network network; /** * Files that match this pattern will not be built into this version. Only - * applicable for Go runtimes. Only returned in `GET` requests if `view=FULL` - * is set. + * applicable for Go runtimes.Only returned in GET requests if view=FULL is + * set. */ core.String nobuildFilesRegex; /** Machine resources for this version. Only applicable for VM runtimes. */ Resources resources; - /** Desired runtime. Example: `python27`. */ + /** Desired runtime. Example: python27. */ core.String runtime; /** - * Current serving status of this version. Only the versions with a `SERVING` - * status create instances and can be billed. `SERVING_STATUS_UNSPECIFIED` is - * an invalid value. Defaults to `SERVING`. + * Current serving status of this version. Only the versions with a SERVING + * status create instances and can be billed.SERVING_STATUS_UNSPECIFIED is an + * invalid value. Defaults to SERVING. * Possible string values are: * - "SERVING_STATUS_UNSPECIFIED" : A SERVING_STATUS_UNSPECIFIED. * - "SERVING" : A SERVING. @@ -3704,7 +3670,7 @@ core.bool threadsafe; /** * Serving URL for this version. Example: - * "https://myversion-dot-myservice-dot-myapp.appspot.com" @OutputOnly + * "https://myversion-dot-myservice-dot-myapp.appspot.com"@OutputOnly */ core.String versionUrl; /** Whether to deploy this version in a container on a virtual machine. */ @@ -3740,6 +3706,9 @@ if (_json.containsKey("diskUsageBytes")) { diskUsageBytes = _json["diskUsageBytes"]; } + if (_json.containsKey("endpointsApiService")) { + endpointsApiService = new EndpointsApiService.fromJson(_json["endpointsApiService"]); + } if (_json.containsKey("env")) { env = _json["env"]; } @@ -3828,6 +3797,9 @@ if (diskUsageBytes != null) { _json["diskUsageBytes"] = diskUsageBytes; } + if (endpointsApiService != null) { + _json["endpointsApiService"] = (endpointsApiService).toJson(); + } if (env != null) { _json["env"] = env; } @@ -3889,6 +3861,46 @@ } } +/** + * Volumes mounted within the app container. Only applicable for VM runtimes. + */ +class Volume { + /** Unique name for the volume. */ + core.String name; + /** Volume size in gigabytes. */ + core.double sizeGb; + /** Underlying volume type, e.g. 'tmpfs'. */ + core.String volumeType; + + Volume(); + + Volume.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("sizeGb")) { + sizeGb = _json["sizeGb"]; + } + if (_json.containsKey("volumeType")) { + volumeType = _json["volumeType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (name != null) { + _json["name"] = name; + } + if (sizeGb != null) { + _json["sizeGb"] = sizeGb; + } + if (volumeType != null) { + _json["volumeType"] = volumeType; + } + return _json; + } +} + /** The zip file information for a zip deployment. */ class ZipInfo { /** @@ -3899,7 +3911,7 @@ core.int filesCount; /** * URL of the zip file to deploy from. Must be a URL to a resource in Google - * Cloud Storage in the form 'http(s)://storage.googleapis.com/\/\'. + * Cloud Storage in the form 'http(s)://storage.googleapis.com//'. */ core.String sourceUrl;
diff --git a/generated/googleapis/lib/books/v1.dart b/generated/googleapis/lib/books/v1.dart index 9e06347..919f7d4 100644 --- a/generated/googleapis/lib/books/v1.dart +++ b/generated/googleapis/lib/books/v1.dart
@@ -5589,6 +5589,7 @@ core.String iconUrl; /** Resource type. */ core.String kind; + core.String notificationGroup; core.String notificationType; core.String pcampaignId; core.String reason; @@ -5620,6 +5621,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("notificationGroup")) { + notificationGroup = _json["notificationGroup"]; + } if (_json.containsKey("notification_type")) { notificationType = _json["notification_type"]; } @@ -5663,6 +5667,9 @@ if (kind != null) { _json["kind"] = kind; } + if (notificationGroup != null) { + _json["notificationGroup"] = notificationGroup; + } if (notificationType != null) { _json["notification_type"] = notificationType; } @@ -6135,10 +6142,6 @@ class Series { /** Resource type. */ core.String kind; - /** - * Series info list. The client always expects this element in the JSON - * output, hence declared here as OutputAlways. - */ core.List<SeriesSeries> series; Series();
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index 75b527f..b90c3e0 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart
@@ -37,6 +37,60 @@ _requester = client; /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * Operations.GetOperation or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an Operation.error value with a google.rpc.Status.code of 1, + * corresponding to `Code.CANCELLED`. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - The name of the operation resource to be cancelled. + * Value must have pattern "^operations/.+$". + * + * Completes with a [Empty]. + * + * 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<Empty> cancel(CancelOperationRequest request, core.String name) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. @@ -627,12 +681,15 @@ */ core.String buildTriggerId; /** - * Time at which the build was created. + * Time at which the request to create the build was received. * @OutputOnly */ core.String createTime; /** * Time at which execution of the build was finished. + * + * The difference between finish_time and start_time is the duration of the + * build's execution. * @OutputOnly */ core.String finishTime; @@ -645,8 +702,7 @@ * A list of images to be pushed upon the successful completion of all build * steps. * - * The images will be pushed using the builder - * service account's credentials. + * The images will be pushed using the builder service account's credentials. * * The digests of the pushed images will be stored in the Build resource's * results field. @@ -695,7 +751,6 @@ * @OutputOnly * Possible string values are: * - "STATUS_UNKNOWN" : Status of the build is unknown. - * - "QUEUING" : Build has been received and is being queued. * - "QUEUED" : Build is queued; work has not yet begun. * - "WORKING" : Build is being executed. * - "SUCCESS" : Build finished successfully. @@ -922,10 +977,9 @@ /** * The name of the container image that will run this particular build step. * - * If the image is already available in the host's - * Docker daemon's cache, it will be run directly. If not, the host will - * attempt to pull the image first, using the builder service account's - * credentials if necessary. + * If the image is already available in the host's Docker daemon's cache, it + * will be run directly. If not, the host will attempt to pull the image + * first, using the builder service account's credentials if necessary. * * The Docker daemon's cache will already have the latest versions of all of * the officially supported build steps @@ -1132,6 +1186,20 @@ } } +/** The request message for Operations.CancelOperation. */ +class CancelOperationRequest { + + CancelOperationRequest(); + + CancelOperationRequest.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request
diff --git a/generated/googleapis/lib/cloudresourcemanager/v1.dart b/generated/googleapis/lib/cloudresourcemanager/v1.dart index b85e5e7..d845f7a 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v1.dart
@@ -44,14 +44,14 @@ _requester = client; /** - * Gets the latest state of a long-running operation. Clients can use this + * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. * * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Operation]. * @@ -101,7 +101,7 @@ * * [name] - The resource name of the Organization to fetch, e.g. * "organizations/1234". - * Value must have pattern "^organizations/[^/]*$". + * Value must have pattern "^organizations/[^/]+$". * * Completes with a [Organization]. * @@ -145,9 +145,10 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. - * Value must have pattern "^organizations/[^/]*$". + * requested. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. + * Value must have pattern "^organizations/[^/]+$". * * Completes with a [Policy]. * @@ -236,9 +237,10 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. - * Value must have pattern "^organizations/[^/]*$". + * specified. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. + * Value must have pattern "^organizations/[^/]+$". * * Completes with a [Policy]. * @@ -276,18 +278,19 @@ } /** - * Returns permissions that a caller has on the specified Organization. The - * `resource` field should be the organization's resource name, e.g. - * "organizations/123". + * Returns permissions that a caller has on the specified Organization. + * The `resource` field should be the organization's resource name, + * e.g. "organizations/123". * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. - * Value must have pattern "^organizations/[^/]*$". + * requested. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. + * Value must have pattern "^organizations/[^/]+$". * * Completes with a [TestIamPermissionsResponse]. * @@ -334,13 +337,14 @@ _requester = client; /** - * Request that a new Project be created. The result is an Operation which can - * be used to track the creation process. It is automatically deleted after a - * few hours, so there is no need to call DeleteOperation. Our SLO permits - * Project creation to take up to 30 seconds at the 90th percentile. As of - * 2016-08-29, we are observing 6 seconds 50th percentile latency. 95th - * percentile latency is around 11 seconds. We recommend polling at the 5th - * second with an exponential backoff. + * Request that a new Project be created. The result is an Operation which + * can be used to track the creation process. It is automatically deleted + * after a few hours, so there is no need to call DeleteOperation. + * + * Our SLO permits Project creation to take up to 30 seconds at the 90th + * percentile. As of 2016-08-29, we are observing 6 seconds 50th percentile + * latency. 95th percentile latency is around 11 seconds. We recommend + * polling at the 5th second with an exponential backoff. * * [request] - The metadata request object. * @@ -379,22 +383,36 @@ } /** - * Marks the Project identified by the specified `project_id` (for example, - * `my-project-123`) for deletion. This method will only affect the Project if - * the following criteria are met: + The Project does not have a billing - * account associated with it. + The Project has a lifecycle state of ACTIVE. - * This method changes the Project's lifecycle state from ACTIVE to - * DELETE_REQUESTED. The deletion starts at an unspecified time, at which - * point the Project is no longer accessible. Until the deletion completes, - * you can check the lifecycle state checked by retrieving the Project with - * GetProject, and the Project remains visible to ListProjects. However, you - * cannot update the project. After the deletion completes, the Project is not - * retrievable by the GetProject and ListProjects methods. The caller must - * have modify permissions for this Project. + * Marks the Project identified by the specified + * `project_id` (for example, `my-project-123`) for deletion. + * This method will only affect the Project if the following criteria are met: + * + * + The Project does not have a billing account associated with it. + * + The Project has a lifecycle state of + * ACTIVE. + * + * This method changes the Project's lifecycle state from + * ACTIVE + * to DELETE_REQUESTED. + * The deletion starts at an unspecified time, + * at which point the Project is no longer accessible. + * + * Until the deletion completes, you can check the lifecycle state + * checked by retrieving the Project with GetProject, + * and the Project remains visible to ListProjects. + * However, you cannot update the project. + * + * After the deletion completes, the Project is not retrievable by + * the GetProject and + * ListProjects methods. + * + * The caller must have modify permissions for this Project. * * Request parameters: * - * [projectId] - The Project ID (for example, `foo-bar-123`). Required. + * [projectId] - The Project ID (for example, `foo-bar-123`). + * + * Required. * * Completes with a [Empty]. * @@ -429,13 +447,16 @@ } /** - * Retrieves the Project identified by the specified `project_id` (for - * example, `my-project-123`). The caller must have read permissions for this - * Project. + * Retrieves the Project identified by the specified + * `project_id` (for example, `my-project-123`). + * + * The caller must have read permissions for this Project. * * Request parameters: * - * [projectId] - The Project ID (for example, `my-project-123`). Required. + * [projectId] - The Project ID (for example, `my-project-123`). + * + * Required. * * Completes with a [Project]. * @@ -470,16 +491,66 @@ } /** - * Returns the IAM access control policy for the specified Project. Permission - * is denied if the policy or the resource does not exist. + * Gets a list of ancestors in the resource hierarchy for the Project + * identified by the specified `project_id` (for example, `my-project-123`). + * + * The caller must have read permissions for this Project. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [projectId] - The Project ID (for example, `my-project-123`). + * + * Required. + * + * Completes with a [GetAncestryResponse]. + * + * 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<GetAncestryResponse> getAncestry(GetAncestryRequest request, core.String projectId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (projectId == null) { + throw new core.ArgumentError("Parameter projectId is required."); + } + + _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + ':getAncestry'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GetAncestryResponse.fromJson(data)); + } + + /** + * Returns the IAM access control policy for the specified Project. + * Permission is denied if the policy or the resource does not exist. * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. + * requested. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -517,29 +588,46 @@ } /** - * Lists Projects that are visible to the user and satisfy the specified - * filter. This method returns Projects in an unspecified order. New Projects - * do not necessarily appear at the end of the list. + * Lists Projects that are visible to the user and satisfy the + * specified filter. This method returns Projects in an unspecified order. + * New Projects do not necessarily appear at the end of the list. * * Request parameters: * + * [pageSize] - The maximum number of Projects to return in the response. + * The server can return fewer Projects than requested. + * If unspecified, server picks an appropriate default. + * + * Optional. + * + * [filter] - An expression for filtering the results of the request. Filter + * rules are + * case insensitive. The fields eligible for filtering are: + * + * + `name` + * + `id` + * + <code>labels.<em>key</em></code> where *key* is the name of a label + * + * Some examples of using labels as filters: + * + * |Filter|Description| + * |------|-----------| + * |name:*|The project has a name.| + * |name:Howl|The project's name is `Howl` or `howl`.| + * |name:HOWL|Equivalent to above.| + * |NAME:howl|Equivalent to above.| + * |labels.color:*|The project has the label `color`.| + * |labels.color:red|The project's label `color` has the value `red`.| + * |labels.color:red label.size:big|The project's label `color` has the + * value `red` and its label `size` has the value `big`. + * + * Optional. + * * [pageToken] - A pagination token returned from a previous call to - * ListProjects that indicates from where listing should continue. Optional. + * ListProjects + * that indicates from where listing should continue. * - * [pageSize] - The maximum number of Projects to return in the response. The - * server can return fewer Projects than requested. If unspecified, server - * picks an appropriate default. Optional. - * - * [filter] - An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: + `name` - * + `id` + labels.key where *key* is the name of a label Some examples of - * using labels as filters: |Filter|Description| |------|-----------| - * |name:*|The project has a name.| |name:Howl|The project's name is `Howl` or - * `howl`.| |name:HOWL|Equivalent to above.| |NAME:howl|Equivalent to above.| - * |labels.color:*|The project has the label `color`.| |labels.color:red|The - * project's label `color` has the value `red`.| - * |labels.color:red label.size:big|The project's label `color` has the value - * `red` and its label `size` has the value `big`. Optional. + * Optional. * * Completes with a [ListProjectsResponse]. * @@ -549,7 +637,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<ListProjectsResponse> list({core.String pageToken, core.int pageSize, core.String filter}) { + async.Future<ListProjectsResponse> list({core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -557,15 +645,15 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } if (filter != null) { _queryParams["filter"] = [filter]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v1/projects'; @@ -580,27 +668,41 @@ } /** - * Sets the IAM access control policy for the specified Project. Replaces any - * existing policy. The following constraints apply when using - * `setIamPolicy()`: + Project does not support `allUsers` and - * `allAuthenticatedUsers` as `members` in a `Binding` of a `Policy`. + The - * owner role can be granted only to `user` and `serviceAccount`. + Service - * accounts can be made owners of a project directly without any restrictions. - * However, to be added as an owner, a user must be invited via Cloud Platform - * console and must accept the invitation. + A user cannot be granted the - * owner role using `setIamPolicy()`. The user must be granted the owner role - * using the Cloud Platform Console and must explicitly accept the invitation. + * Sets the IAM access control policy for the specified Project. Replaces + * any existing policy. + * + * The following constraints apply when using `setIamPolicy()`: + * + * + Project does not support `allUsers` and `allAuthenticatedUsers` as + * `members` in a `Binding` of a `Policy`. + * + * + The owner role can be granted only to `user` and `serviceAccount`. + * + * + Service accounts can be made owners of a project directly + * without any restrictions. However, to be added as an owner, a user must be + * invited via Cloud Platform console and must accept the invitation. + * + * + A user cannot be granted the owner role using `setIamPolicy()`. The user + * must be granted the owner role using the Cloud Platform Console and must + * explicitly accept the invitation. + * * + Invitations to grant the owner role cannot be sent using - * `setIamPolicy()`; they must be sent only using the Cloud Platform Console. + * `setIamPolicy()`; + * they must be sent only using the Cloud Platform Console. + * * + Membership changes that leave the project without any owners that have - * accepted the Terms of Service (ToS) will be rejected. + There must be at - * least one owner who has accepted the Terms of Service (ToS) agreement in - * the policy. Calling `setIamPolicy()` to to remove the last ToS-accepted - * owner from the policy will fail. This restriction also applies to legacy - * projects that no longer have owners who have accepted the ToS. Edits to IAM - * policies will be rejected until the lack of a ToS-accepting owner is - * rectified. + Calling this method requires enabling the App Engine Admin - * API. Note: Removing service accounts from policies or changing their roles + * accepted the Terms of Service (ToS) will be rejected. + * + * + There must be at least one owner who has accepted the Terms of + * Service (ToS) agreement in the policy. Calling `setIamPolicy()` to + * to remove the last ToS-accepted owner from the policy will fail. This + * restriction also applies to legacy projects that no longer have owners + * who have accepted the ToS. Edits to IAM policies will be rejected until + * the lack of a ToS-accepting owner is rectified. + * + * + Calling this method requires enabling the App Engine Admin API. + * + * Note: Removing service accounts from policies or changing their roles * can render services completely inoperable. It is important to understand * how the service account is being used before removing or updating its * roles. @@ -610,8 +712,9 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. + * specified. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -656,8 +759,9 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path. For example, a - * Project resource is specified as `projects/{project}`. + * requested. + * `resource` is usually specified as a path. For example, a Project + * resource is specified as `projects/{project}`. * * Completes with a [TestIamPermissionsResponse]. * @@ -695,17 +799,21 @@ } /** - * Restores the Project identified by the specified `project_id` (for example, - * `my-project-123`). You can only use this method for a Project that has a - * lifecycle state of DELETE_REQUESTED. After deletion starts, the Project - * cannot be restored. The caller must have modify permissions for this - * Project. + * Restores the Project identified by the specified + * `project_id` (for example, `my-project-123`). + * You can only use this method for a Project that has a lifecycle state of + * DELETE_REQUESTED. + * After deletion starts, the Project cannot be restored. + * + * The caller must have modify permissions for this Project. * * [request] - The metadata request object. * * Request parameters: * - * [projectId] - The project ID (for example, `foo-bar-123`). Required. + * [projectId] - The project ID (for example, `foo-bar-123`). + * + * Required. * * Completes with a [Empty]. * @@ -744,14 +852,17 @@ /** * Updates the attributes of the Project identified by the specified - * `project_id` (for example, `my-project-123`). The caller must have modify - * permissions for this Project. + * `project_id` (for example, `my-project-123`). + * + * The caller must have modify permissions for this Project. * * [request] - The metadata request object. * * Request parameters: * - * [projectId] - The project ID (for example, `my-project-123`). Required. + * [projectId] - The project ID (for example, `my-project-123`). + * + * Required. * * Completes with a [Project]. * @@ -792,27 +903,58 @@ +/** Identifying information for a single ancestor of a project. */ +class Ancestor { + /** Resource id of the ancestor. */ + ResourceId resourceId; + + Ancestor(); + + Ancestor.fromJson(core.Map _json) { + if (_json.containsKey("resourceId")) { + resourceId = new ResourceId.fromJson(_json["resourceId"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (resourceId != null) { + _json["resourceId"] = (resourceId).toJson(); + } + return _json; + } +} + /** Associates `members` with a `role`. */ class Binding { /** * Specifies the identities requesting access for a Cloud Platform resource. - * `members` can have the following values: * `allUsers`: A special identifier - * that represents anyone who is on the internet; with or without a Google - * account. * `allAuthenticatedUsers`: A special identifier that represents - * anyone who is authenticated with a Google account or a service account. * - * `user:{emailid}`: An email address that represents a specific Google - * account. For example, `alice@gmail.com` or `joe@example.com`. * - * `serviceAccount:{emailid}`: An email address that represents a service - * account. For example, `my-other-app@appspot.gserviceaccount.com`. * - * `group:{emailid}`: An email address that represents a Google group. For - * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain - * name that represents all the users of that domain. For example, - * `google.com` or `example.com`. + * `members` can have the following values: + * + * * `allUsers`: A special identifier that represents anyone who is + * on the internet; with or without a Google account. + * + * * `allAuthenticatedUsers`: A special identifier that represents anyone + * who is authenticated with a Google account or a service account. + * + * * `user:{emailid}`: An email address that represents a specific Google + * account. For example, `alice@gmail.com` or `joe@example.com`. + * + * + * * `serviceAccount:{emailid}`: An email address that represents a service + * account. For example, `my-other-app@appspot.gserviceaccount.com`. + * + * * `group:{emailid}`: An email address that represents a Google group. + * For example, `admins@example.com`. + * + * * `domain:{domain}`: A Google Apps domain name that represents all the + * users of that domain. For example, `google.com` or `example.com`. */ core.List<core.String> members; /** - * Role that is assigned to `members`. For example, `roles/viewer`, - * `roles/editor`, or `roles/owner`. Required + * Role that is assigned to `members`. + * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + * Required */ core.String role; @@ -841,10 +983,14 @@ /** * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request or - * the response type of an API method. For instance: service Foo { rpc - * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON - * representation for `Empty` is empty JSON object `{}`. + * empty messages in your APIs. A typical example is to use it as the request + * or the response type of an API method. For instance: + * + * service Foo { + * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + * } + * + * The JSON representation for `Empty` is empty JSON object `{}`. */ class Empty { @@ -862,8 +1008,8 @@ /** Metadata describing a long running folder operation */ class FolderOperation { /** - * The resource name of the folder or organization we are either creating the - * folder under or moving the folder to. + * The resource name of the folder or organization we are either creating + * the folder under or moving the folder to. */ core.String destinationParent; /** The display name of the folder. */ @@ -871,14 +1017,14 @@ /** * The type of this operation. * Possible string values are: - * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. - * - "CREATE" : A CREATE. - * - "MOVE" : A MOVE. + * - "OPERATION_TYPE_UNSPECIFIED" : Operation type not specified. + * - "CREATE" : A create folder operation. + * - "MOVE" : A move folder operation. */ core.String operationType; /** - * The resource name of the folder's parent. Only applicable when the - * operation_type is MOVE. + * The resource name of the folder's parent. + * Only applicable when the operation_type is MOVE. */ core.String sourceParent; @@ -922,15 +1068,24 @@ /** * The type of operation error experienced. * Possible string values are: - * - "ERROR_TYPE_UNSPECIFIED" : A ERROR_TYPE_UNSPECIFIED. - * - "FOLDER_HEIGHT_VIOLATION" : A FOLDER_HEIGHT_VIOLATION. - * - "MAX_CHILD_FOLDERS_VIOLATION" : A MAX_CHILD_FOLDERS_VIOLATION. - * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : A FOLDER_NAME_UNIQUENESS_VIOLATION. - * - "RESOURCE_DELETED" : A RESOURCE_DELETED. - * - "PARENT_DELETED" : A PARENT_DELETED. - * - "CYCLE_INTRODUCED_ERROR" : A CYCLE_INTRODUCED_ERROR. - * - "FOLDER_ALREADY_BEING_MOVED" : A FOLDER_ALREADY_BEING_MOVED. - * - "FOLDER_TO_DELETE_NON_EMPTY" : A FOLDER_TO_DELETE_NON_EMPTY. + * - "ERROR_TYPE_UNSPECIFIED" : The error type was unrecognized or + * unspecified. + * - "FOLDER_HEIGHT_VIOLATION" : The attempted action would violate the max + * folder depth constraint. + * - "MAX_CHILD_FOLDERS_VIOLATION" : The attempted action would violate the + * max child folders constraint. + * - "FOLDER_NAME_UNIQUENESS_VIOLATION" : The attempted action would violate + * the locally-unique folder + * display_name constraint. + * - "RESOURCE_DELETED" : The resource being moved has been deleted. + * - "PARENT_DELETED" : The resource a folder was being added to has been + * deleted. + * - "CYCLE_INTRODUCED_ERROR" : The attempted action would introduce cycle in + * resource path. + * - "FOLDER_ALREADY_BEING_MOVED" : The attempted action would move a folder + * that is already being moved. + * - "FOLDER_TO_DELETE_NON_EMPTY" : The folder the caller is trying to delete + * contains active resources. */ core.String errorMessageId; @@ -951,6 +1106,50 @@ } } +/** + * The request sent to the + * GetAncestry + * method. + */ +class GetAncestryRequest { + + GetAncestryRequest(); + + GetAncestryRequest.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** Response from the GetAncestry method. */ +class GetAncestryResponse { + /** + * Ancestors are ordered from bottom to top of the resource hierarchy. The + * first ancestor is the project itself, followed by the project's parent, + * etc. + */ + core.List<Ancestor> ancestor; + + GetAncestryResponse(); + + GetAncestryResponse.fromJson(core.Map _json) { + if (_json.containsKey("ancestor")) { + ancestor = _json["ancestor"].map((value) => new Ancestor.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (ancestor != null) { + _json["ancestor"] = ancestor.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Request message for `GetIamPolicy` method. */ class GetIamPolicyRequest { @@ -966,24 +1165,32 @@ } /** - * A page of the response received from the ListProjects method. A paginated - * response where more pages are available has `next_page_token` set. This token - * can be used in a subsequent request to retrieve the next request page. + * A page of the response received from the + * ListProjects + * method. + * + * A paginated response where more pages are available has + * `next_page_token` set. This token can be used in a subsequent request to + * retrieve the next request page. */ class ListProjectsResponse { /** - * Pagination token. If the result set is too large to fit in a single - * response, this token is returned. It encodes the position of the current - * result cursor. Feeding this value into a new list request with the - * `page_token` parameter gives the next page of the results. When - * `next_page_token` is not filled in, there is no next page and the list - * returned is the last page in the result set. Pagination tokens have a - * limited lifetime. + * Pagination token. + * + * If the result set is too large to fit in a single response, this token + * is returned. It encodes the position of the current result cursor. + * Feeding this value into a new list request with the `page_token` parameter + * gives the next page of the results. + * + * When `next_page_token` is not filled in, there is no next page and + * the list returned is the last page in the result set. + * + * Pagination tokens have a limited lifetime. */ core.String nextPageToken; /** - * The list of Projects that matched the list filter. This list can be - * paginated. + * The list of Projects that matched the list filter. This list can + * be paginated. */ core.List<Project> projects; @@ -1016,17 +1223,17 @@ */ class Operation { /** - * If the value is `false`, it means the operation is still in progress. If - * true, the operation is completed, and either `error` or `response` is + * If the value is `false`, it means the operation is still in progress. + * If true, the operation is completed, and either `error` or `response` is * available. */ core.bool done; - /** The error result of the operation in case of failure. */ + /** The error result of the operation in case of failure or cancellation. */ Status error; /** - * Service-specific metadata associated with the operation. It typically - * contains progress information and common metadata such as create time. Some - * services might not provide such metadata. Any method that returns a + * Service-specific metadata associated with the operation. It typically + * contains progress information and common metadata such as create time. + * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * The values for Object must be JSON objects. It can consist of `num`, @@ -1035,18 +1242,19 @@ core.Map<core.String, core.Object> metadata; /** * The server-assigned name, which is only unique within the same service that - * originally returns it. If you use the default HTTP mapping, the `name` - * should have the format of `operations/some/unique/name`. + * originally returns it. If you use the default HTTP mapping, the + * `name` should have the format of `operations/some/unique/name`. */ core.String name; /** - * The normal response of the operation in case of success. If the original + * The normal response of the operation in case of success. If the original * method returns no data on success, such as `Delete`, the response is - * `google.protobuf.Empty`. If the original method is standard - * `Get`/`Create`/`Update`, the response should be the resource. For other - * methods, the response should have the type `XxxResponse`, where `Xxx` is - * the original method name. For example, if the original method name is - * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + * `google.protobuf.Empty`. If the original method is standard + * `Get`/`Create`/`Update`, the response should be the resource. For other + * methods, the response should have the type `XxxResponse`, where `Xxx` + * is the original method name. For example, if the original method name + * is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -1095,8 +1303,8 @@ } /** - * The root node in the resource hierarchy to which a particular entity's (e.g., - * company) resources belong. + * The root node in the resource hierarchy to which a particular entity's + * (e.g., company) resources belong. */ class Organization { /** @@ -1107,16 +1315,19 @@ /** * A friendly string to be used to refer to the Organization in the UI. * Assigned by the server, set to the firm name of the Google For Work - * customer that owns this organization. @OutputOnly + * customer that owns this organization. + * @OutputOnly */ core.String displayName; /** * The organization's current lifecycle state. Assigned by the server. * @OutputOnly * Possible string values are: - * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. - * - "ACTIVE" : A ACTIVE. - * - "DELETE_REQUESTED" : A DELETE_REQUESTED. + * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only useful + * for distinguishing unset values. + * - "ACTIVE" : The normal and active state. + * - "DELETE_REQUESTED" : The organization has been marked for deletion by the + * user. */ core.String lifecycleState; /** @@ -1126,8 +1337,9 @@ */ core.String name; /** - * The owner of this Organization. The owner should be specified on creation. - * Once set, it cannot be changed. This field is required. + * The owner of this Organization. The owner should be specified on + * creation. Once set, it cannot be changed. + * This field is required. */ OrganizationOwner owner; @@ -1200,33 +1412,54 @@ } /** - * Defines an Identity and Access Management (IAM) policy. It is used to specify - * access control policies for Cloud Platform resources. A `Policy` consists of - * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, - * where the members can be user accounts, Google groups, Google domains, and - * service accounts. A `role` is a named list of permissions defined by IAM. - * **Example** { "bindings": [ { "role": "roles/owner", "members": [ - * "user:mike@example.com", "group:admins@example.com", "domain:google.com", - * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role": - * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description - * of IAM and its features, see the [IAM developer's - * guide](https://cloud.google.com/iam). + * Defines an Identity and Access Management (IAM) policy. It is used to + * specify access control policies for Cloud Platform resources. + * + * + * A `Policy` consists of a list of `bindings`. A `Binding` binds a list of + * `members` to a `role`, where the members can be user accounts, Google groups, + * Google domains, and service accounts. A `role` is a named list of permissions + * defined by IAM. + * + * **Example** + * + * { + * "bindings": [ + * { + * "role": "roles/owner", + * "members": [ + * "user:mike@example.com", + * "group:admins@example.com", + * "domain:google.com", + * "serviceAccount:my-other-app@appspot.gserviceaccount.com", + * ] + * }, + * { + * "role": "roles/viewer", + * "members": ["user:sean@example.com"] + * } + * ] + * } + * + * For a description of IAM and its features, see the + * [IAM developer's guide](https://cloud.google.com/iam). */ class Policy { /** - * Associates a list of `members` to a `role`. Multiple `bindings` must not be - * specified for the same `role`. `bindings` with no members will result in an - * error. + * Associates a list of `members` to a `role`. + * Multiple `bindings` must not be specified for the same `role`. + * `bindings` with no members will result in an error. */ core.List<Binding> bindings; /** - * `etag` is used for optimistic concurrency control as a way to help prevent - * simultaneous updates of a policy from overwriting each other. It is - * strongly suggested that systems make use of the `etag` in the + * `etag` is used for optimistic concurrency control as a way to help + * prevent simultaneous updates of a policy from overwriting each other. + * It is strongly suggested that systems make use of the `etag` in the * read-modify-write cycle to perform policy updates in order to avoid race * conditions: An `etag` is returned in the response to `getIamPolicy`, and * systems are expected to put that etag in the request to `setIamPolicy` to * ensure that their change will be applied to the same version of the policy. + * * If no `etag` is provided in the call to `setIamPolicy`, then the existing * policy is overwritten blindly. */ @@ -1271,52 +1504,90 @@ } /** - * A Project is a high-level Google Cloud Platform entity. It is a container for - * ACLs, APIs, AppEngine Apps, VMs, and other Google Cloud Platform resources. + * A Project is a high-level Google Cloud Platform entity. It is a + * container for ACLs, APIs, AppEngine Apps, VMs, and other + * Google Cloud Platform resources. */ class Project { - /** Creation time. Read-only. */ + /** + * Creation time. + * + * Read-only. + */ core.String createTime; /** - * The labels associated with this Project. Label keys must be between 1 and - * 63 characters long and must conform to the following regular expression: - * \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 - * characters long and must conform to the regular expression - * (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. No more than 256 labels can be - * associated with a given resource. Clients should store labels in a - * representation such as JSON that does not depend on specific characters - * being disallowed. Example: "environment" : "dev" Read-write. + * The labels associated with this Project. + * + * Label keys must be between 1 and 63 characters long and must conform + * to the following regular expression: \[a-z\](\[-a-z0-9\]*\[a-z0-9\])?. + * + * Label values must be between 0 and 63 characters long and must conform + * to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?. + * + * No more than 256 labels can be associated with a given resource. + * + * Clients should store labels in a representation such as JSON that does not + * depend on specific characters being disallowed. + * + * Example: <code>"environment" : "dev"</code> + * + * Read-write. */ core.Map<core.String, core.String> labels; /** - * The Project lifecycle state. Read-only. + * The Project lifecycle state. + * + * Read-only. * Possible string values are: - * - "LIFECYCLE_STATE_UNSPECIFIED" : A LIFECYCLE_STATE_UNSPECIFIED. - * - "ACTIVE" : A ACTIVE. - * - "DELETE_REQUESTED" : A DELETE_REQUESTED. - * - "DELETE_IN_PROGRESS" : A DELETE_IN_PROGRESS. + * - "LIFECYCLE_STATE_UNSPECIFIED" : Unspecified state. This is only + * used/useful for distinguishing + * unset values. + * - "ACTIVE" : The normal and active state. + * - "DELETE_REQUESTED" : The project has been marked for deletion by the user + * (by invoking + * DeleteProject) + * or by the system (Google Cloud Platform). + * This can generally be reversed by invoking UndeleteProject. + * - "DELETE_IN_PROGRESS" : This lifecycle state is no longer used and not + * returned by the API. */ core.String lifecycleState; /** - * The user-assigned display name of the Project. It must be 4 to 30 - * characters. Allowed characters are: lowercase and uppercase letters, - * numbers, hyphen, single-quote, double-quote, space, and exclamation point. - * Example: My Project Read-write. + * The user-assigned display name of the Project. + * It must be 4 to 30 characters. + * Allowed characters are: lowercase and uppercase letters, numbers, + * hyphen, single-quote, double-quote, space, and exclamation point. + * + * Example: <code>My Project</code> + * + * Read-write. */ core.String name; /** - * An optional reference to a parent Resource. The only supported parent type - * is "organization". Once set, the parent cannot be modified. Read-write. + * An optional reference to a parent Resource. + * + * The only supported parent type is "organization". Once set, the parent + * cannot be modified. + * + * Read-write. */ ResourceId parent; /** - * The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase - * letters, digits, or hyphens. It must start with a letter. Trailing hyphens - * are prohibited. Example: tokyo-rain-123 Read-only after creation. + * The unique, user-assigned ID of the Project. + * It must be 6 to 30 lowercase letters, digits, or hyphens. + * It must start with a letter. + * Trailing hyphens are prohibited. + * + * Example: <code>tokyo-rain-123</code> + * + * Read-only after creation. */ core.String projectId; /** - * The number uniquely identifying the project. Example: 415104041262 + * The number uniquely identifying the project. + * + * Example: <code>415104041262</code> + * * Read-only. */ core.String projectNumber; @@ -1423,8 +1694,8 @@ /** * A container to reference an id for any resource type. A `resource` in Google * Cloud Platform is a generic term for something you (a developer) may want to - * interact with through one of our API's. Some examples are an AppEngine app, a - * Compute Engine instance, a Cloud SQL database, and so on. + * interact with through one of our API's. Some examples are an AppEngine app, + * a Compute Engine instance, a Cloud SQL database, and so on. */ class ResourceId { /** @@ -1433,8 +1704,8 @@ */ core.String id; /** - * Required field representing the resource type this id is for. At present, - * the only valid type is "organization". + * Required field representing the resource type this id is for. + * At present, the only valid type is "organization". */ core.String type; @@ -1464,24 +1735,31 @@ /** The request sent to the `SearchOrganizations` method. */ class SearchOrganizationsRequest { /** - * An optional query string used to filter the Organizations to return in the - * response. Filter rules are case-insensitive. Organizations may be filtered - * by `owner.directoryCustomerId` or by `domain`, where the domain is a Google - * for Work domain, for example: |Filter|Description| |------|-----------| + * An optional query string used to filter the Organizations to return in + * the response. Filter rules are case-insensitive. + * + * + * Organizations may be filtered by `owner.directoryCustomerId` or by + * `domain`, where the domain is a Google for Work domain, for example: + * + * |Filter|Description| + * |------|-----------| * |owner.directorycustomerid:123456789|Organizations with * `owner.directory_customer_id` equal to `123456789`.| * |domain:google.com|Organizations corresponding to the domain `google.com`.| + * * This field is optional. */ core.String filter; /** - * The maximum number of Organizations to return in the response. This field - * is optional. + * The maximum number of Organizations to return in the response. + * This field is optional. */ core.int pageSize; /** * A pagination token returned from a previous call to `SearchOrganizations` - * that indicates from where listing should continue. This field is optional. + * that indicates from where listing should continue. + * This field is optional. */ core.String pageToken; @@ -1557,8 +1835,9 @@ class SetIamPolicyRequest { /** * REQUIRED: The complete policy to be applied to the `resource`. The size of - * the policy is limited to a few 10s of KB. An empty policy is a valid policy - * but certain Cloud Platform services (such as Projects) might reject them. + * the policy is limited to a few 10s of KB. An empty policy is a + * valid policy but certain Cloud Platform services (such as Projects) + * might reject them. */ Policy policy; @@ -1581,45 +1860,66 @@ /** * The `Status` type defines a logical error model that is suitable for - * different programming environments, including REST APIs and RPC APIs. It is - * used by [gRPC](https://github.com/grpc). The error model is designed to be: - - * Simple to use and understand for most users - Flexible enough to meet - * unexpected needs # Overview The `Status` message contains three pieces of - * data: error code, error message, and error details. The error code should be - * an enum value of google.rpc.Code, but it may accept additional error codes if - * needed. The error message should be a developer-facing English message that - * helps developers *understand* and *resolve* the error. If a localized - * user-facing error message is needed, put the localized message in the error - * details or localize it in the client. The optional error details may contain - * arbitrary information about the error. There is a predefined set of error - * detail types in the package `google.rpc` which can be used for common error - * conditions. # Language mapping The `Status` message is the logical - * representation of the error model, but it is not necessarily the actual wire - * format. When the `Status` message is exposed in different client libraries - * and different wire protocols, it can be mapped differently. For example, it - * will likely be mapped to some exceptions in Java, but more likely mapped to - * some error codes in C. # Other uses The error model and the `Status` message - * can be used in a variety of environments, either with or without APIs, to - * provide a consistent developer experience across different environments. - * Example uses of this error model include: - Partial errors. If a service - * needs to return partial errors to the client, it may embed the `Status` in - * the normal response to indicate the partial errors. - Workflow errors. A - * typical workflow has multiple steps. Each step may have a `Status` message - * for error reporting purpose. - Batch operations. If a client uses batch - * request and batch response, the `Status` message should be used directly - * inside batch response, one for each error sub-response. - Asynchronous - * operations. If an API call embeds asynchronous operation results in its - * response, the status of those operations should be represented directly using - * the `Status` message. - Logging. If some API errors are stored in logs, the - * message `Status` could be used directly after any stripping needed for - * security/privacy reasons. + * different + * programming environments, including REST APIs and RPC APIs. It is used by + * [gRPC](https://github.com/grpc). The error model is designed to be: + * + * - Simple to use and understand for most users + * - Flexible enough to meet unexpected needs + * + * # Overview + * + * The `Status` message contains three pieces of data: error code, error + * message, + * and error details. The error code should be an enum value of + * google.rpc.Code, but it may accept additional error codes if needed. The + * error message should be a developer-facing English message that helps + * developers *understand* and *resolve* the error. If a localized user-facing + * error message is needed, put the localized message in the error details or + * localize it in the client. The optional error details may contain arbitrary + * information about the error. There is a predefined set of error detail types + * in the package `google.rpc` which can be used for common error conditions. + * + * # Language mapping + * + * The `Status` message is the logical representation of the error model, but it + * is not necessarily the actual wire format. When the `Status` message is + * exposed in different client libraries and different wire protocols, it can be + * mapped differently. For example, it will likely be mapped to some exceptions + * in Java, but more likely mapped to some error codes in C. + * + * # Other uses + * + * The error model and the `Status` message can be used in a variety of + * environments, either with or without APIs, to provide a + * consistent developer experience across different environments. + * + * Example uses of this error model include: + * + * - Partial errors. If a service needs to return partial errors to the client, + * it may embed the `Status` in the normal response to indicate the partial + * errors. + * + * - Workflow errors. A typical workflow has multiple steps. Each step may + * have a `Status` message for error reporting purpose. + * + * - Batch operations. If a client uses batch request and batch response, the + * `Status` message should be used directly inside batch response, one for + * each error sub-response. + * + * - Asynchronous operations. If an API call embeds asynchronous operation + * results in its response, the status of those operations should be + * represented directly using the `Status` message. + * + * - Logging. If some API errors are stored in logs, the message `Status` could + * be used directly after any stripping needed for security/privacy reasons. */ class Status { /** The status code, which should be an enum value of google.rpc.Code. */ core.int code; /** - * A list of messages that carry the error details. There will be a common set - * of message types for APIs to use. + * A list of messages that carry the error details. There will be a + * common set of message types for APIs to use. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -1666,8 +1966,8 @@ /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more - * information see [IAM - * Overview](https://cloud.google.com/iam/docs/overview#permissions). + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions; @@ -1713,7 +2013,10 @@ } } -/** The request sent to the UndeleteProject method. */ +/** + * The request sent to the UndeleteProject + * method. + */ class UndeleteProjectRequest { UndeleteProjectRequest();
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index e956c2f..06d4324 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart
@@ -59,6 +59,10 @@ MachineTypesResourceApi get machineTypes => new MachineTypesResourceApi(_requester); NetworksResourceApi get networks => new NetworksResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); + RegionAutoscalersResourceApi get regionAutoscalers => new RegionAutoscalersResourceApi(_requester); + RegionBackendServicesResourceApi get regionBackendServices => new RegionBackendServicesResourceApi(_requester); + RegionInstanceGroupManagersResourceApi get regionInstanceGroupManagers => new RegionInstanceGroupManagersResourceApi(_requester); + RegionInstanceGroupsResourceApi get regionInstanceGroups => new RegionInstanceGroupsResourceApi(_requester); RegionOperationsResourceApi get regionOperations => new RegionOperationsResourceApi(_requester); RegionsResourceApi get regions => new RegionsResourceApi(_requester); RoutersResourceApi get routers => new RoutersResourceApi(_requester); @@ -953,6 +957,106 @@ _requester = client; /** + * Retrieves the list of all BackendService resources, regional and global, + * available to the specified project. + * + * Request parameters: + * + * [project] - Name of the project scoping this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [BackendServiceAggregatedList]. + * + * 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<BackendServiceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/aggregated/backendServices'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BackendServiceAggregatedList.fromJson(data)); + } + + /** * Deletes the specified BackendService resource. * * Request parameters: @@ -5715,13 +5819,6 @@ * * [instanceGroupManager] - The name of the managed instance group. * - * [filter] - null - * - * [maxResults] - null - * Value must be between "0" and "500". - * - * [pageToken] - null - * * Completes with a [InstanceGroupManagersListManagedInstancesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -5730,7 +5827,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -5747,15 +5844,6 @@ if (instanceGroupManager == null) { throw new core.ArgumentError("Parameter instanceGroupManager is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances'; @@ -7409,6 +7497,10 @@ * [port] - Specifies which COM or serial port to retrieve data from. * Value must be between "1" and "4". * + * [start_1] - For the initial request, leave this field unspecified. For + * subsequent calls, this field should be set to the next value that was + * returned in the previous call. + * * Completes with a [SerialPortOutput]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -7417,7 +7509,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port}) { + async.Future<SerialPortOutput> getSerialPortOutput(core.String project, core.String zone, core.String instance, {core.int port, core.String start_1}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -7437,6 +7529,9 @@ if (port != null) { _queryParams["port"] = ["${port}"]; } + if (start_1 != null) { + _queryParams["start"] = [start_1]; + } _url = commons.Escaper.ecapeVariable('$project') + '/zones/' + commons.Escaper.ecapeVariable('$zone') + '/instances/' + commons.Escaper.ecapeVariable('$instance') + '/serialPort'; @@ -8995,6 +9090,1884 @@ } +class RegionAutoscalersResourceApi { + final commons.ApiRequester _requester; + + RegionAutoscalersResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified autoscaler. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [autoscaler] - Name of the autoscaler to delete. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> delete(core.String project, core.String region, core.String autoscaler) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (autoscaler == null) { + throw new core.ArgumentError("Parameter autoscaler is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers/' + commons.Escaper.ecapeVariable('$autoscaler'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Returns the specified autoscaler. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [autoscaler] - Name of the autoscaler to return. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Autoscaler]. + * + * 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<Autoscaler> get(core.String project, core.String region, core.String autoscaler) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (autoscaler == null) { + throw new core.ArgumentError("Parameter autoscaler is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers/' + commons.Escaper.ecapeVariable('$autoscaler'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Autoscaler.fromJson(data)); + } + + /** + * Creates an autoscaler in the specified project using the data included in + * the request. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> insert(Autoscaler request, core.String project, core.String region) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Retrieves a list of autoscalers contained within the specified region. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [RegionAutoscalerList]. + * + * 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<RegionAutoscalerList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionAutoscalerList.fromJson(data)); + } + + /** + * Updates an autoscaler in the specified project using the data included in + * the request. This method supports patch semantics. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [autoscaler] - Name of the autoscaler to update. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> patch(Autoscaler request, core.String project, core.String region, core.String autoscaler) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (autoscaler == null) { + throw new core.ArgumentError("Parameter autoscaler is required."); + } + _queryParams["autoscaler"] = [autoscaler]; + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers'; + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Updates an autoscaler in the specified project using the data included in + * the request. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [autoscaler] - Name of the autoscaler to update. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> update(Autoscaler request, core.String project, core.String region, {core.String autoscaler}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (autoscaler != null) { + _queryParams["autoscaler"] = [autoscaler]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/autoscalers'; + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + +class RegionBackendServicesResourceApi { + final commons.ApiRequester _requester; + + RegionBackendServicesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified regional BackendService resource. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [backendService] - Name of the BackendService resource to delete. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> delete(core.String project, core.String region, core.String backendService) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (backendService == null) { + throw new core.ArgumentError("Parameter backendService is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Returns the specified regional BackendService resource. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [backendService] - Name of the BackendService resource to return. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [BackendService]. + * + * 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<BackendService> get(core.String project, core.String region, core.String backendService) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (backendService == null) { + throw new core.ArgumentError("Parameter backendService is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BackendService.fromJson(data)); + } + + /** + * Gets the most recent health check results for this regional BackendService. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - null + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [backendService] - Name of the BackendService resource to which the queried + * instance belongs. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [BackendServiceGroupHealth]. + * + * 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<BackendServiceGroupHealth> getHealth(ResourceGroupReference request, core.String project, core.String region, core.String backendService) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (backendService == null) { + throw new core.ArgumentError("Parameter backendService is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices/' + commons.Escaper.ecapeVariable('$backendService') + '/getHealth'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BackendServiceGroupHealth.fromJson(data)); + } + + /** + * Creates a regional BackendService resource in the specified project using + * the data included in the request. There are several restrictions and + * guidelines to keep in mind when creating a regional backend service. Read + * Restrictions and Guidelines for more information. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> insert(BackendService request, core.String project, core.String region) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Retrieves the list of regional BackendService resources available to the + * specified project in the given region. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [BackendServiceList]. + * + * 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<BackendServiceList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BackendServiceList.fromJson(data)); + } + + /** + * Updates the specified regional BackendService resource with the data + * included in the request. There are several restrictions and guidelines to + * keep in mind when updating a backend service. Read Restrictions and + * Guidelines for more information. This method supports patch semantics. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [backendService] - Name of the BackendService resource to update. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> patch(BackendService request, core.String project, core.String region, core.String backendService) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (backendService == null) { + throw new core.ArgumentError("Parameter backendService is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Updates the specified regional BackendService resource with the data + * included in the request. There are several restrictions and guidelines to + * keep in mind when updating a backend service. Read Restrictions and + * Guidelines for more information. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * [backendService] - Name of the BackendService resource to update. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [Operation]. + * + * 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<Operation> update(BackendService request, core.String project, core.String region, core.String backendService) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (backendService == null) { + throw new core.ArgumentError("Parameter backendService is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/backendServices/' + commons.Escaper.ecapeVariable('$backendService'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + +class RegionInstanceGroupManagersResourceApi { + final commons.ApiRequester _requester; + + RegionInstanceGroupManagersResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Schedules a group action to remove the specified instances from the managed + * instance group. Abandoning an instance does not delete the instance, but it + * does remove the instance from any target pools that are applied by the + * managed instance group. This method reduces the targetSize of the managed + * instance group by the number of instances that you abandon. This operation + * is marked as DONE when the action is scheduled even if the instances have + * not yet been removed from the group. You must separately verify the status + * of the abandoning action with the listmanagedinstances method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group. + * + * Completes with a [Operation]. + * + * 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<Operation> abandonInstances(RegionInstanceGroupManagersAbandonInstancesRequest request, core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/abandonInstances'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Deletes the specified managed instance group and all of the instances in + * that group. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group to delete. + * + * Completes with a [Operation]. + * + * 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<Operation> delete(core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Schedules a group action to delete the specified instances in the managed + * instance group. The instances are also removed from any target pools of + * which they were a member. This method reduces the targetSize of the managed + * instance group by the number of instances that you delete. This operation + * is marked as DONE when the action is scheduled even if the instances are + * still being deleted. You must separately verify the status of the deleting + * action with the listmanagedinstances method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group. + * + * Completes with a [Operation]. + * + * 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<Operation> deleteInstances(RegionInstanceGroupManagersDeleteInstancesRequest request, core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/deleteInstances'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Returns all of the details about the specified managed instance group. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group to return. + * + * Completes with a [InstanceGroupManager]. + * + * 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<InstanceGroupManager> get(core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new InstanceGroupManager.fromJson(data)); + } + + /** + * Creates a managed instance group using the information that you specify in + * the request. After the group is created, it schedules an action to create + * instances in the group using the specified instance template. This + * operation is marked as DONE when the group is created even if the instances + * in the group have not yet been created. You must separately verify the + * status of the individual instances with the listmanagedinstances method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * Completes with a [Operation]. + * + * 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<Operation> insert(InstanceGroupManager request, core.String project, core.String region) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Retrieves the list of managed instance groups that are contained within the + * specified region. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [RegionInstanceGroupManagerList]. + * + * 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<RegionInstanceGroupManagerList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionInstanceGroupManagerList.fromJson(data)); + } + + /** + * Lists the instances in the managed instance group and instances that are + * scheduled to be created. The list includes any current actions that the + * group has scheduled for its instances. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - The name of the managed instance group. + * + * Completes with a [RegionInstanceGroupManagersListInstancesResponse]. + * + * 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<RegionInstanceGroupManagersListInstancesResponse> listManagedInstances(core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/listManagedInstances'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionInstanceGroupManagersListInstancesResponse.fromJson(data)); + } + + /** + * Schedules a group action to recreate the specified instances in the managed + * instance group. The instances are deleted and recreated using the current + * instance template for the managed instance group. This operation is marked + * as DONE when the action is scheduled even if the instances have not yet + * been recreated. You must separately verify the status of the recreating + * action with the listmanagedinstances method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group. + * + * Completes with a [Operation]. + * + * 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<Operation> recreateInstances(RegionInstanceGroupManagersRecreateRequest request, core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/recreateInstances'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Changes the intended size for the managed instance group. If you increase + * the size, the group schedules actions to create new instances using the + * current instance template. If you decrease the size, the group schedules + * delete actions on one or more instances. The resize operation is marked + * DONE when the resize actions are scheduled even if the group has not yet + * added or deleted any instances. You must separately verify the status of + * the creating or deleting actions with the listmanagedinstances method. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group. + * + * [size] - Number of instances that should exist in this instance group + * manager. + * + * Completes with a [Operation]. + * + * 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<Operation> resize(core.String project, core.String region, core.String instanceGroupManager, core.int size) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + if (size == null) { + throw new core.ArgumentError("Parameter size is required."); + } + _queryParams["size"] = ["${size}"]; + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/resize'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Sets the instance template to use when creating new instances or recreating + * instances in this group. Existing instances are not affected. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - The name of the managed instance group. + * + * Completes with a [Operation]. + * + * 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<Operation> setInstanceTemplate(RegionInstanceGroupManagersSetTemplateRequest request, core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setInstanceTemplate'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** + * Modifies the target pools to which all new instances in this group are + * assigned. Existing instances in the group are not affected. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroupManager] - Name of the managed instance group. + * + * Completes with a [Operation]. + * + * 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<Operation> setTargetPools(RegionInstanceGroupManagersSetTargetPoolsRequest request, core.String project, core.String region, core.String instanceGroupManager) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroupManager == null) { + throw new core.ArgumentError("Parameter instanceGroupManager is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroupManagers/' + commons.Escaper.ecapeVariable('$instanceGroupManager') + '/setTargetPools'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + +class RegionInstanceGroupsResourceApi { + final commons.ApiRequester _requester; + + RegionInstanceGroupsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Returns the specified instance group resource. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroup] - Name of the instance group resource to return. + * + * Completes with a [InstanceGroup]. + * + * 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<InstanceGroup> get(core.String project, core.String region, core.String instanceGroup) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroup == null) { + throw new core.ArgumentError("Parameter instanceGroup is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new InstanceGroup.fromJson(data)); + } + + /** + * Retrieves the list of instance group resources contained within the + * specified region. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [RegionInstanceGroupList]. + * + * 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<RegionInstanceGroupList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroups'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionInstanceGroupList.fromJson(data)); + } + + /** + * Lists the instances in the specified instance group and displays + * information about the named ports. Depending on the specified options, this + * method can list all instances or only the instances that are running. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroup] - Name of the regional instance group for which we want to + * list the instances. + * + * [filter] - Sets a filter expression for filtering listed resources, in the + * form filter={expression}. Your {expression} must be in the format: + * field_name comparison_string literal_string. + * + * The field_name is the name of the field you want to compare. Only atomic + * field types are supported (string, number, boolean). The comparison_string + * must be either eq (equals) or ne (not equals). The literal_string is the + * string value to filter to. The literal value must be valid for the type of + * field you are filtering by (string, number, boolean). For string fields, + * the literal value is interpreted as a regular expression using RE2 syntax. + * The literal value must match the entire field. + * + * For example, to filter for instances that do not have a name of + * example-instance, you would use filter=name ne example-instance. + * + * You can filter on nested fields. For example, you could filter on instances + * that have set the scheduling.automaticRestart field to true. Use filtering + * on nested fields to take advantage of labels to organize and search for + * results based on label values. + * + * To filter on multiple expressions, provide each separate expression within + * parentheses. For example, (scheduling.automaticRestart eq true) (zone eq + * us-central1-f). Multiple expressions are treated as AND expressions, + * meaning that resources must match all expressions to pass the filters. + * + * [maxResults] - The maximum number of results per page that should be + * returned. If the number of available results is larger than maxResults, + * Compute Engine returns a nextPageToken that can be used to get the next + * page of results in subsequent list requests. + * Value must be between "0" and "500". + * + * [orderBy] - Sorts list results by a certain order. By default, results are + * returned in alphanumerical order based on the resource name. + * + * You can also sort results in descending order based on the creation + * timestamp using orderBy="creationTimestamp desc". This sorts results based + * on the creationTimestamp field in reverse chronological order (newest + * result first). Use this to sort resources like operations so that the + * newest operation is returned first. + * + * Currently, only sorting by name or creationTimestamp desc is supported. + * + * [pageToken] - Specifies a page token to use. Set pageToken to the + * nextPageToken returned by a previous list request to get the next page of + * results. + * + * Completes with a [RegionInstanceGroupsListInstances]. + * + * 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<RegionInstanceGroupsListInstances> listInstances(RegionInstanceGroupsListInstancesRequest request, core.String project, core.String region, core.String instanceGroup, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroup == null) { + throw new core.ArgumentError("Parameter instanceGroup is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/listInstances'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new RegionInstanceGroupsListInstances.fromJson(data)); + } + + /** + * Sets the named ports for the specified regional instance group. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [project] - Project ID for this request. + * Value must have pattern + * "(?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))". + * + * [region] - Name of the region scoping this request. + * + * [instanceGroup] - The name of the regional instance group where the named + * ports are updated. + * + * Completes with a [Operation]. + * + * 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<Operation> setNamedPorts(RegionInstanceGroupsSetNamedPortsRequest request, core.String project, core.String region, core.String instanceGroup) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (project == null) { + throw new core.ArgumentError("Parameter project is required."); + } + if (region == null) { + throw new core.ArgumentError("Parameter region is required."); + } + if (instanceGroup == null) { + throw new core.ArgumentError("Parameter instanceGroup is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/instanceGroups/' + commons.Escaper.ecapeVariable('$instanceGroup') + '/setNamedPorts'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + +} + + class RegionOperationsResourceApi { final commons.ApiRequester _requester; @@ -16441,6 +18414,14 @@ */ core.String kind; /** + * + * Possible string values are: + * - "EXTERNAL" + * - "INTERNAL" + * - "INVALID_LOAD_BALANCING_SCHEME" + */ + core.String loadBalancingScheme; + /** * Name of the resource. Provided by the client when the resource is created. * The name must be 1-63 characters long, and comply with RFC1035. * Specifically, the name must be 1-63 characters long and match the regular @@ -16477,6 +18458,7 @@ * - "HTTPS" * - "SSL" * - "TCP" + * - "UDP" */ core.String protocol; /** @@ -16498,6 +18480,7 @@ * When the protocol is UDP, this field is not used. * Possible string values are: * - "CLIENT_IP" + * - "CLIENT_IP_PORT_PROTO" * - "CLIENT_IP_PROTO" * - "GENERATED_COOKIE" * - "NONE" @@ -16542,6 +18525,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("loadBalancingScheme")) { + loadBalancingScheme = _json["loadBalancingScheme"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -16600,6 +18586,9 @@ if (kind != null) { _json["kind"] = kind; } + if (loadBalancingScheme != null) { + _json["loadBalancingScheme"] = loadBalancingScheme; + } if (name != null) { _json["name"] = name; } @@ -16628,6 +18617,62 @@ } } +/** Contains a list of BackendServicesScopedList. */ +class BackendServiceAggregatedList { + /** + * [Output Only] Unique identifier for the resource; defined by the server. + */ + core.String id; + /** A map of scoped BackendService lists. */ + core.Map<core.String, BackendServicesScopedList> items; + /** Type of resource. */ + core.String kind; + /** [Output Only] A token used to continue a truncated list request. */ + core.String nextPageToken; + /** [Output Only] Server-defined URL for this resource. */ + core.String selfLink; + + BackendServiceAggregatedList(); + + BackendServiceAggregatedList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = commons.mapMap(_json["items"], (item) => new BackendServicesScopedList.fromJson(item)); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = commons.mapMap(items, (item) => (item).toJson()); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + class BackendServiceGroupHealth { core.List<HealthStatus> healthStatus; /** @@ -16718,6 +18763,140 @@ } } +class BackendServicesScopedListWarningData { + /** + * [Output Only] A key that provides more detail on the warning being + * returned. For example, for warnings where there are no results in a list + * request for a particular zone, this key might be scope and the key value + * might be the zone name. Other examples might be a key indicating a + * deprecated resource and a suggested replacement, or a warning about invalid + * network settings (for example, if an instance attempts to perform IP + * forwarding but is not enabled for IP forwarding). + */ + core.String key; + /** [Output Only] A warning data value corresponding to the key. */ + core.String value; + + BackendServicesScopedListWarningData(); + + BackendServicesScopedListWarningData.fromJson(core.Map _json) { + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (key != null) { + _json["key"] = key; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/** + * Informational warning which replaces the list of backend services when the + * list is empty. + */ +class BackendServicesScopedListWarning { + /** + * [Output Only] A warning code, if applicable. For example, Compute Engine + * returns NO_RESULTS_ON_PAGE if there are no results in the response. + * Possible string values are: + * - "CLEANUP_FAILED" + * - "DEPRECATED_RESOURCE_USED" + * - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" + * - "FIELD_VALUE_OVERRIDEN" + * - "INJECTED_KERNELS_DEPRECATED" + * - "NEXT_HOP_ADDRESS_NOT_ASSIGNED" + * - "NEXT_HOP_CANNOT_IP_FORWARD" + * - "NEXT_HOP_INSTANCE_NOT_FOUND" + * - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" + * - "NEXT_HOP_NOT_RUNNING" + * - "NOT_CRITICAL_ERROR" + * - "NO_RESULTS_ON_PAGE" + * - "REQUIRED_TOS_AGREEMENT" + * - "RESOURCE_NOT_DELETED" + * - "SINGLE_INSTANCE_PROPERTY_TEMPLATE" + * - "UNREACHABLE" + */ + core.String code; + /** + * [Output Only] Metadata about this warning in key: value format. For + * example: + * "data": [ { "key": "scope", "value": "zones/us-east1-d" } + */ + core.List<BackendServicesScopedListWarningData> data; + /** [Output Only] A human-readable description of the warning code. */ + core.String message; + + BackendServicesScopedListWarning(); + + BackendServicesScopedListWarning.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("data")) { + data = _json["data"].map((value) => new BackendServicesScopedListWarningData.fromJson(value)).toList(); + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (code != null) { + _json["code"] = code; + } + if (data != null) { + _json["data"] = data.map((value) => (value).toJson()).toList(); + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +class BackendServicesScopedList { + /** List of BackendServices contained in this scope. */ + core.List<BackendService> backendServices; + /** + * Informational warning which replaces the list of backend services when the + * list is empty. + */ + BackendServicesScopedListWarning warning; + + BackendServicesScopedList(); + + BackendServicesScopedList.fromJson(core.Map _json) { + if (_json.containsKey("backendServices")) { + backendServices = _json["backendServices"].map((value) => new BackendService.fromJson(value)).toList(); + } + if (_json.containsKey("warning")) { + warning = new BackendServicesScopedListWarning.fromJson(_json["warning"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (backendServices != null) { + _json["backendServices"] = backendServices.map((value) => (value).toJson()).toList(); + } + if (warning != null) { + _json["warning"] = (warning).toJson(); + } + return _json; + } +} + class CacheInvalidationRule { core.String path; @@ -18189,6 +20368,13 @@ * - "UDP" */ core.String IPProtocol; + /** + * This field is not used for external load balancing. + * + * For internal load balancing, this field identifies the BackendService + * resource to receive the matched traffic. + */ + core.String backendService; /** [Output Only] Creation timestamp in RFC3339 text format. */ core.String creationTimestamp; /** @@ -18207,6 +20393,18 @@ */ core.String kind; /** + * This signifies what the ForwardingRule will be used for and can only take + * the following values: INTERNAL EXTERNAL The value of INTERNAL means that + * this will be used for Internal Network Load Balancing (TCP, UDP). The value + * of EXTERNAL means that this will be used for External Load Balancing + * (HTTP(S) LB, External TCP/UDP LB, SSL Proxy) + * Possible string values are: + * - "EXTERNAL" + * - "INTERNAL" + * - "INVALID" + */ + core.String loadBalancingScheme; + /** * Name of the resource; provided by the client when the resource is created. * The name must be 1-63 characters long, and comply with RFC1035. * Specifically, the name must be 1-63 characters long and match the regular @@ -18217,6 +20415,14 @@ */ core.String name; /** + * This field is not used for external load balancing. + * + * For internal load balancing, this field identifies the network that the + * load balanced IP should belong to for this Forwarding Rule. If this field + * is not specified, the default network will be used. + */ + core.String network; + /** * Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets * addressed to ports in the specified range will be forwarded to target. * Forwarding rules with the same [IPAddress, IPProtocol] pair must have @@ -18226,6 +20432,18 @@ */ core.String portRange; /** + * This field is not used for external load balancing. + * + * When the load balancing scheme is INTERNAL, a single port or a comma + * separated list of ports can be configured. Only packets addressed to these + * ports will be forwarded to the backends configured with this forwarding + * rule. If the port list is not provided then all ports are allowed to pass + * through. + * + * You may specify a maximum of up to 5 ports. + */ + core.List<core.String> ports; + /** * [Output Only] URL of the region where the regional forwarding rule resides. * This field is not applicable to global forwarding rules. */ @@ -18233,6 +20451,17 @@ /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; /** + * This field is not used for external load balancing. + * + * For internal load balancing, this field identifies the subnetwork that the + * load balanced IP should belong to for this Forwarding Rule. + * + * If the network specified is in auto subnet mode, this field is optional. + * However, if the network is in custom subnet mode, a subnetwork must be + * specified. + */ + core.String subnetwork; + /** * The URL of the target resource to receive the matched traffic. For regional * forwarding rules, this target must live in the same region as the * forwarding rule. For global forwarding rules, this target must be a global @@ -18253,6 +20482,9 @@ if (_json.containsKey("IPProtocol")) { IPProtocol = _json["IPProtocol"]; } + if (_json.containsKey("backendService")) { + backendService = _json["backendService"]; + } if (_json.containsKey("creationTimestamp")) { creationTimestamp = _json["creationTimestamp"]; } @@ -18265,18 +20497,30 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("loadBalancingScheme")) { + loadBalancingScheme = _json["loadBalancingScheme"]; + } if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("network")) { + network = _json["network"]; + } if (_json.containsKey("portRange")) { portRange = _json["portRange"]; } + if (_json.containsKey("ports")) { + ports = _json["ports"]; + } if (_json.containsKey("region")) { region = _json["region"]; } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } + if (_json.containsKey("subnetwork")) { + subnetwork = _json["subnetwork"]; + } if (_json.containsKey("target")) { target = _json["target"]; } @@ -18290,6 +20534,9 @@ if (IPProtocol != null) { _json["IPProtocol"] = IPProtocol; } + if (backendService != null) { + _json["backendService"] = backendService; + } if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -18302,18 +20549,30 @@ if (kind != null) { _json["kind"] = kind; } + if (loadBalancingScheme != null) { + _json["loadBalancingScheme"] = loadBalancingScheme; + } if (name != null) { _json["name"] = name; } + if (network != null) { + _json["network"] = network; + } if (portRange != null) { _json["portRange"] = portRange; } + if (ports != null) { + _json["ports"] = ports; + } if (region != null) { _json["region"] = region; } if (selfLink != null) { _json["selfLink"] = selfLink; } + if (subnetwork != null) { + _json["subnetwork"] = subnetwork; + } if (target != null) { _json["target"] = target; } @@ -18580,72 +20839,33 @@ } } -class HTTP2HealthCheck { +/** Guest OS features. */ +class GuestOsFeature { /** - * The value of the host header in the HTTP/2 health check request. If left - * empty (default value), the IP on behalf of which this health check is - * performed will be used. - */ - core.String host; - /** - * The TCP port number for the health check request. The default value is 443. - */ - core.int port; - /** - * Port name as defined in InstanceGroup#NamedPort#name. If both port and - * port_name are defined, port takes precedence. - */ - core.String portName; - /** - * Specifies the type of proxy header to append before sending data to the - * backend, either NONE or PROXY_V1. The default is NONE. + * The type of supported feature. Currenty only VIRTIO_SCSI_MULTIQUEUE is + * supported. For newer Windows images, the server might also populate this + * property with the value WINDOWS to indicate that this is a Windows image. + * This value is purely informational and does not enable or disable any + * features. * Possible string values are: - * - "NONE" - * - "PROXY_V1" + * - "FEATURE_TYPE_UNSPECIFIED" + * - "VIRTIO_SCSI_MULTIQUEUE" + * - "WINDOWS" */ - core.String proxyHeader; - /** - * The request path of the HTTP/2 health check request. The default value is - * /. - */ - core.String requestPath; + core.String type; - HTTP2HealthCheck(); + GuestOsFeature(); - HTTP2HealthCheck.fromJson(core.Map _json) { - if (_json.containsKey("host")) { - host = _json["host"]; - } - if (_json.containsKey("port")) { - port = _json["port"]; - } - if (_json.containsKey("portName")) { - portName = _json["portName"]; - } - if (_json.containsKey("proxyHeader")) { - proxyHeader = _json["proxyHeader"]; - } - if (_json.containsKey("requestPath")) { - requestPath = _json["requestPath"]; + GuestOsFeature.fromJson(core.Map _json) { + if (_json.containsKey("type")) { + type = _json["type"]; } } core.Map toJson() { var _json = new core.Map(); - if (host != null) { - _json["host"] = host; - } - if (port != null) { - _json["port"] = port; - } - if (portName != null) { - _json["portName"] = portName; - } - if (proxyHeader != null) { - _json["proxyHeader"] = proxyHeader; - } - if (requestPath != null) { - _json["requestPath"] = requestPath; + if (type != null) { + _json["type"] = type; } return _json; } @@ -18814,7 +21034,6 @@ * consecutive successes. The default value is 2. */ core.int healthyThreshold; - HTTP2HealthCheck http2HealthCheck; HTTPHealthCheck httpHealthCheck; HTTPSHealthCheck httpsHealthCheck; /** @@ -18845,13 +21064,11 @@ */ core.int timeoutSec; /** - * Specifies the type of the healthCheck, either TCP, UDP, SSL, HTTP, HTTPS or - * HTTP2. If not specified, the default is TCP. Exactly one of the - * protocol-specific health check field must be specified, which must match - * type field. + * Specifies the type of the healthCheck, either TCP, SSL, HTTP or HTTPS. If + * not specified, the default is TCP. Exactly one of the protocol-specific + * health check field must be specified, which must match type field. * Possible string values are: * - "HTTP" - * - "HTTP2" * - "HTTPS" * - "INVALID" * - "SSL" @@ -18879,9 +21096,6 @@ if (_json.containsKey("healthyThreshold")) { healthyThreshold = _json["healthyThreshold"]; } - if (_json.containsKey("http2HealthCheck")) { - http2HealthCheck = new HTTP2HealthCheck.fromJson(_json["http2HealthCheck"]); - } if (_json.containsKey("httpHealthCheck")) { httpHealthCheck = new HTTPHealthCheck.fromJson(_json["httpHealthCheck"]); } @@ -18931,9 +21145,6 @@ if (healthyThreshold != null) { _json["healthyThreshold"] = healthyThreshold; } - if (http2HealthCheck != null) { - _json["http2HealthCheck"] = (http2HealthCheck).toJson(); - } if (httpHealthCheck != null) { _json["httpHealthCheck"] = (httpHealthCheck).toJson(); } @@ -19680,6 +21891,19 @@ */ core.String family; /** + * A list of features to enable on the guest OS. Applicable for bootable + * images only. Currently, only one feature can be enabled, + * VIRTIO_SCSCI_MULTIQUEUE, which allows each virtual CPU to have its own + * queue. For Windows images, you can only enable VIRTIO_SCSCI_MULTIQUEUE on + * images with driver version 1.2.0.1621 or higher. Linux images with kernel + * versions 3.17 and higher will support VIRTIO_SCSCI_MULTIQUEUE. + * + * For new Windows images, the server might also populate this field with the + * value WINDOWS, to indicate that this is a Windows image. This value is + * purely informational and does not enable or disable any features. + */ + core.List<GuestOsFeature> guestOsFeatures; + /** * [Output Only] The unique identifier for the resource. This identifier is * defined by the server. */ @@ -19718,7 +21942,7 @@ /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; /** - * URL of the The source disk used to create this image. This can be a full or + * URL of the source disk used to create this image. This can be a full or * valid partial URL. You must provide either this property or the * rawDisk.source property but not both to create an image. For example, the * following are valid values: @@ -19779,6 +22003,9 @@ if (_json.containsKey("family")) { family = _json["family"]; } + if (_json.containsKey("guestOsFeatures")) { + guestOsFeatures = _json["guestOsFeatures"].map((value) => new GuestOsFeature.fromJson(value)).toList(); + } if (_json.containsKey("id")) { id = _json["id"]; } @@ -19837,6 +22064,9 @@ if (family != null) { _json["family"] = family; } + if (guestOsFeatures != null) { + _json["guestOsFeatures"] = guestOsFeatures.map((value) => (value).toJson()).toList(); + } if (id != null) { _json["id"] = id; } @@ -24311,6 +26541,7 @@ * - "TARGET_POOLS" * - "TARGET_SSL_PROXIES" * - "TARGET_VPN_GATEWAYS" + * - "TOTAL_CPUS" * - "URL_MAPS" * - "VPN_TUNNELS" */ @@ -24452,6 +26683,491 @@ } } +/** Contains a list of autoscalers. */ +class RegionAutoscalerList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of autoscalers. */ + core.List<Autoscaler> items; + /** Type of resource. */ + core.String kind; + /** [Output Only] A token used to continue a truncated list request. */ + core.String nextPageToken; + /** [Output Only] Server-defined URL for this resource. */ + core.String selfLink; + + RegionAutoscalerList(); + + RegionAutoscalerList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new Autoscaler.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +/** Contains a list of InstanceGroup resources. */ +class RegionInstanceGroupList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of InstanceGroup resources. */ + core.List<InstanceGroup> items; + /** The resource type. */ + core.String kind; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use the + * nextPageToken as a value for the query parameter pageToken in the next list + * request. Subsequent list requests will have their own nextPageToken to + * continue paging through the results. + */ + core.String nextPageToken; + /** + * [Output Only] The URL for this resource type. The server generates this + * URL. + */ + core.String selfLink; + + RegionInstanceGroupList(); + + RegionInstanceGroupList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new InstanceGroup.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +/** Contains a list of managed instance groups. */ +class RegionInstanceGroupManagerList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of managed instance groups. */ + core.List<InstanceGroupManager> items; + /** + * [Output Only] The resource type, which is always + * compute#instanceGroupManagerList for a list of managed instance groups that + * exist in th regional scope. + */ + core.String kind; + /** [Output only] A token used to continue a truncated list request. */ + core.String nextPageToken; + /** + * [Output only] The URL for this resource type. The server generates this + * URL. + */ + core.String selfLink; + + RegionInstanceGroupManagerList(); + + RegionInstanceGroupManagerList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new InstanceGroupManager.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +class RegionInstanceGroupManagersAbandonInstancesRequest { + /** The names of one or more instances to abandon. */ + core.List<core.String> instances; + + RegionInstanceGroupManagersAbandonInstancesRequest(); + + RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { + if (_json.containsKey("instances")) { + instances = _json["instances"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (instances != null) { + _json["instances"] = instances; + } + return _json; + } +} + +class RegionInstanceGroupManagersDeleteInstancesRequest { + /** The names of one or more instances to delete. */ + core.List<core.String> instances; + + RegionInstanceGroupManagersDeleteInstancesRequest(); + + RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { + if (_json.containsKey("instances")) { + instances = _json["instances"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (instances != null) { + _json["instances"] = instances; + } + return _json; + } +} + +class RegionInstanceGroupManagersListInstancesResponse { + /** List of managed instances. */ + core.List<ManagedInstance> managedInstances; + + RegionInstanceGroupManagersListInstancesResponse(); + + RegionInstanceGroupManagersListInstancesResponse.fromJson(core.Map _json) { + if (_json.containsKey("managedInstances")) { + managedInstances = _json["managedInstances"].map((value) => new ManagedInstance.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (managedInstances != null) { + _json["managedInstances"] = managedInstances.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +class RegionInstanceGroupManagersRecreateRequest { + /** The URL for one or more instances to recreate. */ + core.List<core.String> instances; + + RegionInstanceGroupManagersRecreateRequest(); + + RegionInstanceGroupManagersRecreateRequest.fromJson(core.Map _json) { + if (_json.containsKey("instances")) { + instances = _json["instances"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (instances != null) { + _json["instances"] = instances; + } + return _json; + } +} + +class RegionInstanceGroupManagersSetTargetPoolsRequest { + /** + * Fingerprint of the target pools information, which is a hash of the + * contents. This field is used for optimistic locking when you update the + * target pool entries. This field is optional. + */ + core.String fingerprint; + core.List<core.int> get fingerprintAsBytes { + return convert.BASE64.decode(fingerprint); + } + + void set fingerprintAsBytes(core.List<core.int> _bytes) { + fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** + * The URL of all TargetPool resources to which instances in the instanceGroup + * field are added. The target pools automatically apply to all of the + * instances in the managed instance group. + */ + core.List<core.String> targetPools; + + RegionInstanceGroupManagersSetTargetPoolsRequest(); + + RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) { + if (_json.containsKey("fingerprint")) { + fingerprint = _json["fingerprint"]; + } + if (_json.containsKey("targetPools")) { + targetPools = _json["targetPools"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fingerprint != null) { + _json["fingerprint"] = fingerprint; + } + if (targetPools != null) { + _json["targetPools"] = targetPools; + } + return _json; + } +} + +class RegionInstanceGroupManagersSetTemplateRequest { + /** + * URL of the InstanceTemplate resource from which all new instances will be + * created. + */ + core.String instanceTemplate; + + RegionInstanceGroupManagersSetTemplateRequest(); + + RegionInstanceGroupManagersSetTemplateRequest.fromJson(core.Map _json) { + if (_json.containsKey("instanceTemplate")) { + instanceTemplate = _json["instanceTemplate"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (instanceTemplate != null) { + _json["instanceTemplate"] = instanceTemplate; + } + return _json; + } +} + +class RegionInstanceGroupsListInstances { + /** + * [Output Only] Unique identifier for the resource. Defined by the server. + */ + core.String id; + /** + * A list of instances and any named ports that are assigned to those + * instances. + */ + core.List<InstanceWithNamedPorts> items; + /** The resource type. */ + core.String kind; + /** + * [Output Only] This token allows you to get the next page of results for + * list requests. If the number of results is larger than maxResults, use the + * nextPageToken as a value for the query parameter pageToken in the next list + * request. Subsequent list requests will have their own nextPageToken to + * continue paging through the results. + */ + core.String nextPageToken; + /** [Output Only] Server-defined URL for the resource. */ + core.String selfLink; + + RegionInstanceGroupsListInstances(); + + RegionInstanceGroupsListInstances.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new InstanceWithNamedPorts.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (items != null) { + _json["items"] = items.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + return _json; + } +} + +class RegionInstanceGroupsListInstancesRequest { + /** + * Instances in which state should be returned. Valid options are: 'ALL', + * 'RUNNING'. By default, it lists all instances. + * Possible string values are: + * - "ALL" + * - "RUNNING" + */ + core.String instanceState; + /** + * Name of port user is interested in. It is optional. If it is set, only + * information about this ports will be returned. If it is not set, all the + * named ports will be returned. Always lists all instances. + */ + core.String portName; + + RegionInstanceGroupsListInstancesRequest(); + + RegionInstanceGroupsListInstancesRequest.fromJson(core.Map _json) { + if (_json.containsKey("instanceState")) { + instanceState = _json["instanceState"]; + } + if (_json.containsKey("portName")) { + portName = _json["portName"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (instanceState != null) { + _json["instanceState"] = instanceState; + } + if (portName != null) { + _json["portName"] = portName; + } + return _json; + } +} + +class RegionInstanceGroupsSetNamedPortsRequest { + /** + * The fingerprint of the named ports information for this instance group. Use + * this optional property to prevent conflicts when multiple users change the + * named ports settings concurrently. Obtain the fingerprint with the + * instanceGroups.get method. Then, include the fingerprint in your request to + * ensure that you do not overwrite changes that were applied from another + * concurrent request. + */ + core.String fingerprint; + core.List<core.int> get fingerprintAsBytes { + return convert.BASE64.decode(fingerprint); + } + + void set fingerprintAsBytes(core.List<core.int> _bytes) { + fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** The list of named ports to set for this instance group. */ + core.List<NamedPort> namedPorts; + + RegionInstanceGroupsSetNamedPortsRequest(); + + RegionInstanceGroupsSetNamedPortsRequest.fromJson(core.Map _json) { + if (_json.containsKey("fingerprint")) { + fingerprint = _json["fingerprint"]; + } + if (_json.containsKey("namedPorts")) { + namedPorts = _json["namedPorts"].map((value) => new NamedPort.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fingerprint != null) { + _json["fingerprint"] = fingerprint; + } + if (namedPorts != null) { + _json["namedPorts"] = namedPorts.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Contains a list of region resources. */ class RegionList { /** @@ -25743,8 +28459,20 @@ * serial port output. */ core.String kind; + /** + * [Output Only] The position of the next byte of content from the serial + * console output. Use this value in the next request as the start parameter. + */ + core.String next; /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; + /** + * [Output Only] The starting byte position of the output that was returned. + * This should match the start parameter sent with the request. If the serial + * console output exceeds the size of the buffer, older output will be + * overwritten by newer content and the start values will be mismatched. + */ + core.String start; SerialPortOutput(); @@ -25755,9 +28483,15 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("next")) { + next = _json["next"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } + if (_json.containsKey("start")) { + start = _json["start"]; + } } core.Map toJson() { @@ -25768,9 +28502,15 @@ if (kind != null) { _json["kind"] = kind; } + if (next != null) { + _json["next"] = next; + } if (selfLink != null) { _json["selfLink"] = selfLink; } + if (start != null) { + _json["start"] = start; + } return _json; } } @@ -26105,8 +28845,8 @@ */ core.String name; /** - * A write-only private key in PEM format. Only insert RPCs will include this - * field. + * A write-only private key in PEM format. Only insert requests will include + * this field. */ core.String privateKey; /** [Output only] Server-defined URL for the resource. */ @@ -27587,6 +30327,7 @@ * remains healthy. * Possible string values are: * - "CLIENT_IP" + * - "CLIENT_IP_PORT_PROTO" * - "CLIENT_IP_PROTO" * - "GENERATED_COOKIE" * - "NONE"
diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart index 6d4b4e6..9c4d122 100644 --- a/generated/googleapis/lib/content/v2.dart +++ b/generated/googleapis/lib/content/v2.dart
@@ -128,7 +128,8 @@ } /** - * Deletes a Merchant Center sub-account. + * Deletes a Merchant Center sub-account. This method can only be called for + * multi-client accounts. * * Request parameters: * @@ -177,7 +178,10 @@ } /** - * Retrieves a Merchant Center account. + * Retrieves a Merchant Center account. This method can only be called for + * accounts to which the managing account has access: either the managing + * account itself or sub-accounts if the managing account is a multi-client + * account. * * Request parameters: * @@ -221,7 +225,8 @@ } /** - * Creates a Merchant Center sub-account. + * Creates a Merchant Center sub-account. This method can only be called for + * multi-client accounts. * * [request] - The metadata request object. * @@ -270,7 +275,8 @@ } /** - * Lists the sub-accounts in your Merchant Center account. + * Lists the sub-accounts in your Merchant Center account. This method can + * only be called for multi-client accounts. * * Request parameters: * @@ -320,7 +326,8 @@ } /** - * Updates a Merchant Center account. This method supports patch semantics. + * Updates a Merchant Center account. This method can only be called for + * multi-client accounts. This method supports patch semantics. * * [request] - The metadata request object. * @@ -374,7 +381,8 @@ } /** - * Updates a Merchant Center account. + * Updates a Merchant Center account. This method can only be called for + * multi-client accounts. * * [request] - The metadata request object. * @@ -482,7 +490,10 @@ } /** - * Retrieves the shipping settings of the account. + * Retrieves the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. * * Request parameters: * @@ -528,7 +539,7 @@ /** * Lists the shipping settings of the sub-accounts in your Merchant Center - * account. + * account. This method can only be called for multi-client accounts. * * Request parameters: * @@ -578,8 +589,10 @@ } /** - * Updates the shipping settings of the account. This method supports patch - * semantics. + * Updates the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. This method supports patch semantics. * * [request] - The metadata request object. * @@ -634,7 +647,10 @@ } /** - * Updates the shipping settings of the account. + * Updates the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. * * [request] - The metadata request object. * @@ -735,7 +751,10 @@ } /** - * Retrieves the status of a Merchant Center account. + * Retrieves the status of a Merchant Center account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. * * Request parameters: * @@ -780,6 +799,7 @@ /** * Lists the statuses of the sub-accounts in your Merchant Center account. + * This method can only be called for multi-client accounts. * * Request parameters: * @@ -883,7 +903,10 @@ } /** - * Retrieves the tax settings of the account. + * Retrieves the tax settings of the account. This method can only be called + * for accounts to which the managing account has access: either the managing + * account itself or sub-accounts if the managing account is a multi-client + * account. * * Request parameters: * @@ -929,6 +952,7 @@ /** * Lists the tax settings of the sub-accounts in your Merchant Center account. + * This method can only be called for multi-client accounts. * * Request parameters: * @@ -978,8 +1002,10 @@ } /** - * Updates the tax settings of the account. This method supports patch - * semantics. + * Updates the tax settings of the account. This method can only be called for + * accounts to which the managing account has access: either the managing + * account itself or sub-accounts if the managing account is a multi-client + * account. This method supports patch semantics. * * [request] - The metadata request object. * @@ -1034,7 +1060,10 @@ } /** - * Updates the tax settings of the account. + * Updates the tax settings of the account. This method can only be called for + * accounts to which the managing account has access: either the managing + * account itself or sub-accounts if the managing account is a multi-client + * account. * * [request] - The metadata request object. * @@ -1140,7 +1169,8 @@ } /** - * Deletes a datafeed from your Merchant Center account. + * Deletes a datafeed from your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -1189,7 +1219,8 @@ } /** - * Retrieves a datafeed from your Merchant Center account. + * Retrieves a datafeed from your Merchant Center account. This method can + * only be called for non-multi-client accounts. * * Request parameters: * @@ -1233,7 +1264,8 @@ } /** - * Registers a datafeed with your Merchant Center account. + * Registers a datafeed with your Merchant Center account. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1282,7 +1314,8 @@ } /** - * Lists the datafeeds in your Merchant Center account. + * Lists the datafeeds in your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -1332,8 +1365,8 @@ } /** - * Updates a datafeed of your Merchant Center account. This method supports - * patch semantics. + * Updates a datafeed of your Merchant Center account. This method can only be + * called for non-multi-client accounts. This method supports patch semantics. * * [request] - The metadata request object. * @@ -1387,7 +1420,8 @@ } /** - * Updates a datafeed of your Merchant Center account. + * Updates a datafeed of your Merchant Center account. This method can only be + * called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1487,7 +1521,8 @@ } /** - * Retrieves the status of a datafeed from your Merchant Center account. + * Retrieves the status of a datafeed from your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * Request parameters: * @@ -1531,7 +1566,8 @@ } /** - * Lists the statuses of the datafeeds in your Merchant Center account. + * Lists the statuses of the datafeeds in your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * Request parameters: * @@ -1592,7 +1628,7 @@ /** * Updates price and availability for multiple products or stores in a single * request. This operation does not update the expiration date of the - * products. + * products. This method can only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1638,6 +1674,7 @@ /** * Updates price and availability of a product in your Merchant Center * account. This operation does not update the expiration date of the product. + * This method can only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1708,7 +1745,8 @@ _requester = client; /** - * Marks an order as acknowledged. + * Marks an order as acknowledged. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -1758,7 +1796,8 @@ /** * Sandbox only. Moves a test order from state "inProgress" to state - * "pendingShipment". + * "pendingShipment". This method can only be called for non-multi-client + * accounts. * * Request parameters: * @@ -1802,7 +1841,8 @@ } /** - * Cancels all line items in an order. + * Cancels all line items in an order. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -1851,7 +1891,8 @@ } /** - * Cancels a line item. + * Cancels a line item. This method can only be called for non-multi-client + * accounts. * * [request] - The metadata request object. * @@ -1900,7 +1941,8 @@ } /** - * Sandbox only. Creates a test order. + * Sandbox only. Creates a test order. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -1944,7 +1986,8 @@ } /** - * Retrieves or modifies multiple orders in a single request. + * Retrieves or modifies multiple orders in a single request. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1983,7 +2026,8 @@ } /** - * Retrieves an order from your Merchant Center account. + * Retrieves an order from your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -2027,7 +2071,8 @@ } /** - * Retrieves an order using merchant order id. + * Retrieves an order using merchant order id. This method can only be called + * for non-multi-client accounts. * * Request parameters: * @@ -2072,7 +2117,8 @@ /** * Sandbox only. Retrieves an order template that can be used to quickly - * create a new order in sandbox. + * create a new order in sandbox. This method can only be called for + * non-multi-client accounts. * * Request parameters: * @@ -2121,7 +2167,8 @@ } /** - * Lists the orders in your Merchant Center account. + * Lists the orders in your Merchant Center account. This method can only be + * called for non-multi-client accounts. * * Request parameters: * @@ -2217,7 +2264,8 @@ } /** - * Refund a portion of the order, up to the full amount paid. + * Refund a portion of the order, up to the full amount paid. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -2266,7 +2314,8 @@ } /** - * Returns a line item. + * Returns a line item. This method can only be called for non-multi-client + * accounts. * * [request] - The metadata request object. * @@ -2315,7 +2364,8 @@ } /** - * Marks line item(s) as shipped. + * Marks line item(s) as shipped. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -2364,7 +2414,8 @@ } /** - * Updates the merchant order ID for a given order. + * Updates the merchant order ID for a given order. This method can only be + * called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -2413,7 +2464,8 @@ } /** - * Updates a shipment's status, carrier, and/or tracking ID. + * Updates a shipment's status, carrier, and/or tracking ID. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -2471,7 +2523,8 @@ _requester = client; /** - * Retrieves, inserts, and deletes multiple products in a single request. + * Retrieves, inserts, and deletes multiple products in a single request. This + * method can only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -2515,7 +2568,8 @@ } /** - * Deletes a product from your Merchant Center account. + * Deletes a product from your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -2564,7 +2618,8 @@ } /** - * Retrieves a product from your Merchant Center account. + * Retrieves a product from your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -2608,7 +2663,10 @@ } /** - * Uploads a product to your Merchant Center account. + * Uploads a product to your Merchant Center account. If an item with the same + * channel, contentLanguage, offerId, and targetCountry already exists, this + * method updates that entry. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -2657,7 +2715,8 @@ } /** - * Lists the products in your Merchant Center account. + * Lists the products in your Merchant Center account. This method can only be + * called for non-multi-client accounts. * * Request parameters: * @@ -2723,7 +2782,8 @@ _requester = client; /** - * Gets the statuses of multiple products in a single request. + * Gets the statuses of multiple products in a single request. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -2762,7 +2822,8 @@ } /** - * Gets the status of a product from your Merchant Center account. + * Gets the status of a product from your Merchant Center account. This method + * can only be called for non-multi-client accounts. * * Request parameters: * @@ -2806,7 +2867,8 @@ } /** - * Lists the statuses of the products in your Merchant Center account. + * Lists the statuses of the products in your Merchant Center account. This + * method can only be called for non-multi-client accounts. * * Request parameters: * @@ -2917,7 +2979,10 @@ } /** - * Retrieves the shipping settings of the account. + * Retrieves the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. * * Request parameters: * @@ -3003,7 +3068,7 @@ /** * Lists the shipping settings of the sub-accounts in your Merchant Center - * account. + * account. This method can only be called for multi-client accounts. * * Request parameters: * @@ -3053,8 +3118,10 @@ } /** - * Updates the shipping settings of the account. This method supports patch - * semantics. + * Updates the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. This method supports patch semantics. * * [request] - The metadata request object. * @@ -3109,7 +3176,10 @@ } /** - * Updates the shipping settings of the account. + * Updates the shipping settings of the account. This method can only be + * called for accounts to which the managing account has access: either the + * managing account itself or sub-accounts if the managing account is a + * multi-client account. * * [request] - The metadata request object. * @@ -7033,8 +7103,7 @@ * If set, this indicates the user explicitly chose to opt in or out of * providing marketing rights to the merchant. If unset, this indicates the * user has already made this choice in a previous purchase, and was thus not - * shown the marketing right opt in/out checkbox during the Purchases on - * Google checkout flow. + * shown the marketing right opt in/out checkbox during the checkout flow. */ core.bool explicitMarketingPreference; /** Full name of the customer. */ @@ -11614,8 +11683,8 @@ * If set, this indicates the user explicitly chose to opt in or out of * providing marketing rights to the merchant. If unset, this indicates the * user has already made this choice in a previous purchase, and was thus not - * shown the marketing right opt in/out checkbox during the Purchases on - * Google checkout flow. Optional. + * shown the marketing right opt in/out checkbox during the checkout flow. + * Optional. */ core.bool explicitMarketingPreference; /** Full name of the customer. */
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart index 75a15e9..94f0bdb 100644 --- a/generated/googleapis/lib/content/v2sandbox.dart +++ b/generated/googleapis/lib/content/v2sandbox.dart
@@ -39,7 +39,8 @@ _requester = client; /** - * Marks an order as acknowledged. + * Marks an order as acknowledged. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -89,7 +90,8 @@ /** * Sandbox only. Moves a test order from state "inProgress" to state - * "pendingShipment". + * "pendingShipment". This method can only be called for non-multi-client + * accounts. * * Request parameters: * @@ -133,7 +135,8 @@ } /** - * Cancels all line items in an order. + * Cancels all line items in an order. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -182,7 +185,8 @@ } /** - * Cancels a line item. + * Cancels a line item. This method can only be called for non-multi-client + * accounts. * * [request] - The metadata request object. * @@ -231,7 +235,8 @@ } /** - * Sandbox only. Creates a test order. + * Sandbox only. Creates a test order. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -275,7 +280,8 @@ } /** - * Retrieves or modifies multiple orders in a single request. + * Retrieves or modifies multiple orders in a single request. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -314,7 +320,8 @@ } /** - * Retrieves an order from your Merchant Center account. + * Retrieves an order from your Merchant Center account. This method can only + * be called for non-multi-client accounts. * * Request parameters: * @@ -358,7 +365,8 @@ } /** - * Retrieves an order using merchant order id. + * Retrieves an order using merchant order id. This method can only be called + * for non-multi-client accounts. * * Request parameters: * @@ -403,7 +411,8 @@ /** * Sandbox only. Retrieves an order template that can be used to quickly - * create a new order in sandbox. + * create a new order in sandbox. This method can only be called for + * non-multi-client accounts. * * Request parameters: * @@ -452,7 +461,8 @@ } /** - * Lists the orders in your Merchant Center account. + * Lists the orders in your Merchant Center account. This method can only be + * called for non-multi-client accounts. * * Request parameters: * @@ -548,7 +558,8 @@ } /** - * Refund a portion of the order, up to the full amount paid. + * Refund a portion of the order, up to the full amount paid. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -597,7 +608,8 @@ } /** - * Returns a line item. + * Returns a line item. This method can only be called for non-multi-client + * accounts. * * [request] - The metadata request object. * @@ -646,7 +658,8 @@ } /** - * Marks line item(s) as shipped. + * Marks line item(s) as shipped. This method can only be called for + * non-multi-client accounts. * * [request] - The metadata request object. * @@ -695,7 +708,8 @@ } /** - * Updates the merchant order ID for a given order. + * Updates the merchant order ID for a given order. This method can only be + * called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -744,7 +758,8 @@ } /** - * Updates a shipment's status, carrier, and/or tracking ID. + * Updates a shipment's status, carrier, and/or tracking ID. This method can + * only be called for non-multi-client accounts. * * [request] - The metadata request object. * @@ -1205,8 +1220,7 @@ * If set, this indicates the user explicitly chose to opt in or out of * providing marketing rights to the merchant. If unset, this indicates the * user has already made this choice in a previous purchase, and was thus not - * shown the marketing right opt in/out checkbox during the Purchases on - * Google checkout flow. + * shown the marketing right opt in/out checkbox during the checkout flow. */ core.bool explicitMarketingPreference; /** Full name of the customer. */ @@ -3541,8 +3555,8 @@ * If set, this indicates the user explicitly chose to opt in or out of * providing marketing rights to the merchant. If unset, this indicates the * user has already made this choice in a previous purchase, and was thus not - * shown the marketing right opt in/out checkbox during the Purchases on - * Google checkout flow. Optional. + * shown the marketing right opt in/out checkbox during the checkout flow. + * Optional. */ core.bool explicitMarketingPreference; /** Full name of the customer. */
diff --git a/generated/googleapis/lib/datastore/v1.dart b/generated/googleapis/lib/datastore/v1.dart index bf7f997..8cc30f4 100644 --- a/generated/googleapis/lib/datastore/v1.dart +++ b/generated/googleapis/lib/datastore/v1.dart
@@ -1599,6 +1599,7 @@ * In a single transaction, subsequent query result batches for the same query * can have a greater snapshot version number. Each batch's snapshot version * is valid for all preceding batches. + * The value will be zero for eventually consistent queries. */ core.String snapshotVersion;
diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart index 2c7949c..5295d7f 100644 --- a/generated/googleapis/lib/deploymentmanager/v2.dart +++ b/generated/googleapis/lib/deploymentmanager/v2.dart
@@ -120,6 +120,11 @@ * [deployment] - The name of the deployment for this request. * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". * + * [deletePolicy] - Sets the policy to use for deleting resources. + * Possible string values are: + * - "ABANDON" + * - "DELETE" + * * Completes with a [Operation]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -128,7 +133,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<Operation> delete(core.String project, core.String deployment) { + async.Future<Operation> delete(core.String project, core.String deployment, {core.String deletePolicy}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -142,6 +147,9 @@ if (deployment == null) { throw new core.ArgumentError("Parameter deployment is required."); } + if (deletePolicy != null) { + _queryParams["deletePolicy"] = [deletePolicy]; + } _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$deployment'); @@ -1332,10 +1340,12 @@ /** - * Enables "data access" audit logging for a service and specifies a list of - * members that are log-exempted. + * Provides the configuration for non-admin_activity logging for a service. + * Controls exemptions and specific log sub-types. */ class AuditConfig { + /** The configuration for each type of logging */ + core.List<AuditLogConfig> auditLogConfigs; /** * Specifies the identities that are exempted from "data access" audit logging * for the `service` specified above. Follows the same format of @@ -1343,15 +1353,18 @@ */ core.List<core.String> exemptedMembers; /** - * Specifies a service that will be enabled for "data access" audit logging. - * For example, `resourcemanager`, `storage`, `compute`. `allServices` is a - * special value that covers all services. + * Specifies a service that will be enabled for audit logging. For example, + * `resourcemanager`, `storage`, `compute`. `allServices` is a special value + * that covers all services. */ core.String service; AuditConfig(); AuditConfig.fromJson(core.Map _json) { + if (_json.containsKey("auditLogConfigs")) { + auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConfig.fromJson(value)).toList(); + } if (_json.containsKey("exemptedMembers")) { exemptedMembers = _json["exemptedMembers"]; } @@ -1362,6 +1375,9 @@ core.Map toJson() { var _json = new core.Map(); + if (auditLogConfigs != null) { + _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); + } if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1372,6 +1388,39 @@ } } +/** Provides the configuration for a sub-type of logging. */ +class AuditLogConfig { + /** + * Specifies the identities that are exempted from this type of logging + * Follows the same format of Binding.members. + */ + core.List<core.String> exemptedMembers; + /** The log type that this config enables. */ + core.String logType; + + AuditLogConfig(); + + AuditLogConfig.fromJson(core.Map _json) { + if (_json.containsKey("exemptedMembers")) { + exemptedMembers = _json["exemptedMembers"]; + } + if (_json.containsKey("logType")) { + logType = _json["logType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (exemptedMembers != null) { + _json["exemptedMembers"] = exemptedMembers; + } + if (logType != null) { + _json["logType"] = logType; + } + return _json; + } +} + /** Associates `members` with a `role`. */ class Binding { /**
diff --git a/generated/googleapis/lib/dfareporting/v2_4.dart b/generated/googleapis/lib/dfareporting/v2_4.dart deleted file mode 100644 index e4acf43..0000000 --- a/generated/googleapis/lib/dfareporting/v2_4.dart +++ /dev/null
@@ -1,26806 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.dfareporting.v2_4; - -import 'dart:core' as core; -import 'dart:async' as async; -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, Media, UploadOptions, - ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, - ByteRange; - -const core.String USER_AGENT = 'dart-api-client dfareporting/v2.4'; - -/** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ -class DfareportingApi { - /** View and manage DoubleClick for Advertisers reports */ - static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting"; - - /** - * View and manage your DoubleClick Campaign Manager's (DCM) display ad - * campaigns - */ - static const DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"; - - - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi get accountActiveAdSummaries => new AccountActiveAdSummariesResourceApi(_requester); - AccountPermissionGroupsResourceApi get accountPermissionGroups => new AccountPermissionGroupsResourceApi(_requester); - AccountPermissionsResourceApi get accountPermissions => new AccountPermissionsResourceApi(_requester); - AccountUserProfilesResourceApi get accountUserProfiles => new AccountUserProfilesResourceApi(_requester); - AccountsResourceApi get accounts => new AccountsResourceApi(_requester); - AdsResourceApi get ads => new AdsResourceApi(_requester); - AdvertiserGroupsResourceApi get advertiserGroups => new AdvertiserGroupsResourceApi(_requester); - AdvertisersResourceApi get advertisers => new AdvertisersResourceApi(_requester); - BrowsersResourceApi get browsers => new BrowsersResourceApi(_requester); - CampaignCreativeAssociationsResourceApi get campaignCreativeAssociations => new CampaignCreativeAssociationsResourceApi(_requester); - CampaignsResourceApi get campaigns => new CampaignsResourceApi(_requester); - ChangeLogsResourceApi get changeLogs => new ChangeLogsResourceApi(_requester); - CitiesResourceApi get cities => new CitiesResourceApi(_requester); - ConnectionTypesResourceApi get connectionTypes => new ConnectionTypesResourceApi(_requester); - ContentCategoriesResourceApi get contentCategories => new ContentCategoriesResourceApi(_requester); - CountriesResourceApi get countries => new CountriesResourceApi(_requester); - CreativeAssetsResourceApi get creativeAssets => new CreativeAssetsResourceApi(_requester); - CreativeFieldValuesResourceApi get creativeFieldValues => new CreativeFieldValuesResourceApi(_requester); - CreativeFieldsResourceApi get creativeFields => new CreativeFieldsResourceApi(_requester); - CreativeGroupsResourceApi get creativeGroups => new CreativeGroupsResourceApi(_requester); - CreativesResourceApi get creatives => new CreativesResourceApi(_requester); - DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceApi(_requester); - DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySiteContactsResourceApi(_requester); - DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(_requester); - EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); - FilesResourceApi get files => new FilesResourceApi(_requester); - FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActivitiesResourceApi(_requester); - FloodlightActivityGroupsResourceApi get floodlightActivityGroups => new FloodlightActivityGroupsResourceApi(_requester); - FloodlightConfigurationsResourceApi get floodlightConfigurations => new FloodlightConfigurationsResourceApi(_requester); - InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(_requester); - LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_requester); - MetrosResourceApi get metros => new MetrosResourceApi(_requester); - MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(_requester); - OperatingSystemVersionsResourceApi get operatingSystemVersions => new OperatingSystemVersionsResourceApi(_requester); - OperatingSystemsResourceApi get operatingSystems => new OperatingSystemsResourceApi(_requester); - OrderDocumentsResourceApi get orderDocuments => new OrderDocumentsResourceApi(_requester); - OrdersResourceApi get orders => new OrdersResourceApi(_requester); - PlacementGroupsResourceApi get placementGroups => new PlacementGroupsResourceApi(_requester); - PlacementStrategiesResourceApi get placementStrategies => new PlacementStrategiesResourceApi(_requester); - PlacementsResourceApi get placements => new PlacementsResourceApi(_requester); - PlatformTypesResourceApi get platformTypes => new PlatformTypesResourceApi(_requester); - PostalCodesResourceApi get postalCodes => new PostalCodesResourceApi(_requester); - ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); - RegionsResourceApi get regions => new RegionsResourceApi(_requester); - RemarketingListSharesResourceApi get remarketingListShares => new RemarketingListSharesResourceApi(_requester); - RemarketingListsResourceApi get remarketingLists => new RemarketingListsResourceApi(_requester); - ReportsResourceApi get reports => new ReportsResourceApi(_requester); - SitesResourceApi get sites => new SitesResourceApi(_requester); - SizesResourceApi get sizes => new SizesResourceApi(_requester); - SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requester); - TargetableRemarketingListsResourceApi get targetableRemarketingLists => new TargetableRemarketingListsResourceApi(_requester); - UserProfilesResourceApi get userProfiles => new UserProfilesResourceApi(_requester); - UserRolePermissionGroupsResourceApi get userRolePermissionGroups => new UserRolePermissionGroupsResourceApi(_requester); - UserRolePermissionsResourceApi get userRolePermissions => new UserRolePermissionsResourceApi(_requester); - UserRolesResourceApi get userRoles => new UserRolesResourceApi(_requester); - - DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.4/"}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); -} - - -class AccountActiveAdSummariesResourceApi { - final commons.ApiRequester _requester; - - AccountActiveAdSummariesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets the account's active ad summary by account ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [summaryAccountId] - Account ID. - * - * Completes with a [AccountActiveAdSummary]. - * - * 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<AccountActiveAdSummary> get(core.String profileId, core.String summaryAccountId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (summaryAccountId == null) { - throw new core.ArgumentError("Parameter summaryAccountId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountActiveAdSummaries/' + commons.Escaper.ecapeVariable('$summaryAccountId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountActiveAdSummary.fromJson(data)); - } - -} - - -class AccountPermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission group ID. - * - * Completes with a [AccountPermissionGroup]. - * - * 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<AccountPermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroup.fromJson(data)); - } - - /** - * Retrieves the list of account permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionGroupsListResponse]. - * - * 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<AccountPermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionGroupsListResponse.fromJson(data)); - } - -} - - -class AccountPermissionsResourceApi { - final commons.ApiRequester _requester; - - AccountPermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account permission ID. - * - * Completes with a [AccountPermission]. - * - * 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<AccountPermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermission.fromJson(data)); - } - - /** - * Retrieves the list of account permissions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountPermissionsListResponse]. - * - * 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<AccountPermissionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountPermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountPermissionsListResponse.fromJson(data)); - } - -} - - -class AccountUserProfilesResourceApi { - final commons.ApiRequester _requester; - - AccountUserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account user profile by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * 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<AccountUserProfile> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Inserts a new account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * 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<AccountUserProfile> insert(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Retrieves a list of account user profiles, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active user profiles. - * - * [ids] - Select only user profiles with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "user profile*2015" will return - * objects with names like "user profile June 2015", "user profile April - * 2015", or simply "user profile 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "user profile" will match objects with name "my - * user profile", "user profile 2015", or simply "user profile". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user profiles with the specified subaccount - * ID. - * - * [userRoleId] - Select only user profiles with the specified user role ID. - * - * Completes with a [AccountUserProfilesListResponse]. - * - * 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<AccountUserProfilesListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.String userRoleId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (userRoleId != null) { - _queryParams["userRoleId"] = [userRoleId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfilesListResponse.fromJson(data)); - } - - /** - * Updates an existing account user profile. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User profile ID. - * - * Completes with a [AccountUserProfile]. - * - * 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<AccountUserProfile> patch(AccountUserProfile request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - - /** - * Updates an existing account user profile. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AccountUserProfile]. - * - * 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<AccountUserProfile> update(AccountUserProfile request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accountUserProfiles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountUserProfile.fromJson(data)); - } - -} - - -class AccountsResourceApi { - final commons.ApiRequester _requester; - - AccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one account by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * 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<Account> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Retrieves the list of accounts, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active accounts. Don't set this field to select both - * active and non-active accounts. - * - * [ids] - Select only accounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "account*2015" will return objects with names - * like "account June 2015", "account April 2015", or simply "account 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "account" will match - * objects with name "my account", "account 2015", or simply "account". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AccountsListResponse]. - * - * 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<AccountsListResponse> list(core.String profileId, {core.bool active, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing account. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Account ID. - * - * Completes with a [Account]. - * - * 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<Account> patch(Account request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - - /** - * Updates an existing account. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Account]. - * - * 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<Account> update(Account request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/accounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Account.fromJson(data)); - } - -} - - -class AdsResourceApi { - final commons.ApiRequester _requester; - - AdsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one ad by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * 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<Ad> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Inserts a new ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * 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<Ad> insert(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Retrieves a list of ads, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active ads. - * - * [advertiserId] - Select only ads with this advertiser ID. - * - * [archived] - Select only archived ads. - * - * [audienceSegmentIds] - Select only ads with these audience segment IDs. - * - * [campaignIds] - Select only ads with these campaign IDs. - * - * [compatibility] - Select default ads with the specified compatibility. - * Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and - * DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile - * devices for regular or interstitial ads, respectively. APP and - * APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers - * to rendering an in-stream video ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - * [creativeIds] - Select only ads with these creative IDs assigned. - * - * [creativeOptimizationConfigurationIds] - Select only ads with these - * creative optimization configuration IDs. - * - * [creativeType] - Select only ads with the specified creativeType. - * Possible string values are: - * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_INPAGE" - * - "CUSTOM_INTERSTITIAL" - * - "ENHANCED_BANNER" - * - "ENHANCED_IMAGE" - * - "FLASH_INPAGE" - * - "HTML5_BANNER" - * - "IMAGE" - * - "INSTREAM_VIDEO" - * - "INSTREAM_VIDEO_REDIRECT" - * - "INTERNAL_REDIRECT" - * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "REDIRECT" - * - "RICH_MEDIA_EXPANDING" - * - "RICH_MEDIA_IM_EXPAND" - * - "RICH_MEDIA_INPAGE" - * - "RICH_MEDIA_INPAGE_FLOATING" - * - "RICH_MEDIA_INTERSTITIAL_FLOAT" - * - "RICH_MEDIA_MOBILE_IN_APP" - * - "RICH_MEDIA_MULTI_FLOATING" - * - "RICH_MEDIA_PEEL_DOWN" - * - "TRACKING_TEXT" - * - "VPAID_LINEAR" - * - "VPAID_NON_LINEAR" - * - * [dynamicClickTracker] - Select only dynamic click trackers. Applicable when - * type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. - * If false, select static click trackers. Leave unset to select both. - * - * [ids] - Select only ads with these IDs. - * - * [landingPageIds] - Select only ads with these landing page IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [overriddenEventTagId] - Select only ads with this event tag override ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementIds] - Select only ads with these placement IDs assigned. - * - * [remarketingListIds] - Select only ads whose list targeting expression use - * these remarketing list IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "ad*2015" will return objects with names like "ad - * June 2015", "ad April 2015", or simply "ad 2015". Most of the searches also - * add wildcards implicitly at the start and the end of the search string. For - * example, a search string of "ad" will match objects with name "my ad", "ad - * 2015", or simply "ad". - * - * [sizeIds] - Select only ads with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [sslCompliant] - Select only ads that are SSL-compliant. - * - * [sslRequired] - Select only ads that require SSL. - * - * [type] - Select only ads with these types. - * - * Completes with a [AdsListResponse]. - * - * 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<AdsListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.List<core.String> audienceSegmentIds, core.List<core.String> campaignIds, core.String compatibility, core.List<core.String> creativeIds, core.List<core.String> creativeOptimizationConfigurationIds, core.String creativeType, core.bool dynamicClickTracker, core.List<core.String> ids, core.List<core.String> landingPageIds, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.List<core.String> placementIds, core.List<core.String> remarketingListIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.bool sslCompliant, core.bool sslRequired, core.List<core.String> type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (audienceSegmentIds != null) { - _queryParams["audienceSegmentIds"] = audienceSegmentIds; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibility != null) { - _queryParams["compatibility"] = [compatibility]; - } - if (creativeIds != null) { - _queryParams["creativeIds"] = creativeIds; - } - if (creativeOptimizationConfigurationIds != null) { - _queryParams["creativeOptimizationConfigurationIds"] = creativeOptimizationConfigurationIds; - } - if (creativeType != null) { - _queryParams["creativeType"] = [creativeType]; - } - if (dynamicClickTracker != null) { - _queryParams["dynamicClickTracker"] = ["${dynamicClickTracker}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (landingPageIds != null) { - _queryParams["landingPageIds"] = landingPageIds; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (remarketingListIds != null) { - _queryParams["remarketingListIds"] = remarketingListIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (sslCompliant != null) { - _queryParams["sslCompliant"] = ["${sslCompliant}"]; - } - if (sslRequired != null) { - _queryParams["sslRequired"] = ["${sslRequired}"]; - } - if (type != null) { - _queryParams["type"] = type; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdsListResponse.fromJson(data)); - } - - /** - * Updates an existing ad. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Ad ID. - * - * Completes with a [Ad]. - * - * 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<Ad> patch(Ad request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - - /** - * Updates an existing ad. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Ad]. - * - * 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<Ad> update(Ad request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/ads'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Ad.fromJson(data)); - } - -} - - -class AdvertiserGroupsResourceApi { - final commons.ApiRequester _requester; - - AdvertiserGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing advertiser group. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one advertiser group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * 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<AdvertiserGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Inserts a new advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * 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<AdvertiserGroup> insert(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Retrieves a list of advertiser groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only advertiser groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser group June 2015", "advertiser group April 2015", or simply - * "advertiser group 2015". Most of the searches also add wildcards implicitly - * at the start and the end of the search string. For example, a search string - * of "advertisergroup" will match objects with name "my advertisergroup", - * "advertisergroup 2015", or simply "advertisergroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [AdvertiserGroupsListResponse]. - * - * 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<AdvertiserGroupsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser group ID. - * - * Completes with a [AdvertiserGroup]. - * - * 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<AdvertiserGroup> patch(AdvertiserGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - - /** - * Updates an existing advertiser group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [AdvertiserGroup]. - * - * 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<AdvertiserGroup> update(AdvertiserGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertiserGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertiserGroup.fromJson(data)); - } - -} - - -class AdvertisersResourceApi { - final commons.ApiRequester _requester; - - AdvertisersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one advertiser by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * 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<Advertiser> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Inserts a new advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * 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<Advertiser> insert(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Retrieves a list of advertisers, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only advertisers with these advertiser group - * IDs. - * - * [floodlightConfigurationIds] - Select only advertisers with these - * floodlight configuration IDs. - * - * [ids] - Select only advertisers with these IDs. - * - * [includeAdvertisersWithoutGroupsOnly] - Select only advertisers which do - * not belong to any advertiser group. - * - * [maxResults] - Maximum number of results to return. - * - * [onlyParent] - Select only advertisers which use another advertiser's - * floodlight configuration. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "advertiser*2015" will return objects with names - * like "advertiser June 2015", "advertiser April 2015", or simply "advertiser - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "advertiser" - * will match objects with name "my advertiser", "advertiser 2015", or simply - * "advertiser". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [status] - Select only advertisers with the specified status. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - * - * [subaccountId] - Select only advertisers with these subaccount IDs. - * - * Completes with a [AdvertisersListResponse]. - * - * 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<AdvertisersListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> floodlightConfigurationIds, core.List<core.String> ids, core.bool includeAdvertisersWithoutGroupsOnly, core.int maxResults, core.bool onlyParent, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String status, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (floodlightConfigurationIds != null) { - _queryParams["floodlightConfigurationIds"] = floodlightConfigurationIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (includeAdvertisersWithoutGroupsOnly != null) { - _queryParams["includeAdvertisersWithoutGroupsOnly"] = ["${includeAdvertisersWithoutGroupsOnly}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (onlyParent != null) { - _queryParams["onlyParent"] = ["${onlyParent}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (status != null) { - _queryParams["status"] = [status]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new AdvertisersListResponse.fromJson(data)); - } - - /** - * Updates an existing advertiser. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Advertiser ID. - * - * Completes with a [Advertiser]. - * - * 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<Advertiser> patch(Advertiser request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - - /** - * Updates an existing advertiser. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Advertiser]. - * - * 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<Advertiser> update(Advertiser request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/advertisers'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Advertiser.fromJson(data)); - } - -} - - -class BrowsersResourceApi { - final commons.ApiRequester _requester; - - BrowsersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of browsers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [BrowsersListResponse]. - * - * 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<BrowsersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/browsers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new BrowsersListResponse.fromJson(data)); - } - -} - - -class CampaignCreativeAssociationsResourceApi { - final commons.ApiRequester _requester; - - CampaignCreativeAssociationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Associates a creative with the specified campaign. This method creates a - * default ad with dimensions matching the creative in the campaign if such a - * default ad does not exist already. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * Completes with a [CampaignCreativeAssociation]. - * - * 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<CampaignCreativeAssociation> insert(CampaignCreativeAssociation request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociation.fromJson(data)); - } - - /** - * Retrieves the list of creative IDs associated with the specified campaign. - * This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Campaign ID in this association. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CampaignCreativeAssociationsListResponse]. - * - * 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<CampaignCreativeAssociationsListResponse> list(core.String profileId, core.String campaignId, {core.int maxResults, core.String pageToken, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/campaignCreativeAssociations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignCreativeAssociationsListResponse.fromJson(data)); - } - -} - - -class CampaignsResourceApi { - final commons.ApiRequester _requester; - - CampaignsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one campaign by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * 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<Campaign> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Inserts a new campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [defaultLandingPageName] - Default landing page name for this new campaign. - * Must be less than 256 characters long. - * - * [defaultLandingPageUrl] - Default landing page URL for this new campaign. - * - * Completes with a [Campaign]. - * - * 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<Campaign> insert(Campaign request, core.String profileId, core.String defaultLandingPageName, core.String defaultLandingPageUrl) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (defaultLandingPageName == null) { - throw new core.ArgumentError("Parameter defaultLandingPageName is required."); - } - _queryParams["defaultLandingPageName"] = [defaultLandingPageName]; - if (defaultLandingPageUrl == null) { - throw new core.ArgumentError("Parameter defaultLandingPageUrl is required."); - } - _queryParams["defaultLandingPageUrl"] = [defaultLandingPageUrl]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Retrieves a list of campaigns, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserGroupIds] - Select only campaigns whose advertisers belong to - * these advertiser groups. - * - * [advertiserIds] - Select only campaigns that belong to these advertisers. - * - * [archived] - Select only archived campaigns. Don't set this field to select - * both archived and non-archived campaigns. - * - * [atLeastOneOptimizationActivity] - Select only campaigns that have at least - * one optimization activity. - * - * [excludedIds] - Exclude campaigns with these IDs. - * - * [ids] - Select only campaigns with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [overriddenEventTagId] - Select only campaigns that have overridden this - * event tag ID. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for campaigns by name or ID. Wildcards - * (*) are allowed. For example, "campaign*2015" will return campaigns with - * names like "campaign June 2015", "campaign April 2015", or simply "campaign - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "campaign" - * will match campaigns with name "my campaign", "campaign 2015", or simply - * "campaign". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only campaigns that belong to this subaccount. - * - * Completes with a [CampaignsListResponse]. - * - * 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<CampaignsListResponse> list(core.String profileId, {core.List<core.String> advertiserGroupIds, core.List<core.String> advertiserIds, core.bool archived, core.bool atLeastOneOptimizationActivity, core.List<core.String> excludedIds, core.List<core.String> ids, core.int maxResults, core.String overriddenEventTagId, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserGroupIds != null) { - _queryParams["advertiserGroupIds"] = advertiserGroupIds; - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (atLeastOneOptimizationActivity != null) { - _queryParams["atLeastOneOptimizationActivity"] = ["${atLeastOneOptimizationActivity}"]; - } - if (excludedIds != null) { - _queryParams["excludedIds"] = excludedIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (overriddenEventTagId != null) { - _queryParams["overriddenEventTagId"] = [overriddenEventTagId]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CampaignsListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Campaign ID. - * - * Completes with a [Campaign]. - * - * 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<Campaign> patch(Campaign request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - - /** - * Updates an existing campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Campaign]. - * - * 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<Campaign> update(Campaign request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Campaign.fromJson(data)); - } - -} - - -class ChangeLogsResourceApi { - final commons.ApiRequester _requester; - - ChangeLogsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one change log by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Change log ID. - * - * Completes with a [ChangeLog]. - * - * 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<ChangeLog> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLog.fromJson(data)); - } - - /** - * Retrieves a list of change logs. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [action] - Select only change logs with the specified action. - * Possible string values are: - * - "ACTION_ADD" - * - "ACTION_ASSIGN" - * - "ACTION_ASSOCIATE" - * - "ACTION_CREATE" - * - "ACTION_DELETE" - * - "ACTION_DISABLE" - * - "ACTION_EMAIL_TAGS" - * - "ACTION_ENABLE" - * - "ACTION_LINK" - * - "ACTION_MARK_AS_DEFAULT" - * - "ACTION_PUSH" - * - "ACTION_REMOVE" - * - "ACTION_SEND" - * - "ACTION_SHARE" - * - "ACTION_UNASSIGN" - * - "ACTION_UNLINK" - * - "ACTION_UPDATE" - * - * [ids] - Select only change logs with these IDs. - * - * [maxChangeTime] - Select only change logs whose change time is before the - * specified maxChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [maxResults] - Maximum number of results to return. - * - * [minChangeTime] - Select only change logs whose change time is before the - * specified minChangeTime.The time should be formatted as an RFC3339 - * date/time string. For example, for 10:54 PM on July 18th, 2015, in the - * America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In - * other words, the year, month, day, the letter T, the hour (24-hour clock - * system), minute, second, and then the time zone offset. - * - * [objectIds] - Select only change logs with these object IDs. - * - * [objectType] - Select only change logs with the specified object type. - * Possible string values are: - * - "OBJECT_ACCOUNT" - * - "OBJECT_ACCOUNT_BILLING_FEATURE" - * - "OBJECT_AD" - * - "OBJECT_ADVERTISER" - * - "OBJECT_ADVERTISER_GROUP" - * - "OBJECT_BILLING_ACCOUNT_GROUP" - * - "OBJECT_BILLING_FEATURE" - * - "OBJECT_BILLING_MINIMUM_FEE" - * - "OBJECT_BILLING_PROFILE" - * - "OBJECT_CAMPAIGN" - * - "OBJECT_CONTENT_CATEGORY" - * - "OBJECT_CREATIVE" - * - "OBJECT_CREATIVE_ASSET" - * - "OBJECT_CREATIVE_BUNDLE" - * - "OBJECT_CREATIVE_FIELD" - * - "OBJECT_CREATIVE_GROUP" - * - "OBJECT_DFA_SITE" - * - "OBJECT_EVENT_TAG" - * - "OBJECT_FLOODLIGHT_ACTIVITY_GROUP" - * - "OBJECT_FLOODLIGHT_ACTVITY" - * - "OBJECT_FLOODLIGHT_CONFIGURATION" - * - "OBJECT_INSTREAM_CREATIVE" - * - "OBJECT_LANDING_PAGE" - * - "OBJECT_MEDIA_ORDER" - * - "OBJECT_PLACEMENT" - * - "OBJECT_PLACEMENT_STRATEGY" - * - "OBJECT_PLAYSTORE_LINK" - * - "OBJECT_PROVIDED_LIST_CLIENT" - * - "OBJECT_RATE_CARD" - * - "OBJECT_REMARKETING_LIST" - * - "OBJECT_RICHMEDIA_CREATIVE" - * - "OBJECT_SD_SITE" - * - "OBJECT_SEARCH_LIFT_STUDY" - * - "OBJECT_SIZE" - * - "OBJECT_SUBACCOUNT" - * - "OBJECT_TARGETING_TEMPLATE" - * - "OBJECT_USER_PROFILE" - * - "OBJECT_USER_PROFILE_FILTER" - * - "OBJECT_USER_ROLE" - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Select only change logs whose object ID, user name, old or - * new values match the search string. - * - * [userProfileIds] - Select only change logs with these user profile IDs. - * - * Completes with a [ChangeLogsListResponse]. - * - * 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<ChangeLogsListResponse> list(core.String profileId, {core.String action, core.List<core.String> ids, core.String maxChangeTime, core.int maxResults, core.String minChangeTime, core.List<core.String> objectIds, core.String objectType, core.String pageToken, core.String searchString, core.List<core.String> userProfileIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (action != null) { - _queryParams["action"] = [action]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxChangeTime != null) { - _queryParams["maxChangeTime"] = [maxChangeTime]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (minChangeTime != null) { - _queryParams["minChangeTime"] = [minChangeTime]; - } - if (objectIds != null) { - _queryParams["objectIds"] = objectIds; - } - if (objectType != null) { - _queryParams["objectType"] = [objectType]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (userProfileIds != null) { - _queryParams["userProfileIds"] = userProfileIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/changeLogs'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ChangeLogsListResponse.fromJson(data)); - } - -} - - -class CitiesResourceApi { - final commons.ApiRequester _requester; - - CitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of cities, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [countryDartIds] - Select only cities from these countries. - * - * [dartIds] - Select only cities with these DART IDs. - * - * [namePrefix] - Select only cities with names starting with this prefix. - * - * [regionDartIds] - Select only cities from these regions. - * - * Completes with a [CitiesListResponse]. - * - * 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<CitiesListResponse> list(core.String profileId, {core.List<core.String> countryDartIds, core.List<core.String> dartIds, core.String namePrefix, core.List<core.String> regionDartIds}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (countryDartIds != null) { - _queryParams["countryDartIds"] = countryDartIds; - } - if (dartIds != null) { - _queryParams["dartIds"] = dartIds; - } - if (namePrefix != null) { - _queryParams["namePrefix"] = [namePrefix]; - } - if (regionDartIds != null) { - _queryParams["regionDartIds"] = regionDartIds; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/cities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CitiesListResponse.fromJson(data)); - } - -} - - -class ConnectionTypesResourceApi { - final commons.ApiRequester _requester; - - ConnectionTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one connection type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Connection type ID. - * - * Completes with a [ConnectionType]. - * - * 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<ConnectionType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionType.fromJson(data)); - } - - /** - * Retrieves a list of connection types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ConnectionTypesListResponse]. - * - * 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<ConnectionTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/connectionTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ConnectionTypesListResponse.fromJson(data)); - } - -} - - -class ContentCategoriesResourceApi { - final commons.ApiRequester _requester; - - ContentCategoriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing content category. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one content category by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * 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<ContentCategory> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Inserts a new content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * 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<ContentCategory> insert(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Retrieves a list of content categories, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only content categories with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "contentcategory*2015" will return objects with - * names like "contentcategory June 2015", "contentcategory April 2015", or - * simply "contentcategory 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "contentcategory" will match objects with name "my - * contentcategory", "contentcategory 2015", or simply "contentcategory". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ContentCategoriesListResponse]. - * - * 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<ContentCategoriesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategoriesListResponse.fromJson(data)); - } - - /** - * Updates an existing content category. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Content category ID. - * - * Completes with a [ContentCategory]. - * - * 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<ContentCategory> patch(ContentCategory request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - - /** - * Updates an existing content category. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [ContentCategory]. - * - * 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<ContentCategory> update(ContentCategory request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/contentCategories'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ContentCategory.fromJson(data)); - } - -} - - -class CountriesResourceApi { - final commons.ApiRequester _requester; - - CountriesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one country by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Country DART ID. - * - * Completes with a [Country]. - * - * 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<Country> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Country.fromJson(data)); - } - - /** - * Retrieves a list of countries. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CountriesListResponse]. - * - * 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<CountriesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/countries'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CountriesListResponse.fromJson(data)); - } - -} - - -class CreativeAssetsResourceApi { - final commons.ApiRequester _requester; - - CreativeAssetsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Inserts a new creative asset. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Advertiser ID of this creative. This is a required field. - * - * [uploadMedia] - The media to upload. - * - * [uploadOptions] - Options for the media upload. Streaming Media without the - * length being known ahead of time is only supported via resumable uploads. - * - * Completes with a [CreativeAssetMetadata]. - * - * 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<CreativeAssetMetadata> insert(CreativeAssetMetadata request, core.String profileId, core.String advertiserId, {commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - - _uploadMedia = uploadMedia; - _uploadOptions = uploadOptions; - - if (_uploadMedia == null) { - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else if (_uploadOptions is commons.ResumableUploadOptions) { - _url = '/resumable/upload/dfareporting/v2.4/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else { - _url = '/upload/dfareporting/v2.4/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } - - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeAssetMetadata.fromJson(data)); - } - -} - - -class CreativeFieldValuesResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field value. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * 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 delete(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field value by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * 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<CreativeFieldValue> get(core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Inserts a new creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * 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<CreativeFieldValue> insert(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Retrieves a list of creative field values, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [ids] - Select only creative field values with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative field values by their - * values. Wildcards (e.g. *) are not allowed. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "VALUE" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldValuesListResponse]. - * - * 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<CreativeFieldValuesListResponse> list(core.String profileId, core.String creativeFieldId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValuesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field value. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * [id] - Creative Field Value ID - * - * Completes with a [CreativeFieldValue]. - * - * 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<CreativeFieldValue> patch(CreativeFieldValue request, core.String profileId, core.String creativeFieldId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - - /** - * Updates an existing creative field value. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [creativeFieldId] - Creative field ID for this creative field value. - * - * Completes with a [CreativeFieldValue]. - * - * 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<CreativeFieldValue> update(CreativeFieldValue request, core.String profileId, core.String creativeFieldId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (creativeFieldId == null) { - throw new core.ArgumentError("Parameter creativeFieldId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$creativeFieldId') + '/creativeFieldValues'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldValue.fromJson(data)); - } - -} - - -class CreativeFieldsResourceApi { - final commons.ApiRequester _requester; - - CreativeFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing creative field. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one creative field by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * 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<CreativeField> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Inserts a new creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * 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<CreativeField> insert(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Retrieves a list of creative fields, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative fields that belong to these - * advertisers. - * - * [ids] - Select only creative fields with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative fields by name or ID. - * Wildcards (*) are allowed. For example, "creativefield*2015" will return - * creative fields with names like "creativefield June 2015", "creativefield - * April 2015", or simply "creativefield 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativefield" will match creative fields with - * the name "my creativefield", "creativefield 2015", or simply - * "creativefield". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeFieldsListResponse]. - * - * 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<CreativeFieldsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeFieldsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative field. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative Field ID - * - * Completes with a [CreativeField]. - * - * 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<CreativeField> patch(CreativeField request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - - /** - * Updates an existing creative field. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeField]. - * - * 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<CreativeField> update(CreativeField request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeFields'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeField.fromJson(data)); - } - -} - - -class CreativeGroupsResourceApi { - final commons.ApiRequester _requester; - - CreativeGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * 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<CreativeGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Inserts a new creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * 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<CreativeGroup> insert(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Retrieves a list of creative groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only creative groups that belong to these - * advertisers. - * - * [groupNumber] - Select only creative groups that belong to this subgroup. - * - * [ids] - Select only creative groups with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for creative groups by name or ID. - * Wildcards (*) are allowed. For example, "creativegroup*2015" will return - * creative groups with names like "creativegroup June 2015", "creativegroup - * April 2015", or simply "creativegroup 2015". Most of the searches also add - * wild-cards implicitly at the start and the end of the search string. For - * example, a search string of "creativegroup" will match creative groups with - * the name "my creativegroup", "creativegroup 2015", or simply - * "creativegroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [CreativeGroupsListResponse]. - * - * 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<CreativeGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.int groupNumber, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (groupNumber != null) { - _queryParams["groupNumber"] = ["${groupNumber}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing creative group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative group ID. - * - * Completes with a [CreativeGroup]. - * - * 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<CreativeGroup> patch(CreativeGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - - /** - * Updates an existing creative group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [CreativeGroup]. - * - * 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<CreativeGroup> update(CreativeGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativeGroup.fromJson(data)); - } - -} - - -class CreativesResourceApi { - final commons.ApiRequester _requester; - - CreativesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one creative by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * 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<Creative> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Inserts a new creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * 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<Creative> insert(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Retrieves a list of creatives, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [active] - Select only active creatives. Leave blank to select active and - * inactive creatives. - * - * [advertiserId] - Select only creatives with this advertiser ID. - * - * [archived] - Select only archived creatives. Leave blank to select archived - * and unarchived creatives. - * - * [campaignId] - Select only creatives with this campaign ID. - * - * [companionCreativeIds] - Select only in-stream video creatives with these - * companion IDs. - * - * [creativeFieldIds] - Select only creatives with these creative field IDs. - * - * [ids] - Select only creatives with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [renderingIds] - Select only creatives with these rendering IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "creative*2015" will return objects with names - * like "creative June 2015", "creative April 2015", or simply "creative - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "creative" - * will match objects with name "my creative", "creative 2015", or simply - * "creative". - * - * [sizeIds] - Select only creatives with these size IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [studioCreativeId] - Select only creatives corresponding to this Studio - * creative ID. - * - * [types] - Select only creatives with these creative types. - * - * Completes with a [CreativesListResponse]. - * - * 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<CreativesListResponse> list(core.String profileId, {core.bool active, core.String advertiserId, core.bool archived, core.String campaignId, core.List<core.String> companionCreativeIds, core.List<core.String> creativeFieldIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.List<core.String> renderingIds, core.String searchString, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder, core.String studioCreativeId, core.List<core.String> types}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (companionCreativeIds != null) { - _queryParams["companionCreativeIds"] = companionCreativeIds; - } - if (creativeFieldIds != null) { - _queryParams["creativeFieldIds"] = creativeFieldIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (renderingIds != null) { - _queryParams["renderingIds"] = renderingIds; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (studioCreativeId != null) { - _queryParams["studioCreativeId"] = [studioCreativeId]; - } - if (types != null) { - _queryParams["types"] = types; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CreativesListResponse.fromJson(data)); - } - - /** - * Updates an existing creative. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Creative ID. - * - * Completes with a [Creative]. - * - * 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<Creative> patch(Creative request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - - /** - * Updates an existing creative. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Creative]. - * - * 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<Creative> update(Creative request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creatives'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Creative.fromJson(data)); - } - -} - - -class DimensionValuesResourceApi { - final commons.ApiRequester _requester; - - DimensionValuesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves list of report dimension values for a list of filters. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "100". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * Completes with a [DimensionValueList]. - * - * 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<DimensionValueList> query(DimensionValueRequest request, core.String profileId, {core.int maxResults, core.String pageToken}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dimensionvalues/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DimensionValueList.fromJson(data)); - } - -} - - -class DirectorySiteContactsResourceApi { - final commons.ApiRequester _requester; - - DirectorySiteContactsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site contact by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site contact ID. - * - * Completes with a [DirectorySiteContact]. - * - * 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<DirectorySiteContact> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContact.fromJson(data)); - } - - /** - * Retrieves a list of directory site contacts, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [directorySiteIds] - Select only directory site contacts with these - * directory site IDs. This is a required field. - * - * [ids] - Select only directory site contacts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or email. - * Wildcards (*) are allowed. For example, "directory site contact*2015" will - * return objects with names like "directory site contact June 2015", - * "directory site contact April 2015", or simply "directory site contact - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "directory - * site contact" will match objects with name "my directory site contact", - * "directory site contact 2015", or simply "directory site contact". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySiteContactsListResponse]. - * - * 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<DirectorySiteContactsListResponse> list(core.String profileId, {core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySiteContacts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySiteContactsListResponse.fromJson(data)); - } - -} - - -class DirectorySitesResourceApi { - final commons.ApiRequester _requester; - - DirectorySitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one directory site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Directory site ID. - * - * Completes with a [DirectorySite]. - * - * 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<DirectorySite> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Inserts a new directory site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [DirectorySite]. - * - * 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<DirectorySite> insert(DirectorySite request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySite.fromJson(data)); - } - - /** - * Retrieves a list of directory sites, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only directory sites that accept - * publisher paid placements. This field can be left blank. - * - * [active] - Select only active directory sites. Leave blank to retrieve both - * active and inactive directory sites. - * - * [countryId] - Select only directory sites with this country ID. - * - * [dfpNetworkCode] - Select only directory sites with this DFP network code. - * - * [ids] - Select only directory sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [parentId] - Select only directory sites with this parent ID. - * - * [searchString] - Allows searching for objects by name, ID or URL. Wildcards - * (*) are allowed. For example, "directory site*2015" will return objects - * with names like "directory site June 2015", "directory site April 2015", or - * simply "directory site 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "directory site" will match objects with name "my - * directory site", "directory site 2015" or simply, "directory site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [DirectorySitesListResponse]. - * - * 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<DirectorySitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool active, core.String countryId, core.String dfpNetworkCode, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String parentId, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (countryId != null) { - _queryParams["countryId"] = [countryId]; - } - if (dfpNetworkCode != null) { - _queryParams["dfp_network_code"] = [dfpNetworkCode]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (parentId != null) { - _queryParams["parentId"] = [parentId]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/directorySites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new DirectorySitesListResponse.fromJson(data)); - } - -} - - -class EventTagsResourceApi { - final commons.ApiRequester _requester; - - EventTagsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing event tag. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one event tag by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * 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<EventTag> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Inserts a new event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * 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<EventTag> insert(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Retrieves a list of event tags, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [adId] - Select only event tags that belong to this ad. - * - * [advertiserId] - Select only event tags that belong to this advertiser. - * - * [campaignId] - Select only event tags that belong to this campaign. - * - * [definitionsOnly] - Examine only the specified campaign or advertiser's - * event tags for matching selector criteria. When set to false, the parent - * advertiser and parent campaign of the specified ad or campaign is examined - * as well. In addition, when set to false, the status field is examined as - * well, along with the enabledByDefault field. This parameter can not be set - * to true when adId is specified as ads do not define their own even tags. - * - * [enabled] - Select only enabled event tags. What is considered enabled or - * disabled depends on the definitionsOnly parameter. When definitionsOnly is - * set to true, only the specified advertiser or campaign's event tags' - * enabledByDefault field is examined. When definitionsOnly is set to false, - * the specified ad or specified campaign's parent advertiser's or parent - * campaign's event tags' enabledByDefault and status fields are examined as - * well. - * - * [eventTagTypes] - Select only event tags with the specified event tag - * types. Event tag types can be used to specify whether to use a third-party - * pixel, a third-party JavaScript URL, or a third-party click-through URL for - * either impression or click tracking. - * - * [ids] - Select only event tags with these IDs. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "eventtag*2015" will return objects with names - * like "eventtag June 2015", "eventtag April 2015", or simply "eventtag - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "eventtag" - * will match objects with name "my eventtag", "eventtag 2015", or simply - * "eventtag". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [EventTagsListResponse]. - * - * 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<EventTagsListResponse> list(core.String profileId, {core.String adId, core.String advertiserId, core.String campaignId, core.bool definitionsOnly, core.bool enabled, core.List<core.String> eventTagTypes, core.List<core.String> ids, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (adId != null) { - _queryParams["adId"] = [adId]; - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (definitionsOnly != null) { - _queryParams["definitionsOnly"] = ["${definitionsOnly}"]; - } - if (enabled != null) { - _queryParams["enabled"] = ["${enabled}"]; - } - if (eventTagTypes != null) { - _queryParams["eventTagTypes"] = eventTagTypes; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTagsListResponse.fromJson(data)); - } - - /** - * Updates an existing event tag. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Event tag ID. - * - * Completes with a [EventTag]. - * - * 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<EventTag> patch(EventTag request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - - /** - * Updates an existing event tag. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [EventTag]. - * - * 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<EventTag> update(EventTag request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/eventTags'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new EventTag.fromJson(data)); - } - -} - - -class FilesResourceApi { - final commons.ApiRequester _requester; - - FilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file by its report ID and file ID. - * - * Request parameters: - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * 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 get(core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a user profile. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned, default is - * 'MINE'. - * Possible string values are: - * - "ALL" : All files in account. - * - "MINE" : My files. - * - "SHARED_WITH_ME" : Files shared with me. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * 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<FileList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class FloodlightActivitiesResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivitiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Generates a tag for a floodlight activity. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [floodlightActivityId] - Floodlight activity ID for which we want to - * generate a tag. - * - * Completes with a [FloodlightActivitiesGenerateTagResponse]. - * - * 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<FloodlightActivitiesGenerateTagResponse> generatetag(core.String profileId, {core.String floodlightActivityId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/generatetag'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesGenerateTagResponse.fromJson(data)); - } - - /** - * Gets one floodlight activity by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * 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<FloodlightActivity> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Inserts a new floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * 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<FloodlightActivity> insert(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activities, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activities for the specified - * advertiser ID. Must specify either ids, advertiserId, or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightActivityGroupIds] - Select only floodlight activities with the - * specified floodlight activity group IDs. - * - * [floodlightActivityGroupName] - Select only floodlight activities with the - * specified floodlight activity group name. - * - * [floodlightActivityGroupTagString] - Select only floodlight activities with - * the specified floodlight activity group tag string. - * - * [floodlightActivityGroupType] - Select only floodlight activities with the - * specified floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * [floodlightConfigurationId] - Select only floodlight activities for the - * specified floodlight configuration ID. Must specify either ids, - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activities with the specified IDs. Must - * specify either ids, advertiserId, or floodlightConfigurationId for a - * non-empty result. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivity*2015" will return objects - * with names like "floodlightactivity June 2015", "floodlightactivity April - * 2015", or simply "floodlightactivity 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "floodlightactivity" will match objects with - * name "my floodlightactivity activity", "floodlightactivity 2015", or simply - * "floodlightactivity". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [tagString] - Select only floodlight activities with the specified tag - * string. - * - * Completes with a [FloodlightActivitiesListResponse]. - * - * 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<FloodlightActivitiesListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> floodlightActivityGroupIds, core.String floodlightActivityGroupName, core.String floodlightActivityGroupTagString, core.String floodlightActivityGroupType, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String tagString}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightActivityGroupIds != null) { - _queryParams["floodlightActivityGroupIds"] = floodlightActivityGroupIds; - } - if (floodlightActivityGroupName != null) { - _queryParams["floodlightActivityGroupName"] = [floodlightActivityGroupName]; - } - if (floodlightActivityGroupTagString != null) { - _queryParams["floodlightActivityGroupTagString"] = [floodlightActivityGroupTagString]; - } - if (floodlightActivityGroupType != null) { - _queryParams["floodlightActivityGroupType"] = [floodlightActivityGroupType]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (tagString != null) { - _queryParams["tagString"] = [tagString]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivitiesListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity ID. - * - * Completes with a [FloodlightActivity]. - * - * 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<FloodlightActivity> patch(FloodlightActivity request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - - /** - * Updates an existing floodlight activity. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivity]. - * - * 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<FloodlightActivity> update(FloodlightActivity request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivities'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivity.fromJson(data)); - } - -} - - -class FloodlightActivityGroupsResourceApi { - final commons.ApiRequester _requester; - - FloodlightActivityGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight activity group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * 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<FloodlightActivityGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Inserts a new floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * 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<FloodlightActivityGroup> insert(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Retrieves a list of floodlight activity groups, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only floodlight activity groups with the specified - * advertiser ID. Must specify either advertiserId or - * floodlightConfigurationId for a non-empty result. - * - * [floodlightConfigurationId] - Select only floodlight activity groups with - * the specified floodlight configuration ID. Must specify either - * advertiserId, or floodlightConfigurationId for a non-empty result. - * - * [ids] - Select only floodlight activity groups with the specified IDs. Must - * specify either advertiserId or floodlightConfigurationId for a non-empty - * result. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "floodlightactivitygroup*2015" will return - * objects with names like "floodlightactivitygroup June 2015", - * "floodlightactivitygroup April 2015", or simply "floodlightactivitygroup - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of - * "floodlightactivitygroup" will match objects with name "my - * floodlightactivitygroup activity", "floodlightactivitygroup 2015", or - * simply "floodlightactivitygroup". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only floodlight activity groups with the specified - * floodlight activity group type. - * Possible string values are: - * - "COUNTER" - * - "SALE" - * - * Completes with a [FloodlightActivityGroupsListResponse]. - * - * 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<FloodlightActivityGroupsListResponse> list(core.String profileId, {core.String advertiserId, core.String floodlightConfigurationId, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId != null) { - _queryParams["advertiserId"] = [advertiserId]; - } - if (floodlightConfigurationId != null) { - _queryParams["floodlightConfigurationId"] = [floodlightConfigurationId]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity Group ID. - * - * Completes with a [FloodlightActivityGroup]. - * - * 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<FloodlightActivityGroup> patch(FloodlightActivityGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - - /** - * Updates an existing floodlight activity group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightActivityGroup]. - * - * 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<FloodlightActivityGroup> update(FloodlightActivityGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightActivityGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightActivityGroup.fromJson(data)); - } - -} - - -class FloodlightConfigurationsResourceApi { - final commons.ApiRequester _requester; - - FloodlightConfigurationsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one floodlight configuration by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * 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<FloodlightConfiguration> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Retrieves a list of floodlight configurations, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Set of IDs of floodlight configurations to retrieve. Required - * field; otherwise an empty list will be returned. - * - * Completes with a [FloodlightConfigurationsListResponse]. - * - * 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<FloodlightConfigurationsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfigurationsListResponse.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight configuration ID. - * - * Completes with a [FloodlightConfiguration]. - * - * 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<FloodlightConfiguration> patch(FloodlightConfiguration request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - - /** - * Updates an existing floodlight configuration. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [FloodlightConfiguration]. - * - * 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<FloodlightConfiguration> update(FloodlightConfiguration request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/floodlightConfigurations'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FloodlightConfiguration.fromJson(data)); - } - -} - - -class InventoryItemsResourceApi { - final commons.ApiRequester _requester; - - InventoryItemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one inventory item by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Inventory item ID. - * - * Completes with a [InventoryItem]. - * - * 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<InventoryItem> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItem.fromJson(data)); - } - - /** - * Retrieves a list of inventory items, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [ids] - Select only inventory items with these IDs. - * - * [inPlan] - Select only inventory items that are in plan. - * - * [maxResults] - Maximum number of results to return. - * - * [orderId] - Select only inventory items that belong to specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [siteId] - Select only inventory items that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [type] - Select only inventory items with this type. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - * - * Completes with a [InventoryItemsListResponse]. - * - * 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<InventoryItemsListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.bool inPlan, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.List<core.String> siteId, core.String sortField, core.String sortOrder, core.String type}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (inPlan != null) { - _queryParams["inPlan"] = ["${inPlan}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (type != null) { - _queryParams["type"] = [type]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new InventoryItemsListResponse.fromJson(data)); - } - -} - - -class LandingPagesResourceApi { - final commons.ApiRequester _requester; - - LandingPagesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing campaign landing page. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * 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 delete(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one campaign landing page by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * 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<LandingPage> get(core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Inserts a new landing page for the specified campaign. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * 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<LandingPage> insert(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Retrieves the list of landing pages for the specified campaign. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPagesListResponse]. - * - * 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<LandingPagesListResponse> list(core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPagesListResponse.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * [id] - Landing page ID. - * - * Completes with a [LandingPage]. - * - * 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<LandingPage> patch(LandingPage request, core.String profileId, core.String campaignId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - - /** - * Updates an existing campaign landing page. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Landing page campaign ID. - * - * Completes with a [LandingPage]. - * - * 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<LandingPage> update(LandingPage request, core.String profileId, core.String campaignId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId == null) { - throw new core.ArgumentError("Parameter campaignId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/campaigns/' + commons.Escaper.ecapeVariable('$campaignId') + '/landingPages'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new LandingPage.fromJson(data)); - } - -} - - -class MetrosResourceApi { - final commons.ApiRequester _requester; - - MetrosResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of metros. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MetrosListResponse]. - * - * 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<MetrosListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/metros'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MetrosListResponse.fromJson(data)); - } - -} - - -class MobileCarriersResourceApi { - final commons.ApiRequester _requester; - - MobileCarriersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one mobile carrier by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Mobile carrier ID. - * - * Completes with a [MobileCarrier]. - * - * 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<MobileCarrier> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarrier.fromJson(data)); - } - - /** - * Retrieves a list of mobile carriers. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [MobileCarriersListResponse]. - * - * 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<MobileCarriersListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/mobileCarriers'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new MobileCarriersListResponse.fromJson(data)); - } - -} - - -class OperatingSystemVersionsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemVersionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system version by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Operating system version ID. - * - * Completes with a [OperatingSystemVersion]. - * - * 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<OperatingSystemVersion> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersion.fromJson(data)); - } - - /** - * Retrieves a list of operating system versions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemVersionsListResponse]. - * - * 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<OperatingSystemVersionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystemVersions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemVersionsListResponse.fromJson(data)); - } - -} - - -class OperatingSystemsResourceApi { - final commons.ApiRequester _requester; - - OperatingSystemsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one operating system by DART ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [dartId] - Operating system DART ID. - * - * Completes with a [OperatingSystem]. - * - * 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<OperatingSystem> get(core.String profileId, core.String dartId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (dartId == null) { - throw new core.ArgumentError("Parameter dartId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems/' + commons.Escaper.ecapeVariable('$dartId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystem.fromJson(data)); - } - - /** - * Retrieves a list of operating systems. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [OperatingSystemsListResponse]. - * - * 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<OperatingSystemsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/operatingSystems'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OperatingSystemsListResponse.fromJson(data)); - } - -} - - -class OrderDocumentsResourceApi { - final commons.ApiRequester _requester; - - OrderDocumentsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order document by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [id] - Order document ID. - * - * Completes with a [OrderDocument]. - * - * 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<OrderDocument> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocument.fromJson(data)); - } - - /** - * Retrieves a list of order documents, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for order documents. - * - * [approved] - Select only order documents that have been approved by at - * least one user. - * - * [ids] - Select only order documents with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [orderId] - Select only order documents for specified orders. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for order documents by name or ID. - * Wildcards (*) are allowed. For example, "orderdocument*2015" will return - * order documents with names like "orderdocument June 2015", "orderdocument - * April 2015", or simply "orderdocument 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "orderdocument" will match order documents with - * name "my orderdocument", "orderdocument 2015", or simply "orderdocument". - * - * [siteId] - Select only order documents that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrderDocumentsListResponse]. - * - * 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<OrderDocumentsListResponse> list(core.String profileId, core.String projectId, {core.bool approved, core.List<core.String> ids, core.int maxResults, core.List<core.String> orderId, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (orderId != null) { - _queryParams["orderId"] = orderId; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orderDocuments'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrderDocumentsListResponse.fromJson(data)); - } - -} - - -class OrdersResourceApi { - final commons.ApiRequester _requester; - - OrdersResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one order by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [id] - Order ID. - * - * Completes with a [Order]. - * - * 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<Order> get(core.String profileId, core.String projectId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Order.fromJson(data)); - } - - /** - * Retrieves a list of orders, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [projectId] - Project ID for orders. - * - * [ids] - Select only orders with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for orders by name or ID. Wildcards (*) - * are allowed. For example, "order*2015" will return orders with names like - * "order June 2015", "order April 2015", or simply "order 2015". Most of the - * searches also add wildcards implicitly at the start and the end of the - * search string. For example, a search string of "order" will match orders - * with name "my order", "order 2015", or simply "order". - * - * [siteId] - Select only orders that are associated with these site IDs. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [OrdersListResponse]. - * - * 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<OrdersListResponse> list(core.String profileId, core.String projectId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.List<core.String> siteId, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (projectId == null) { - throw new core.ArgumentError("Parameter projectId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteId != null) { - _queryParams["siteId"] = siteId; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/orders'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new OrdersListResponse.fromJson(data)); - } - -} - - -class PlacementGroupsResourceApi { - final commons.ApiRequester _requester; - - PlacementGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one placement group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * 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<PlacementGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Inserts a new placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * 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<PlacementGroup> insert(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Retrieves a list of placement groups, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placement groups that belong to these - * advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placement groups that belong to these - * campaigns. - * - * [contentCategoryIds] - Select only placement groups that are associated - * with these content categories. - * - * [directorySiteIds] - Select only placement groups that are associated with - * these directory sites. - * - * [ids] - Select only placement groups with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [placementGroupType] - Select only placement groups belonging with this - * group type. A package is a simple group of placements that acts as a single - * pricing point for a group of tags. A roadblock is a group of placements - * that not only acts as a single pricing point but also assumes that all the - * tags in it will be served at the same time. A roadblock requires one of its - * assigned placements to be marked as primary for reporting. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - * - * [placementStrategyIds] - Select only placement groups that are associated - * with these placement strategies. - * - * [pricingTypes] - Select only placement groups with these pricing types. - * - * [searchString] - Allows searching for placement groups by name or ID. - * Wildcards (*) are allowed. For example, "placement*2015" will return - * placement groups with names like "placement group June 2015", "placement - * group May 2015", or simply "placements 2015". Most of the searches also add - * wildcards implicitly at the start and the end of the search string. For - * example, a search string of "placementgroup" will match placement groups - * with name "my placementgroup", "placementgroup 2015", or simply - * "placementgroup". - * - * [siteIds] - Select only placement groups that are associated with these - * sites. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementGroupsListResponse]. - * - * 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<PlacementGroupsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String placementGroupType, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (placementGroupType != null) { - _queryParams["placementGroupType"] = [placementGroupType]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroupsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement group. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement group ID. - * - * Completes with a [PlacementGroup]. - * - * 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<PlacementGroup> patch(PlacementGroup request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - - /** - * Updates an existing placement group. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementGroup]. - * - * 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<PlacementGroup> update(PlacementGroup request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementGroups'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementGroup.fromJson(data)); - } - -} - - -class PlacementStrategiesResourceApi { - final commons.ApiRequester _requester; - - PlacementStrategiesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing placement strategy. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one placement strategy by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * 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<PlacementStrategy> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Inserts a new placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * 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<PlacementStrategy> insert(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Retrieves a list of placement strategies, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only placement strategies with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "placementstrategy*2015" will return objects with - * names like "placementstrategy June 2015", "placementstrategy April 2015", - * or simply "placementstrategy 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "placementstrategy" will match objects with name "my - * placementstrategy", "placementstrategy 2015", or simply - * "placementstrategy". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementStrategiesListResponse]. - * - * 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<PlacementStrategiesListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategiesListResponse.fromJson(data)); - } - - /** - * Updates an existing placement strategy. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement strategy ID. - * - * Completes with a [PlacementStrategy]. - * - * 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<PlacementStrategy> patch(PlacementStrategy request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - - /** - * Updates an existing placement strategy. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlacementStrategy]. - * - * 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<PlacementStrategy> update(PlacementStrategy request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placementStrategies'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementStrategy.fromJson(data)); - } - -} - - -class PlacementsResourceApi { - final commons.ApiRequester _requester; - - PlacementsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Generates tags for a placement. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [campaignId] - Generate placements belonging to this campaign. This is a - * required field. - * - * [placementIds] - Generate tags for these placements. - * - * [tagFormats] - Tag formats to generate for these placements. - * - * Completes with a [PlacementsGenerateTagsResponse]. - * - * 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<PlacementsGenerateTagsResponse> generatetags(core.String profileId, {core.String campaignId, core.List<core.String> placementIds, core.List<core.String> tagFormats}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (campaignId != null) { - _queryParams["campaignId"] = [campaignId]; - } - if (placementIds != null) { - _queryParams["placementIds"] = placementIds; - } - if (tagFormats != null) { - _queryParams["tagFormats"] = tagFormats; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/generatetags'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsGenerateTagsResponse.fromJson(data)); - } - - /** - * Gets one placement by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * 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<Placement> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Inserts a new placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * 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<Placement> insert(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Retrieves a list of placements, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only placements that belong to these advertisers. - * - * [archived] - Select only archived placements. Don't set this field to - * select both archived and non-archived placements. - * - * [campaignIds] - Select only placements that belong to these campaigns. - * - * [compatibilities] - Select only placements that are associated with these - * compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either - * on desktop or on mobile devices for regular or interstitial ads - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. - * - * [contentCategoryIds] - Select only placements that are associated with - * these content categories. - * - * [directorySiteIds] - Select only placements that are associated with these - * directory sites. - * - * [groupIds] - Select only placements that belong to these placement groups. - * - * [ids] - Select only placements with these IDs. - * - * [maxEndDate] - Select only placements or placement groups whose end date is - * on or before the specified maxEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [maxResults] - Maximum number of results to return. - * - * [maxStartDate] - Select only placements or placement groups whose start - * date is on or before the specified maxStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [minEndDate] - Select only placements or placement groups whose end date is - * on or after the specified minEndDate. The date should be formatted as - * "yyyy-MM-dd". - * - * [minStartDate] - Select only placements or placement groups whose start - * date is on or after the specified minStartDate. The date should be - * formatted as "yyyy-MM-dd". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [paymentSource] - Select only placements with this payment source. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - * - * [placementStrategyIds] - Select only placements that are associated with - * these placement strategies. - * - * [pricingTypes] - Select only placements with these pricing types. - * - * [searchString] - Allows searching for placements by name or ID. Wildcards - * (*) are allowed. For example, "placement*2015" will return placements with - * names like "placement June 2015", "placement May 2015", or simply - * "placements 2015". Most of the searches also add wildcards implicitly at - * the start and the end of the search string. For example, a search string of - * "placement" will match placements with name "my placement", "placement - * 2015", or simply "placement". - * - * [siteIds] - Select only placements that are associated with these sites. - * - * [sizeIds] - Select only placements that are associated with these sizes. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [PlacementsListResponse]. - * - * 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<PlacementsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.bool archived, core.List<core.String> campaignIds, core.List<core.String> compatibilities, core.List<core.String> contentCategoryIds, core.List<core.String> directorySiteIds, core.List<core.String> groupIds, core.List<core.String> ids, core.String maxEndDate, core.int maxResults, core.String maxStartDate, core.String minEndDate, core.String minStartDate, core.String pageToken, core.String paymentSource, core.List<core.String> placementStrategyIds, core.List<core.String> pricingTypes, core.String searchString, core.List<core.String> siteIds, core.List<core.String> sizeIds, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (archived != null) { - _queryParams["archived"] = ["${archived}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (compatibilities != null) { - _queryParams["compatibilities"] = compatibilities; - } - if (contentCategoryIds != null) { - _queryParams["contentCategoryIds"] = contentCategoryIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (groupIds != null) { - _queryParams["groupIds"] = groupIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxEndDate != null) { - _queryParams["maxEndDate"] = [maxEndDate]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (maxStartDate != null) { - _queryParams["maxStartDate"] = [maxStartDate]; - } - if (minEndDate != null) { - _queryParams["minEndDate"] = [minEndDate]; - } - if (minStartDate != null) { - _queryParams["minStartDate"] = [minStartDate]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (paymentSource != null) { - _queryParams["paymentSource"] = [paymentSource]; - } - if (placementStrategyIds != null) { - _queryParams["placementStrategyIds"] = placementStrategyIds; - } - if (pricingTypes != null) { - _queryParams["pricingTypes"] = pricingTypes; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (siteIds != null) { - _queryParams["siteIds"] = siteIds; - } - if (sizeIds != null) { - _queryParams["sizeIds"] = sizeIds; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlacementsListResponse.fromJson(data)); - } - - /** - * Updates an existing placement. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Placement ID. - * - * Completes with a [Placement]. - * - * 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<Placement> patch(Placement request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - - /** - * Updates an existing placement. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Placement]. - * - * 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<Placement> update(Placement request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/placements'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Placement.fromJson(data)); - } - -} - - -class PlatformTypesResourceApi { - final commons.ApiRequester _requester; - - PlatformTypesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one platform type by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Platform type ID. - * - * Completes with a [PlatformType]. - * - * 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<PlatformType> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformType.fromJson(data)); - } - - /** - * Retrieves a list of platform types. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PlatformTypesListResponse]. - * - * 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<PlatformTypesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/platformTypes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PlatformTypesListResponse.fromJson(data)); - } - -} - - -class PostalCodesResourceApi { - final commons.ApiRequester _requester; - - PostalCodesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one postal code by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [code] - Postal code ID. - * - * Completes with a [PostalCode]. - * - * 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<PostalCode> get(core.String profileId, core.String code) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (code == null) { - throw new core.ArgumentError("Parameter code is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes/' + commons.Escaper.ecapeVariable('$code'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCode.fromJson(data)); - } - - /** - * Retrieves a list of postal codes. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [PostalCodesListResponse]. - * - * 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<PostalCodesListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/postalCodes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new PostalCodesListResponse.fromJson(data)); - } - -} - - -class ProjectsResourceApi { - final commons.ApiRequester _requester; - - ProjectsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one project by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Project ID. - * - * Completes with a [Project]. - * - * 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<Project> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Project.fromJson(data)); - } - - /** - * Retrieves a list of projects, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserIds] - Select only projects with these advertiser IDs. - * - * [ids] - Select only projects with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for projects by name or ID. Wildcards (*) - * are allowed. For example, "project*2015" will return projects with names - * like "project June 2015", "project April 2015", or simply "project 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "project" will match - * projects with name "my project", "project 2015", or simply "project". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [ProjectsListResponse]. - * - * 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<ProjectsListResponse> list(core.String profileId, {core.List<core.String> advertiserIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserIds != null) { - _queryParams["advertiserIds"] = advertiserIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ProjectsListResponse.fromJson(data)); - } - -} - - -class RegionsResourceApi { - final commons.ApiRequester _requester; - - RegionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of regions. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RegionsListResponse]. - * - * 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<RegionsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/regions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RegionsListResponse.fromJson(data)); - } - -} - - -class RemarketingListSharesResourceApi { - final commons.ApiRequester _requester; - - RemarketingListSharesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list share by remarketing list ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * 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<RemarketingListShare> get(core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares/' + commons.Escaper.ecapeVariable('$remarketingListId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. This method supports patch - * semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [remarketingListId] - Remarketing list ID. - * - * Completes with a [RemarketingListShare]. - * - * 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<RemarketingListShare> patch(RemarketingListShare request, core.String profileId, core.String remarketingListId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (remarketingListId == null) { - throw new core.ArgumentError("Parameter remarketingListId is required."); - } - _queryParams["remarketingListId"] = [remarketingListId]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - - /** - * Updates an existing remarketing list share. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingListShare]. - * - * 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<RemarketingListShare> update(RemarketingListShare request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingListShares'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListShare.fromJson(data)); - } - -} - - -class RemarketingListsResourceApi { - final commons.ApiRequester _requester; - - RemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * 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<RemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Inserts a new remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * 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<RemarketingList> insert(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of remarketing lists, possibly filtered. This method - * supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only remarketing lists owned by this advertiser. - * - * [active] - Select only active or only inactive remarketing lists. - * - * [floodlightActivityId] - Select only remarketing lists that have this - * floodlight activity ID. - * - * [maxResults] - Maximum number of results to return. - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [RemarketingListsListResponse]. - * - * 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<RemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.String floodlightActivityId, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (floodlightActivityId != null) { - _queryParams["floodlightActivityId"] = [floodlightActivityId]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingListsListResponse.fromJson(data)); - } - - /** - * Updates an existing remarketing list. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [RemarketingList]. - * - * 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<RemarketingList> patch(RemarketingList request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - - /** - * Updates an existing remarketing list. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [RemarketingList]. - * - * 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<RemarketingList> update(RemarketingList request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/remarketingLists'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new RemarketingList.fromJson(data)); - } - -} - - -class ReportsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi get compatibleFields => new ReportsCompatibleFieldsResourceApi(_requester); - ReportsFilesResourceApi get files => new ReportsFilesResourceApi(_requester); - - ReportsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * 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 delete(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Retrieves a report by its ID. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * 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<Report> get(core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Creates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [Report]. - * - * 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<Report> insert(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Retrieves list of reports. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [scope] - The scope that defines which results are returned, default is - * 'MINE'. - * Possible string values are: - * - "ALL" : All reports in account. - * - "MINE" : My reports. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by report ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastModifiedTime' field. - * - "NAME" : Sort by name of reports. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [ReportList]. - * - * 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<ReportList> list(core.String profileId, {core.int maxResults, core.String pageToken, core.String scope, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (scope != null) { - _queryParams["scope"] = [scope]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ReportList.fromJson(data)); - } - - /** - * Updates a report. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * 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<Report> patch(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - - /** - * Runs a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [synchronous] - If set and true, tries to run the report synchronously. - * - * Completes with a [File]. - * - * 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<File> run(core.String profileId, core.String reportId, {core.bool synchronous}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (synchronous != null) { - _queryParams["synchronous"] = ["${synchronous}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/run'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new File.fromJson(data)); - } - - /** - * Updates a report. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * [reportId] - The ID of the report. - * - * Completes with a [Report]. - * - * 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<Report> update(Report request, core.String profileId, core.String reportId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId'); - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Report.fromJson(data)); - } - -} - - -class ReportsCompatibleFieldsResourceApi { - final commons.ApiRequester _requester; - - ReportsCompatibleFieldsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Returns the fields that are compatible to be selected in the respective - * sections of a report criteria, given the fields already selected in the - * input report and user permissions. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - The DFA user profile ID. - * - * Completes with a [CompatibleFields]. - * - * 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<CompatibleFields> query(Report request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/compatiblefields/query'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new CompatibleFields.fromJson(data)); - } - -} - - -class ReportsFilesResourceApi { - final commons.ApiRequester _requester; - - ReportsFilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a report file. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the report. - * - * [fileId] - The ID of the report file. - * - * [downloadOptions] - Options for downloading. A download can be either a - * Metadata (default) or Media download. Partial Media downloads are possible - * as well. - * - * Completes with a - * - * - [File] for Metadata downloads (see [downloadOptions]). - * - * - [commons.Media] for Media downloads (see [downloadOptions]). - * - * 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 get(core.String profileId, core.String reportId, core.String fileId, {commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (fileId == null) { - throw new core.ArgumentError("Parameter fileId is required."); - } - - _downloadOptions = downloadOptions; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files/' + commons.Escaper.ecapeVariable('$fileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - if (_downloadOptions == null || - _downloadOptions == commons.DownloadOptions.Metadata) { - return _response.then((data) => new File.fromJson(data)); - } else { - return _response; - } - } - - /** - * Lists files for a report. - * - * Request parameters: - * - * [profileId] - The DFA profile ID. - * - * [reportId] - The ID of the parent report. - * - * [maxResults] - Maximum number of results to return. - * Value must be between "0" and "10". - * - * [pageToken] - The value of the nextToken from the previous result page. - * - * [sortField] - The field by which to sort the list. - * Possible string values are: - * - "ID" : Sort by file ID. - * - "LAST_MODIFIED_TIME" : Sort by 'lastmodifiedAt' field. - * - * [sortOrder] - Order of sorted results, default is 'DESCENDING'. - * Possible string values are: - * - "ASCENDING" : Ascending order. - * - "DESCENDING" : Descending order. - * - * Completes with a [FileList]. - * - * 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<FileList> list(core.String profileId, core.String reportId, {core.int maxResults, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (reportId == null) { - throw new core.ArgumentError("Parameter reportId is required."); - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/reports/' + commons.Escaper.ecapeVariable('$reportId') + '/files'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new FileList.fromJson(data)); - } - -} - - -class SitesResourceApi { - final commons.ApiRequester _requester; - - SitesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one site by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * 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<Site> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Inserts a new site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * 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<Site> insert(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Retrieves a list of sites, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [acceptsInStreamVideoPlacements] - This search filter is no longer - * supported and will have no effect on the results returned. - * - * [acceptsInterstitialPlacements] - This search filter is no longer supported - * and will have no effect on the results returned. - * - * [acceptsPublisherPaidPlacements] - Select only sites that accept publisher - * paid placements. - * - * [adWordsSite] - Select only AdWords sites. - * - * [approved] - Select only approved sites. - * - * [campaignIds] - Select only sites with these campaign IDs. - * - * [directorySiteIds] - Select only sites with these directory site IDs. - * - * [ids] - Select only sites with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name, ID or keyName. - * Wildcards (*) are allowed. For example, "site*2015" will return objects - * with names like "site June 2015", "site April 2015", or simply "site 2015". - * Most of the searches also add wildcards implicitly at the start and the end - * of the search string. For example, a search string of "site" will match - * objects with name "my site", "site 2015", or simply "site". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only sites with this subaccount ID. - * - * [unmappedSite] - Select only sites that have not been mapped to a directory - * site. - * - * Completes with a [SitesListResponse]. - * - * 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<SitesListResponse> list(core.String profileId, {core.bool acceptsInStreamVideoPlacements, core.bool acceptsInterstitialPlacements, core.bool acceptsPublisherPaidPlacements, core.bool adWordsSite, core.bool approved, core.List<core.String> campaignIds, core.List<core.String> directorySiteIds, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId, core.bool unmappedSite}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (acceptsInStreamVideoPlacements != null) { - _queryParams["acceptsInStreamVideoPlacements"] = ["${acceptsInStreamVideoPlacements}"]; - } - if (acceptsInterstitialPlacements != null) { - _queryParams["acceptsInterstitialPlacements"] = ["${acceptsInterstitialPlacements}"]; - } - if (acceptsPublisherPaidPlacements != null) { - _queryParams["acceptsPublisherPaidPlacements"] = ["${acceptsPublisherPaidPlacements}"]; - } - if (adWordsSite != null) { - _queryParams["adWordsSite"] = ["${adWordsSite}"]; - } - if (approved != null) { - _queryParams["approved"] = ["${approved}"]; - } - if (campaignIds != null) { - _queryParams["campaignIds"] = campaignIds; - } - if (directorySiteIds != null) { - _queryParams["directorySiteIds"] = directorySiteIds; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - if (unmappedSite != null) { - _queryParams["unmappedSite"] = ["${unmappedSite}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SitesListResponse.fromJson(data)); - } - - /** - * Updates an existing site. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Site ID. - * - * Completes with a [Site]. - * - * 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<Site> patch(Site request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - - /** - * Updates an existing site. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Site]. - * - * 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<Site> update(Site request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sites'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Site.fromJson(data)); - } - -} - - -class SizesResourceApi { - final commons.ApiRequester _requester; - - SizesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one size by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Size ID. - * - * Completes with a [Size]. - * - * 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<Size> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Inserts a new size. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Size]. - * - * 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<Size> insert(Size request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Size.fromJson(data)); - } - - /** - * Retrieves a list of sizes, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [height] - Select only sizes with this height. - * - * [iabStandard] - Select only IAB standard sizes. - * - * [ids] - Select only sizes with these IDs. - * - * [width] - Select only sizes with this width. - * - * Completes with a [SizesListResponse]. - * - * 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<SizesListResponse> list(core.String profileId, {core.int height, core.bool iabStandard, core.List<core.String> ids, core.int width}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (height != null) { - _queryParams["height"] = ["${height}"]; - } - if (iabStandard != null) { - _queryParams["iabStandard"] = ["${iabStandard}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (width != null) { - _queryParams["width"] = ["${width}"]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/sizes'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SizesListResponse.fromJson(data)); - } - -} - - -class SubaccountsResourceApi { - final commons.ApiRequester _requester; - - SubaccountsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one subaccount by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * 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<Subaccount> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Inserts a new subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * 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<Subaccount> insert(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Gets a list of subaccounts, possibly filtered. This method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only subaccounts with these IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "subaccount*2015" will return objects with names - * like "subaccount June 2015", "subaccount April 2015", or simply "subaccount - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "subaccount" - * will match objects with name "my subaccount", "subaccount 2015", or simply - * "subaccount". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [SubaccountsListResponse]. - * - * 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<SubaccountsListResponse> list(core.String profileId, {core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new SubaccountsListResponse.fromJson(data)); - } - - /** - * Updates an existing subaccount. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Subaccount ID. - * - * Completes with a [Subaccount]. - * - * 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<Subaccount> patch(Subaccount request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - - /** - * Updates an existing subaccount. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [Subaccount]. - * - * 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<Subaccount> update(Subaccount request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/subaccounts'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new Subaccount.fromJson(data)); - } - -} - - -class TargetableRemarketingListsResourceApi { - final commons.ApiRequester _requester; - - TargetableRemarketingListsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one remarketing list by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Remarketing list ID. - * - * Completes with a [TargetableRemarketingList]. - * - * 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<TargetableRemarketingList> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingList.fromJson(data)); - } - - /** - * Retrieves a list of targetable remarketing lists, possibly filtered. This - * method supports paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [advertiserId] - Select only targetable remarketing lists targetable by - * these advertisers. - * - * [active] - Select only active or only inactive targetable remarketing - * lists. - * - * [maxResults] - Maximum number of results to return. - * - * [name] - Allows searching for objects by name or ID. Wildcards (*) are - * allowed. For example, "remarketing list*2015" will return objects with - * names like "remarketing list June 2015", "remarketing list April 2015", or - * simply "remarketing list 2015". Most of the searches also add wildcards - * implicitly at the start and the end of the search string. For example, a - * search string of "remarketing list" will match objects with name "my - * remarketing list", "remarketing list 2015", or simply "remarketing list". - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * Completes with a [TargetableRemarketingListsListResponse]. - * - * 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<TargetableRemarketingListsListResponse> list(core.String profileId, core.String advertiserId, {core.bool active, core.int maxResults, core.String name, core.String pageToken, core.String sortField, core.String sortOrder}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (advertiserId == null) { - throw new core.ArgumentError("Parameter advertiserId is required."); - } - _queryParams["advertiserId"] = [advertiserId]; - if (active != null) { - _queryParams["active"] = ["${active}"]; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/targetableRemarketingLists'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new TargetableRemarketingListsListResponse.fromJson(data)); - } - -} - - -class UserProfilesResourceApi { - final commons.ApiRequester _requester; - - UserProfilesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user profile by ID. - * - * Request parameters: - * - * [profileId] - The user profile ID. - * - * Completes with a [UserProfile]. - * - * 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<UserProfile> get(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfile.fromJson(data)); - } - - /** - * Retrieves list of user profiles for a user. - * - * Request parameters: - * - * Completes with a [UserProfileList]. - * - * 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<UserProfileList> list() { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - - _url = 'userprofiles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserProfileList.fromJson(data)); - } - -} - - -class UserRolePermissionGroupsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionGroupsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission group by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission group ID. - * - * Completes with a [UserRolePermissionGroup]. - * - * 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<UserRolePermissionGroup> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroup.fromJson(data)); - } - - /** - * Gets a list of all supported user role permission groups. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRolePermissionGroupsListResponse]. - * - * 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<UserRolePermissionGroupsListResponse> list(core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissionGroups'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionGroupsListResponse.fromJson(data)); - } - -} - - -class UserRolePermissionsResourceApi { - final commons.ApiRequester _requester; - - UserRolePermissionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Gets one user role permission by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role permission ID. - * - * Completes with a [UserRolePermission]. - * - * 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<UserRolePermission> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermission.fromJson(data)); - } - - /** - * Gets a list of user role permissions, possibly filtered. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [ids] - Select only user role permissions with these IDs. - * - * Completes with a [UserRolePermissionsListResponse]. - * - * 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<UserRolePermissionsListResponse> list(core.String profileId, {core.List<core.String> ids}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (ids != null) { - _queryParams["ids"] = ids; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRolePermissions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolePermissionsListResponse.fromJson(data)); - } - -} - - -class UserRolesResourceApi { - final commons.ApiRequester _requester; - - UserRolesResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Deletes an existing user role. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * 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 delete(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _downloadOptions = null; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "DELETE", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => null); - } - - /** - * Gets one user role by ID. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * 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<UserRole> get(core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles/' + commons.Escaper.ecapeVariable('$id'); - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Inserts a new user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * 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<UserRole> insert(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "POST", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Retrieves a list of user roles, possibly filtered. This method supports - * paging. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [accountUserRoleOnly] - Select only account level user roles not associated - * with any specific subaccount. - * - * [ids] - Select only user roles with the specified IDs. - * - * [maxResults] - Maximum number of results to return. - * - * [pageToken] - Value of the nextPageToken from the previous result page. - * - * [searchString] - Allows searching for objects by name or ID. Wildcards (*) - * are allowed. For example, "userrole*2015" will return objects with names - * like "userrole June 2015", "userrole April 2015", or simply "userrole - * 2015". Most of the searches also add wildcards implicitly at the start and - * the end of the search string. For example, a search string of "userrole" - * will match objects with name "my userrole", "userrole 2015", or simply - * "userrole". - * - * [sortField] - Field by which to sort the list. - * Possible string values are: - * - "ID" - * - "NAME" - * - * [sortOrder] - Order of sorted results, default is ASCENDING. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - * - * [subaccountId] - Select only user roles that belong to this subaccount. - * - * Completes with a [UserRolesListResponse]. - * - * 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<UserRolesListResponse> list(core.String profileId, {core.bool accountUserRoleOnly, core.List<core.String> ids, core.int maxResults, core.String pageToken, core.String searchString, core.String sortField, core.String sortOrder, core.String subaccountId}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (accountUserRoleOnly != null) { - _queryParams["accountUserRoleOnly"] = ["${accountUserRoleOnly}"]; - } - if (ids != null) { - _queryParams["ids"] = ids; - } - if (maxResults != null) { - _queryParams["maxResults"] = ["${maxResults}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } - if (searchString != null) { - _queryParams["searchString"] = [searchString]; - } - if (sortField != null) { - _queryParams["sortField"] = [sortField]; - } - if (sortOrder != null) { - _queryParams["sortOrder"] = [sortOrder]; - } - if (subaccountId != null) { - _queryParams["subaccountId"] = [subaccountId]; - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRolesListResponse.fromJson(data)); - } - - /** - * Updates an existing user role. This method supports patch semantics. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - User role ID. - * - * Completes with a [UserRole]. - * - * 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<UserRole> patch(UserRole request, core.String profileId, core.String id) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - if (id == null) { - throw new core.ArgumentError("Parameter id is required."); - } - _queryParams["id"] = [id]; - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PATCH", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - - /** - * Updates an existing user role. - * - * [request] - The metadata request object. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * Completes with a [UserRole]. - * - * 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<UserRole> update(UserRole request, core.String profileId) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (request != null) { - _body = convert.JSON.encode((request).toJson()); - } - if (profileId == null) { - throw new core.ArgumentError("Parameter profileId is required."); - } - - _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/userRoles'; - - var _response = _requester.request(_url, - "PUT", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new UserRole.fromJson(data)); - } - -} - - - -/** Contains properties of a DCM account. */ -class Account { - /** Account permissions assigned to this account. */ - core.List<core.String> accountPermissionIds; - /** - * Profile for this account. This is a read-only field that can be left blank. - * Possible string values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.String accountProfile; - /** Whether this account is active. */ - core.bool active; - /** - * Maximum number of active ads allowed for this account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** - * Whether to serve creatives with Active View tags. If disabled, viewability - * data will not be available for any impressions. - */ - core.bool activeViewOptOut; - /** User role permissions available to the user roles of this account. */ - core.List<core.String> availablePermissionIds; - /** - * Whether campaigns created in this account will be enabled for comScore vCE - * by default. - */ - core.bool comscoreVceEnabled; - /** ID of the country associated with this account. */ - core.String countryId; - /** - * ID of currency associated with this account. This is a required field. - * Acceptable values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - */ - core.String currencyId; - /** Default placement dimensions for this account. */ - core.String defaultCreativeSizeId; - /** Description of this account. */ - core.String description; - /** ID of this account. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#account". - */ - core.String kind; - /** - * Locale of this account. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** Maximum image size allowed for this account. */ - core.String maximumImageSize; - /** - * Name of this account. This is a required field, and must be less than 128 - * characters long and be globally unique. - */ - core.String name; - /** - * Whether campaigns created in this account will be enabled for Nielsen OCR - * reach ratings by default. - */ - core.bool nielsenOcrEnabled; - /** Reporting configuration of this account. */ - ReportsConfiguration reportsConfiguration; - /** - * File size limit in kilobytes of Rich Media teaser creatives. Must be - * between 1 and 10240. - */ - core.String teaserSizeLimit; - - Account(); - - Account.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionIds")) { - accountPermissionIds = _json["accountPermissionIds"]; - } - if (_json.containsKey("accountProfile")) { - accountProfile = _json["accountProfile"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("comscoreVceEnabled")) { - comscoreVceEnabled = _json["comscoreVceEnabled"]; - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("defaultCreativeSizeId")) { - defaultCreativeSizeId = _json["defaultCreativeSizeId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("maximumImageSize")) { - maximumImageSize = _json["maximumImageSize"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("reportsConfiguration")) { - reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsConfiguration"]); - } - if (_json.containsKey("teaserSizeLimit")) { - teaserSizeLimit = _json["teaserSizeLimit"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionIds != null) { - _json["accountPermissionIds"] = accountPermissionIds; - } - if (accountProfile != null) { - _json["accountProfile"] = accountProfile; - } - if (active != null) { - _json["active"] = active; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (comscoreVceEnabled != null) { - _json["comscoreVceEnabled"] = comscoreVceEnabled; - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (defaultCreativeSizeId != null) { - _json["defaultCreativeSizeId"] = defaultCreativeSizeId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (maximumImageSize != null) { - _json["maximumImageSize"] = maximumImageSize; - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (reportsConfiguration != null) { - _json["reportsConfiguration"] = (reportsConfiguration).toJson(); - } - if (teaserSizeLimit != null) { - _json["teaserSizeLimit"] = teaserSizeLimit; - } - return _json; - } -} - -/** Gets a summary of active ads in an account. */ -class AccountActiveAdSummary { - /** ID of the account. */ - core.String accountId; - /** Ads that have been activated for the account */ - core.String activeAds; - /** - * Maximum number of active ads allowed for the account. - * Possible string values are: - * - "ACTIVE_ADS_TIER_100K" - * - "ACTIVE_ADS_TIER_200K" - * - "ACTIVE_ADS_TIER_300K" - * - "ACTIVE_ADS_TIER_40K" - * - "ACTIVE_ADS_TIER_500K" - * - "ACTIVE_ADS_TIER_750K" - * - "ACTIVE_ADS_TIER_75K" - */ - core.String activeAdsLimitTier; - /** Ads that can be activated for the account. */ - core.String availableAds; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountActiveAdSummary". - */ - core.String kind; - - AccountActiveAdSummary(); - - AccountActiveAdSummary.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("activeAds")) { - activeAds = _json["activeAds"]; - } - if (_json.containsKey("activeAdsLimitTier")) { - activeAdsLimitTier = _json["activeAdsLimitTier"]; - } - if (_json.containsKey("availableAds")) { - availableAds = _json["availableAds"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (activeAds != null) { - _json["activeAds"] = activeAds; - } - if (activeAdsLimitTier != null) { - _json["activeAdsLimitTier"] = activeAdsLimitTier; - } - if (availableAds != null) { - _json["availableAds"] = availableAds; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountPermissions contains information about a particular account - * permission. Some features of DCM require an account permission to be present - * in the account. - */ -class AccountPermission { - /** - * Account profiles associated with this account permission. - * - * Possible values are: - * - "ACCOUNT_PROFILE_BASIC" - * - "ACCOUNT_PROFILE_STANDARD" - */ - core.List<core.String> accountProfiles; - /** ID of this account permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermission". - */ - core.String kind; - /** - * Administrative level required to enable this account permission. - * Possible string values are: - * - "ADMINISTRATOR" - * - "USER" - */ - core.String level; - /** Name of this account permission. */ - core.String name; - /** Permission group of this account permission. */ - core.String permissionGroupId; - - AccountPermission(); - - AccountPermission.fromJson(core.Map _json) { - if (_json.containsKey("accountProfiles")) { - accountProfiles = _json["accountProfiles"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("level")) { - level = _json["level"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountProfiles != null) { - _json["accountProfiles"] = accountProfiles; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (level != null) { - _json["level"] = level; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** - * AccountPermissionGroups contains a mapping of permission group IDs to names. - * A permission group is a grouping of account permissions. - */ -class AccountPermissionGroup { - /** ID of this account permission group. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroup". - */ - core.String kind; - /** Name of this account permission group. */ - core.String name; - - AccountPermissionGroup(); - - AccountPermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Account Permission Group List Response */ -class AccountPermissionGroupsListResponse { - /** Account permission group collection. */ - core.List<AccountPermissionGroup> accountPermissionGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionGroupsListResponse". - */ - core.String kind; - - AccountPermissionGroupsListResponse(); - - AccountPermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissionGroups")) { - accountPermissionGroups = _json["accountPermissionGroups"].map((value) => new AccountPermissionGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissionGroups != null) { - _json["accountPermissionGroups"] = accountPermissionGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Account Permission List Response */ -class AccountPermissionsListResponse { - /** Account permission collection. */ - core.List<AccountPermission> accountPermissions; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountPermissionsListResponse". - */ - core.String kind; - - AccountPermissionsListResponse(); - - AccountPermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountPermissions")) { - accountPermissions = _json["accountPermissions"].map((value) => new AccountPermission.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountPermissions != null) { - _json["accountPermissions"] = accountPermissions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * AccountUserProfiles contains properties of a DCM user profile. This resource - * is specifically for managing user profiles, whereas UserProfiles is for - * accessing the API. - */ -class AccountUserProfile { - /** - * Account ID of the user profile. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this user profile is active. This defaults to false, and must be - * set true on insert for the user profile to be usable. - */ - core.bool active; - /** - * Filter that describes which advertisers are visible to the user profile. - */ - ObjectFilter advertiserFilter; - /** Filter that describes which campaigns are visible to the user profile. */ - ObjectFilter campaignFilter; - /** Comments for this user profile. */ - core.String comments; - /** - * Email of the user profile. The email addresss must be linked to a Google - * Account. This field is required on insertion and is read-only after - * insertion. - */ - core.String email; - /** ID of the user profile. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfile". - */ - core.String kind; - /** - * Locale of the user profile. This is a required field. - * Acceptable values are: - * - "cs" (Czech) - * - "de" (German) - * - "en" (English) - * - "en-GB" (English United Kingdom) - * - "es" (Spanish) - * - "fr" (French) - * - "it" (Italian) - * - "ja" (Japanese) - * - "ko" (Korean) - * - "pl" (Polish) - * - "pt-BR" (Portuguese Brazil) - * - "ru" (Russian) - * - "sv" (Swedish) - * - "tr" (Turkish) - * - "zh-CN" (Chinese Simplified) - * - "zh-TW" (Chinese Traditional) - */ - core.String locale; - /** - * Name of the user profile. This is a required field. Must be less than 64 - * characters long, must be globally unique, and cannot contain whitespace or - * any of the following characters: "&;"#%,". - */ - core.String name; - /** Filter that describes which sites are visible to the user profile. */ - ObjectFilter siteFilter; - /** - * Subaccount ID of the user profile. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - /** - * Trafficker type of this user profile. - * Possible string values are: - * - "EXTERNAL_TRAFFICKER" - * - "INTERNAL_NON_TRAFFICKER" - * - "INTERNAL_TRAFFICKER" - */ - core.String traffickerType; - /** - * User type of the user profile. This is a read-only field that can be left - * blank. - * Possible string values are: - * - "INTERNAL_ADMINISTRATOR" - * - "NORMAL_USER" - * - "READ_ONLY_SUPER_USER" - * - "SUPER_USER" - */ - core.String userAccessType; - /** - * Filter that describes which user roles are visible to the user profile. - */ - ObjectFilter userRoleFilter; - /** User role ID of the user profile. This is a required field. */ - core.String userRoleId; - - AccountUserProfile(); - - AccountUserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserFilter")) { - advertiserFilter = new ObjectFilter.fromJson(_json["advertiserFilter"]); - } - if (_json.containsKey("campaignFilter")) { - campaignFilter = new ObjectFilter.fromJson(_json["campaignFilter"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("locale")) { - locale = _json["locale"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilter")) { - siteFilter = new ObjectFilter.fromJson(_json["siteFilter"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerType")) { - traffickerType = _json["traffickerType"]; - } - if (_json.containsKey("userAccessType")) { - userAccessType = _json["userAccessType"]; - } - if (_json.containsKey("userRoleFilter")) { - userRoleFilter = new ObjectFilter.fromJson(_json["userRoleFilter"]); - } - if (_json.containsKey("userRoleId")) { - userRoleId = _json["userRoleId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserFilter != null) { - _json["advertiserFilter"] = (advertiserFilter).toJson(); - } - if (campaignFilter != null) { - _json["campaignFilter"] = (campaignFilter).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (email != null) { - _json["email"] = email; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (locale != null) { - _json["locale"] = locale; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilter != null) { - _json["siteFilter"] = (siteFilter).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerType != null) { - _json["traffickerType"] = traffickerType; - } - if (userAccessType != null) { - _json["userAccessType"] = userAccessType; - } - if (userRoleFilter != null) { - _json["userRoleFilter"] = (userRoleFilter).toJson(); - } - if (userRoleId != null) { - _json["userRoleId"] = userRoleId; - } - return _json; - } -} - -/** Account User Profile List Response */ -class AccountUserProfilesListResponse { - /** Account user profile collection. */ - core.List<AccountUserProfile> accountUserProfiles; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountUserProfilesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountUserProfilesListResponse(); - - AccountUserProfilesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accountUserProfiles")) { - accountUserProfiles = _json["accountUserProfiles"].map((value) => new AccountUserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountUserProfiles != null) { - _json["accountUserProfiles"] = accountUserProfiles.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Account List Response */ -class AccountsListResponse { - /** Account collection. */ - core.List<Account> accounts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#accountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AccountsListResponse(); - - AccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("accounts")) { - accounts = _json["accounts"].map((value) => new Account.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accounts != null) { - _json["accounts"] = accounts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents an activity group. */ -class Activities { - /** - * List of activity filters. The dimension values need to be all either of - * type "dfa:activity" or "dfa:activityGroup". - */ - core.List<DimensionValue> filters; - /** The kind of resource this is, in this case dfareporting#activities. */ - core.String kind; - /** List of names of floodlight activity metrics. */ - core.List<core.String> metricNames; - - Activities(); - - Activities.fromJson(core.Map _json) { - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** Contains properties of a DCM ad. */ -class Ad { - /** - * Account ID of this ad. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this ad is active. When true, archived must be false. */ - core.bool active; - /** Advertiser ID of this ad. This is a required field on insertion. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. When true, active must be false. */ - core.bool archived; - /** - * Audience segment ID that is being targeted for this ad. Applicable when - * type is AD_SERVING_STANDARD_AD. - */ - core.String audienceSegmentId; - /** Campaign ID of this ad. This is a required field on insertion. */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Click-through URL for this ad. This is a required field on insertion. - * Applicable when type is AD_SERVING_CLICK_TRACKER. - */ - ClickThroughUrl clickThroughUrl; - /** - * Click-through URL suffix properties for this ad. Applies to the URL in the - * ad or (if overriding ad properties) the URL in the creative. - */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** Comments for this ad. */ - core.String comments; - /** - * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. - * DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are only used for existing default - * ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL - * and default ads created for those placements will be limited to those - * compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video - * ads developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Information about the creation of this ad. This is a read-only field. */ - LastModifiedInfo createInfo; - /** - * Creative group assignments for this ad. Applicable when type is - * AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is - * allowed for a maximum of two assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** - * Creative rotation for this ad. Applicable when type is - * AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When - * type is AD_SERVING_DEFAULT_AD, this field should have exactly one - * creativeAssignment. - */ - CreativeRotation creativeRotation; - /** - * Time and day targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - DayPartTargeting dayPartTargeting; - /** Default click-through event tag properties for this ad. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Delivery schedule information for this ad. Applicable when type is - * AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with - * subfields priority and impressionRatio are required on insertion when type - * is AD_SERVING_STANDARD_AD. - */ - DeliverySchedule deliverySchedule; - /** - * Whether this ad is a dynamic click tracker. Applicable when type is - * AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is - * read-only after insert. - */ - core.bool dynamicClickTracker; - /** - * Date and time that this ad should stop serving. Must be later than the - * start time. This is a required field on insertion. - */ - core.DateTime endTime; - /** Event tag overrides for this ad. */ - core.List<EventTagOverride> eventTagOverrides; - /** - * Geographical targeting information for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - GeoTargeting geoTargeting; - /** ID of this ad. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this ad. This is a read-only, auto-generated - * field. - */ - DimensionValue idDimensionValue; - /** - * Key-value targeting information for this ad. This field must be left blank - * if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - KeyValueTargetingExpression keyValueTargetingExpression; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ad". - */ - core.String kind; - /** - * Information about the most recent modification of this ad. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this ad. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** Placement assignments for this ad. */ - core.List<PlacementAssignment> placementAssignments; - /** - * Remarketing list targeting expression for this ad. This field must be left - * blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - ListTargetingExpression remarketingListExpression; - /** Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. */ - Size size; - /** - * Whether this ad is ssl compliant. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** - * Whether this ad requires ssl. This is a read-only field that is - * auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - /** - * Date and time that this ad should start serving. If creating an ad, this - * field must be a time in the future. This is a required field on insertion. - */ - core.DateTime startTime; - /** - * Subaccount ID of this ad. This is a read-only field that can be left blank. - */ - core.String subaccountId; - /** - * Technology platform targeting information for this ad. This field must be - * left blank if the ad is using a targeting template. Applicable when type is - * AD_SERVING_STANDARD_AD. - */ - TechnologyTargeting technologyTargeting; - /** - * Type of ad. This is a required field on insertion. Note that default ads - * (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). - * Possible string values are: - * - "AD_SERVING_CLICK_TRACKER" - * - "AD_SERVING_DEFAULT_AD" - * - "AD_SERVING_STANDARD_AD" - * - "AD_SERVING_TRACKING" - */ - core.String type; - - Ad(); - - Ad.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentId")) { - audienceSegmentId = _json["audienceSegmentId"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeRotation")) { - creativeRotation = new CreativeRotation.fromJson(_json["creativeRotation"]); - } - if (_json.containsKey("dayPartTargeting")) { - dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("deliverySchedule")) { - deliverySchedule = new DeliverySchedule.fromJson(_json["deliverySchedule"]); - } - if (_json.containsKey("dynamicClickTracker")) { - dynamicClickTracker = _json["dynamicClickTracker"]; - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("geoTargeting")) { - geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyValueTargetingExpression")) { - keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementAssignments")) { - placementAssignments = _json["placementAssignments"].map((value) => new PlacementAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("remarketingListExpression")) { - remarketingListExpression = new ListTargetingExpression.fromJson(_json["remarketingListExpression"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("technologyTargeting")) { - technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentId != null) { - _json["audienceSegmentId"] = audienceSegmentId; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comments != null) { - _json["comments"] = comments; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeRotation != null) { - _json["creativeRotation"] = (creativeRotation).toJson(); - } - if (dayPartTargeting != null) { - _json["dayPartTargeting"] = (dayPartTargeting).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (deliverySchedule != null) { - _json["deliverySchedule"] = (deliverySchedule).toJson(); - } - if (dynamicClickTracker != null) { - _json["dynamicClickTracker"] = dynamicClickTracker; - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (geoTargeting != null) { - _json["geoTargeting"] = (geoTargeting).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyValueTargetingExpression != null) { - _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementAssignments != null) { - _json["placementAssignments"] = placementAssignments.map((value) => (value).toJson()).toList(); - } - if (remarketingListExpression != null) { - _json["remarketingListExpression"] = (remarketingListExpression).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (technologyTargeting != null) { - _json["technologyTargeting"] = (technologyTargeting).toJson(); - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Ad Slot */ -class AdSlot { - /** Comment for this ad slot. */ - core.String comment; - /** - * Ad slot compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering - * either on desktop, mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering - * in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads - * developed with the VAST standard. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** Height of this ad slot. */ - core.String height; - /** - * ID of the placement from an external platform that is linked to this ad - * slot. - */ - core.String linkedPlacementId; - /** Name of this ad slot. */ - core.String name; - /** - * Payment source type of this ad slot. - * Possible string values are: - * - "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID" - * - "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID" - */ - core.String paymentSourceType; - /** Primary ad slot of a roadblock inventory item. */ - core.bool primary; - /** Width of this ad slot. */ - core.String width; - - AdSlot(); - - AdSlot.fromJson(core.Map _json) { - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("linkedPlacementId")) { - linkedPlacementId = _json["linkedPlacementId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentSourceType")) { - paymentSourceType = _json["paymentSourceType"]; - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (height != null) { - _json["height"] = height; - } - if (linkedPlacementId != null) { - _json["linkedPlacementId"] = linkedPlacementId; - } - if (name != null) { - _json["name"] = name; - } - if (paymentSourceType != null) { - _json["paymentSourceType"] = paymentSourceType; - } - if (primary != null) { - _json["primary"] = primary; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Ad List Response */ -class AdsListResponse { - /** Ad collection. */ - core.List<Ad> ads; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#adsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdsListResponse(); - - AdsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("ads")) { - ads = _json["ads"].map((value) => new Ad.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (ads != null) { - _json["ads"] = ads.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a DCM advertiser. */ -class Advertiser { - /** - * Account ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * ID of the advertiser group this advertiser belongs to. You can group - * advertisers for reporting purposes, allowing you to see aggregated - * information for all advertisers in each group. - */ - core.String advertiserGroupId; - /** - * Suffix added to click-through URL of ad creative associations under this - * advertiser. Must be less than 129 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * ID of the click-through event tag to apply by default to the landing pages - * of this advertiser's campaigns. - */ - core.String defaultClickThroughEventTagId; - /** Default email address used in sender field for tag emails. */ - core.String defaultEmail; - /** - * Floodlight configuration ID of this advertiser. The floodlight - * configuration ID will be created automatically, so on insert this field - * should be left blank. This field can be set to another advertiser's - * floodlight configuration ID in order to share that advertiser's floodlight - * configuration with this advertiser, so long as: - * - This advertiser's original floodlight configuration is not already - * associated with floodlight activities or floodlight activity groups. - * - This advertiser's original floodlight configuration is not already shared - * with another advertiser. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** ID of this advertiser. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiser". - */ - core.String kind; - /** - * Name of this advertiser. This is a required field and must be less than 256 - * characters long and unique among advertisers of the same account. - */ - core.String name; - /** - * Original floodlight configuration before any sharing occurred. Set the - * floodlightConfigurationId of this advertiser to - * originalFloodlightConfigurationId to unshare the advertiser's current - * floodlight configuration. You cannot unshare an advertiser's floodlight - * configuration if the shared configuration has activities associated with - * any campaign or placement. - */ - core.String originalFloodlightConfigurationId; - /** - * Status of this advertiser. - * Possible string values are: - * - "APPROVED" - * - "ON_HOLD" - */ - core.String status; - /** - * Subaccount ID of this advertiser.This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Suspension status of this advertiser. */ - core.bool suspended; - - Advertiser(); - - Advertiser.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("defaultEmail")) { - defaultEmail = _json["defaultEmail"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("originalFloodlightConfigurationId")) { - originalFloodlightConfigurationId = _json["originalFloodlightConfigurationId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("suspended")) { - suspended = _json["suspended"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (defaultEmail != null) { - _json["defaultEmail"] = defaultEmail; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (originalFloodlightConfigurationId != null) { - _json["originalFloodlightConfigurationId"] = originalFloodlightConfigurationId; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (suspended != null) { - _json["suspended"] = suspended; - } - return _json; - } -} - -/** - * Groups advertisers together so that reports can be generated for the entire - * group at once. - */ -class AdvertiserGroup { - /** - * Account ID of this advertiser group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this advertiser group. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroup". - */ - core.String kind; - /** - * Name of this advertiser group. This is a required field and must be less - * than 256 characters long and unique among advertiser groups of the same - * account. - */ - core.String name; - - AdvertiserGroup(); - - AdvertiserGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Advertiser Group List Response */ -class AdvertiserGroupsListResponse { - /** Advertiser group collection. */ - core.List<AdvertiserGroup> advertiserGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertiserGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertiserGroupsListResponse(); - - AdvertiserGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertiserGroups")) { - advertiserGroups = _json["advertiserGroups"].map((value) => new AdvertiserGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserGroups != null) { - _json["advertiserGroups"] = advertiserGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Advertiser List Response */ -class AdvertisersListResponse { - /** Advertiser collection. */ - core.List<Advertiser> advertisers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#advertisersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - AdvertisersListResponse(); - - AdvertisersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("advertisers")) { - advertisers = _json["advertisers"].map((value) => new Advertiser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertisers != null) { - _json["advertisers"] = advertisers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Audience Segment. */ -class AudienceSegment { - /** - * Weight allocated to this segment. Must be between 1 and 1000. The weight - * assigned will be understood in proportion to the weights assigned to other - * segments in the same segment group. - */ - core.int allocation; - /** - * ID of this audience segment. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Name of this audience segment. This is a required field and must be less - * than 65 characters long. - */ - core.String name; - - AudienceSegment(); - - AudienceSegment.fromJson(core.Map _json) { - if (_json.containsKey("allocation")) { - allocation = _json["allocation"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (allocation != null) { - _json["allocation"] = allocation; - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Audience Segment Group. */ -class AudienceSegmentGroup { - /** - * Audience segments assigned to this group. The number of segments must be - * between 2 and 100. - */ - core.List<AudienceSegment> audienceSegments; - /** - * ID of this audience segment group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Name of this audience segment group. This is a required field and must be - * less than 65 characters long. - */ - core.String name; - - AudienceSegmentGroup(); - - AudienceSegmentGroup.fromJson(core.Map _json) { - if (_json.containsKey("audienceSegments")) { - audienceSegments = _json["audienceSegments"].map((value) => new AudienceSegment.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (audienceSegments != null) { - _json["audienceSegments"] = audienceSegments.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a browser that can be targeted by ads. */ -class Browser { - /** - * ID referring to this grouping of browser and version numbers. This is the - * ID used for targeting. - */ - core.String browserVersionId; - /** DART ID of this browser. This is the ID used when generating reports. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browser". - */ - core.String kind; - /** - * Major version number (leftmost number) of this browser. For example, for - * Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may - * be used to target any version number, and a question mark (?) may be used - * to target cases where the version number cannot be identified. For example, - * Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome - * 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where - * the ad server knows the browser is Firefox but can't tell which version it - * is. - */ - core.String majorVersion; - /** - * Minor version number (number after first dot on left) of this browser. For - * example, for Chrome 5.0.375.86 beta, this field should be set to 0. An - * asterisk (*) may be used to target any version number, and a question mark - * (?) may be used to target cases where the version number cannot be - * identified. For example, Chrome *.* targets any version of Chrome: 1.2, - * 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. - * Firefox ?.? targets cases where the ad server knows the browser is Firefox - * but can't tell which version it is. - */ - core.String minorVersion; - /** Name of this browser. */ - core.String name; - - Browser(); - - Browser.fromJson(core.Map _json) { - if (_json.containsKey("browserVersionId")) { - browserVersionId = _json["browserVersionId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browserVersionId != null) { - _json["browserVersionId"] = browserVersionId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Browser List Response */ -class BrowsersListResponse { - /** Browser collection. */ - core.List<Browser> browsers; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#browsersListResponse". - */ - core.String kind; - - BrowsersListResponse(); - - BrowsersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of a DCM campaign. */ -class Campaign { - /** - * Account ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** Additional creative optimization configurations for the campaign. */ - core.List<CreativeOptimizationConfiguration> additionalCreativeOptimizationConfigurations; - /** Advertiser group ID of the associated advertiser. */ - core.String advertiserGroupId; - /** Advertiser ID of this campaign. This is a required field. */ - core.String advertiserId; - /** - * Dimension value for the advertiser ID of this campaign. This is a - * read-only, auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this campaign has been archived. */ - core.bool archived; - /** - * Audience segment groups assigned to this campaign. Cannot have more than - * 300 segment groups. - */ - core.List<AudienceSegmentGroup> audienceSegmentGroups; - /** - * Billing invoice code included in the DCM client billing invoices associated - * with the campaign. - */ - core.String billingInvoiceCode; - /** Click-through URL suffix override properties for this campaign. */ - ClickThroughUrlSuffixProperties clickThroughUrlSuffixProperties; - /** - * Arbitrary comments about this campaign. Must be less than 256 characters - * long. - */ - core.String comment; - /** Whether comScore vCE reports are enabled for this campaign. */ - core.bool comscoreVceEnabled; - /** - * Information about the creation of this campaign. This is a read-only field. - */ - LastModifiedInfo createInfo; - /** List of creative group IDs that are assigned to the campaign. */ - core.List<core.String> creativeGroupIds; - /** Creative optimization configuration for the campaign. */ - CreativeOptimizationConfiguration creativeOptimizationConfiguration; - /** Click-through event tag ID override properties for this campaign. */ - DefaultClickThroughEventTagProperties defaultClickThroughEventTagProperties; - /** - * Date on which the campaign will stop running. On insert, the end date must - * be today or a future date. The end date must be later than or be the same - * as the start date. If, for example, you set 6/25/2015 as both the start and - * end dates, the effective campaign run date is just that day only, - * 6/25/2015. The hours, minutes, and seconds of the end date should not be - * set, as doing so will result in an error. This is a required field. - */ - core.DateTime endDate; - /** - * Overrides that can be used to activate or deactivate advertiser event tags. - */ - core.List<EventTagOverride> eventTagOverrides; - /** External ID for this campaign. */ - core.String externalId; - /** ID of this campaign. This is a read-only auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaign". - */ - core.String kind; - /** - * Information about the most recent modification of this campaign. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for the campaign. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this campaign. This is a required field and must be less than 256 - * characters long and unique among campaigns of the same advertiser. - */ - core.String name; - /** Whether Nielsen reports are enabled for this campaign. */ - core.bool nielsenOcrEnabled; - /** - * Date on which the campaign starts running. The start date can be any date. - * The hours, minutes, and seconds of the start date should not be set, as - * doing so will result in an error. This is a required field. - */ - core.DateTime startDate; - /** - * Subaccount ID of this campaign. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** Campaign trafficker contact emails. */ - core.List<core.String> traffickerEmails; - - Campaign(); - - Campaign.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("additionalCreativeOptimizationConfigurations")) { - additionalCreativeOptimizationConfigurations = _json["additionalCreativeOptimizationConfigurations"].map((value) => new CreativeOptimizationConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserGroupId")) { - advertiserGroupId = _json["advertiserGroupId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("audienceSegmentGroups")) { - audienceSegmentGroups = _json["audienceSegmentGroups"].map((value) => new AudienceSegmentGroup.fromJson(value)).toList(); - } - if (_json.containsKey("billingInvoiceCode")) { - billingInvoiceCode = _json["billingInvoiceCode"]; - } - if (_json.containsKey("clickThroughUrlSuffixProperties")) { - clickThroughUrlSuffixProperties = new ClickThroughUrlSuffixProperties.fromJson(_json["clickThroughUrlSuffixProperties"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("comscoreVceEnabled")) { - comscoreVceEnabled = _json["comscoreVceEnabled"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("creativeGroupIds")) { - creativeGroupIds = _json["creativeGroupIds"]; - } - if (_json.containsKey("creativeOptimizationConfiguration")) { - creativeOptimizationConfiguration = new CreativeOptimizationConfiguration.fromJson(_json["creativeOptimizationConfiguration"]); - } - if (_json.containsKey("defaultClickThroughEventTagProperties")) { - defaultClickThroughEventTagProperties = new DefaultClickThroughEventTagProperties.fromJson(_json["defaultClickThroughEventTagProperties"]); - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("eventTagOverrides")) { - eventTagOverrides = _json["eventTagOverrides"].map((value) => new EventTagOverride.fromJson(value)).toList(); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("nielsenOcrEnabled")) { - nielsenOcrEnabled = _json["nielsenOcrEnabled"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("traffickerEmails")) { - traffickerEmails = _json["traffickerEmails"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (additionalCreativeOptimizationConfigurations != null) { - _json["additionalCreativeOptimizationConfigurations"] = additionalCreativeOptimizationConfigurations.map((value) => (value).toJson()).toList(); - } - if (advertiserGroupId != null) { - _json["advertiserGroupId"] = advertiserGroupId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (audienceSegmentGroups != null) { - _json["audienceSegmentGroups"] = audienceSegmentGroups.map((value) => (value).toJson()).toList(); - } - if (billingInvoiceCode != null) { - _json["billingInvoiceCode"] = billingInvoiceCode; - } - if (clickThroughUrlSuffixProperties != null) { - _json["clickThroughUrlSuffixProperties"] = (clickThroughUrlSuffixProperties).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (comscoreVceEnabled != null) { - _json["comscoreVceEnabled"] = comscoreVceEnabled; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (creativeGroupIds != null) { - _json["creativeGroupIds"] = creativeGroupIds; - } - if (creativeOptimizationConfiguration != null) { - _json["creativeOptimizationConfiguration"] = (creativeOptimizationConfiguration).toJson(); - } - if (defaultClickThroughEventTagProperties != null) { - _json["defaultClickThroughEventTagProperties"] = (defaultClickThroughEventTagProperties).toJson(); - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (eventTagOverrides != null) { - _json["eventTagOverrides"] = eventTagOverrides.map((value) => (value).toJson()).toList(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (nielsenOcrEnabled != null) { - _json["nielsenOcrEnabled"] = nielsenOcrEnabled; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (traffickerEmails != null) { - _json["traffickerEmails"] = traffickerEmails; - } - return _json; - } -} - -/** Identifies a creative which has been associated with a given campaign. */ -class CampaignCreativeAssociation { - /** - * ID of the creative associated with the campaign. This is a required field. - */ - core.String creativeId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociation". - */ - core.String kind; - - CampaignCreativeAssociation(); - - CampaignCreativeAssociation.fromJson(core.Map _json) { - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Campaign Creative Association List Response */ -class CampaignCreativeAssociationsListResponse { - /** Campaign creative association collection */ - core.List<CampaignCreativeAssociation> campaignCreativeAssociations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignCreativeAssociationsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignCreativeAssociationsListResponse(); - - CampaignCreativeAssociationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaignCreativeAssociations")) { - campaignCreativeAssociations = _json["campaignCreativeAssociations"].map((value) => new CampaignCreativeAssociation.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaignCreativeAssociations != null) { - _json["campaignCreativeAssociations"] = campaignCreativeAssociations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Campaign List Response */ -class CampaignsListResponse { - /** Campaign collection. */ - core.List<Campaign> campaigns; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#campaignsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CampaignsListResponse(); - - CampaignsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("campaigns")) { - campaigns = _json["campaigns"].map((value) => new Campaign.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (campaigns != null) { - _json["campaigns"] = campaigns.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Describes a change that a user has made to a resource. */ -class ChangeLog { - /** Account ID of the modified object. */ - core.String accountId; - /** Action which caused the change. */ - core.String action; - /** Time when the object was modified. */ - core.DateTime changeTime; - /** Field name of the object which changed. */ - core.String fieldName; - /** ID of this change log. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLog". - */ - core.String kind; - /** New value of the object field. */ - core.String newValue; - /** - * ID of the object of this change log. The object could be a campaign, - * placement, ad, or other type. - */ - core.String objectId; - /** Object type of the change log. */ - core.String objectType; - /** Old value of the object field. */ - core.String oldValue; - /** Subaccount ID of the modified object. */ - core.String subaccountId; - /** - * Transaction ID of this change log. When a single API call results in many - * changes, each change will have a separate ID in the change log but will - * share the same transactionId. - */ - core.String transactionId; - /** ID of the user who modified the object. */ - core.String userProfileId; - /** User profile name of the user who modified the object. */ - core.String userProfileName; - - ChangeLog(); - - ChangeLog.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("action")) { - action = _json["action"]; - } - if (_json.containsKey("changeTime")) { - changeTime = core.DateTime.parse(_json["changeTime"]); - } - if (_json.containsKey("fieldName")) { - fieldName = _json["fieldName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("newValue")) { - newValue = _json["newValue"]; - } - if (_json.containsKey("objectId")) { - objectId = _json["objectId"]; - } - if (_json.containsKey("objectType")) { - objectType = _json["objectType"]; - } - if (_json.containsKey("oldValue")) { - oldValue = _json["oldValue"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("transactionId")) { - transactionId = _json["transactionId"]; - } - if (_json.containsKey("userProfileId")) { - userProfileId = _json["userProfileId"]; - } - if (_json.containsKey("userProfileName")) { - userProfileName = _json["userProfileName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (action != null) { - _json["action"] = action; - } - if (changeTime != null) { - _json["changeTime"] = (changeTime).toIso8601String(); - } - if (fieldName != null) { - _json["fieldName"] = fieldName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (newValue != null) { - _json["newValue"] = newValue; - } - if (objectId != null) { - _json["objectId"] = objectId; - } - if (objectType != null) { - _json["objectType"] = objectType; - } - if (oldValue != null) { - _json["oldValue"] = oldValue; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (transactionId != null) { - _json["transactionId"] = transactionId; - } - if (userProfileId != null) { - _json["userProfileId"] = userProfileId; - } - if (userProfileName != null) { - _json["userProfileName"] = userProfileName; - } - return _json; - } -} - -/** Change Log List Response */ -class ChangeLogsListResponse { - /** Change log collection. */ - core.List<ChangeLog> changeLogs; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#changeLogsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ChangeLogsListResponse(); - - ChangeLogsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("changeLogs")) { - changeLogs = _json["changeLogs"].map((value) => new ChangeLog.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (changeLogs != null) { - _json["changeLogs"] = changeLogs.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** City List Response */ -class CitiesListResponse { - /** City collection. */ - core.List<City> cities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#citiesListResponse". - */ - core.String kind; - - CitiesListResponse(); - - CitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a city that can be targeted by ads. */ -class City { - /** Country code of the country to which this city belongs. */ - core.String countryCode; - /** DART ID of the country to which this city belongs. */ - core.String countryDartId; - /** - * DART ID of this city. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#city". - */ - core.String kind; - /** - * Metro region code of the metro region (DMA) to which this city belongs. - */ - core.String metroCode; - /** ID of the metro region (DMA) to which this city belongs. */ - core.String metroDmaId; - /** Name of this city. */ - core.String name; - /** Region code of the region to which this city belongs. */ - core.String regionCode; - /** DART ID of the region to which this city belongs. */ - core.String regionDartId; - - City(); - - City.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("metroDmaId")) { - metroDmaId = _json["metroDmaId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - if (_json.containsKey("regionDartId")) { - regionDartId = _json["regionDartId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (metroDmaId != null) { - _json["metroDmaId"] = metroDmaId; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - if (regionDartId != null) { - _json["regionDartId"] = regionDartId; - } - return _json; - } -} - -/** Creative Click Tag. */ -class ClickTag { - /** - * Advertiser event name associated with the click tag. This field is used by - * ENHANCED_IMAGE, and HTML5_BANNER creatives. Applicable to ENHANCED_BANNER - * when the primary asset type is not HTML_IMAGE - */ - core.String eventName; - /** - * Parameter name for the specified click tag. For ENHANCED_IMAGE creative - * assets, this field must match the value of the creative asset's - * creativeAssetId.name field. - */ - core.String name; - /** - * Parameter value for the specified click tag. This field contains a - * click-through url. - */ - core.String value; - - ClickTag(); - - ClickTag.fromJson(core.Map _json) { - if (_json.containsKey("eventName")) { - eventName = _json["eventName"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventName != null) { - _json["eventName"] = eventName; - } - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Click-through URL */ -class ClickThroughUrl { - /** - * Read-only convenience field representing the actual URL that will be used - * for this click-through. The URL is computed as follows: - * - If defaultLandingPage is enabled then the campaign's default landing page - * URL is assigned to this field. - * - If defaultLandingPage is not enabled and a landingPageId is specified - * then that landing page's URL is assigned to this field. - * - If neither of the above cases apply, then the customClickThroughUrl is - * assigned to this field. - */ - core.String computedClickThroughUrl; - /** - * Custom click-through URL. Applicable if the defaultLandingPage field is set - * to false and the landingPageId field is left unset. - */ - core.String customClickThroughUrl; - /** Whether the campaign default landing page is used. */ - core.bool defaultLandingPage; - /** - * ID of the landing page for the click-through URL. Applicable if the - * defaultLandingPage field is set to false. - */ - core.String landingPageId; - - ClickThroughUrl(); - - ClickThroughUrl.fromJson(core.Map _json) { - if (_json.containsKey("computedClickThroughUrl")) { - computedClickThroughUrl = _json["computedClickThroughUrl"]; - } - if (_json.containsKey("customClickThroughUrl")) { - customClickThroughUrl = _json["customClickThroughUrl"]; - } - if (_json.containsKey("defaultLandingPage")) { - defaultLandingPage = _json["defaultLandingPage"]; - } - if (_json.containsKey("landingPageId")) { - landingPageId = _json["landingPageId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (computedClickThroughUrl != null) { - _json["computedClickThroughUrl"] = computedClickThroughUrl; - } - if (customClickThroughUrl != null) { - _json["customClickThroughUrl"] = customClickThroughUrl; - } - if (defaultLandingPage != null) { - _json["defaultLandingPage"] = defaultLandingPage; - } - if (landingPageId != null) { - _json["landingPageId"] = landingPageId; - } - return _json; - } -} - -/** Click Through URL Suffix settings. */ -class ClickThroughUrlSuffixProperties { - /** - * Click-through URL suffix to apply to all ads in this entity's scope. Must - * be less than 128 characters long. - */ - core.String clickThroughUrlSuffix; - /** - * Whether this entity should override the inherited click-through URL suffix - * with its own defined value. - */ - core.bool overrideInheritedSuffix; - - ClickThroughUrlSuffixProperties(); - - ClickThroughUrlSuffixProperties.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrlSuffix")) { - clickThroughUrlSuffix = _json["clickThroughUrlSuffix"]; - } - if (_json.containsKey("overrideInheritedSuffix")) { - overrideInheritedSuffix = _json["overrideInheritedSuffix"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrlSuffix != null) { - _json["clickThroughUrlSuffix"] = clickThroughUrlSuffix; - } - if (overrideInheritedSuffix != null) { - _json["overrideInheritedSuffix"] = overrideInheritedSuffix; - } - return _json; - } -} - -/** Companion Click-through override. */ -class CompanionClickThroughOverride { - /** Click-through URL of this companion click-through override. */ - ClickThroughUrl clickThroughUrl; - /** ID of the creative for this companion click-through override. */ - core.String creativeId; - - CompanionClickThroughOverride(); - - CompanionClickThroughOverride.fromJson(core.Map _json) { - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - return _json; - } -} - -/** Represents a response to the queryCompatibleFields method. */ -class CompatibleFields { - /** - * Contains items that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ - CrossDimensionReachReportCompatibleFields crossDimensionReachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "FLOODLIGHT". - */ - FloodlightReportCompatibleFields floodlightReportCompatibleFields; - /** - * The kind of resource this is, in this case dfareporting#compatibleFields. - */ - core.String kind; - /** - * Contains items that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ - PathToConversionReportCompatibleFields pathToConversionReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "REACH". - */ - ReachReportCompatibleFields reachReportCompatibleFields; - /** - * Contains items that are compatible to be selected for a report of type - * "STANDARD". - */ - ReportCompatibleFields reportCompatibleFields; - - CompatibleFields(); - - CompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("crossDimensionReachReportCompatibleFields")) { - crossDimensionReachReportCompatibleFields = new CrossDimensionReachReportCompatibleFields.fromJson(_json["crossDimensionReachReportCompatibleFields"]); - } - if (_json.containsKey("floodlightReportCompatibleFields")) { - floodlightReportCompatibleFields = new FloodlightReportCompatibleFields.fromJson(_json["floodlightReportCompatibleFields"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("pathToConversionReportCompatibleFields")) { - pathToConversionReportCompatibleFields = new PathToConversionReportCompatibleFields.fromJson(_json["pathToConversionReportCompatibleFields"]); - } - if (_json.containsKey("reachReportCompatibleFields")) { - reachReportCompatibleFields = new ReachReportCompatibleFields.fromJson(_json["reachReportCompatibleFields"]); - } - if (_json.containsKey("reportCompatibleFields")) { - reportCompatibleFields = new ReportCompatibleFields.fromJson(_json["reportCompatibleFields"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (crossDimensionReachReportCompatibleFields != null) { - _json["crossDimensionReachReportCompatibleFields"] = (crossDimensionReachReportCompatibleFields).toJson(); - } - if (floodlightReportCompatibleFields != null) { - _json["floodlightReportCompatibleFields"] = (floodlightReportCompatibleFields).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (pathToConversionReportCompatibleFields != null) { - _json["pathToConversionReportCompatibleFields"] = (pathToConversionReportCompatibleFields).toJson(); - } - if (reachReportCompatibleFields != null) { - _json["reachReportCompatibleFields"] = (reachReportCompatibleFields).toJson(); - } - if (reportCompatibleFields != null) { - _json["reportCompatibleFields"] = (reportCompatibleFields).toJson(); - } - return _json; - } -} - -/** - * Contains information about an internet connection type that can be targeted - * by ads. Clients can use the connection type to target mobile vs. broadband - * users. - */ -class ConnectionType { - /** ID of this connection type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionType". - */ - core.String kind; - /** Name of this connection type. */ - core.String name; - - ConnectionType(); - - ConnectionType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Connection Type List Response */ -class ConnectionTypesListResponse { - /** Collection of connection types such as broadband and mobile. */ - core.List<ConnectionType> connectionTypes; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#connectionTypesListResponse". - */ - core.String kind; - - ConnectionTypesListResponse(); - - ConnectionTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Content Category List Response */ -class ContentCategoriesListResponse { - /** Content category collection. */ - core.List<ContentCategory> contentCategories; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategoriesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - ContentCategoriesListResponse(); - - ContentCategoriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("contentCategories")) { - contentCategories = _json["contentCategories"].map((value) => new ContentCategory.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contentCategories != null) { - _json["contentCategories"] = contentCategories.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Organizes placements according to the contents of their associated webpages. - */ -class ContentCategory { - /** - * Account ID of this content category. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this content category. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#contentCategory". - */ - core.String kind; - /** - * Name of this content category. This is a required field and must be less - * than 256 characters long and unique among content categories of the same - * account. - */ - core.String name; - - ContentCategory(); - - ContentCategory.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Country List Response */ -class CountriesListResponse { - /** Country collection. */ - core.List<Country> countries; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#countriesListResponse". - */ - core.String kind; - - CountriesListResponse(); - - CountriesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a country that can be targeted by ads. */ -class Country { - /** Country code. */ - core.String countryCode; - /** - * DART ID of this country. This is the ID used for targeting and generating - * reports. - */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#country". - */ - core.String kind; - /** Name of this country. */ - core.String name; - /** Whether ad serving supports secure servers in this country. */ - core.bool sslEnabled; - - Country(); - - Country.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sslEnabled")) { - sslEnabled = _json["sslEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sslEnabled != null) { - _json["sslEnabled"] = sslEnabled; - } - return _json; - } -} - -/** Contains properties of a Creative. */ -class Creative { - /** - * Account ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String accountId; - /** Whether the creative is active. Applicable to all creative types. */ - core.bool active; - /** - * Ad parameters user for VPAID creative. This is a read-only field. - * Applicable to the following creative types: all VPAID. - */ - core.String adParameters; - /** - * Keywords for a Rich Media creative. Keywords let you customize the creative - * settings of a Rich Media ad running on your site without having to contact - * the advertiser. You can use keywords to dynamically change the look or - * functionality of a creative. Applicable to the following creative types: - * all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> adTagKeys; - /** - * Advertiser ID of this creative. This is a required field. Applicable to all - * creative types. - */ - core.String advertiserId; - /** - * Whether script access is allowed for this creative. This is a read-only and - * deprecated field which will automatically be set to true on update. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.bool allowScriptAccess; - /** Whether the creative is archived. Applicable to all creative types. */ - core.bool archived; - /** - * Type of artwork used for the creative. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA, and all VPAID. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Source application where creative was authored. Presently, only DBM - * authored creatives will have this field set. Applicable to all creative - * types. - * Possible string values are: - * - "CREATIVE_AUTHORING_SOURCE_DBM" - * - "CREATIVE_AUTHORING_SOURCE_DCM" - * - "CREATIVE_AUTHORING_SOURCE_STUDIO" - */ - core.String authoringSource; - /** - * Authoring tool for HTML5 banner creatives. This is a read-only field. - * Applicable to the following creative types: HTML5_BANNER. - * Possible string values are: - * - "NINJA" - * - "SWIFFY" - */ - core.String authoringTool; - /** - * Whether images are automatically advanced for enhanced image creatives. - * Applicable to the following creative types: ENHANCED_IMAGE. - */ - core.bool autoAdvanceImages; - /** - * The 6-character HTML color code, beginning with #, for the background of - * the window area where the Flash file is displayed. Default is white. - * Applicable to the following creative types: FLASH_INPAGE. - */ - core.String backgroundColor; - /** - * Click-through URL for backup image. Applicable to the following creative - * types: FLASH_INPAGE, and HTML5_BANNER. Applicable to ENHANCED_BANNER when - * the primary asset type is not HTML_IMAGE. - */ - core.String backupImageClickThroughUrl; - /** - * List of feature dependencies that will cause a backup image to be served if - * the browser that serves the ad does not support them. Feature dependencies - * are features that a browser must be able to support in order to render your - * HTML5 creative asset correctly. This field is initially auto-generated to - * contain all features detected by DCM for all the assets of this creative - * and can then be modified by the client. To reset this field, copy over all - * the creativeAssets' detected features. Applicable to the following creative - * types: HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset - * is not HTML_IMAGE. - */ - core.List<core.String> backupImageFeatures; - /** - * Reporting label used for HTML5 banner backup image. Applicable to - * ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. - */ - core.String backupImageReportingLabel; - /** - * Target window for backup image. Applicable to the following creative types: - * FLASH_INPAGE, and HTML5_BANNER. Applicable to ENHANCED_BANNER when the - * primary asset type is not HTML_IMAGE. - */ - TargetWindow backupImageTargetWindow; - /** - * Click tags of the creative. For ENHANCED_BANNER, FLASH_INPAGE, and - * HTML5_BANNER creatives, this is a subset of detected click tags for the - * assets associated with this creative. After creating a flash asset, - * detected click tags will be returned in the creativeAssetMetadata. When - * inserting the creative, populate the creative clickTags field using the - * creativeAssetMetadata.clickTags field. For ENHANCED_IMAGE creatives, there - * should be exactly one entry in this list for each image creative asset. A - * click tag is matched with a corresponding creative asset by matching the - * clickTag.name field with the creativeAsset.assetIdentifier.name field. - * Applicable to the following creative types: ENHANCED_IMAGE, FLASH_INPAGE - * HTML5_BANNER. Applicable to ENHANCED_BANNER when the primary asset type is - * not HTML_IMAGE. - */ - core.List<ClickTag> clickTags; - /** - * Industry standard ID assigned to creative for reach and frequency. - * Applicable to the following creative types: all INSTREAM_VIDEO and all - * VPAID. - */ - core.String commercialId; - /** - * List of companion creatives assigned to an in-Stream videocreative. - * Acceptable values include IDs of existing flash and image creatives. - * Applicable to the following creative types: all INSTREAM_VIDEO and all - * VPAID. - */ - core.List<core.String> companionCreatives; - /** - * Compatibilities associated with this creative. This is a read-only field. - * DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on - * mobile devices or in mobile apps for regular or interstitial ads, - * respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. - * Only pre-existing creatives may have these compatibilities since new - * creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL instead. - * IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with - * the VAST standard. Applicable to all creative types. - * - * Acceptable values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - */ - core.List<core.String> compatibility; - /** - * Whether Flash assets associated with the creative need to be automatically - * converted to HTML5. This flag is enabled by default and users can choose to - * disable it if they don't want the system to generate and use HTML5 asset - * for this creative. Applicable to the following creative type: FLASH_INPAGE. - * Applicable to ENHANCED_BANNER when the primary asset type is not - * HTML_IMAGE. - */ - core.bool convertFlashToHtml5; - /** - * List of counter events configured for the creative. For ENHANCED_IMAGE - * creatives, these are read-only and auto-generated from clickTags. - * Applicable to the following creative types: ENHANCED_IMAGE, all RICH_MEDIA, - * and all VPAID. - */ - core.List<CreativeCustomEvent> counterCustomEvents; - /** - * Assets associated with a creative. Applicable to all but the following - * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and - * REDIRECT - */ - core.List<CreativeAsset> creativeAssets; - /** - * Creative field assignments for this creative. Applicable to all creative - * types. - */ - core.List<CreativeFieldAssignment> creativeFieldAssignments; - /** - * Custom key-values for a Rich Media creative. Key-values let you customize - * the creative settings of a Rich Media ad running on your site without - * having to contact the advertiser. You can use key-values to dynamically - * change the look or functionality of a creative. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.List<core.String> customKeyValues; - /** - * List of exit events configured for the creative. For ENHANCED_BANNER and - * ENHANCED_IMAGE creatives, these are read-only and auto-generated from - * clickTags, For ENHANCED_BANNER, an event is also created from the - * backupImageReportingLabel. Applicable to the following creative types: - * ENHANCED_IMAGE, all RICH_MEDIA, and all VPAID. Applicable to - * ENHANCED_BANNER when the primary asset is not HTML_IMAGE. - */ - core.List<CreativeCustomEvent> exitCustomEvents; - /** - * OpenWindow FSCommand of this creative. This lets the SWF file communicate - * with either Flash Player or the program hosting Flash Player, such as a web - * browser. This is only triggered if allowScriptAccess field is true. - * Applicable to the following creative types: FLASH_INPAGE. - */ - FsCommand fsCommand; - /** - * HTML code for the creative. This is a required field when applicable. This - * field is ignored if htmlCodeLocked is false. Applicable to the following - * creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all - * RICH_MEDIA. - */ - core.String htmlCode; - /** - * Whether HTML code is DCM-generated or manually entered. Set to true to - * ignore changes to htmlCode. Applicable to the following creative types: - * FLASH_INPAGE and HTML5_BANNER. - */ - core.bool htmlCodeLocked; - /** - * ID of this creative. This is a read-only, auto-generated field. Applicable - * to all creative types. - */ - core.String id; - /** - * Dimension value for the ID of this creative. This is a read-only field. - * Applicable to all creative types. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creative". - */ - core.String kind; - /** - * Creative last modification information. This is a read-only field. - * Applicable to all creative types. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Latest Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String latestTraffickedCreativeId; - /** - * Name of the creative. This is a required field and must be less than 256 - * characters long. Applicable to all creative types. - */ - core.String name; - /** - * Override CSS value for rich media creatives. Applicable to the following - * creative types: all RICH_MEDIA. - */ - core.String overrideCss; - /** - * URL of hosted image or hosted video or another ad tag. For - * INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL. - * The standard for a VAST (Video Ad Serving Template) ad response allows for - * a redirect link to another VAST 2.0 or 3.0 call. This is a required field - * when applicable. Applicable to the following creative types: - * INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, REDIRECT, and - * INSTREAM_VIDEO_REDIRECT - */ - core.String redirectUrl; - /** - * ID of current rendering version. This is a read-only field. Applicable to - * all creative types. - */ - core.String renderingId; - /** - * Dimension value for the rendering ID of this creative. This is a read-only - * field. Applicable to all creative types. - */ - DimensionValue renderingIdDimensionValue; - /** - * The minimum required Flash plugin version for this creative. For example, - * 11.2.202.235. This is a read-only field. Applicable to the following - * creative types: all RICH_MEDIA, and all VPAID. - */ - core.String requiredFlashPluginVersion; - /** - * The internal Flash version for this creative as calculated by DoubleClick - * Studio. This is a read-only field. Applicable to the following creative - * types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. Applicable to - * ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. - */ - core.int requiredFlashVersion; - /** - * Size associated with this creative. When inserting or updating a creative - * either the size ID field or size width and height fields can be used. This - * is a required field when applicable; however for IMAGE and FLASH_INPAGE - * creatives, and for ENHANCED_BANNER creatives with a primary asset of type - * HTML_IMAGE, if left blank, this field will be automatically set using the - * actual size of the associated image assets. Applicable to the following - * creative types: ENHANCED_BANNER, ENHANCED_IMAGE, FLASH_INPAGE, - * HTML5_BANNER, IMAGE, and all RICH_MEDIA. - */ - Size size; - /** - * Whether the user can choose to skip the creative. Applicable to the - * following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.bool skippable; - /** - * Whether the creative is SSL-compliant. This is a read-only field. - * Applicable to all creative types. - */ - core.bool sslCompliant; - /** - * Whether creative should be treated as SSL compliant even if the system scan - * shows it's not. Applicable to all creative types. - */ - core.bool sslOverride; - /** - * Studio advertiser ID associated with rich media and VPAID creatives. This - * is a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioAdvertiserId; - /** - * Studio creative ID associated with rich media and VPAID creatives. This is - * a read-only field. Applicable to the following creative types: all - * RICH_MEDIA, and all VPAID. - */ - core.String studioCreativeId; - /** - * Studio trafficked creative ID associated with rich media and VPAID - * creatives. This is a read-only field. Applicable to the following creative - * types: all RICH_MEDIA, and all VPAID. - */ - core.String studioTraffickedCreativeId; - /** - * Subaccount ID of this creative. This field, if left unset, will be - * auto-generated for both insert and update operations. Applicable to all - * creative types. - */ - core.String subaccountId; - /** - * Third-party URL used to record backup image impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyBackupImageImpressionsUrl; - /** - * Third-party URL used to record rich media impressions. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.String thirdPartyRichMediaImpressionsUrl; - /** - * Third-party URLs for tracking in-stream video creative events. Applicable - * to the following creative types: all INSTREAM_VIDEO and all VPAID. - */ - core.List<ThirdPartyTrackingUrl> thirdPartyUrls; - /** - * List of timer events configured for the creative. For ENHANCED_IMAGE - * creatives, these are read-only and auto-generated from clickTags. - * Applicable to the following creative types: ENHANCED_IMAGE, all RICH_MEDIA, - * and all VPAID. Applicable to ENHANCED_BANNER when the primary asset is not - * HTML_IMAGE. - */ - core.List<CreativeCustomEvent> timerCustomEvents; - /** - * Combined size of all creative assets. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA, and all VPAID. - */ - core.String totalFileSize; - /** - * Type of this creative.This is a required field. Applicable to all creative - * types. - * Possible string values are: - * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_INPAGE" - * - "CUSTOM_INTERSTITIAL" - * - "ENHANCED_BANNER" - * - "ENHANCED_IMAGE" - * - "FLASH_INPAGE" - * - "HTML5_BANNER" - * - "IMAGE" - * - "INSTREAM_VIDEO" - * - "INSTREAM_VIDEO_REDIRECT" - * - "INTERNAL_REDIRECT" - * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "REDIRECT" - * - "RICH_MEDIA_EXPANDING" - * - "RICH_MEDIA_IM_EXPAND" - * - "RICH_MEDIA_INPAGE" - * - "RICH_MEDIA_INPAGE_FLOATING" - * - "RICH_MEDIA_INTERSTITIAL_FLOAT" - * - "RICH_MEDIA_MOBILE_IN_APP" - * - "RICH_MEDIA_MULTI_FLOATING" - * - "RICH_MEDIA_PEEL_DOWN" - * - "TRACKING_TEXT" - * - "VPAID_LINEAR" - * - "VPAID_NON_LINEAR" - */ - core.String type; - /** - * The version number helps you keep track of multiple versions of your - * creative in your reports. The version number will always be auto-generated - * during insert operations to start at 1. For tracking creatives the version - * cannot be incremented and will always remain at 1. For all other creative - * types the version can be incremented only by 1 during update operations. In - * addition, the version will be automatically incremented by 1 when - * undergoing Rich Media creative merging. Applicable to all creative types. - */ - core.int version; - /** - * Description of the video ad. Applicable to the following creative types: - * all INSTREAM_VIDEO and all VPAID. - */ - core.String videoDescription; - /** - * Creative video duration in seconds. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO, all RICH_MEDIA, and all - * VPAID. - */ - core.double videoDuration; - - Creative(); - - Creative.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("adParameters")) { - adParameters = _json["adParameters"]; - } - if (_json.containsKey("adTagKeys")) { - adTagKeys = _json["adTagKeys"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("allowScriptAccess")) { - allowScriptAccess = _json["allowScriptAccess"]; - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("authoringSource")) { - authoringSource = _json["authoringSource"]; - } - if (_json.containsKey("authoringTool")) { - authoringTool = _json["authoringTool"]; - } - if (_json.containsKey("auto_advance_images")) { - autoAdvanceImages = _json["auto_advance_images"]; - } - if (_json.containsKey("backgroundColor")) { - backgroundColor = _json["backgroundColor"]; - } - if (_json.containsKey("backupImageClickThroughUrl")) { - backupImageClickThroughUrl = _json["backupImageClickThroughUrl"]; - } - if (_json.containsKey("backupImageFeatures")) { - backupImageFeatures = _json["backupImageFeatures"]; - } - if (_json.containsKey("backupImageReportingLabel")) { - backupImageReportingLabel = _json["backupImageReportingLabel"]; - } - if (_json.containsKey("backupImageTargetWindow")) { - backupImageTargetWindow = new TargetWindow.fromJson(_json["backupImageTargetWindow"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("commercialId")) { - commercialId = _json["commercialId"]; - } - if (_json.containsKey("companionCreatives")) { - companionCreatives = _json["companionCreatives"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("convertFlashToHtml5")) { - convertFlashToHtml5 = _json["convertFlashToHtml5"]; - } - if (_json.containsKey("counterCustomEvents")) { - counterCustomEvents = _json["counterCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("creativeAssets")) { - creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.fromJson(value)).toList(); - } - if (_json.containsKey("creativeFieldAssignments")) { - creativeFieldAssignments = _json["creativeFieldAssignments"].map((value) => new CreativeFieldAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("customKeyValues")) { - customKeyValues = _json["customKeyValues"]; - } - if (_json.containsKey("exitCustomEvents")) { - exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("fsCommand")) { - fsCommand = new FsCommand.fromJson(_json["fsCommand"]); - } - if (_json.containsKey("htmlCode")) { - htmlCode = _json["htmlCode"]; - } - if (_json.containsKey("htmlCodeLocked")) { - htmlCodeLocked = _json["htmlCodeLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("latestTraffickedCreativeId")) { - latestTraffickedCreativeId = _json["latestTraffickedCreativeId"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overrideCss")) { - overrideCss = _json["overrideCss"]; - } - if (_json.containsKey("redirectUrl")) { - redirectUrl = _json["redirectUrl"]; - } - if (_json.containsKey("renderingId")) { - renderingId = _json["renderingId"]; - } - if (_json.containsKey("renderingIdDimensionValue")) { - renderingIdDimensionValue = new DimensionValue.fromJson(_json["renderingIdDimensionValue"]); - } - if (_json.containsKey("requiredFlashPluginVersion")) { - requiredFlashPluginVersion = _json["requiredFlashPluginVersion"]; - } - if (_json.containsKey("requiredFlashVersion")) { - requiredFlashVersion = _json["requiredFlashVersion"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("skippable")) { - skippable = _json["skippable"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslOverride")) { - sslOverride = _json["sslOverride"]; - } - if (_json.containsKey("studioAdvertiserId")) { - studioAdvertiserId = _json["studioAdvertiserId"]; - } - if (_json.containsKey("studioCreativeId")) { - studioCreativeId = _json["studioCreativeId"]; - } - if (_json.containsKey("studioTraffickedCreativeId")) { - studioTraffickedCreativeId = _json["studioTraffickedCreativeId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("thirdPartyBackupImageImpressionsUrl")) { - thirdPartyBackupImageImpressionsUrl = _json["thirdPartyBackupImageImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyRichMediaImpressionsUrl")) { - thirdPartyRichMediaImpressionsUrl = _json["thirdPartyRichMediaImpressionsUrl"]; - } - if (_json.containsKey("thirdPartyUrls")) { - thirdPartyUrls = _json["thirdPartyUrls"].map((value) => new ThirdPartyTrackingUrl.fromJson(value)).toList(); - } - if (_json.containsKey("timerCustomEvents")) { - timerCustomEvents = _json["timerCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); - } - if (_json.containsKey("totalFileSize")) { - totalFileSize = _json["totalFileSize"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("version")) { - version = _json["version"]; - } - if (_json.containsKey("videoDescription")) { - videoDescription = _json["videoDescription"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (adParameters != null) { - _json["adParameters"] = adParameters; - } - if (adTagKeys != null) { - _json["adTagKeys"] = adTagKeys; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (allowScriptAccess != null) { - _json["allowScriptAccess"] = allowScriptAccess; - } - if (archived != null) { - _json["archived"] = archived; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (authoringSource != null) { - _json["authoringSource"] = authoringSource; - } - if (authoringTool != null) { - _json["authoringTool"] = authoringTool; - } - if (autoAdvanceImages != null) { - _json["auto_advance_images"] = autoAdvanceImages; - } - if (backgroundColor != null) { - _json["backgroundColor"] = backgroundColor; - } - if (backupImageClickThroughUrl != null) { - _json["backupImageClickThroughUrl"] = backupImageClickThroughUrl; - } - if (backupImageFeatures != null) { - _json["backupImageFeatures"] = backupImageFeatures; - } - if (backupImageReportingLabel != null) { - _json["backupImageReportingLabel"] = backupImageReportingLabel; - } - if (backupImageTargetWindow != null) { - _json["backupImageTargetWindow"] = (backupImageTargetWindow).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (commercialId != null) { - _json["commercialId"] = commercialId; - } - if (companionCreatives != null) { - _json["companionCreatives"] = companionCreatives; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (convertFlashToHtml5 != null) { - _json["convertFlashToHtml5"] = convertFlashToHtml5; - } - if (counterCustomEvents != null) { - _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).toJson()).toList(); - } - if (creativeAssets != null) { - _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).toList(); - } - if (creativeFieldAssignments != null) { - _json["creativeFieldAssignments"] = creativeFieldAssignments.map((value) => (value).toJson()).toList(); - } - if (customKeyValues != null) { - _json["customKeyValues"] = customKeyValues; - } - if (exitCustomEvents != null) { - _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson()).toList(); - } - if (fsCommand != null) { - _json["fsCommand"] = (fsCommand).toJson(); - } - if (htmlCode != null) { - _json["htmlCode"] = htmlCode; - } - if (htmlCodeLocked != null) { - _json["htmlCodeLocked"] = htmlCodeLocked; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (latestTraffickedCreativeId != null) { - _json["latestTraffickedCreativeId"] = latestTraffickedCreativeId; - } - if (name != null) { - _json["name"] = name; - } - if (overrideCss != null) { - _json["overrideCss"] = overrideCss; - } - if (redirectUrl != null) { - _json["redirectUrl"] = redirectUrl; - } - if (renderingId != null) { - _json["renderingId"] = renderingId; - } - if (renderingIdDimensionValue != null) { - _json["renderingIdDimensionValue"] = (renderingIdDimensionValue).toJson(); - } - if (requiredFlashPluginVersion != null) { - _json["requiredFlashPluginVersion"] = requiredFlashPluginVersion; - } - if (requiredFlashVersion != null) { - _json["requiredFlashVersion"] = requiredFlashVersion; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (skippable != null) { - _json["skippable"] = skippable; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslOverride != null) { - _json["sslOverride"] = sslOverride; - } - if (studioAdvertiserId != null) { - _json["studioAdvertiserId"] = studioAdvertiserId; - } - if (studioCreativeId != null) { - _json["studioCreativeId"] = studioCreativeId; - } - if (studioTraffickedCreativeId != null) { - _json["studioTraffickedCreativeId"] = studioTraffickedCreativeId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (thirdPartyBackupImageImpressionsUrl != null) { - _json["thirdPartyBackupImageImpressionsUrl"] = thirdPartyBackupImageImpressionsUrl; - } - if (thirdPartyRichMediaImpressionsUrl != null) { - _json["thirdPartyRichMediaImpressionsUrl"] = thirdPartyRichMediaImpressionsUrl; - } - if (thirdPartyUrls != null) { - _json["thirdPartyUrls"] = thirdPartyUrls.map((value) => (value).toJson()).toList(); - } - if (timerCustomEvents != null) { - _json["timerCustomEvents"] = timerCustomEvents.map((value) => (value).toJson()).toList(); - } - if (totalFileSize != null) { - _json["totalFileSize"] = totalFileSize; - } - if (type != null) { - _json["type"] = type; - } - if (version != null) { - _json["version"] = version; - } - if (videoDescription != null) { - _json["videoDescription"] = videoDescription; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - return _json; - } -} - -/** Creative Asset. */ -class CreativeAsset { - /** - * Whether ActionScript3 is enabled for the flash asset. This is a read-only - * field. Applicable to the following creative type: FLASH_INPAGE. Applicable - * to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE. - */ - core.bool actionScript3; - /** - * Whether the video asset is active. This is a read-only field for - * VPAID_NON_LINEAR assets. Applicable to the following creative types: - * INSTREAM_VIDEO and all VPAID. - */ - core.bool active; - /** - * Possible alignments for an asset. This is a read-only field. Applicable to - * the following creative types: RICH_MEDIA_MULTI_FLOATING. - * Possible string values are: - * - "ALIGNMENT_BOTTOM" - * - "ALIGNMENT_LEFT" - * - "ALIGNMENT_RIGHT" - * - "ALIGNMENT_TOP" - */ - core.String alignment; - /** - * Artwork type of rich media creative. This is a read-only field. Applicable - * to the following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** - * Identifier of this asset. This is the same identifier returned during - * creative asset insert operation. This is a required field. Applicable to - * all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - CreativeAssetId assetIdentifier; - /** - * Exit event configured for the backup image. Applicable to the following - * creative types: all RICH_MEDIA. - */ - CreativeCustomEvent backupImageExit; - /** - * Detected bit-rate for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.int bitRate; - /** - * Rich media child asset type. This is a read-only field. Applicable to the - * following creative types: all VPAID. - * Possible string values are: - * - "CHILD_ASSET_TYPE_DATA" - * - "CHILD_ASSET_TYPE_FLASH" - * - "CHILD_ASSET_TYPE_IMAGE" - * - "CHILD_ASSET_TYPE_VIDEO" - */ - core.String childAssetType; - /** - * Size of an asset when collapsed. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID. Additionally, - * applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or - * ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - Size collapsedSize; - /** - * Custom start time in seconds for making the asset visible. Applicable to - * the following creative types: all RICH_MEDIA. - */ - core.int customStartTimeValue; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. Applicable to the following creative - * types: ENHANCED_BANNER and HTML5_BANNER. - */ - core.List<core.String> detectedFeatures; - /** - * Type of rich media asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DISPLAY_TYPE_BACKDROP" - * - "ASSET_DISPLAY_TYPE_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - * - "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - * - "ASSET_DISPLAY_TYPE_FLOATING" - * - "ASSET_DISPLAY_TYPE_INPAGE" - * - "ASSET_DISPLAY_TYPE_OVERLAY" - * - "ASSET_DISPLAY_TYPE_PEEL_DOWN" - * - "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - * - "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - */ - core.String displayType; - /** - * Duration in seconds for which an asset will be displayed. Applicable to the - * following creative types: INSTREAM_VIDEO and VPAID_LINEAR. - */ - core.int duration; - /** - * Duration type for which an asset will be displayed. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_DURATION_TYPE_AUTO" - * - "ASSET_DURATION_TYPE_CUSTOM" - * - "ASSET_DURATION_TYPE_NONE" - */ - core.String durationType; - /** - * Detected expanded dimension for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - Size expandedDimension; - /** - * File size associated with this creative asset. This is a read-only field. - * Applicable to all but the following creative types: all REDIRECT and - * TRACKING_TEXT. - */ - core.String fileSize; - /** - * Flash version of the asset. This is a read-only field. Applicable to the - * following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. - * Applicable to ENHANCED_BANNER when the primary asset type is not - * HTML_IMAGE. - */ - core.int flashVersion; - /** - * Whether to hide Flash objects flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideFlashObjects; - /** - * Whether to hide selection boxes flag for an asset. Applicable to the - * following creative types: all RICH_MEDIA. - */ - core.bool hideSelectionBoxes; - /** - * Whether the asset is horizontally locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool horizontallyLocked; - /** - * Numeric ID of this creative asset. This is a required field and should not - * be modified. Applicable to all but the following creative types: all - * REDIRECT and TRACKING_TEXT. - */ - core.String id; - /** - * Detected MIME type for video asset. This is a read-only field. Applicable - * to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String mimeType; - /** - * Offset position for an asset in collapsed mode. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA and all VPAID. - * Additionally, only applicable to assets whose displayType is - * ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN. - */ - OffsetPosition offset; - /** - * Whether the backup asset is original or changed by the user in DCM. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool originalBackup; - /** - * Offset position for an asset. Applicable to the following creative types: - * all RICH_MEDIA. - */ - OffsetPosition position; - /** - * Offset left unit for an asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionLeftUnit; - /** - * Offset top unit for an asset. This is a read-only field if the asset - * displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following - * creative types: all RICH_MEDIA. - * Possible string values are: - * - "OFFSET_UNIT_PERCENT" - * - "OFFSET_UNIT_PIXEL" - * - "OFFSET_UNIT_PIXEL_FROM_CENTER" - */ - core.String positionTopUnit; - /** - * Progressive URL for video asset. This is a read-only field. Applicable to - * the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String progressiveServingUrl; - /** - * Whether the asset pushes down other content. Applicable to the following - * creative types: all RICH_MEDIA. Additionally, only applicable when the - * asset offsets are 0, the collapsedSize.width matches size.width, and the - * collapsedSize.height is less than size.height. - */ - core.bool pushdown; - /** - * Pushdown duration in seconds for an asset. Must be between 0 and 9.99. - * Applicable to the following creative types: all RICH_MEDIA.Additionally, - * only applicable when the asset pushdown field is true, the offsets are 0, - * the collapsedSize.width matches size.width, and the collapsedSize.height is - * less than size.height. - */ - core.double pushdownDuration; - /** - * Role of the asset in relation to creative. Applicable to all but the - * following creative types: all REDIRECT and TRACKING_TEXT. This is a - * required field. - * PRIMARY applies to ENHANCED_BANNER, FLASH_INPAGE, HTML5_BANNER, IMAGE, - * IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), - * and all VPAID creatives. - * BACKUP_IMAGE applies to ENHANCED_BANNER, FLASH_INPAGE, HTML5_BANNER, all - * RICH_MEDIA, and all VPAID creatives. - * ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. - * OTHER refers to assets from sources other than DCM, such as Studio uploaded - * assets, applicable to all RICH_MEDIA and all VPAID creatives. - * PARENT_VIDEO refers to videos uploaded by the user in DCM and is applicable - * to INSTREAM_VIDEO and VPAID_LINEAR creatives. - * TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO - * assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR creatives. - * ALTERNATE_VIDEO refers to the DCM representation of child asset videos from - * Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be - * added or removed within DCM. - * For VPAID_LINEAR creatives, PARENT_VIDEO, TRANSCODED_VIDEO and - * ALTERNATE_VIDEO assets that are marked active serve as backup in case the - * VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or - * removed for an INSTREAM_VIDEO or VPAID_LINEAR creative. - * Possible string values are: - * - "ADDITIONAL_FLASH" - * - "ADDITIONAL_IMAGE" - * - "ALTERNATE_VIDEO" - * - "BACKUP_IMAGE" - * - "OTHER" - * - "PARENT_VIDEO" - * - "PRIMARY" - * - "TRANSCODED_VIDEO" - */ - core.String role; - /** - * Size associated with this creative asset. This is a required field when - * applicable; however for IMAGE and FLASH_INPAGE creatives, if left blank, - * this field will be automatically set using the actual size of the - * associated image asset. Applicable to the following creative types: - * ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. - * Applicable to ENHANCED_BANNER when the primary asset type is not - * HTML_IMAGE. - */ - Size size; - /** - * Whether the asset is SSL-compliant. This is a read-only field. Applicable - * to all but the following creative types: all REDIRECT and TRACKING_TEXT. - */ - core.bool sslCompliant; - /** - * Initial wait time type before making the asset visible. Applicable to the - * following creative types: all RICH_MEDIA. - * Possible string values are: - * - "ASSET_START_TIME_TYPE_CUSTOM" - * - "ASSET_START_TIME_TYPE_NONE" - */ - core.String startTimeType; - /** - * Streaming URL for video asset. This is a read-only field. Applicable to the - * following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.String streamingServingUrl; - /** - * Whether the asset is transparent. Applicable to the following creative - * types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets. - */ - core.bool transparency; - /** - * Whether the asset is vertically locked. This is a read-only field. - * Applicable to the following creative types: all RICH_MEDIA. - */ - core.bool verticallyLocked; - /** - * Detected video duration for video asset. This is a read-only field. - * Applicable to the following creative types: INSTREAM_VIDEO and all VPAID. - */ - core.double videoDuration; - /** - * Window mode options for flash assets. Applicable to the following creative - * types: FLASH_INPAGE, RICH_MEDIA_EXPANDING, RICH_MEDIA_IM_EXPAND, - * RICH_MEDIA_INPAGE, and RICH_MEDIA_INPAGE_FLOATING. - * Possible string values are: - * - "OPAQUE" - * - "TRANSPARENT" - * - "WINDOW" - */ - core.String windowMode; - /** - * zIndex value of an asset. This is a read-only field. Applicable to the - * following creative types: all RICH_MEDIA.Additionally, only applicable to - * assets whose displayType is NOT one of the following types: - * ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. - */ - core.int zIndex; - /** - * File name of zip file. This is a read-only field. Applicable to the - * following creative types: HTML5_BANNER. - */ - core.String zipFilename; - /** - * Size of zip file. This is a read-only field. Applicable to the following - * creative types: HTML5_BANNER. - */ - core.String zipFilesize; - - CreativeAsset(); - - CreativeAsset.fromJson(core.Map _json) { - if (_json.containsKey("actionScript3")) { - actionScript3 = _json["actionScript3"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("alignment")) { - alignment = _json["alignment"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("backupImageExit")) { - backupImageExit = new CreativeCustomEvent.fromJson(_json["backupImageExit"]); - } - if (_json.containsKey("bitRate")) { - bitRate = _json["bitRate"]; - } - if (_json.containsKey("childAssetType")) { - childAssetType = _json["childAssetType"]; - } - if (_json.containsKey("collapsedSize")) { - collapsedSize = new Size.fromJson(_json["collapsedSize"]); - } - if (_json.containsKey("customStartTimeValue")) { - customStartTimeValue = _json["customStartTimeValue"]; - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("displayType")) { - displayType = _json["displayType"]; - } - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("durationType")) { - durationType = _json["durationType"]; - } - if (_json.containsKey("expandedDimension")) { - expandedDimension = new Size.fromJson(_json["expandedDimension"]); - } - if (_json.containsKey("fileSize")) { - fileSize = _json["fileSize"]; - } - if (_json.containsKey("flashVersion")) { - flashVersion = _json["flashVersion"]; - } - if (_json.containsKey("hideFlashObjects")) { - hideFlashObjects = _json["hideFlashObjects"]; - } - if (_json.containsKey("hideSelectionBoxes")) { - hideSelectionBoxes = _json["hideSelectionBoxes"]; - } - if (_json.containsKey("horizontallyLocked")) { - horizontallyLocked = _json["horizontallyLocked"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("mimeType")) { - mimeType = _json["mimeType"]; - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("originalBackup")) { - originalBackup = _json["originalBackup"]; - } - if (_json.containsKey("position")) { - position = new OffsetPosition.fromJson(_json["position"]); - } - if (_json.containsKey("positionLeftUnit")) { - positionLeftUnit = _json["positionLeftUnit"]; - } - if (_json.containsKey("positionTopUnit")) { - positionTopUnit = _json["positionTopUnit"]; - } - if (_json.containsKey("progressiveServingUrl")) { - progressiveServingUrl = _json["progressiveServingUrl"]; - } - if (_json.containsKey("pushdown")) { - pushdown = _json["pushdown"]; - } - if (_json.containsKey("pushdownDuration")) { - pushdownDuration = _json["pushdownDuration"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTimeType")) { - startTimeType = _json["startTimeType"]; - } - if (_json.containsKey("streamingServingUrl")) { - streamingServingUrl = _json["streamingServingUrl"]; - } - if (_json.containsKey("transparency")) { - transparency = _json["transparency"]; - } - if (_json.containsKey("verticallyLocked")) { - verticallyLocked = _json["verticallyLocked"]; - } - if (_json.containsKey("videoDuration")) { - videoDuration = _json["videoDuration"]; - } - if (_json.containsKey("windowMode")) { - windowMode = _json["windowMode"]; - } - if (_json.containsKey("zIndex")) { - zIndex = _json["zIndex"]; - } - if (_json.containsKey("zipFilename")) { - zipFilename = _json["zipFilename"]; - } - if (_json.containsKey("zipFilesize")) { - zipFilesize = _json["zipFilesize"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (actionScript3 != null) { - _json["actionScript3"] = actionScript3; - } - if (active != null) { - _json["active"] = active; - } - if (alignment != null) { - _json["alignment"] = alignment; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (backupImageExit != null) { - _json["backupImageExit"] = (backupImageExit).toJson(); - } - if (bitRate != null) { - _json["bitRate"] = bitRate; - } - if (childAssetType != null) { - _json["childAssetType"] = childAssetType; - } - if (collapsedSize != null) { - _json["collapsedSize"] = (collapsedSize).toJson(); - } - if (customStartTimeValue != null) { - _json["customStartTimeValue"] = customStartTimeValue; - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (displayType != null) { - _json["displayType"] = displayType; - } - if (duration != null) { - _json["duration"] = duration; - } - if (durationType != null) { - _json["durationType"] = durationType; - } - if (expandedDimension != null) { - _json["expandedDimension"] = (expandedDimension).toJson(); - } - if (fileSize != null) { - _json["fileSize"] = fileSize; - } - if (flashVersion != null) { - _json["flashVersion"] = flashVersion; - } - if (hideFlashObjects != null) { - _json["hideFlashObjects"] = hideFlashObjects; - } - if (hideSelectionBoxes != null) { - _json["hideSelectionBoxes"] = hideSelectionBoxes; - } - if (horizontallyLocked != null) { - _json["horizontallyLocked"] = horizontallyLocked; - } - if (id != null) { - _json["id"] = id; - } - if (mimeType != null) { - _json["mimeType"] = mimeType; - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (originalBackup != null) { - _json["originalBackup"] = originalBackup; - } - if (position != null) { - _json["position"] = (position).toJson(); - } - if (positionLeftUnit != null) { - _json["positionLeftUnit"] = positionLeftUnit; - } - if (positionTopUnit != null) { - _json["positionTopUnit"] = positionTopUnit; - } - if (progressiveServingUrl != null) { - _json["progressiveServingUrl"] = progressiveServingUrl; - } - if (pushdown != null) { - _json["pushdown"] = pushdown; - } - if (pushdownDuration != null) { - _json["pushdownDuration"] = pushdownDuration; - } - if (role != null) { - _json["role"] = role; - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTimeType != null) { - _json["startTimeType"] = startTimeType; - } - if (streamingServingUrl != null) { - _json["streamingServingUrl"] = streamingServingUrl; - } - if (transparency != null) { - _json["transparency"] = transparency; - } - if (verticallyLocked != null) { - _json["verticallyLocked"] = verticallyLocked; - } - if (videoDuration != null) { - _json["videoDuration"] = videoDuration; - } - if (windowMode != null) { - _json["windowMode"] = windowMode; - } - if (zIndex != null) { - _json["zIndex"] = zIndex; - } - if (zipFilename != null) { - _json["zipFilename"] = zipFilename; - } - if (zipFilesize != null) { - _json["zipFilesize"] = zipFilesize; - } - return _json; - } -} - -/** Creative Asset ID. */ -class CreativeAssetId { - /** - * Name of the creative asset. This is a required field while inserting an - * asset. After insertion, this assetIdentifier is used to identify the - * uploaded asset. Characters in the name must be alphanumeric or one of the - * following: ".-_ ". Spaces are allowed. - */ - core.String name; - /** - * Type of asset to upload. This is a required field. IMAGE is solely used for - * IMAGE creatives. Other image assets should use HTML_IMAGE. - * Possible string values are: - * - "FLASH" - * - "HTML" - * - "HTML_IMAGE" - * - "IMAGE" - * - "VIDEO" - */ - core.String type; - - CreativeAssetId(); - - CreativeAssetId.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * CreativeAssets contains properties of a creative asset file which will be - * uploaded or has already been uploaded. Refer to the creative sample code for - * how to upload assets and insert a creative. - */ -class CreativeAssetMetadata { - /** ID of the creative asset. This is a required field. */ - CreativeAssetId assetIdentifier; - /** - * List of detected click tags for assets. This is a read-only auto-generated - * field. - */ - core.List<ClickTag> clickTags; - /** - * List of feature dependencies for the creative asset that are detected by - * DCM. Feature dependencies are features that a browser must be able to - * support in order to render your HTML5 creative correctly. This is a - * read-only, auto-generated field. - */ - core.List<core.String> detectedFeatures; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeAssetMetadata". - */ - core.String kind; - /** - * Rules validated during code generation that generated a warning. This is a - * read-only, auto-generated field. - * - * Possible values are: - * - "ADMOB_REFERENCED" - * - "ASSET_FORMAT_UNSUPPORTED_DCM" - * - "ASSET_INVALID" - * - "CLICK_TAG_HARD_CODED" - * - "CLICK_TAG_INVALID" - * - "CLICK_TAG_IN_GWD" - * - "CLICK_TAG_MISSING" - * - "CLICK_TAG_MORE_THAN_ONE" - * - "CLICK_TAG_NON_TOP_LEVEL" - * - "COMPONENT_UNSUPPORTED_DCM" - * - "ENABLER_UNSUPPORTED_METHOD_DCM" - * - "EXTERNAL_FILE_REFERENCED" - * - "FILE_DETAIL_EMPTY" - * - "FILE_TYPE_INVALID" - * - "GWD_PROPERTIES_INVALID" - * - "HTML5_FEATURE_UNSUPPORTED" - * - "LINKED_FILE_NOT_FOUND" - * - "MAX_FLASH_VERSION_11" - * - "MRAID_REFERENCED" - * - "NOT_SSL_COMPLIANT" - * - "ORPHANED_ASSET" - * - "PRIMARY_HTML_MISSING" - * - "SVG_INVALID" - * - "ZIP_INVALID" - */ - core.List<core.String> warnedValidationRules; - - CreativeAssetMetadata(); - - CreativeAssetMetadata.fromJson(core.Map _json) { - if (_json.containsKey("assetIdentifier")) { - assetIdentifier = new CreativeAssetId.fromJson(_json["assetIdentifier"]); - } - if (_json.containsKey("clickTags")) { - clickTags = _json["clickTags"].map((value) => new ClickTag.fromJson(value)).toList(); - } - if (_json.containsKey("detectedFeatures")) { - detectedFeatures = _json["detectedFeatures"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("warnedValidationRules")) { - warnedValidationRules = _json["warnedValidationRules"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (assetIdentifier != null) { - _json["assetIdentifier"] = (assetIdentifier).toJson(); - } - if (clickTags != null) { - _json["clickTags"] = clickTags.map((value) => (value).toJson()).toList(); - } - if (detectedFeatures != null) { - _json["detectedFeatures"] = detectedFeatures; - } - if (kind != null) { - _json["kind"] = kind; - } - if (warnedValidationRules != null) { - _json["warnedValidationRules"] = warnedValidationRules; - } - return _json; - } -} - -/** Creative Assignment. */ -class CreativeAssignment { - /** - * Whether this creative assignment is active. When true, the creative will be - * included in the ad's rotation. - */ - core.bool active; - /** - * Whether applicable event tags should fire when this creative assignment is - * rendered. If this value is unset when the ad is inserted or updated, it - * will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, - * INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. - */ - core.bool applyEventTags; - /** Click-through URL of the creative assignment. */ - ClickThroughUrl clickThroughUrl; - /** - * Companion creative overrides for this creative assignment. Applicable to - * video ads. - */ - core.List<CompanionClickThroughOverride> companionCreativeOverrides; - /** - * Creative group assignments for this creative assignment. Only one - * assignment per creative group number is allowed for a maximum of two - * assignments. - */ - core.List<CreativeGroupAssignment> creativeGroupAssignments; - /** ID of the creative to be assigned. This is a required field. */ - core.String creativeId; - /** - * Dimension value for the ID of the creative. This is a read-only, - * auto-generated field. - */ - DimensionValue creativeIdDimensionValue; - /** - * Date and time that the assigned creative should stop serving. Must be later - * than the start time. - */ - core.DateTime endTime; - /** - * Rich media exit overrides for this creative assignment. - * Applicable when the creative type is any of the following: - * - RICH_MEDIA_INPAGE - * - RICH_MEDIA_INPAGE_FLOATING - * - RICH_MEDIA_IM_EXPAND - * - RICH_MEDIA_EXPANDING - * - RICH_MEDIA_INTERSTITIAL_FLOAT - * - RICH_MEDIA_MOBILE_IN_APP - * - RICH_MEDIA_MULTI_FLOATING - * - RICH_MEDIA_PEEL_DOWN - * - ADVANCED_BANNER - * - VPAID_LINEAR - * - VPAID_NON_LINEAR - */ - core.List<RichMediaExitOverride> richMediaExitOverrides; - /** - * Sequence number of the creative assignment, applicable when the rotation - * type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. - */ - core.int sequence; - /** - * Whether the creative to be assigned is SSL-compliant. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslCompliant; - /** Date and time that the assigned creative should start serving. */ - core.DateTime startTime; - /** - * Weight of the creative assignment, applicable when the rotation type is - * CREATIVE_ROTATION_TYPE_RANDOM. - */ - core.int weight; - - CreativeAssignment(); - - CreativeAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("applyEventTags")) { - applyEventTags = _json["applyEventTags"]; - } - if (_json.containsKey("clickThroughUrl")) { - clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); - } - if (_json.containsKey("companionCreativeOverrides")) { - companionCreativeOverrides = _json["companionCreativeOverrides"].map((value) => new CompanionClickThroughOverride.fromJson(value)).toList(); - } - if (_json.containsKey("creativeGroupAssignments")) { - creativeGroupAssignments = _json["creativeGroupAssignments"].map((value) => new CreativeGroupAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("creativeIdDimensionValue")) { - creativeIdDimensionValue = new DimensionValue.fromJson(_json["creativeIdDimensionValue"]); - } - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("richMediaExitOverrides")) { - richMediaExitOverrides = _json["richMediaExitOverrides"].map((value) => new RichMediaExitOverride.fromJson(value)).toList(); - } - if (_json.containsKey("sequence")) { - sequence = _json["sequence"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (applyEventTags != null) { - _json["applyEventTags"] = applyEventTags; - } - if (clickThroughUrl != null) { - _json["clickThroughUrl"] = (clickThroughUrl).toJson(); - } - if (companionCreativeOverrides != null) { - _json["companionCreativeOverrides"] = companionCreativeOverrides.map((value) => (value).toJson()).toList(); - } - if (creativeGroupAssignments != null) { - _json["creativeGroupAssignments"] = creativeGroupAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (creativeIdDimensionValue != null) { - _json["creativeIdDimensionValue"] = (creativeIdDimensionValue).toJson(); - } - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (richMediaExitOverrides != null) { - _json["richMediaExitOverrides"] = richMediaExitOverrides.map((value) => (value).toJson()).toList(); - } - if (sequence != null) { - _json["sequence"] = sequence; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Creative Custom Event. */ -class CreativeCustomEvent { - /** - * Unique ID of this event used by DDM Reporting and Data Transfer. This is a - * read-only field. - */ - core.String advertiserCustomEventId; - /** User-entered name for the event. */ - core.String advertiserCustomEventName; - /** - * Type of the event. This is a read-only field. - * Possible string values are: - * - "ADVERTISER_EVENT_COUNTER" - * - "ADVERTISER_EVENT_EXIT" - * - "ADVERTISER_EVENT_TIMER" - */ - core.String advertiserCustomEventType; - /** - * Artwork label column, used to link events in DCM back to events in Studio. - * This is a required field and should not be modified after insertion. - */ - core.String artworkLabel; - /** - * Artwork type used by the creative.This is a read-only field. - * Possible string values are: - * - "ARTWORK_TYPE_FLASH" - * - "ARTWORK_TYPE_HTML5" - * - "ARTWORK_TYPE_IMAGE" - * - "ARTWORK_TYPE_MIXED" - */ - core.String artworkType; - /** Exit URL of the event. This field is used only for exit events. */ - core.String exitUrl; - /** - * ID of this event. This is a required field and should not be modified after - * insertion. - */ - core.String id; - /** - * Properties for rich media popup windows. This field is used only for exit - * events. - */ - PopupWindowProperties popupWindowProperties; - /** - * Target type used by the event. - * Possible string values are: - * - "TARGET_BLANK" - * - "TARGET_PARENT" - * - "TARGET_POPUP" - * - "TARGET_SELF" - * - "TARGET_TOP" - */ - core.String targetType; - /** - * Video reporting ID, used to differentiate multiple videos in a single - * creative. This is a read-only field. - */ - core.String videoReportingId; - - CreativeCustomEvent(); - - CreativeCustomEvent.fromJson(core.Map _json) { - if (_json.containsKey("advertiserCustomEventId")) { - advertiserCustomEventId = _json["advertiserCustomEventId"]; - } - if (_json.containsKey("advertiserCustomEventName")) { - advertiserCustomEventName = _json["advertiserCustomEventName"]; - } - if (_json.containsKey("advertiserCustomEventType")) { - advertiserCustomEventType = _json["advertiserCustomEventType"]; - } - if (_json.containsKey("artworkLabel")) { - artworkLabel = _json["artworkLabel"]; - } - if (_json.containsKey("artworkType")) { - artworkType = _json["artworkType"]; - } - if (_json.containsKey("exitUrl")) { - exitUrl = _json["exitUrl"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("popupWindowProperties")) { - popupWindowProperties = new PopupWindowProperties.fromJson(_json["popupWindowProperties"]); - } - if (_json.containsKey("targetType")) { - targetType = _json["targetType"]; - } - if (_json.containsKey("videoReportingId")) { - videoReportingId = _json["videoReportingId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (advertiserCustomEventId != null) { - _json["advertiserCustomEventId"] = advertiserCustomEventId; - } - if (advertiserCustomEventName != null) { - _json["advertiserCustomEventName"] = advertiserCustomEventName; - } - if (advertiserCustomEventType != null) { - _json["advertiserCustomEventType"] = advertiserCustomEventType; - } - if (artworkLabel != null) { - _json["artworkLabel"] = artworkLabel; - } - if (artworkType != null) { - _json["artworkType"] = artworkType; - } - if (exitUrl != null) { - _json["exitUrl"] = exitUrl; - } - if (id != null) { - _json["id"] = id; - } - if (popupWindowProperties != null) { - _json["popupWindowProperties"] = (popupWindowProperties).toJson(); - } - if (targetType != null) { - _json["targetType"] = targetType; - } - if (videoReportingId != null) { - _json["videoReportingId"] = videoReportingId; - } - return _json; - } -} - -/** Contains properties of a creative field. */ -class CreativeField { - /** - * Account ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative field. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** ID of this creative field. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeField". - */ - core.String kind; - /** - * Name of this creative field. This is a required field and must be less than - * 256 characters long and unique among creative fields of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative field. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeField(); - - CreativeField.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Field Assignment. */ -class CreativeFieldAssignment { - /** ID of the creative field. */ - core.String creativeFieldId; - /** ID of the creative field value. */ - core.String creativeFieldValueId; - - CreativeFieldAssignment(); - - CreativeFieldAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldId")) { - creativeFieldId = _json["creativeFieldId"]; - } - if (_json.containsKey("creativeFieldValueId")) { - creativeFieldValueId = _json["creativeFieldValueId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldId != null) { - _json["creativeFieldId"] = creativeFieldId; - } - if (creativeFieldValueId != null) { - _json["creativeFieldValueId"] = creativeFieldValueId; - } - return _json; - } -} - -/** Contains properties of a creative field value. */ -class CreativeFieldValue { - /** - * ID of this creative field value. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValue". - */ - core.String kind; - /** - * Value of this creative field value. It needs to be less than 256 characters - * in length and unique per creative field. - */ - core.String value; - - CreativeFieldValue(); - - CreativeFieldValue.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Creative Field Value List Response */ -class CreativeFieldValuesListResponse { - /** Creative field value collection. */ - core.List<CreativeFieldValue> creativeFieldValues; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldValuesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldValuesListResponse(); - - CreativeFieldValuesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFieldValues")) { - creativeFieldValues = _json["creativeFieldValues"].map((value) => new CreativeFieldValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFieldValues != null) { - _json["creativeFieldValues"] = creativeFieldValues.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative Field List Response */ -class CreativeFieldsListResponse { - /** Creative field collection. */ - core.List<CreativeField> creativeFields; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeFieldsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeFieldsListResponse(); - - CreativeFieldsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeFields")) { - creativeFields = _json["creativeFields"].map((value) => new CreativeField.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeFields != null) { - _json["creativeFields"] = creativeFields.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a creative group. */ -class CreativeGroup { - /** - * Account ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this creative group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Subgroup of the creative group. Assign your creative groups to one of the - * following subgroups in order to filter or manage them more easily. This - * field is required on insertion and is read-only after insertion. - * Acceptable values are: - * - 1 - * - 2 - */ - core.int groupNumber; - /** ID of this creative group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroup". - */ - core.String kind; - /** - * Name of this creative group. This is a required field and must be less than - * 256 characters long and unique among creative groups of the same - * advertiser. - */ - core.String name; - /** - * Subaccount ID of this creative group. This is a read-only field that can be - * left blank. - */ - core.String subaccountId; - - CreativeGroup(); - - CreativeGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("groupNumber")) { - groupNumber = _json["groupNumber"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (groupNumber != null) { - _json["groupNumber"] = groupNumber; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Creative Group Assignment. */ -class CreativeGroupAssignment { - /** ID of the creative group to be assigned. */ - core.String creativeGroupId; - /** - * Creative group number of the creative group assignment. - * Possible string values are: - * - "CREATIVE_GROUP_ONE" - * - "CREATIVE_GROUP_TWO" - */ - core.String creativeGroupNumber; - - CreativeGroupAssignment(); - - CreativeGroupAssignment.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroupId")) { - creativeGroupId = _json["creativeGroupId"]; - } - if (_json.containsKey("creativeGroupNumber")) { - creativeGroupNumber = _json["creativeGroupNumber"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroupId != null) { - _json["creativeGroupId"] = creativeGroupId; - } - if (creativeGroupNumber != null) { - _json["creativeGroupNumber"] = creativeGroupNumber; - } - return _json; - } -} - -/** Creative Group List Response */ -class CreativeGroupsListResponse { - /** Creative group collection. */ - core.List<CreativeGroup> creativeGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativeGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativeGroupsListResponse(); - - CreativeGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creativeGroups")) { - creativeGroups = _json["creativeGroups"].map((value) => new CreativeGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeGroups != null) { - _json["creativeGroups"] = creativeGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Creative optimization settings. */ -class CreativeOptimizationConfiguration { - /** - * ID of this creative optimization config. This field is auto-generated when - * the campaign is inserted or updated. It can be null for existing campaigns. - */ - core.String id; - /** - * Name of this creative optimization config. This is a required field and - * must be less than 129 characters long. - */ - core.String name; - /** List of optimization activities associated with this configuration. */ - core.List<OptimizationActivity> optimizationActivitys; - /** - * Optimization model for this configuration. - * Possible string values are: - * - "CLICK" - * - "POST_CLICK" - * - "POST_CLICK_AND_IMPRESSION" - * - "POST_IMPRESSION" - * - "VIDEO_COMPLETION" - */ - core.String optimizationModel; - - CreativeOptimizationConfiguration(); - - CreativeOptimizationConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("optimizationActivitys")) { - optimizationActivitys = _json["optimizationActivitys"].map((value) => new OptimizationActivity.fromJson(value)).toList(); - } - if (_json.containsKey("optimizationModel")) { - optimizationModel = _json["optimizationModel"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (optimizationActivitys != null) { - _json["optimizationActivitys"] = optimizationActivitys.map((value) => (value).toJson()).toList(); - } - if (optimizationModel != null) { - _json["optimizationModel"] = optimizationModel; - } - return _json; - } -} - -/** Creative Rotation. */ -class CreativeRotation { - /** Creative assignments in this creative rotation. */ - core.List<CreativeAssignment> creativeAssignments; - /** - * Creative optimization configuration that is used by this ad. It should - * refer to one of the existing optimization configurations in the ad's - * campaign. If it is unset or set to 0, then the campaign's default - * optimization configuration will be used for this ad. - */ - core.String creativeOptimizationConfigurationId; - /** - * Type of creative rotation. Can be used to specify whether to use sequential - * or random rotation. - * Possible string values are: - * - "CREATIVE_ROTATION_TYPE_RANDOM" - * - "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - */ - core.String type; - /** - * Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. - * Possible string values are: - * - "WEIGHT_STRATEGY_CUSTOM" - * - "WEIGHT_STRATEGY_EQUAL" - * - "WEIGHT_STRATEGY_HIGHEST_CTR" - * - "WEIGHT_STRATEGY_OPTIMIZED" - */ - core.String weightCalculationStrategy; - - CreativeRotation(); - - CreativeRotation.fromJson(core.Map _json) { - if (_json.containsKey("creativeAssignments")) { - creativeAssignments = _json["creativeAssignments"].map((value) => new CreativeAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("creativeOptimizationConfigurationId")) { - creativeOptimizationConfigurationId = _json["creativeOptimizationConfigurationId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("weightCalculationStrategy")) { - weightCalculationStrategy = _json["weightCalculationStrategy"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creativeAssignments != null) { - _json["creativeAssignments"] = creativeAssignments.map((value) => (value).toJson()).toList(); - } - if (creativeOptimizationConfigurationId != null) { - _json["creativeOptimizationConfigurationId"] = creativeOptimizationConfigurationId; - } - if (type != null) { - _json["type"] = type; - } - if (weightCalculationStrategy != null) { - _json["weightCalculationStrategy"] = weightCalculationStrategy; - } - return _json; - } -} - -/** Creative Settings */ -class CreativeSettings { - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameFooter; - /** - * Header text for iFrames for this site. Must be less than or equal to 2000 - * characters long. - */ - core.String iFrameHeader; - - CreativeSettings(); - - CreativeSettings.fromJson(core.Map _json) { - if (_json.containsKey("iFrameFooter")) { - iFrameFooter = _json["iFrameFooter"]; - } - if (_json.containsKey("iFrameHeader")) { - iFrameHeader = _json["iFrameHeader"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (iFrameFooter != null) { - _json["iFrameFooter"] = iFrameFooter; - } - if (iFrameHeader != null) { - _json["iFrameHeader"] = iFrameHeader; - } - return _json; - } -} - -/** Creative List Response */ -class CreativesListResponse { - /** Creative collection. */ - core.List<Creative> creatives; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#creativesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - CreativesListResponse(); - - CreativesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("creatives")) { - creatives = _json["creatives"].map((value) => new Creative.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (creatives != null) { - _json["creatives"] = creatives.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "CROSS_DIMENSION_REACH". - */ -class CrossDimensionReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "breakdown" section - * of the report. - */ - core.List<Dimension> breakdown; - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * The kind of resource this is, in this case - * dfareporting#crossDimensionReachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected in the "overlapMetricNames" - * section of the report. - */ - core.List<Metric> overlapMetrics; - - CrossDimensionReachReportCompatibleFields(); - - CrossDimensionReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("overlapMetrics")) { - overlapMetrics = _json["overlapMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (overlapMetrics != null) { - _json["overlapMetrics"] = overlapMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a Custom Rich Media Events group. */ -class CustomRichMediaEvents { - /** - * List of custom rich media event IDs. Dimension values must be all of type - * dfa:richMediaEventTypeIdAndName. - */ - core.List<DimensionValue> filteredEventIds; - /** - * The kind of resource this is, in this case - * dfareporting#customRichMediaEvents. - */ - core.String kind; - - CustomRichMediaEvents(); - - CustomRichMediaEvents.fromJson(core.Map _json) { - if (_json.containsKey("filteredEventIds")) { - filteredEventIds = _json["filteredEventIds"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (filteredEventIds != null) { - _json["filteredEventIds"] = filteredEventIds.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Represents a date range. */ -class DateRange { - /** - * The end date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The kind of resource this is, in this case dfareporting#dateRange. */ - core.String kind; - /** - * The date range relative to the date of when the report is run. - * Possible string values are: - * - "LAST_24_MONTHS" - * - "LAST_30_DAYS" - * - "LAST_365_DAYS" - * - "LAST_7_DAYS" - * - "LAST_90_DAYS" - * - "MONTH_TO_DATE" - * - "PREVIOUS_MONTH" - * - "PREVIOUS_QUARTER" - * - "PREVIOUS_WEEK" - * - "PREVIOUS_YEAR" - * - "QUARTER_TO_DATE" - * - "TODAY" - * - "WEEK_TO_DATE" - * - "YEAR_TO_DATE" - * - "YESTERDAY" - */ - core.String relativeDateRange; - /** - * The start date of the date range, inclusive. A string of the format: - * "yyyy-MM-dd". - */ - core.DateTime startDate; - - DateRange(); - - DateRange.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("relativeDateRange")) { - relativeDateRange = _json["relativeDateRange"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (kind != null) { - _json["kind"] = kind; - } - if (relativeDateRange != null) { - _json["relativeDateRange"] = relativeDateRange; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Day Part Targeting. */ -class DayPartTargeting { - /** - * Days of the week when the ad will serve. - * - * Acceptable values are: - * - "SUNDAY" - * - "MONDAY" - * - "TUESDAY" - * - "WEDNESDAY" - * - "THURSDAY" - * - "FRIDAY" - * - "SATURDAY" - */ - core.List<core.String> daysOfWeek; - /** - * Hours of the day when the ad will serve. Must be an integer between 0 and - * 23 (inclusive), where 0 is midnight to 1 AM, and 23 is 11 PM to midnight. - * Can be specified with days of week, in which case the ad would serve during - * these hours on the specified days. For example, if Monday, Wednesday, - * Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and - * 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at - * 9-10am and 3-5pm. - */ - core.List<core.int> hoursOfDay; - /** - * Whether or not to use the user's local time. If false, the America/New York - * time zone applies. - */ - core.bool userLocalTime; - - DayPartTargeting(); - - DayPartTargeting.fromJson(core.Map _json) { - if (_json.containsKey("daysOfWeek")) { - daysOfWeek = _json["daysOfWeek"]; - } - if (_json.containsKey("hoursOfDay")) { - hoursOfDay = _json["hoursOfDay"]; - } - if (_json.containsKey("userLocalTime")) { - userLocalTime = _json["userLocalTime"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (daysOfWeek != null) { - _json["daysOfWeek"] = daysOfWeek; - } - if (hoursOfDay != null) { - _json["hoursOfDay"] = hoursOfDay; - } - if (userLocalTime != null) { - _json["userLocalTime"] = userLocalTime; - } - return _json; - } -} - -/** - * Properties of inheriting and overriding the default click-through event tag. - * A campaign may override the event tag defined at the advertiser level, and an - * ad may also override the campaign's setting further. - */ -class DefaultClickThroughEventTagProperties { - /** - * ID of the click-through event tag to apply to all ads in this entity's - * scope. - */ - core.String defaultClickThroughEventTagId; - /** - * Whether this entity should override the inherited default click-through - * event tag with its own defined value. - */ - core.bool overrideInheritedEventTag; - - DefaultClickThroughEventTagProperties(); - - DefaultClickThroughEventTagProperties.fromJson(core.Map _json) { - if (_json.containsKey("defaultClickThroughEventTagId")) { - defaultClickThroughEventTagId = _json["defaultClickThroughEventTagId"]; - } - if (_json.containsKey("overrideInheritedEventTag")) { - overrideInheritedEventTag = _json["overrideInheritedEventTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultClickThroughEventTagId != null) { - _json["defaultClickThroughEventTagId"] = defaultClickThroughEventTagId; - } - if (overrideInheritedEventTag != null) { - _json["overrideInheritedEventTag"] = overrideInheritedEventTag; - } - return _json; - } -} - -/** Delivery Schedule. */ -class DeliverySchedule { - /** - * Limit on the number of times an individual user can be served the ad within - * a specified period of time. - */ - FrequencyCap frequencyCap; - /** - * Whether or not hard cutoff is enabled. If true, the ad will not serve after - * the end date and time. Otherwise the ad will continue to be served until it - * has reached its delivery goals. - */ - core.bool hardCutoff; - /** - * Impression ratio for this ad. This ratio determines how often each ad is - * served relative to the others. For example, if ad A has an impression ratio - * of 1 and ad B has an impression ratio of 3, then DCM will serve ad B three - * times as often as ad A. Must be between 1 and 10. - */ - core.String impressionRatio; - /** - * Serving priority of an ad, with respect to other ads. The lower the - * priority number, the greater the priority with which it is served. - * Possible string values are: - * - "AD_PRIORITY_01" - * - "AD_PRIORITY_02" - * - "AD_PRIORITY_03" - * - "AD_PRIORITY_04" - * - "AD_PRIORITY_05" - * - "AD_PRIORITY_06" - * - "AD_PRIORITY_07" - * - "AD_PRIORITY_08" - * - "AD_PRIORITY_09" - * - "AD_PRIORITY_10" - * - "AD_PRIORITY_11" - * - "AD_PRIORITY_12" - * - "AD_PRIORITY_13" - * - "AD_PRIORITY_14" - * - "AD_PRIORITY_15" - * - "AD_PRIORITY_16" - */ - core.String priority; - - DeliverySchedule(); - - DeliverySchedule.fromJson(core.Map _json) { - if (_json.containsKey("frequencyCap")) { - frequencyCap = new FrequencyCap.fromJson(_json["frequencyCap"]); - } - if (_json.containsKey("hardCutoff")) { - hardCutoff = _json["hardCutoff"]; - } - if (_json.containsKey("impressionRatio")) { - impressionRatio = _json["impressionRatio"]; - } - if (_json.containsKey("priority")) { - priority = _json["priority"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (frequencyCap != null) { - _json["frequencyCap"] = (frequencyCap).toJson(); - } - if (hardCutoff != null) { - _json["hardCutoff"] = hardCutoff; - } - if (impressionRatio != null) { - _json["impressionRatio"] = impressionRatio; - } - if (priority != null) { - _json["priority"] = priority; - } - return _json; - } -} - -/** DFP Settings */ -class DfpSettings { - /** DFP network code for this directory site. */ - core.String dfpNetworkCode; - /** DFP network name for this directory site. */ - core.String dfpNetworkName; - /** Whether this directory site accepts programmatic placements. */ - core.bool programmaticPlacementAccepted; - /** Whether this directory site accepts publisher-paid tags. */ - core.bool pubPaidPlacementAccepted; - /** - * Whether this directory site is available only via DoubleClick Publisher - * Portal. - */ - core.bool publisherPortalOnly; - - DfpSettings(); - - DfpSettings.fromJson(core.Map _json) { - if (_json.containsKey("dfp_network_code")) { - dfpNetworkCode = _json["dfp_network_code"]; - } - if (_json.containsKey("dfp_network_name")) { - dfpNetworkName = _json["dfp_network_name"]; - } - if (_json.containsKey("programmaticPlacementAccepted")) { - programmaticPlacementAccepted = _json["programmaticPlacementAccepted"]; - } - if (_json.containsKey("pubPaidPlacementAccepted")) { - pubPaidPlacementAccepted = _json["pubPaidPlacementAccepted"]; - } - if (_json.containsKey("publisherPortalOnly")) { - publisherPortalOnly = _json["publisherPortalOnly"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dfpNetworkCode != null) { - _json["dfp_network_code"] = dfpNetworkCode; - } - if (dfpNetworkName != null) { - _json["dfp_network_name"] = dfpNetworkName; - } - if (programmaticPlacementAccepted != null) { - _json["programmaticPlacementAccepted"] = programmaticPlacementAccepted; - } - if (pubPaidPlacementAccepted != null) { - _json["pubPaidPlacementAccepted"] = pubPaidPlacementAccepted; - } - if (publisherPortalOnly != null) { - _json["publisherPortalOnly"] = publisherPortalOnly; - } - return _json; - } -} - -/** Represents a dimension. */ -class Dimension { - /** The kind of resource this is, in this case dfareporting#dimension. */ - core.String kind; - /** The dimension name, e.g. dfa:advertiser */ - core.String name; - - Dimension(); - - Dimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Represents a dimension filter. */ -class DimensionFilter { - /** The name of the dimension to filter. */ - core.String dimensionName; - /** - * The kind of resource this is, in this case dfareporting#dimensionFilter. - */ - core.String kind; - /** The value of the dimension to filter. */ - core.String value; - - DimensionFilter(); - - DimensionFilter.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents a DimensionValue resource. */ -class DimensionValue { - /** The name of the dimension. */ - core.String dimensionName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The ID associated with the value if available. */ - core.String id; - /** - * The kind of resource this is, in this case dfareporting#dimensionValue. - */ - core.String kind; - /** - * Determines how the 'value' field is matched when filtering. If not - * specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed - * as a placeholder for variable length character sequences, and it can be - * escaped with a backslash. Note, only paid search dimensions - * ('dfa:paidSearch*') allow a matchType other than EXACT. - * Possible string values are: - * - "BEGINS_WITH" - * - "CONTAINS" - * - "EXACT" - * - "WILDCARD_EXPRESSION" - */ - core.String matchType; - /** The value of the dimension. */ - core.String value; - - DimensionValue(); - - DimensionValue.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("matchType")) { - matchType = _json["matchType"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (matchType != null) { - _json["matchType"] = matchType; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Represents the list of DimensionValue resources. */ -class DimensionValueList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The dimension values returned in this response. */ - core.List<DimensionValue> items; - /** - * The kind of list this is, in this case dfareporting#dimensionValueList. - */ - core.String kind; - /** - * Continuation token used to page through dimension values. To retrieve the - * next page of results, set the next request's "pageToken" to the value of - * this field. The page token is only valid for a limited amount of time and - * should not be persisted. - */ - core.String nextPageToken; - - DimensionValueList(); - - DimensionValueList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Represents a DimensionValuesRequest. */ -class DimensionValueRequest { - /** The name of the dimension for which values should be requested. */ - core.String dimensionName; - /** - * The end date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime endDate; - /** The list of filters by which to filter values. The filters are ANDed. */ - core.List<DimensionFilter> filters; - /** - * The kind of request this is, in this case - * dfareporting#dimensionValueRequest. - */ - core.String kind; - /** - * The start date of the date range for which to retrieve dimension values. A - * string of the format "yyyy-MM-dd". - */ - core.DateTime startDate; - - DimensionValueRequest(); - - DimensionValueRequest.fromJson(core.Map _json) { - if (_json.containsKey("dimensionName")) { - dimensionName = _json["dimensionName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("filters")) { - filters = _json["filters"].map((value) => new DimensionFilter.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionName != null) { - _json["dimensionName"] = dimensionName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (filters != null) { - _json["filters"] = filters.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** - * DirectorySites contains properties of a website from the Site Directory. - * Sites need to be added to an account via the Sites resource before they can - * be assigned to a placement. - */ -class DirectorySite { - /** Whether this directory site is active. */ - core.bool active; - /** Directory site contacts. */ - core.List<DirectorySiteContactAssignment> contactAssignments; - /** Country ID of this directory site. */ - core.String countryId; - /** - * Currency ID of this directory site. - * Possible values are: - * - "1" for USD - * - "2" for GBP - * - "3" for ESP - * - "4" for SEK - * - "5" for CAD - * - "6" for JPY - * - "7" for DEM - * - "8" for AUD - * - "9" for FRF - * - "10" for ITL - * - "11" for DKK - * - "12" for NOK - * - "13" for FIM - * - "14" for ZAR - * - "15" for IEP - * - "16" for NLG - * - "17" for EUR - * - "18" for KRW - * - "19" for TWD - * - "20" for SGD - * - "21" for CNY - * - "22" for HKD - * - "23" for NZD - * - "24" for MYR - * - "25" for BRL - * - "26" for PTE - * - "27" for MXP - * - "28" for CLP - * - "29" for TRY - * - "30" for ARS - * - "31" for PEN - * - "32" for ILS - * - "33" for CHF - * - "34" for VEF - * - "35" for COP - * - "36" for GTQ - * - "37" for PLN - * - "39" for INR - * - "40" for THB - * - "41" for IDR - * - "42" for CZK - * - "43" for RON - * - "44" for HUF - * - "45" for RUB - * - "46" for AED - * - "47" for BGN - * - "48" for HRK - */ - core.String currencyId; - /** Description of this directory site. */ - core.String description; - /** ID of this directory site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Tag types for regular placements. - * - * Acceptable values are: - * - "STANDARD" - * - "IFRAME_JAVASCRIPT_INPAGE" - * - "INTERNAL_REDIRECT_INPAGE" - * - "JAVASCRIPT_INPAGE" - */ - core.List<core.String> inpageTagFormats; - /** - * Tag types for interstitial placements. - * - * Acceptable values are: - * - "IFRAME_JAVASCRIPT_INTERSTITIAL" - * - "INTERNAL_REDIRECT_INTERSTITIAL" - * - "JAVASCRIPT_INTERSTITIAL" - */ - core.List<core.String> interstitialTagFormats; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySite". - */ - core.String kind; - /** Name of this directory site. */ - core.String name; - /** Parent directory site ID. */ - core.String parentId; - /** Directory site settings. */ - DirectorySiteSettings settings; - /** URL of this directory site. */ - core.String url; - - DirectorySite(); - - DirectorySite.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("contactAssignments")) { - contactAssignments = _json["contactAssignments"].map((value) => new DirectorySiteContactAssignment.fromJson(value)).toList(); - } - if (_json.containsKey("countryId")) { - countryId = _json["countryId"]; - } - if (_json.containsKey("currencyId")) { - currencyId = _json["currencyId"]; - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inpageTagFormats")) { - inpageTagFormats = _json["inpageTagFormats"]; - } - if (_json.containsKey("interstitialTagFormats")) { - interstitialTagFormats = _json["interstitialTagFormats"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentId")) { - parentId = _json["parentId"]; - } - if (_json.containsKey("settings")) { - settings = new DirectorySiteSettings.fromJson(_json["settings"]); - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (contactAssignments != null) { - _json["contactAssignments"] = contactAssignments.map((value) => (value).toJson()).toList(); - } - if (countryId != null) { - _json["countryId"] = countryId; - } - if (currencyId != null) { - _json["currencyId"] = currencyId; - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inpageTagFormats != null) { - _json["inpageTagFormats"] = inpageTagFormats; - } - if (interstitialTagFormats != null) { - _json["interstitialTagFormats"] = interstitialTagFormats; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentId != null) { - _json["parentId"] = parentId; - } - if (settings != null) { - _json["settings"] = (settings).toJson(); - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Contains properties of a Site Directory contact. */ -class DirectorySiteContact { - /** Address of this directory site contact. */ - core.String address; - /** Email address of this directory site contact. */ - core.String email; - /** First name of this directory site contact. */ - core.String firstName; - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContact". - */ - core.String kind; - /** Last name of this directory site contact. */ - core.String lastName; - /** Phone number of this directory site contact. */ - core.String phone; - /** - * Directory site contact role. - * Possible string values are: - * - "ADMIN" - * - "EDIT" - * - "VIEW" - */ - core.String role; - /** Title or designation of this directory site contact. */ - core.String title; - /** - * Directory site contact type. - * Possible string values are: - * - "BILLING" - * - "OTHER" - * - "SALES" - * - "TECHNICAL" - */ - core.String type; - - DirectorySiteContact(); - - DirectorySiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("role")) { - role = _json["role"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (role != null) { - _json["role"] = role; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Directory Site Contact Assignment */ -class DirectorySiteContactAssignment { - /** - * ID of this directory site contact. This is a read-only, auto-generated - * field. - */ - core.String contactId; - /** - * Visibility of this directory site contact assignment. When set to PUBLIC - * this contact assignment is visible to all account and agency users; when - * set to PRIVATE it is visible only to the site. - * Possible string values are: - * - "PRIVATE" - * - "PUBLIC" - */ - core.String visibility; - - DirectorySiteContactAssignment(); - - DirectorySiteContactAssignment.fromJson(core.Map _json) { - if (_json.containsKey("contactId")) { - contactId = _json["contactId"]; - } - if (_json.containsKey("visibility")) { - visibility = _json["visibility"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactId != null) { - _json["contactId"] = contactId; - } - if (visibility != null) { - _json["visibility"] = visibility; - } - return _json; - } -} - -/** Directory Site Contact List Response */ -class DirectorySiteContactsListResponse { - /** Directory site contact collection */ - core.List<DirectorySiteContact> directorySiteContacts; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySiteContactsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySiteContactsListResponse(); - - DirectorySiteContactsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySiteContacts")) { - directorySiteContacts = _json["directorySiteContacts"].map((value) => new DirectorySiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySiteContacts != null) { - _json["directorySiteContacts"] = directorySiteContacts.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Directory Site Settings */ -class DirectorySiteSettings { - /** Whether this directory site has disabled active view creatives. */ - core.bool activeViewOptOut; - /** Directory site DFP settings. */ - DfpSettings dfpSettings; - /** Whether this site accepts in-stream video ads. */ - core.bool instreamVideoPlacementAccepted; - /** Whether this site accepts interstitial ads. */ - core.bool interstitialPlacementAccepted; - /** Whether this directory site has disabled Nielsen OCR reach ratings. */ - core.bool nielsenOcrOptOut; - /** - * Whether this directory site has disabled generation of Verification ins - * tags. - */ - core.bool verificationTagOptOut; - /** - * Whether this directory site has disabled active view for in-stream video - * creatives. - */ - core.bool videoActiveViewOptOut; - - DirectorySiteSettings(); - - DirectorySiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("dfp_settings")) { - dfpSettings = new DfpSettings.fromJson(_json["dfp_settings"]); - } - if (_json.containsKey("instream_video_placement_accepted")) { - instreamVideoPlacementAccepted = _json["instream_video_placement_accepted"]; - } - if (_json.containsKey("interstitialPlacementAccepted")) { - interstitialPlacementAccepted = _json["interstitialPlacementAccepted"]; - } - if (_json.containsKey("nielsenOcrOptOut")) { - nielsenOcrOptOut = _json["nielsenOcrOptOut"]; - } - if (_json.containsKey("verificationTagOptOut")) { - verificationTagOptOut = _json["verificationTagOptOut"]; - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (dfpSettings != null) { - _json["dfp_settings"] = (dfpSettings).toJson(); - } - if (instreamVideoPlacementAccepted != null) { - _json["instream_video_placement_accepted"] = instreamVideoPlacementAccepted; - } - if (interstitialPlacementAccepted != null) { - _json["interstitialPlacementAccepted"] = interstitialPlacementAccepted; - } - if (nielsenOcrOptOut != null) { - _json["nielsenOcrOptOut"] = nielsenOcrOptOut; - } - if (verificationTagOptOut != null) { - _json["verificationTagOptOut"] = verificationTagOptOut; - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - return _json; - } -} - -/** Directory Site List Response */ -class DirectorySitesListResponse { - /** Directory site collection. */ - core.List<DirectorySite> directorySites; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#directorySitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - DirectorySitesListResponse(); - - DirectorySitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("directorySites")) { - directorySites = _json["directorySites"].map((value) => new DirectorySite.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (directorySites != null) { - _json["directorySites"] = directorySites.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of an event tag. */ -class EventTag { - /** - * Account ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Advertiser ID of this event tag. This field or the campaignId field is - * required on insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Campaign ID of this event tag. This field or the advertiserId field is - * required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * Whether this event tag should be automatically enabled for all of the - * advertiser's campaigns and ads. - */ - core.bool enabledByDefault; - /** - * Whether to remove this event tag from ads that are trafficked through - * DoubleClick Bid Manager to Ad Exchange. This may be useful if the event tag - * uses a pixel that is unapproved for Ad Exchange bids on one or more - * networks, such as the Google Display Network. - */ - core.bool excludeFromAdxRequests; - /** ID of this event tag. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTag". - */ - core.String kind; - /** - * Name of this event tag. This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Site filter type for this event tag. If no type is specified then the event - * tag will be applied to all sites. - * Possible string values are: - * - "BLACKLIST" - * - "WHITELIST" - */ - core.String siteFilterType; - /** - * Filter list of site IDs associated with this event tag. The siteFilterType - * determines whether this is a whitelist or blacklist filter. - */ - core.List<core.String> siteIds; - /** Whether this tag is SSL-compliant or not. This is a read-only field. */ - core.bool sslCompliant; - /** - * Status of this event tag. Must be ENABLED for this event tag to fire. This - * is a required field. - * Possible string values are: - * - "DISABLED" - * - "ENABLED" - */ - core.String status; - /** - * Subaccount ID of this event tag. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - /** - * Event tag type. Can be used to specify whether to use a third-party pixel, - * a third-party JavaScript URL, or a third-party click-through URL for either - * impression or click tracking. This is a required field. - * Possible string values are: - * - "CLICK_THROUGH_EVENT_TAG" - * - "IMPRESSION_IMAGE_EVENT_TAG" - * - "IMPRESSION_JAVASCRIPT_EVENT_TAG" - */ - core.String type; - /** - * Payload URL for this event tag. The URL on a click-through event tag should - * have a landing page URL appended to the end of it. This field is required - * on insertion. - */ - core.String url; - /** - * Number of times the landing page URL should be URL-escaped before being - * appended to the click-through event tag URL. Only applies to click-through - * event tags as specified by the event tag type. - */ - core.int urlEscapeLevels; - - EventTag(); - - EventTag.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("enabledByDefault")) { - enabledByDefault = _json["enabledByDefault"]; - } - if (_json.containsKey("excludeFromAdxRequests")) { - excludeFromAdxRequests = _json["excludeFromAdxRequests"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteFilterType")) { - siteFilterType = _json["siteFilterType"]; - } - if (_json.containsKey("siteIds")) { - siteIds = _json["siteIds"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - if (_json.containsKey("urlEscapeLevels")) { - urlEscapeLevels = _json["urlEscapeLevels"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (enabledByDefault != null) { - _json["enabledByDefault"] = enabledByDefault; - } - if (excludeFromAdxRequests != null) { - _json["excludeFromAdxRequests"] = excludeFromAdxRequests; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteFilterType != null) { - _json["siteFilterType"] = siteFilterType; - } - if (siteIds != null) { - _json["siteIds"] = siteIds; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - if (url != null) { - _json["url"] = url; - } - if (urlEscapeLevels != null) { - _json["urlEscapeLevels"] = urlEscapeLevels; - } - return _json; - } -} - -/** Event tag override information. */ -class EventTagOverride { - /** Whether this override is enabled. */ - core.bool enabled; - /** - * ID of this event tag override. This is a read-only, auto-generated field. - */ - core.String id; - - EventTagOverride(); - - EventTagOverride.fromJson(core.Map _json) { - if (_json.containsKey("enabled")) { - enabled = _json["enabled"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (enabled != null) { - _json["enabled"] = enabled; - } - if (id != null) { - _json["id"] = id; - } - return _json; - } -} - -/** Event Tag List Response */ -class EventTagsListResponse { - /** Event tag collection. */ - core.List<EventTag> eventTags; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#eventTagsListResponse". - */ - core.String kind; - - EventTagsListResponse(); - - EventTagsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("eventTags")) { - eventTags = _json["eventTags"].map((value) => new EventTag.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (eventTags != null) { - _json["eventTags"] = eventTags.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** The URLs where the completed report file can be downloaded. */ -class FileUrls { - /** The URL for downloading the report data through the API. */ - core.String apiUrl; - /** The URL for downloading the report data through a browser. */ - core.String browserUrl; - - FileUrls(); - - FileUrls.fromJson(core.Map _json) { - if (_json.containsKey("apiUrl")) { - apiUrl = _json["apiUrl"]; - } - if (_json.containsKey("browserUrl")) { - browserUrl = _json["browserUrl"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (apiUrl != null) { - _json["apiUrl"] = apiUrl; - } - if (browserUrl != null) { - _json["browserUrl"] = browserUrl; - } - return _json; - } -} - -/** - * Represents a File resource. A file contains the metadata for a report run. It - * shows the status of the run and holds the URLs to the generated report data - * if the run is finished and the status is "REPORT_AVAILABLE". - */ -class File { - /** - * The date range for which the file has report data. The date range will - * always be the absolute date range for which the report is run. - */ - DateRange dateRange; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename of the file. */ - core.String fileName; - /** - * The output format of the report. Only available once the file is available. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID of this report file. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#file. */ - core.String kind; - /** - * The timestamp in milliseconds since epoch when this file was last modified. - */ - core.String lastModifiedTime; - /** The ID of the report this file was generated from. */ - core.String reportId; - /** - * The status of the report file. - * Possible string values are: - * - "CANCELLED" - * - "FAILED" - * - "PROCESSING" - * - "REPORT_AVAILABLE" - */ - core.String status; - /** The URLs where the completed report file can be downloaded. */ - FileUrls urls; - - File(); - - File.fromJson(core.Map _json) { - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("reportId")) { - reportId = _json["reportId"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("urls")) { - urls = new FileUrls.fromJson(_json["urls"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (reportId != null) { - _json["reportId"] = reportId; - } - if (status != null) { - _json["status"] = status; - } - if (urls != null) { - _json["urls"] = (urls).toJson(); - } - return _json; - } -} - -/** Represents the list of File resources. */ -class FileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The files returned in this response. */ - core.List<File> items; - /** The kind of list this is, in this case dfareporting#fileList. */ - core.String kind; - /** - * Continuation token used to page through files. To retrieve the next page of - * results, set the next request's "pageToken" to the value of this field. The - * page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - FileList(); - - FileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new File.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Flight */ -class Flight { - /** Inventory item flight end date. */ - core.DateTime endDate; - /** Rate or cost of this flight. */ - core.String rateOrCost; - /** Inventory item flight start date. */ - core.DateTime startDate; - /** Units of this flight. */ - core.String units; - - Flight(); - - Flight.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("rateOrCost")) { - rateOrCost = _json["rateOrCost"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (rateOrCost != null) { - _json["rateOrCost"] = rateOrCost; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Floodlight Activity GenerateTag Response */ -class FloodlightActivitiesGenerateTagResponse { - /** Generated tag for this floodlight activity. */ - core.String floodlightActivityTag; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesGenerateTagResponse". - */ - core.String kind; - - FloodlightActivitiesGenerateTagResponse(); - - FloodlightActivitiesGenerateTagResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityTag")) { - floodlightActivityTag = _json["floodlightActivityTag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityTag != null) { - _json["floodlightActivityTag"] = floodlightActivityTag; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Floodlight Activity List Response */ -class FloodlightActivitiesListResponse { - /** Floodlight activity collection. */ - core.List<FloodlightActivity> floodlightActivities; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivitiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivitiesListResponse(); - - FloodlightActivitiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivities")) { - floodlightActivities = _json["floodlightActivities"].map((value) => new FloodlightActivity.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivities != null) { - _json["floodlightActivities"] = floodlightActivities.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity. */ -class FloodlightActivity { - /** - * Account ID of this floodlight activity. This is a read-only field that can - * be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity. If this field is left blank, the - * value will be copied over either from the activity group's advertiser or - * the existing activity's advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Code type used for cache busting in the generated tag. - * Possible string values are: - * - "ACTIVE_SERVER_PAGE" - * - "COLD_FUSION" - * - "JAVASCRIPT" - * - "JSP" - * - "PHP" - */ - core.String cacheBustingType; - /** - * Counting method for conversions for this floodlight activity. This is a - * required field. - * Possible string values are: - * - "ITEMS_SOLD_COUNTING" - * - "SESSION_COUNTING" - * - "STANDARD_COUNTING" - * - "TRANSACTIONS_COUNTING" - * - "UNIQUE_COUNTING" - */ - core.String countingMethod; - /** Dynamic floodlight tags. */ - core.List<FloodlightActivityDynamicTag> defaultTags; - /** - * URL where this tag will be deployed. If specified, must be less than 256 - * characters long. - */ - core.String expectedUrl; - /** - * Floodlight activity group ID of this floodlight activity. This is a - * required field. - */ - core.String floodlightActivityGroupId; - /** - * Name of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupName; - /** - * Tag string of the associated floodlight activity group. This is a read-only - * field. - */ - core.String floodlightActivityGroupTagString; - /** - * Type of the associated floodlight activity group. This is a read-only - * field. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String floodlightActivityGroupType; - /** - * Floodlight configuration ID of this floodlight activity. If this field is - * left blank, the value will be copied over either from the activity group's - * floodlight configuration or from the existing activity's floodlight - * configuration. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** Whether this activity is archived. */ - core.bool hidden; - /** - * ID of this floodlight activity. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether the image tag is enabled for this activity. */ - core.bool imageTagEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivity". - */ - core.String kind; - /** - * Name of this floodlight activity. This is a required field. Must be less - * than 129 characters long and cannot contain quotes. - */ - core.String name; - /** General notes or implementation instructions for the tag. */ - core.String notes; - /** Publisher dynamic floodlight tags. */ - core.List<FloodlightActivityPublisherDynamicTag> publisherTags; - /** Whether this tag should use SSL. */ - core.bool secure; - /** - * Whether the floodlight activity is SSL-compliant. This is a read-only - * field, its value detected by the system from the floodlight tags. - */ - core.bool sslCompliant; - /** Whether this floodlight activity must be SSL-compliant. */ - core.bool sslRequired; - /** - * Subaccount ID of this floodlight activity. This is a read-only field that - * can be left blank. - */ - core.String subaccountId; - /** - * Tag format type for the floodlight activity. If left blank, the tag format - * will default to HTML. - * Possible string values are: - * - "HTML" - * - "XHTML" - */ - core.String tagFormat; - /** - * Value of the cat= paramter in the floodlight tag, which the ad servers use - * to identify the activity. This is optional: if empty, a new tag string will - * be generated for you. This string must be 1 to 8 characters long, with - * valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must also - * be unique among activities of the same activity group. This field is - * read-only after insertion. - */ - core.String tagString; - /** - * List of the user-defined variables used by this conversion tag. These map - * to the "u[1-20]=" in the tags. Each of these can have a user defined type. - * Acceptable values are: - * - "U1" - * - "U2" - * - "U3" - * - "U4" - * - "U5" - * - "U6" - * - "U7" - * - "U8" - * - "U9" - * - "U10" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U20" - */ - core.List<core.String> userDefinedVariableTypes; - - FloodlightActivity(); - - FloodlightActivity.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("cacheBustingType")) { - cacheBustingType = _json["cacheBustingType"]; - } - if (_json.containsKey("countingMethod")) { - countingMethod = _json["countingMethod"]; - } - if (_json.containsKey("defaultTags")) { - defaultTags = _json["defaultTags"].map((value) => new FloodlightActivityDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("expectedUrl")) { - expectedUrl = _json["expectedUrl"]; - } - if (_json.containsKey("floodlightActivityGroupId")) { - floodlightActivityGroupId = _json["floodlightActivityGroupId"]; - } - if (_json.containsKey("floodlightActivityGroupName")) { - floodlightActivityGroupName = _json["floodlightActivityGroupName"]; - } - if (_json.containsKey("floodlightActivityGroupTagString")) { - floodlightActivityGroupTagString = _json["floodlightActivityGroupTagString"]; - } - if (_json.containsKey("floodlightActivityGroupType")) { - floodlightActivityGroupType = _json["floodlightActivityGroupType"]; - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("hidden")) { - hidden = _json["hidden"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("publisherTags")) { - publisherTags = _json["publisherTags"].map((value) => new FloodlightActivityPublisherDynamicTag.fromJson(value)).toList(); - } - if (_json.containsKey("secure")) { - secure = _json["secure"]; - } - if (_json.containsKey("sslCompliant")) { - sslCompliant = _json["sslCompliant"]; - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormat")) { - tagFormat = _json["tagFormat"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("userDefinedVariableTypes")) { - userDefinedVariableTypes = _json["userDefinedVariableTypes"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (cacheBustingType != null) { - _json["cacheBustingType"] = cacheBustingType; - } - if (countingMethod != null) { - _json["countingMethod"] = countingMethod; - } - if (defaultTags != null) { - _json["defaultTags"] = defaultTags.map((value) => (value).toJson()).toList(); - } - if (expectedUrl != null) { - _json["expectedUrl"] = expectedUrl; - } - if (floodlightActivityGroupId != null) { - _json["floodlightActivityGroupId"] = floodlightActivityGroupId; - } - if (floodlightActivityGroupName != null) { - _json["floodlightActivityGroupName"] = floodlightActivityGroupName; - } - if (floodlightActivityGroupTagString != null) { - _json["floodlightActivityGroupTagString"] = floodlightActivityGroupTagString; - } - if (floodlightActivityGroupType != null) { - _json["floodlightActivityGroupType"] = floodlightActivityGroupType; - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (hidden != null) { - _json["hidden"] = hidden; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (publisherTags != null) { - _json["publisherTags"] = publisherTags.map((value) => (value).toJson()).toList(); - } - if (secure != null) { - _json["secure"] = secure; - } - if (sslCompliant != null) { - _json["sslCompliant"] = sslCompliant; - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormat != null) { - _json["tagFormat"] = tagFormat; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (userDefinedVariableTypes != null) { - _json["userDefinedVariableTypes"] = userDefinedVariableTypes; - } - return _json; - } -} - -/** Dynamic Tag */ -class FloodlightActivityDynamicTag { - /** ID of this dynamic tag. This is a read-only, auto-generated field. */ - core.String id; - /** Name of this tag. */ - core.String name; - /** Tag code. */ - core.String tag; - - FloodlightActivityDynamicTag(); - - FloodlightActivityDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("tag")) { - tag = _json["tag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - if (tag != null) { - _json["tag"] = tag; - } - return _json; - } -} - -/** Contains properties of a Floodlight activity group. */ -class FloodlightActivityGroup { - /** - * Account ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of this floodlight activity group. If this field is left - * blank, the value will be copied over either from the floodlight - * configuration's advertiser or from the existing activity group's - * advertiser. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** - * Floodlight configuration ID of this floodlight activity group. This is a - * required field. - */ - core.String floodlightConfigurationId; - /** - * Dimension value for the ID of the floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue floodlightConfigurationIdDimensionValue; - /** - * ID of this floodlight activity group. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight activity group. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroup". - */ - core.String kind; - /** - * Name of this floodlight activity group. This is a required field. Must be - * less than 65 characters long and cannot contain quotes. - */ - core.String name; - /** - * Subaccount ID of this floodlight activity group. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** - * Value of the type= parameter in the floodlight tag, which the ad servers - * use to identify the activity group that the activity belongs to. This is - * optional: if empty, a new tag string will be generated for you. This string - * must be 1 to 8 characters long, with valid characters being - * [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among activity - * groups of the same floodlight configuration. This field is read-only after - * insertion. - */ - core.String tagString; - /** - * Type of the floodlight activity group. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "COUNTER" - * - "SALE" - */ - core.String type; - - FloodlightActivityGroup(); - - FloodlightActivityGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("floodlightConfigurationId")) { - floodlightConfigurationId = _json["floodlightConfigurationId"]; - } - if (_json.containsKey("floodlightConfigurationIdDimensionValue")) { - floodlightConfigurationIdDimensionValue = new DimensionValue.fromJson(_json["floodlightConfigurationIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagString")) { - tagString = _json["tagString"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (floodlightConfigurationId != null) { - _json["floodlightConfigurationId"] = floodlightConfigurationId; - } - if (floodlightConfigurationIdDimensionValue != null) { - _json["floodlightConfigurationIdDimensionValue"] = (floodlightConfigurationIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagString != null) { - _json["tagString"] = tagString; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Floodlight Activity Group List Response */ -class FloodlightActivityGroupsListResponse { - /** Floodlight activity group collection. */ - core.List<FloodlightActivityGroup> floodlightActivityGroups; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightActivityGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - FloodlightActivityGroupsListResponse(); - - FloodlightActivityGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityGroups")) { - floodlightActivityGroups = _json["floodlightActivityGroups"].map((value) => new FloodlightActivityGroup.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityGroups != null) { - _json["floodlightActivityGroups"] = floodlightActivityGroups.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Publisher Dynamic Tag */ -class FloodlightActivityPublisherDynamicTag { - /** Whether this tag is applicable only for click-throughs. */ - core.bool clickThrough; - /** - * Directory site ID of this dynamic tag. This is a write-only field that can - * be used as an alternative to the siteId field. When this resource is - * retrieved, only the siteId field will be populated. - */ - core.String directorySiteId; - /** Dynamic floodlight tag. */ - FloodlightActivityDynamicTag dynamicTag; - /** Site ID of this dynamic tag. */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** Whether this tag is applicable only for view-throughs. */ - core.bool viewThrough; - - FloodlightActivityPublisherDynamicTag(); - - FloodlightActivityPublisherDynamicTag.fromJson(core.Map _json) { - if (_json.containsKey("clickThrough")) { - clickThrough = _json["clickThrough"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("dynamicTag")) { - dynamicTag = new FloodlightActivityDynamicTag.fromJson(_json["dynamicTag"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("viewThrough")) { - viewThrough = _json["viewThrough"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickThrough != null) { - _json["clickThrough"] = clickThrough; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (dynamicTag != null) { - _json["dynamicTag"] = (dynamicTag).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (viewThrough != null) { - _json["viewThrough"] = viewThrough; - } - return _json; - } -} - -/** Contains properties of a Floodlight configuration. */ -class FloodlightConfiguration { - /** - * Account ID of this floodlight configuration. This is a read-only field that - * can be left blank. - */ - core.String accountId; - /** - * Advertiser ID of the parent advertiser of this floodlight configuration. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether advertiser data is shared with Google Analytics. */ - core.bool analyticsDataSharingEnabled; - /** - * Whether the exposure-to-conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** - * Day that will be counted as the first day of the week in reports. This is a - * required field. - * Possible string values are: - * - "MONDAY" - * - "SUNDAY" - */ - core.String firstDayOfWeek; - /** - * ID of this floodlight configuration. This is a read-only, auto-generated - * field. - */ - core.String id; - /** - * Dimension value for the ID of this floodlight configuration. This is a - * read-only, auto-generated field. - */ - DimensionValue idDimensionValue; - /** Whether in-app attribution tracking is enabled. */ - core.bool inAppAttributionTrackingEnabled; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfiguration". - */ - core.String kind; - /** Lookback window settings for this floodlight configuration. */ - LookbackConfiguration lookbackConfiguration; - /** - * Types of attribution options for natural search conversions. - * Possible string values are: - * - "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION" - * - "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION" - */ - core.String naturalSearchConversionAttributionOption; - /** Settings for DCM Omniture integration. */ - OmnitureSettings omnitureSettings; - /** - * List of standard variables enabled for this configuration. - * - * Acceptable values are: - * - "ORD" - * - "NUM" - */ - core.List<core.String> standardVariableTypes; - /** - * Subaccount ID of this floodlight configuration. This is a read-only field - * that can be left blank. - */ - core.String subaccountId; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSettings tagSettings; - /** - * List of third-party authentication tokens enabled for this configuration. - */ - core.List<ThirdPartyAuthenticationToken> thirdPartyAuthenticationTokens; - /** List of user defined variables enabled for this configuration. */ - core.List<UserDefinedVariableConfiguration> userDefinedVariableConfigurations; - - FloodlightConfiguration(); - - FloodlightConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("analyticsDataSharingEnabled")) { - analyticsDataSharingEnabled = _json["analyticsDataSharingEnabled"]; - } - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("firstDayOfWeek")) { - firstDayOfWeek = _json["firstDayOfWeek"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("inAppAttributionTrackingEnabled")) { - inAppAttributionTrackingEnabled = _json["inAppAttributionTrackingEnabled"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("naturalSearchConversionAttributionOption")) { - naturalSearchConversionAttributionOption = _json["naturalSearchConversionAttributionOption"]; - } - if (_json.containsKey("omnitureSettings")) { - omnitureSettings = new OmnitureSettings.fromJson(_json["omnitureSettings"]); - } - if (_json.containsKey("standardVariableTypes")) { - standardVariableTypes = _json["standardVariableTypes"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagSettings")) { - tagSettings = new TagSettings.fromJson(_json["tagSettings"]); - } - if (_json.containsKey("thirdPartyAuthenticationTokens")) { - thirdPartyAuthenticationTokens = _json["thirdPartyAuthenticationTokens"].map((value) => new ThirdPartyAuthenticationToken.fromJson(value)).toList(); - } - if (_json.containsKey("userDefinedVariableConfigurations")) { - userDefinedVariableConfigurations = _json["userDefinedVariableConfigurations"].map((value) => new UserDefinedVariableConfiguration.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (analyticsDataSharingEnabled != null) { - _json["analyticsDataSharingEnabled"] = analyticsDataSharingEnabled; - } - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (firstDayOfWeek != null) { - _json["firstDayOfWeek"] = firstDayOfWeek; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (inAppAttributionTrackingEnabled != null) { - _json["inAppAttributionTrackingEnabled"] = inAppAttributionTrackingEnabled; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (naturalSearchConversionAttributionOption != null) { - _json["naturalSearchConversionAttributionOption"] = naturalSearchConversionAttributionOption; - } - if (omnitureSettings != null) { - _json["omnitureSettings"] = (omnitureSettings).toJson(); - } - if (standardVariableTypes != null) { - _json["standardVariableTypes"] = standardVariableTypes; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagSettings != null) { - _json["tagSettings"] = (tagSettings).toJson(); - } - if (thirdPartyAuthenticationTokens != null) { - _json["thirdPartyAuthenticationTokens"] = thirdPartyAuthenticationTokens.map((value) => (value).toJson()).toList(); - } - if (userDefinedVariableConfigurations != null) { - _json["userDefinedVariableConfigurations"] = userDefinedVariableConfigurations.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Floodlight Configuration List Response */ -class FloodlightConfigurationsListResponse { - /** Floodlight configuration collection. */ - core.List<FloodlightConfiguration> floodlightConfigurations; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#floodlightConfigurationsListResponse". - */ - core.String kind; - - FloodlightConfigurationsListResponse(); - - FloodlightConfigurationsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("floodlightConfigurations")) { - floodlightConfigurations = _json["floodlightConfigurations"].map((value) => new FloodlightConfiguration.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightConfigurations != null) { - _json["floodlightConfigurations"] = floodlightConfigurations.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "FlOODLIGHT". - */ -class FloodlightReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#floodlightReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - - FloodlightReportCompatibleFields(); - - FloodlightReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Frequency Cap. */ -class FrequencyCap { - /** - * Duration of time, in seconds, for this frequency cap. The maximum duration - * is 90 days in seconds, or 7,776,000. - */ - core.String duration; - /** - * Number of times an individual user can be served the ad within the - * specified duration. The maximum allowed is 15. - */ - core.String impressions; - - FrequencyCap(); - - FrequencyCap.fromJson(core.Map _json) { - if (_json.containsKey("duration")) { - duration = _json["duration"]; - } - if (_json.containsKey("impressions")) { - impressions = _json["impressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (duration != null) { - _json["duration"] = duration; - } - if (impressions != null) { - _json["impressions"] = impressions; - } - return _json; - } -} - -/** FsCommand. */ -class FsCommand { - /** - * Distance from the left of the browser.Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int left; - /** - * Position in the browser where the window will open. - * Possible string values are: - * - "CENTERED" - * - "DISTANCE_FROM_TOP_LEFT_CORNER" - */ - core.String positionOption; - /** - * Distance from the top of the browser. Applicable when positionOption is - * DISTANCE_FROM_TOP_LEFT_CORNER. - */ - core.int top; - /** Height of the window. */ - core.int windowHeight; - /** Width of the window. */ - core.int windowWidth; - - FsCommand(); - - FsCommand.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("positionOption")) { - positionOption = _json["positionOption"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - if (_json.containsKey("windowHeight")) { - windowHeight = _json["windowHeight"]; - } - if (_json.containsKey("windowWidth")) { - windowWidth = _json["windowWidth"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (positionOption != null) { - _json["positionOption"] = positionOption; - } - if (top != null) { - _json["top"] = top; - } - if (windowHeight != null) { - _json["windowHeight"] = windowHeight; - } - if (windowWidth != null) { - _json["windowWidth"] = windowWidth; - } - return _json; - } -} - -/** Geographical Targeting. */ -class GeoTargeting { - /** - * Cities to be targeted. For each city only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a city, do not target or exclude the country of the city, and do - * not target the metro or region of the city. - */ - core.List<City> cities; - /** - * Countries to be targeted or excluded from targeting, depending on the - * setting of the excludeCountries field. For each country only dartId is - * required. The other fields are populated automatically when the ad is - * inserted or updated. If targeting or excluding a country, do not target - * regions, cities, metros, or postal codes in the same country. - */ - core.List<Country> countries; - /** - * Whether or not to exclude the countries in the countries field from - * targeting. If false, the countries field refers to countries which will be - * targeted by the ad. - */ - core.bool excludeCountries; - /** - * Metros to be targeted. For each metro only dmaId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a metro, do not target or exclude the country of the metro. - */ - core.List<Metro> metros; - /** - * Postal codes to be targeted. For each postal code only id is required. The - * other fields are populated automatically when the ad is inserted or - * updated. If targeting a postal code, do not target or exclude the country - * of the postal code. - */ - core.List<PostalCode> postalCodes; - /** - * Regions to be targeted. For each region only dartId is required. The other - * fields are populated automatically when the ad is inserted or updated. If - * targeting a region, do not target or exclude the country of the region. - */ - core.List<Region> regions; - - GeoTargeting(); - - GeoTargeting.fromJson(core.Map _json) { - if (_json.containsKey("cities")) { - cities = _json["cities"].map((value) => new City.fromJson(value)).toList(); - } - if (_json.containsKey("countries")) { - countries = _json["countries"].map((value) => new Country.fromJson(value)).toList(); - } - if (_json.containsKey("excludeCountries")) { - excludeCountries = _json["excludeCountries"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cities != null) { - _json["cities"] = cities.map((value) => (value).toJson()).toList(); - } - if (countries != null) { - _json["countries"] = countries.map((value) => (value).toJson()).toList(); - } - if (excludeCountries != null) { - _json["excludeCountries"] = excludeCountries; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a buy from the DoubleClick Planning inventory store. */ -class InventoryItem { - /** Account ID of this inventory item. */ - core.String accountId; - /** - * Ad slots of this inventory item. If this inventory item represents a - * standalone placement, there will be exactly one ad slot. If this inventory - * item represents a placement group, there will be more than one ad slot, - * each representing one child placement in that placement group. - */ - core.List<AdSlot> adSlots; - /** Advertiser ID of this inventory item. */ - core.String advertiserId; - /** Content category ID of this inventory item. */ - core.String contentCategoryId; - /** Estimated click-through rate of this inventory item. */ - core.String estimatedClickThroughRate; - /** Estimated conversion rate of this inventory item. */ - core.String estimatedConversionRate; - /** ID of this inventory item. */ - core.String id; - /** Whether this inventory item is in plan. */ - core.bool inPlan; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItem". - */ - core.String kind; - /** Information about the most recent modification of this inventory item. */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this inventory item. For standalone inventory items, this is the - * same name as that of its only ad slot. For group inventory items, this can - * differ from the name of any of its ad slots. - */ - core.String name; - /** Negotiation channel ID of this inventory item. */ - core.String negotiationChannelId; - /** Order ID of this inventory item. */ - core.String orderId; - /** Placement strategy ID of this inventory item. */ - core.String placementStrategyId; - /** Pricing of this inventory item. */ - Pricing pricing; - /** Project ID of this inventory item. */ - core.String projectId; - /** RFP ID of this inventory item. */ - core.String rfpId; - /** ID of the site this inventory item is associated with. */ - core.String siteId; - /** Subaccount ID of this inventory item. */ - core.String subaccountId; - /** - * Type of inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_TYPE_CREDIT" - * - "PLANNING_PLACEMENT_TYPE_REGULAR" - */ - core.String type; - - InventoryItem(); - - InventoryItem.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("adSlots")) { - adSlots = _json["adSlots"].map((value) => new AdSlot.fromJson(value)).toList(); - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("estimatedClickThroughRate")) { - estimatedClickThroughRate = _json["estimatedClickThroughRate"]; - } - if (_json.containsKey("estimatedConversionRate")) { - estimatedConversionRate = _json["estimatedConversionRate"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("inPlan")) { - inPlan = _json["inPlan"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("negotiationChannelId")) { - negotiationChannelId = _json["negotiationChannelId"]; - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricing")) { - pricing = new Pricing.fromJson(_json["pricing"]); - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("rfpId")) { - rfpId = _json["rfpId"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (adSlots != null) { - _json["adSlots"] = adSlots.map((value) => (value).toJson()).toList(); - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (estimatedClickThroughRate != null) { - _json["estimatedClickThroughRate"] = estimatedClickThroughRate; - } - if (estimatedConversionRate != null) { - _json["estimatedConversionRate"] = estimatedConversionRate; - } - if (id != null) { - _json["id"] = id; - } - if (inPlan != null) { - _json["inPlan"] = inPlan; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (negotiationChannelId != null) { - _json["negotiationChannelId"] = negotiationChannelId; - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricing != null) { - _json["pricing"] = (pricing).toJson(); - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (rfpId != null) { - _json["rfpId"] = rfpId; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Inventory item List Response */ -class InventoryItemsListResponse { - /** Inventory item collection */ - core.List<InventoryItem> inventoryItems; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#inventoryItemsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - - InventoryItemsListResponse(); - - InventoryItemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("inventoryItems")) { - inventoryItems = _json["inventoryItems"].map((value) => new InventoryItem.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (inventoryItems != null) { - _json["inventoryItems"] = inventoryItems.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Key Value Targeting Expression. */ -class KeyValueTargetingExpression { - /** Keyword expression being targeted by the ad. */ - core.String expression; - - KeyValueTargetingExpression(); - - KeyValueTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** - * Contains information about where a user's browser is taken after the user - * clicks an ad. - */ -class LandingPage { - /** - * Whether or not this landing page will be assigned to any ads or creatives - * that do not have a landing page assigned explicitly. Only one default - * landing page is allowed per campaign. - */ - core.bool default_; - /** ID of this landing page. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPage". - */ - core.String kind; - /** - * Name of this landing page. This is a required field. It must be less than - * 256 characters long, and must be unique among landing pages of the same - * campaign. - */ - core.String name; - /** URL of this landing page. This is a required field. */ - core.String url; - - LandingPage(); - - LandingPage.fromJson(core.Map _json) { - if (_json.containsKey("default")) { - default_ = _json["default"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (default_ != null) { - _json["default"] = default_; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** Landing Page List Response */ -class LandingPagesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#landingPagesListResponse". - */ - core.String kind; - /** Landing page collection */ - core.List<LandingPage> landingPages; - - LandingPagesListResponse(); - - LandingPagesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("landingPages")) { - landingPages = _json["landingPages"].map((value) => new LandingPage.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (landingPages != null) { - _json["landingPages"] = landingPages.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Modification timestamp. */ -class LastModifiedInfo { - /** Timestamp of the last change in milliseconds since epoch. */ - core.String time; - - LastModifiedInfo(); - - LastModifiedInfo.fromJson(core.Map _json) { - if (_json.containsKey("time")) { - time = _json["time"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (time != null) { - _json["time"] = time; - } - return _json; - } -} - -/** - * A group clause made up of list population terms representing constraints - * joined by ORs. - */ -class ListPopulationClause { - /** - * Terms of this list population clause. Each clause is made up of list - * population terms representing constraints and are joined by ORs. - */ - core.List<ListPopulationTerm> terms; - - ListPopulationClause(); - - ListPopulationClause.fromJson(core.Map _json) { - if (_json.containsKey("terms")) { - terms = _json["terms"].map((value) => new ListPopulationTerm.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (terms != null) { - _json["terms"] = terms.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule. */ -class ListPopulationRule { - /** - * Floodlight activity ID associated with this rule. This field can be left - * blank. - */ - core.String floodlightActivityId; - /** - * Name of floodlight activity associated with this rule. This is a read-only, - * auto-generated field. - */ - core.String floodlightActivityName; - /** - * Clauses that make up this list population rule. Clauses are joined by ANDs, - * and the clauses themselves are made up of list population terms which are - * joined by ORs. - */ - core.List<ListPopulationClause> listPopulationClauses; - - ListPopulationRule(); - - ListPopulationRule.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityName")) { - floodlightActivityName = _json["floodlightActivityName"]; - } - if (_json.containsKey("listPopulationClauses")) { - listPopulationClauses = _json["listPopulationClauses"].map((value) => new ListPopulationClause.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityName != null) { - _json["floodlightActivityName"] = floodlightActivityName; - } - if (listPopulationClauses != null) { - _json["listPopulationClauses"] = listPopulationClauses.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Remarketing List Population Rule Term. */ -class ListPopulationTerm { - /** - * Will be true if the term should check if the user is in the list and false - * if the term should check if the user is not in the list. This field is only - * relevant when type is set to LIST_MEMBERSHIP_TERM. False by default. - */ - core.bool contains; - /** - * Whether to negate the comparison result of this term during rule - * evaluation. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.bool negation; - /** - * Comparison operator of this term. This field is only relevant when type is - * left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - * Possible string values are: - * - "NUM_EQUALS" - * - "NUM_GREATER_THAN" - * - "NUM_GREATER_THAN_EQUAL" - * - "NUM_LESS_THAN" - * - "NUM_LESS_THAN_EQUAL" - * - "STRING_CONTAINS" - * - "STRING_EQUALS" - */ - core.String operator; - /** - * ID of the list in question. This field is only relevant when type is set to - * LIST_MEMBERSHIP_TERM. - */ - core.String remarketingListId; - /** - * List population term type determines the applicable fields in this object. - * If left unset or set to CUSTOM_VARIABLE_TERM, then variableName, - * variableFriendlyName, operator, value, and negation are applicable. If set - * to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable. - * If set to REFERRER_TERM then operator, value, and negation are applicable. - * Possible string values are: - * - "CUSTOM_VARIABLE_TERM" - * - "LIST_MEMBERSHIP_TERM" - * - "REFERRER_TERM" - */ - core.String type; - /** - * Literal to compare the variable to. This field is only relevant when type - * is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM. - */ - core.String value; - /** - * Friendly name of this term's variable. This is a read-only, auto-generated - * field. This field is only relevant when type is left unset or set to - * CUSTOM_VARIABLE_TERM. - */ - core.String variableFriendlyName; - /** - * Name of the variable (U1, U2, etc.) being compared in this term. This field - * is only relevant when type is set to null, CUSTOM_VARIABLE_TERM or - * REFERRER_TERM. - */ - core.String variableName; - - ListPopulationTerm(); - - ListPopulationTerm.fromJson(core.Map _json) { - if (_json.containsKey("contains")) { - contains = _json["contains"]; - } - if (_json.containsKey("negation")) { - negation = _json["negation"]; - } - if (_json.containsKey("operator")) { - operator = _json["operator"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - if (_json.containsKey("variableFriendlyName")) { - variableFriendlyName = _json["variableFriendlyName"]; - } - if (_json.containsKey("variableName")) { - variableName = _json["variableName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contains != null) { - _json["contains"] = contains; - } - if (negation != null) { - _json["negation"] = negation; - } - if (operator != null) { - _json["operator"] = operator; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (type != null) { - _json["type"] = type; - } - if (value != null) { - _json["value"] = value; - } - if (variableFriendlyName != null) { - _json["variableFriendlyName"] = variableFriendlyName; - } - if (variableName != null) { - _json["variableName"] = variableName; - } - return _json; - } -} - -/** Remarketing List Targeting Expression. */ -class ListTargetingExpression { - /** Expression describing which lists are being targeted by the ad. */ - core.String expression; - - ListTargetingExpression(); - - ListTargetingExpression.fromJson(core.Map _json) { - if (_json.containsKey("expression")) { - expression = _json["expression"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (expression != null) { - _json["expression"] = expression; - } - return _json; - } -} - -/** Lookback configuration settings. */ -class LookbackConfiguration { - /** - * Lookback window, in days, from the last time a given user clicked on one of - * your ads. If you enter 0, clicks will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. - */ - core.int clickDuration; - /** - * Lookback window, in days, from the last time a given user viewed one of - * your ads. If you enter 0, impressions will not be considered as triggering - * events for floodlight tracking. If you leave this field blank, the default - * value for your account will be used. - */ - core.int postImpressionActivitiesDuration; - - LookbackConfiguration(); - - LookbackConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("clickDuration")) { - clickDuration = _json["clickDuration"]; - } - if (_json.containsKey("postImpressionActivitiesDuration")) { - postImpressionActivitiesDuration = _json["postImpressionActivitiesDuration"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clickDuration != null) { - _json["clickDuration"] = clickDuration; - } - if (postImpressionActivitiesDuration != null) { - _json["postImpressionActivitiesDuration"] = postImpressionActivitiesDuration; - } - return _json; - } -} - -/** Represents a metric. */ -class Metric { - /** The kind of resource this is, in this case dfareporting#metric. */ - core.String kind; - /** The metric name, e.g. dfa:impressions */ - core.String name; - - Metric(); - - Metric.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Contains information about a metro region that can be targeted by ads. */ -class Metro { - /** Country code of the country to which this metro region belongs. */ - core.String countryCode; - /** DART ID of the country to which this metro region belongs. */ - core.String countryDartId; - /** DART ID of this metro region. */ - core.String dartId; - /** - * DMA ID of this metro region. This is the ID used for targeting and - * generating reports, and is equivalent to metro_code. - */ - core.String dmaId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metro". - */ - core.String kind; - /** Metro code of this metro region. This is equivalent to dma_id. */ - core.String metroCode; - /** Name of this metro region. */ - core.String name; - - Metro(); - - Metro.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("dmaId")) { - dmaId = _json["dmaId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metroCode")) { - metroCode = _json["metroCode"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (dmaId != null) { - _json["dmaId"] = dmaId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (metroCode != null) { - _json["metroCode"] = metroCode; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Metro List Response */ -class MetrosListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#metrosListResponse". - */ - core.String kind; - /** Metro collection. */ - core.List<Metro> metros; - - MetrosListResponse(); - - MetrosListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metros")) { - metros = _json["metros"].map((value) => new Metro.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (metros != null) { - _json["metros"] = metros.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a mobile carrier that can be targeted by ads. */ -class MobileCarrier { - /** Country code of the country to which this mobile carrier belongs. */ - core.String countryCode; - /** DART ID of the country to which this mobile carrier belongs. */ - core.String countryDartId; - /** ID of this mobile carrier. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarrier". - */ - core.String kind; - /** Name of this mobile carrier. */ - core.String name; - - MobileCarrier(); - - MobileCarrier.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Mobile Carrier List Response */ -class MobileCarriersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#mobileCarriersListResponse". - */ - core.String kind; - /** Mobile carrier collection. */ - core.List<MobileCarrier> mobileCarriers; - - MobileCarriersListResponse(); - - MobileCarriersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Object Filter. */ -class ObjectFilter { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#objectFilter". - */ - core.String kind; - /** - * Applicable when status is ASSIGNED. The user has access to objects with - * these object IDs. - */ - core.List<core.String> objectIds; - /** - * Status of the filter. NONE means the user has access to none of the - * objects. ALL means the user has access to all objects. ASSIGNED means the - * user has access to the objects with IDs in the objectIds list. - * Possible string values are: - * - "ALL" - * - "ASSIGNED" - * - "NONE" - */ - core.String status; - - ObjectFilter(); - - ObjectFilter.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("objectIds")) { - objectIds = _json["objectIds"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (objectIds != null) { - _json["objectIds"] = objectIds; - } - if (status != null) { - _json["status"] = status; - } - return _json; - } -} - -/** Offset Position. */ -class OffsetPosition { - /** Offset distance from left side of an asset or a window. */ - core.int left; - /** Offset distance from top side of an asset or a window. */ - core.int top; - - OffsetPosition(); - - OffsetPosition.fromJson(core.Map _json) { - if (_json.containsKey("left")) { - left = _json["left"]; - } - if (_json.containsKey("top")) { - top = _json["top"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (left != null) { - _json["left"] = left; - } - if (top != null) { - _json["top"] = top; - } - return _json; - } -} - -/** Omniture Integration Settings. */ -class OmnitureSettings { - /** - * Whether placement cost data will be sent to Omniture. This property can be - * enabled only if omnitureIntegrationEnabled is true. - */ - core.bool omnitureCostDataEnabled; - /** - * Whether Omniture integration is enabled. This property can be enabled only - * when the "Advanced Ad Serving" account setting is enabled. - */ - core.bool omnitureIntegrationEnabled; - - OmnitureSettings(); - - OmnitureSettings.fromJson(core.Map _json) { - if (_json.containsKey("omnitureCostDataEnabled")) { - omnitureCostDataEnabled = _json["omnitureCostDataEnabled"]; - } - if (_json.containsKey("omnitureIntegrationEnabled")) { - omnitureIntegrationEnabled = _json["omnitureIntegrationEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (omnitureCostDataEnabled != null) { - _json["omnitureCostDataEnabled"] = omnitureCostDataEnabled; - } - if (omnitureIntegrationEnabled != null) { - _json["omnitureIntegrationEnabled"] = omnitureIntegrationEnabled; - } - return _json; - } -} - -/** - * Contains information about an operating system that can be targeted by ads. - */ -class OperatingSystem { - /** DART ID of this operating system. This is the ID used for targeting. */ - core.String dartId; - /** Whether this operating system is for desktop. */ - core.bool desktop; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystem". - */ - core.String kind; - /** Whether this operating system is for mobile. */ - core.bool mobile; - /** Name of this operating system. */ - core.String name; - - OperatingSystem(); - - OperatingSystem.fromJson(core.Map _json) { - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("desktop")) { - desktop = _json["desktop"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("mobile")) { - mobile = _json["mobile"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dartId != null) { - _json["dartId"] = dartId; - } - if (desktop != null) { - _json["desktop"] = desktop; - } - if (kind != null) { - _json["kind"] = kind; - } - if (mobile != null) { - _json["mobile"] = mobile; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** - * Contains information about a particular version of an operating system that - * can be targeted by ads. - */ -class OperatingSystemVersion { - /** ID of this operating system version. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersion". - */ - core.String kind; - /** Major version (leftmost number) of this operating system version. */ - core.String majorVersion; - /** - * Minor version (number after the first dot) of this operating system - * version. - */ - core.String minorVersion; - /** Name of this operating system version. */ - core.String name; - /** Operating system of this operating system version. */ - OperatingSystem operatingSystem; - - OperatingSystemVersion(); - - OperatingSystemVersion.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("majorVersion")) { - majorVersion = _json["majorVersion"]; - } - if (_json.containsKey("minorVersion")) { - minorVersion = _json["minorVersion"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("operatingSystem")) { - operatingSystem = new OperatingSystem.fromJson(_json["operatingSystem"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (majorVersion != null) { - _json["majorVersion"] = majorVersion; - } - if (minorVersion != null) { - _json["minorVersion"] = minorVersion; - } - if (name != null) { - _json["name"] = name; - } - if (operatingSystem != null) { - _json["operatingSystem"] = (operatingSystem).toJson(); - } - return _json; - } -} - -/** Operating System Version List Response */ -class OperatingSystemVersionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemVersionsListResponse". - */ - core.String kind; - /** Operating system version collection. */ - core.List<OperatingSystemVersion> operatingSystemVersions; - - OperatingSystemVersionsListResponse(); - - OperatingSystemVersionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Operating System List Response */ -class OperatingSystemsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#operatingSystemsListResponse". - */ - core.String kind; - /** Operating system collection. */ - core.List<OperatingSystem> operatingSystems; - - OperatingSystemsListResponse(); - - OperatingSystemsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Creative optimization activity. */ -class OptimizationActivity { - /** - * Floodlight activity ID of this optimization activity. This is a required - * field. - */ - core.String floodlightActivityId; - /** - * Dimension value for the ID of the floodlight activity. This is a read-only, - * auto-generated field. - */ - DimensionValue floodlightActivityIdDimensionValue; - /** - * Weight associated with this optimization. Must be greater than 1. The - * weight assigned will be understood in proportion to the weights assigned to - * the other optimization activities. - */ - core.int weight; - - OptimizationActivity(); - - OptimizationActivity.fromJson(core.Map _json) { - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("floodlightActivityIdDimensionValue")) { - floodlightActivityIdDimensionValue = new DimensionValue.fromJson(_json["floodlightActivityIdDimensionValue"]); - } - if (_json.containsKey("weight")) { - weight = _json["weight"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (floodlightActivityIdDimensionValue != null) { - _json["floodlightActivityIdDimensionValue"] = (floodlightActivityIdDimensionValue).toJson(); - } - if (weight != null) { - _json["weight"] = weight; - } - return _json; - } -} - -/** Describes properties of a DoubleClick Planning order. */ -class Order { - /** Account ID of this order. */ - core.String accountId; - /** Advertiser ID of this order. */ - core.String advertiserId; - /** IDs for users that have to approve documents created for this order. */ - core.List<core.String> approverUserProfileIds; - /** Buyer invoice ID associated with this order. */ - core.String buyerInvoiceId; - /** Name of the buyer organization. */ - core.String buyerOrganizationName; - /** Comments in this order. */ - core.String comments; - /** Contacts for this order. */ - core.List<OrderContact> contacts; - /** ID of this order. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#order". - */ - core.String kind; - /** Information about the most recent modification of this order. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this order. */ - core.String name; - /** Notes of this order. */ - core.String notes; - /** ID of the terms and conditions template used in this order. */ - core.String planningTermId; - /** Project ID of this order. */ - core.String projectId; - /** Seller order ID associated with this order. */ - core.String sellerOrderId; - /** Name of the seller organization. */ - core.String sellerOrganizationName; - /** Site IDs this order is associated with. */ - core.List<core.String> siteId; - /** Free-form site names this order is associated with. */ - core.List<core.String> siteNames; - /** Subaccount ID of this order. */ - core.String subaccountId; - /** Terms and conditions of this order. */ - core.String termsAndConditions; - - Order(); - - Order.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("approverUserProfileIds")) { - approverUserProfileIds = _json["approverUserProfileIds"]; - } - if (_json.containsKey("buyerInvoiceId")) { - buyerInvoiceId = _json["buyerInvoiceId"]; - } - if (_json.containsKey("buyerOrganizationName")) { - buyerOrganizationName = _json["buyerOrganizationName"]; - } - if (_json.containsKey("comments")) { - comments = _json["comments"]; - } - if (_json.containsKey("contacts")) { - contacts = _json["contacts"].map((value) => new OrderContact.fromJson(value)).toList(); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"]; - } - if (_json.containsKey("planningTermId")) { - planningTermId = _json["planningTermId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("sellerOrderId")) { - sellerOrderId = _json["sellerOrderId"]; - } - if (_json.containsKey("sellerOrganizationName")) { - sellerOrganizationName = _json["sellerOrganizationName"]; - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteNames")) { - siteNames = _json["siteNames"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("termsAndConditions")) { - termsAndConditions = _json["termsAndConditions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (approverUserProfileIds != null) { - _json["approverUserProfileIds"] = approverUserProfileIds; - } - if (buyerInvoiceId != null) { - _json["buyerInvoiceId"] = buyerInvoiceId; - } - if (buyerOrganizationName != null) { - _json["buyerOrganizationName"] = buyerOrganizationName; - } - if (comments != null) { - _json["comments"] = comments; - } - if (contacts != null) { - _json["contacts"] = contacts.map((value) => (value).toJson()).toList(); - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (notes != null) { - _json["notes"] = notes; - } - if (planningTermId != null) { - _json["planningTermId"] = planningTermId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (sellerOrderId != null) { - _json["sellerOrderId"] = sellerOrderId; - } - if (sellerOrganizationName != null) { - _json["sellerOrganizationName"] = sellerOrganizationName; - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteNames != null) { - _json["siteNames"] = siteNames; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (termsAndConditions != null) { - _json["termsAndConditions"] = termsAndConditions; - } - return _json; - } -} - -/** Contact of an order. */ -class OrderContact { - /** - * Free-form information about this contact. It could be any information - * related to this contact in addition to type, title, name, and signature - * user profile ID. - */ - core.String contactInfo; - /** Name of this contact. */ - core.String contactName; - /** Title of this contact. */ - core.String contactTitle; - /** - * Type of this contact. - * Possible string values are: - * - "PLANNING_ORDER_CONTACT_BUYER_BILLING_CONTACT" - * - "PLANNING_ORDER_CONTACT_BUYER_CONTACT" - * - "PLANNING_ORDER_CONTACT_SELLER_CONTACT" - */ - core.String contactType; - /** - * ID of the user profile containing the signature that will be embedded into - * order documents. - */ - core.String signatureUserProfileId; - - OrderContact(); - - OrderContact.fromJson(core.Map _json) { - if (_json.containsKey("contactInfo")) { - contactInfo = _json["contactInfo"]; - } - if (_json.containsKey("contactName")) { - contactName = _json["contactName"]; - } - if (_json.containsKey("contactTitle")) { - contactTitle = _json["contactTitle"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("signatureUserProfileId")) { - signatureUserProfileId = _json["signatureUserProfileId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (contactInfo != null) { - _json["contactInfo"] = contactInfo; - } - if (contactName != null) { - _json["contactName"] = contactName; - } - if (contactTitle != null) { - _json["contactTitle"] = contactTitle; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (signatureUserProfileId != null) { - _json["signatureUserProfileId"] = signatureUserProfileId; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning order document. */ -class OrderDocument { - /** Account ID of this order document. */ - core.String accountId; - /** Advertiser ID of this order document. */ - core.String advertiserId; - /** - * The amended order document ID of this order document. An order document can - * be created by optionally amending another order document so that the change - * history can be preserved. - */ - core.String amendedOrderDocumentId; - /** IDs of users who have approved this order document. */ - core.List<core.String> approvedByUserProfileIds; - /** Whether this order document is cancelled. */ - core.bool cancelled; - /** Information about the creation of this order document. */ - LastModifiedInfo createdInfo; - /** Effective date of this order document. */ - core.DateTime effectiveDate; - /** ID of this order document. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocument". - */ - core.String kind; - /** List of email addresses that received the last sent document. */ - core.List<core.String> lastSentRecipients; - /** Timestamp of the last email sent with this order document. */ - core.DateTime lastSentTime; - /** ID of the order from which this order document is created. */ - core.String orderId; - /** Project ID of this order document. */ - core.String projectId; - /** Whether this order document has been signed. */ - core.bool signed; - /** Subaccount ID of this order document. */ - core.String subaccountId; - /** Title of this order document. */ - core.String title; - /** - * Type of this order document - * Possible string values are: - * - "PLANNING_ORDER_TYPE_CHANGE_ORDER" - * - "PLANNING_ORDER_TYPE_INSERTION_ORDER" - */ - core.String type; - - OrderDocument(); - - OrderDocument.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("amendedOrderDocumentId")) { - amendedOrderDocumentId = _json["amendedOrderDocumentId"]; - } - if (_json.containsKey("approvedByUserProfileIds")) { - approvedByUserProfileIds = _json["approvedByUserProfileIds"]; - } - if (_json.containsKey("cancelled")) { - cancelled = _json["cancelled"]; - } - if (_json.containsKey("createdInfo")) { - createdInfo = new LastModifiedInfo.fromJson(_json["createdInfo"]); - } - if (_json.containsKey("effectiveDate")) { - effectiveDate = core.DateTime.parse(_json["effectiveDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastSentRecipients")) { - lastSentRecipients = _json["lastSentRecipients"]; - } - if (_json.containsKey("lastSentTime")) { - lastSentTime = core.DateTime.parse(_json["lastSentTime"]); - } - if (_json.containsKey("orderId")) { - orderId = _json["orderId"]; - } - if (_json.containsKey("projectId")) { - projectId = _json["projectId"]; - } - if (_json.containsKey("signed")) { - signed = _json["signed"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (amendedOrderDocumentId != null) { - _json["amendedOrderDocumentId"] = amendedOrderDocumentId; - } - if (approvedByUserProfileIds != null) { - _json["approvedByUserProfileIds"] = approvedByUserProfileIds; - } - if (cancelled != null) { - _json["cancelled"] = cancelled; - } - if (createdInfo != null) { - _json["createdInfo"] = (createdInfo).toJson(); - } - if (effectiveDate != null) { - _json["effectiveDate"] = "${(effectiveDate).year.toString().padLeft(4, '0')}-${(effectiveDate).month.toString().padLeft(2, '0')}-${(effectiveDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastSentRecipients != null) { - _json["lastSentRecipients"] = lastSentRecipients; - } - if (lastSentTime != null) { - _json["lastSentTime"] = (lastSentTime).toIso8601String(); - } - if (orderId != null) { - _json["orderId"] = orderId; - } - if (projectId != null) { - _json["projectId"] = projectId; - } - if (signed != null) { - _json["signed"] = signed; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (title != null) { - _json["title"] = title; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** Order document List Response */ -class OrderDocumentsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#orderDocumentsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order document collection */ - core.List<OrderDocument> orderDocuments; - - OrderDocumentsListResponse(); - - OrderDocumentsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orderDocuments")) { - orderDocuments = _json["orderDocuments"].map((value) => new OrderDocument.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orderDocuments != null) { - _json["orderDocuments"] = orderDocuments.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Order List Response */ -class OrdersListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#ordersListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Order collection. */ - core.List<Order> orders; - - OrdersListResponse(); - - OrdersListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("orders")) { - orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (orders != null) { - _json["orders"] = orders.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "PATH_TO_CONVERSION". - */ -class PathToConversionReportCompatibleFields { - /** - * Conversion dimensions which are compatible to be selected in the - * "conversionDimensions" section of the report. - */ - core.List<Dimension> conversionDimensions; - /** - * Custom floodlight variables which are compatible to be selected in the - * "customFloodlightVariables" section of the report. - */ - core.List<Dimension> customFloodlightVariables; - /** - * The kind of resource this is, in this case - * dfareporting#pathToConversionReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Per-interaction dimensions which are compatible to be selected in the - * "perInteractionDimensions" section of the report. - */ - core.List<Dimension> perInteractionDimensions; - - PathToConversionReportCompatibleFields(); - - PathToConversionReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement. */ -class Placement { - /** Account ID of this placement. This field can be left blank. */ - core.String accountId; - /** Advertiser ID of this placement. This field can be left blank. */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement is archived. */ - core.bool archived; - /** - * Campaign ID of this placement. This field is a required field on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** Comments for this placement. */ - core.String comment; - /** - * Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to - * rendering on desktop, on mobile devices or in mobile apps for regular or - * interstitial ads respectively. APP and APP_INTERSTITIAL are no longer - * allowed for new placement insertions. Instead, use DISPLAY or - * DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream - * video ads developed with the VAST standard. This field is required on - * insertion. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "DISPLAY" - * - "DISPLAY_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - */ - core.String compatibility; - /** ID of the content category assigned to this placement. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID of this placement. On insert, you must set either this - * field or the siteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this placement. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placement". - */ - core.String kind; - /** - * Information about the most recent modification of this placement. This is a - * read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** Lookback window settings for this placement. */ - LookbackConfiguration lookbackConfiguration; - /** - * Name of this placement.This is a required field and must be less than 256 - * characters long. - */ - core.String name; - /** - * Whether payment was approved for this placement. This is a read-only field - * relevant only to publisher-paid placements. - */ - core.bool paymentApproved; - /** - * Payment source for this placement. This is a required field that is - * read-only after insertion. - * Possible string values are: - * - "PLACEMENT_AGENCY_PAID" - * - "PLACEMENT_PUBLISHER_PAID" - */ - core.String paymentSource; - /** ID of this placement's group, if applicable. */ - core.String placementGroupId; - /** - * Dimension value for the ID of the placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue placementGroupIdDimensionValue; - /** ID of the placement strategy assigned to this placement. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement. This field is required on insertion, - * specifically subfields startDate, endDate and pricingType. - */ - PricingSchedule pricingSchedule; - /** - * Whether this placement is the primary placement of a roadblock (placement - * group). You cannot change this field from true to false. Setting this field - * to true will automatically set the primary field on the original primary - * placement of the roadblock to false, and it will automatically set the - * roadblock's primaryPlacementId field to the ID of this placement. - */ - core.bool primary; - /** - * Information about the last publisher update. This is a read-only field. - */ - LastModifiedInfo publisherUpdateInfo; - /** - * Site ID associated with this placement. On insert, you must set either this - * field or the directorySiteId field to specify the site associated with this - * placement. This is a required field that is read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Size associated with this placement. When inserting or updating a - * placement, only the size ID field is used. This field is required on - * insertion. - */ - Size size; - /** Whether creatives assigned to this placement must be SSL-compliant. */ - core.bool sslRequired; - /** - * Third-party placement status. - * Possible string values are: - * - "ACKNOWLEDGE_ACCEPTANCE" - * - "ACKNOWLEDGE_REJECTION" - * - "DRAFT" - * - "PAYMENT_ACCEPTED" - * - "PAYMENT_REJECTED" - * - "PENDING_REVIEW" - */ - core.String status; - /** Subaccount ID of this placement. This field can be left blank. */ - core.String subaccountId; - /** - * Tag formats to generate for this placement. This field is required on - * insertion. - * Acceptable values are: - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.List<core.String> tagFormats; - /** Tag settings for this placement. */ - TagSetting tagSetting; - - Placement(); - - Placement.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("compatibility")) { - compatibility = _json["compatibility"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("paymentApproved")) { - paymentApproved = _json["paymentApproved"]; - } - if (_json.containsKey("paymentSource")) { - paymentSource = _json["paymentSource"]; - } - if (_json.containsKey("placementGroupId")) { - placementGroupId = _json["placementGroupId"]; - } - if (_json.containsKey("placementGroupIdDimensionValue")) { - placementGroupIdDimensionValue = new DimensionValue.fromJson(_json["placementGroupIdDimensionValue"]); - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primary")) { - primary = _json["primary"]; - } - if (_json.containsKey("publisherUpdateInfo")) { - publisherUpdateInfo = new LastModifiedInfo.fromJson(_json["publisherUpdateInfo"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("size")) { - size = new Size.fromJson(_json["size"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("tagFormats")) { - tagFormats = _json["tagFormats"]; - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (comment != null) { - _json["comment"] = comment; - } - if (compatibility != null) { - _json["compatibility"] = compatibility; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (paymentApproved != null) { - _json["paymentApproved"] = paymentApproved; - } - if (paymentSource != null) { - _json["paymentSource"] = paymentSource; - } - if (placementGroupId != null) { - _json["placementGroupId"] = placementGroupId; - } - if (placementGroupIdDimensionValue != null) { - _json["placementGroupIdDimensionValue"] = (placementGroupIdDimensionValue).toJson(); - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primary != null) { - _json["primary"] = primary; - } - if (publisherUpdateInfo != null) { - _json["publisherUpdateInfo"] = (publisherUpdateInfo).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (size != null) { - _json["size"] = (size).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - if (status != null) { - _json["status"] = status; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (tagFormats != null) { - _json["tagFormats"] = tagFormats; - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - return _json; - } -} - -/** Placement Assignment. */ -class PlacementAssignment { - /** - * Whether this placement assignment is active. When true, the placement will - * be included in the ad's rotation. - */ - core.bool active; - /** ID of the placement to be assigned. This is a required field. */ - core.String placementId; - /** - * Dimension value for the ID of the placement. This is a read-only, - * auto-generated field. - */ - DimensionValue placementIdDimensionValue; - /** - * Whether the placement to be assigned requires SSL. This is a read-only - * field that is auto-generated when the ad is inserted or updated. - */ - core.bool sslRequired; - - PlacementAssignment(); - - PlacementAssignment.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("placementIdDimensionValue")) { - placementIdDimensionValue = new DimensionValue.fromJson(_json["placementIdDimensionValue"]); - } - if (_json.containsKey("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (placementId != null) { - _json["placementId"] = placementId; - } - if (placementIdDimensionValue != null) { - _json["placementIdDimensionValue"] = (placementIdDimensionValue).toJson(); - } - if (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - return _json; - } -} - -/** Contains properties of a package or roadblock. */ -class PlacementGroup { - /** - * Account ID of this placement group. This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * Advertiser ID of this placement group. This is a required field on - * insertion. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Whether this placement group is archived. */ - core.bool archived; - /** - * Campaign ID of this placement group. This field is required on insertion. - */ - core.String campaignId; - /** - * Dimension value for the ID of the campaign. This is a read-only, - * auto-generated field. - */ - DimensionValue campaignIdDimensionValue; - /** - * IDs of placements which are assigned to this placement group. This is a - * read-only, auto-generated field. - */ - core.List<core.String> childPlacementIds; - /** Comments for this placement group. */ - core.String comment; - /** ID of the content category assigned to this placement group. */ - core.String contentCategoryId; - /** - * Information about the creation of this placement group. This is a read-only - * field. - */ - LastModifiedInfo createInfo; - /** - * Directory site ID associated with this placement group. On insert, you must - * set either this field or the site_id field to specify the site associated - * with this placement group. This is a required field that is read-only after - * insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** External ID for this placement. */ - core.String externalId; - /** ID of this placement group. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this placement group. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroup". - */ - core.String kind; - /** - * Information about the most recent modification of this placement group. - * This is a read-only field. - */ - LastModifiedInfo lastModifiedInfo; - /** - * Name of this placement group. This is a required field and must be less - * than 256 characters long. - */ - core.String name; - /** - * Type of this placement group. A package is a simple group of placements - * that acts as a single pricing point for a group of tags. A roadblock is a - * group of placements that not only acts as a single pricing point, but also - * assumes that all the tags in it will be served at the same time. A - * roadblock requires one of its assigned placements to be marked as primary - * for reporting. This field is required on insertion. - * Possible string values are: - * - "PLACEMENT_PACKAGE" - * - "PLACEMENT_ROADBLOCK" - */ - core.String placementGroupType; - /** ID of the placement strategy assigned to this placement group. */ - core.String placementStrategyId; - /** - * Pricing schedule of this placement group. This field is required on - * insertion. - */ - PricingSchedule pricingSchedule; - /** - * ID of the primary placement, used to calculate the media cost of a - * roadblock (placement group). Modifying this field will automatically modify - * the primary field on all affected roadblock child placements. - */ - core.String primaryPlacementId; - /** - * Dimension value for the ID of the primary placement. This is a read-only, - * auto-generated field. - */ - DimensionValue primaryPlacementIdDimensionValue; - /** - * Site ID associated with this placement group. On insert, you must set - * either this field or the directorySiteId field to specify the site - * associated with this placement group. This is a required field that is - * read-only after insertion. - */ - core.String siteId; - /** - * Dimension value for the ID of the site. This is a read-only, auto-generated - * field. - */ - DimensionValue siteIdDimensionValue; - /** - * Subaccount ID of this placement group. This is a read-only field that can - * be left blank. - */ - core.String subaccountId; - - PlacementGroup(); - - PlacementGroup.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("archived")) { - archived = _json["archived"]; - } - if (_json.containsKey("campaignId")) { - campaignId = _json["campaignId"]; - } - if (_json.containsKey("campaignIdDimensionValue")) { - campaignIdDimensionValue = new DimensionValue.fromJson(_json["campaignIdDimensionValue"]); - } - if (_json.containsKey("childPlacementIds")) { - childPlacementIds = _json["childPlacementIds"]; - } - if (_json.containsKey("comment")) { - comment = _json["comment"]; - } - if (_json.containsKey("contentCategoryId")) { - contentCategoryId = _json["contentCategoryId"]; - } - if (_json.containsKey("createInfo")) { - createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("externalId")) { - externalId = _json["externalId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("placementGroupType")) { - placementGroupType = _json["placementGroupType"]; - } - if (_json.containsKey("placementStrategyId")) { - placementStrategyId = _json["placementStrategyId"]; - } - if (_json.containsKey("pricingSchedule")) { - pricingSchedule = new PricingSchedule.fromJson(_json["pricingSchedule"]); - } - if (_json.containsKey("primaryPlacementId")) { - primaryPlacementId = _json["primaryPlacementId"]; - } - if (_json.containsKey("primaryPlacementIdDimensionValue")) { - primaryPlacementIdDimensionValue = new DimensionValue.fromJson(_json["primaryPlacementIdDimensionValue"]); - } - if (_json.containsKey("siteId")) { - siteId = _json["siteId"]; - } - if (_json.containsKey("siteIdDimensionValue")) { - siteIdDimensionValue = new DimensionValue.fromJson(_json["siteIdDimensionValue"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (archived != null) { - _json["archived"] = archived; - } - if (campaignId != null) { - _json["campaignId"] = campaignId; - } - if (campaignIdDimensionValue != null) { - _json["campaignIdDimensionValue"] = (campaignIdDimensionValue).toJson(); - } - if (childPlacementIds != null) { - _json["childPlacementIds"] = childPlacementIds; - } - if (comment != null) { - _json["comment"] = comment; - } - if (contentCategoryId != null) { - _json["contentCategoryId"] = contentCategoryId; - } - if (createInfo != null) { - _json["createInfo"] = (createInfo).toJson(); - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (externalId != null) { - _json["externalId"] = externalId; - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (placementGroupType != null) { - _json["placementGroupType"] = placementGroupType; - } - if (placementStrategyId != null) { - _json["placementStrategyId"] = placementStrategyId; - } - if (pricingSchedule != null) { - _json["pricingSchedule"] = (pricingSchedule).toJson(); - } - if (primaryPlacementId != null) { - _json["primaryPlacementId"] = primaryPlacementId; - } - if (primaryPlacementIdDimensionValue != null) { - _json["primaryPlacementIdDimensionValue"] = (primaryPlacementIdDimensionValue).toJson(); - } - if (siteId != null) { - _json["siteId"] = siteId; - } - if (siteIdDimensionValue != null) { - _json["siteIdDimensionValue"] = (siteIdDimensionValue).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Placement Group List Response */ -class PlacementGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementGroupsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement group collection. */ - core.List<PlacementGroup> placementGroups; - - PlacementGroupsListResponse(); - - PlacementGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementGroups")) { - placementGroups = _json["placementGroups"].map((value) => new PlacementGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementGroups != null) { - _json["placementGroups"] = placementGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Strategy List Response */ -class PlacementStrategiesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategiesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement strategy collection. */ - core.List<PlacementStrategy> placementStrategies; - - PlacementStrategiesListResponse(); - - PlacementStrategiesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placementStrategies")) { - placementStrategies = _json["placementStrategies"].map((value) => new PlacementStrategy.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placementStrategies != null) { - _json["placementStrategies"] = placementStrategies.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains properties of a placement strategy. */ -class PlacementStrategy { - /** - * Account ID of this placement strategy.This is a read-only field that can be - * left blank. - */ - core.String accountId; - /** - * ID of this placement strategy. This is a read-only, auto-generated field. - */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementStrategy". - */ - core.String kind; - /** - * Name of this placement strategy. This is a required field. It must be less - * than 256 characters long and unique among placement strategies of the same - * account. - */ - core.String name; - - PlacementStrategy(); - - PlacementStrategy.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Placement Tag */ -class PlacementTag { - /** Placement ID */ - core.String placementId; - /** Tags generated for this placement. */ - core.List<TagData> tagDatas; - - PlacementTag(); - - PlacementTag.fromJson(core.Map _json) { - if (_json.containsKey("placementId")) { - placementId = _json["placementId"]; - } - if (_json.containsKey("tagDatas")) { - tagDatas = _json["tagDatas"].map((value) => new TagData.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (placementId != null) { - _json["placementId"] = placementId; - } - if (tagDatas != null) { - _json["tagDatas"] = tagDatas.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement GenerateTags Response */ -class PlacementsGenerateTagsResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsGenerateTagsResponse". - */ - core.String kind; - /** Set of generated tags for the specified placements. */ - core.List<PlacementTag> placementTags; - - PlacementsGenerateTagsResponse(); - - PlacementsGenerateTagsResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("placementTags")) { - placementTags = _json["placementTags"].map((value) => new PlacementTag.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (placementTags != null) { - _json["placementTags"] = placementTags.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement List Response */ -class PlacementsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#placementsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Placement collection. */ - core.List<Placement> placements; - - PlacementsListResponse(); - - PlacementsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("placements")) { - placements = _json["placements"].map((value) => new Placement.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (placements != null) { - _json["placements"] = placements.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Contains information about a platform type that can be targeted by ads. */ -class PlatformType { - /** ID of this platform type. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformType". - */ - core.String kind; - /** Name of this platform type. */ - core.String name; - - PlatformType(); - - PlatformType.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Platform Type List Response */ -class PlatformTypesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#platformTypesListResponse". - */ - core.String kind; - /** Platform type collection. */ - core.List<PlatformType> platformTypes; - - PlatformTypesListResponse(); - - PlatformTypesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Popup Window Properties. */ -class PopupWindowProperties { - /** - * Popup dimension for a creative. This is a read-only field. Applicable to - * the following creative types: all RICH_MEDIA and all VPAID - */ - Size dimension; - /** - * Upper-left corner coordinates of the popup window. Applicable if - * positionType is COORDINATES. - */ - OffsetPosition offset; - /** - * Popup window position either centered or at specific coordinate. - * Possible string values are: - * - "CENTER" - * - "COORDINATES" - */ - core.String positionType; - /** Whether to display the browser address bar. */ - core.bool showAddressBar; - /** Whether to display the browser menu bar. */ - core.bool showMenuBar; - /** Whether to display the browser scroll bar. */ - core.bool showScrollBar; - /** Whether to display the browser status bar. */ - core.bool showStatusBar; - /** Whether to display the browser tool bar. */ - core.bool showToolBar; - /** Title of popup window. */ - core.String title; - - PopupWindowProperties(); - - PopupWindowProperties.fromJson(core.Map _json) { - if (_json.containsKey("dimension")) { - dimension = new Size.fromJson(_json["dimension"]); - } - if (_json.containsKey("offset")) { - offset = new OffsetPosition.fromJson(_json["offset"]); - } - if (_json.containsKey("positionType")) { - positionType = _json["positionType"]; - } - if (_json.containsKey("showAddressBar")) { - showAddressBar = _json["showAddressBar"]; - } - if (_json.containsKey("showMenuBar")) { - showMenuBar = _json["showMenuBar"]; - } - if (_json.containsKey("showScrollBar")) { - showScrollBar = _json["showScrollBar"]; - } - if (_json.containsKey("showStatusBar")) { - showStatusBar = _json["showStatusBar"]; - } - if (_json.containsKey("showToolBar")) { - showToolBar = _json["showToolBar"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimension != null) { - _json["dimension"] = (dimension).toJson(); - } - if (offset != null) { - _json["offset"] = (offset).toJson(); - } - if (positionType != null) { - _json["positionType"] = positionType; - } - if (showAddressBar != null) { - _json["showAddressBar"] = showAddressBar; - } - if (showMenuBar != null) { - _json["showMenuBar"] = showMenuBar; - } - if (showScrollBar != null) { - _json["showScrollBar"] = showScrollBar; - } - if (showStatusBar != null) { - _json["showStatusBar"] = showStatusBar; - } - if (showToolBar != null) { - _json["showToolBar"] = showToolBar; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Contains information about a postal code that can be targeted by ads. */ -class PostalCode { - /** Postal code. This is equivalent to the id field. */ - core.String code; - /** Country code of the country to which this postal code belongs. */ - core.String countryCode; - /** DART ID of the country to which this postal code belongs. */ - core.String countryDartId; - /** ID of this postal code. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCode". - */ - core.String kind; - - PostalCode(); - - PostalCode.fromJson(core.Map _json) { - if (_json.containsKey("code")) { - code = _json["code"]; - } - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (code != null) { - _json["code"] = code; - } - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Postal Code List Response */ -class PostalCodesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#postalCodesListResponse". - */ - core.String kind; - /** Postal code collection. */ - core.List<PostalCode> postalCodes; - - PostalCodesListResponse(); - - PostalCodesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("postalCodes")) { - postalCodes = _json["postalCodes"].map((value) => new PostalCode.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (postalCodes != null) { - _json["postalCodes"] = postalCodes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Pricing Information */ -class Pricing { - /** - * Cap cost type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_CUMULATIVE" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_MONTHLY" - * - "PLANNING_PLACEMENT_CAP_COST_TYPE_NONE" - */ - core.String capCostType; - /** End date of this inventory item. */ - core.DateTime endDate; - /** - * Flights of this inventory item. A flight (a.k.a. pricing period) represents - * the inventory item pricing information for a specific period of time. - */ - core.List<Flight> flights; - /** - * Group type of this inventory item if it represents a placement group. Is - * null otherwise. There are two type of placement groups: - * PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE is a simple group of inventory items - * that acts as a single pricing point for a group of tags. - * PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK is a group of inventory items that - * not only acts as a single pricing point, but also assumes that all the tags - * in it will be served at the same time. A roadblock requires one of its - * assigned inventory items to be marked as primary. - * Possible string values are: - * - "PLANNING_PLACEMENT_GROUP_TYPE_PACKAGE" - * - "PLANNING_PLACEMENT_GROUP_TYPE_ROADBLOCK" - */ - core.String groupType; - /** - * Pricing type of this inventory item. - * Possible string values are: - * - "PLANNING_PLACEMENT_PRICING_TYPE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPA" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPC" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM" - * - "PLANNING_PLACEMENT_PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - * - "PLANNING_PLACEMENT_PRICING_TYPE_IMPRESSIONS" - */ - core.String pricingType; - /** Start date of this inventory item. */ - core.DateTime startDate; - - Pricing(); - - Pricing.fromJson(core.Map _json) { - if (_json.containsKey("capCostType")) { - capCostType = _json["capCostType"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flights")) { - flights = _json["flights"].map((value) => new Flight.fromJson(value)).toList(); - } - if (_json.containsKey("groupType")) { - groupType = _json["groupType"]; - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostType != null) { - _json["capCostType"] = capCostType; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flights != null) { - _json["flights"] = flights.map((value) => (value).toJson()).toList(); - } - if (groupType != null) { - _json["groupType"] = groupType; - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Schedule */ -class PricingSchedule { - /** - * Placement cap cost option. - * Possible string values are: - * - "CAP_COST_CUMULATIVE" - * - "CAP_COST_MONTHLY" - * - "CAP_COST_NONE" - */ - core.String capCostOption; - /** Whether cap costs are ignored by ad serving. */ - core.bool disregardOverdelivery; - /** - * Placement end date. This date must be later than, or the same day as, the - * placement start date, but not later than the campaign end date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * placement date is just that day only, 6/25/2015. The hours, minutes, and - * seconds of the end date should not be set, as doing so will result in an - * error. This field is required on insertion. - */ - core.DateTime endDate; - /** - * Whether this placement is flighted. If true, pricing periods will be - * computed automatically. - */ - core.bool flighted; - /** - * Floodlight activity ID associated with this placement. This field should be - * set when placement pricing type is set to PRICING_TYPE_CPA. - */ - core.String floodlightActivityId; - /** Pricing periods for this placement. */ - core.List<PricingSchedulePricingPeriod> pricingPeriods; - /** - * Placement pricing type. This field is required on insertion. - * Possible string values are: - * - "PRICING_TYPE_CPA" - * - "PRICING_TYPE_CPC" - * - "PRICING_TYPE_CPM" - * - "PRICING_TYPE_CPM_ACTIVEVIEW" - * - "PRICING_TYPE_FLAT_RATE_CLICKS" - * - "PRICING_TYPE_FLAT_RATE_IMPRESSIONS" - */ - core.String pricingType; - /** - * Placement start date. This date must be later than, or the same day as, the - * campaign start date. The hours, minutes, and seconds of the start date - * should not be set, as doing so will result in an error. This field is - * required on insertion. - */ - core.DateTime startDate; - /** - * Testing start date of this placement. The hours, minutes, and seconds of - * the start date should not be set, as doing so will result in an error. - */ - core.DateTime testingStartDate; - - PricingSchedule(); - - PricingSchedule.fromJson(core.Map _json) { - if (_json.containsKey("capCostOption")) { - capCostOption = _json["capCostOption"]; - } - if (_json.containsKey("disregardOverdelivery")) { - disregardOverdelivery = _json["disregardOverdelivery"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("flighted")) { - flighted = _json["flighted"]; - } - if (_json.containsKey("floodlightActivityId")) { - floodlightActivityId = _json["floodlightActivityId"]; - } - if (_json.containsKey("pricingPeriods")) { - pricingPeriods = _json["pricingPeriods"].map((value) => new PricingSchedulePricingPeriod.fromJson(value)).toList(); - } - if (_json.containsKey("pricingType")) { - pricingType = _json["pricingType"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("testingStartDate")) { - testingStartDate = core.DateTime.parse(_json["testingStartDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (capCostOption != null) { - _json["capCostOption"] = capCostOption; - } - if (disregardOverdelivery != null) { - _json["disregardOverdelivery"] = disregardOverdelivery; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (flighted != null) { - _json["flighted"] = flighted; - } - if (floodlightActivityId != null) { - _json["floodlightActivityId"] = floodlightActivityId; - } - if (pricingPeriods != null) { - _json["pricingPeriods"] = pricingPeriods.map((value) => (value).toJson()).toList(); - } - if (pricingType != null) { - _json["pricingType"] = pricingType; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (testingStartDate != null) { - _json["testingStartDate"] = "${(testingStartDate).year.toString().padLeft(4, '0')}-${(testingStartDate).month.toString().padLeft(2, '0')}-${(testingStartDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Pricing Period */ -class PricingSchedulePricingPeriod { - /** - * Pricing period end date. This date must be later than, or the same day as, - * the pricing period start date, but not later than the placement end date. - * The period end date can be the same date as the period start date. If, for - * example, you set 6/25/2015 as both the start and end dates, the effective - * pricing period date is just that day only, 6/25/2015. The hours, minutes, - * and seconds of the end date should not be set, as doing so will result in - * an error. - */ - core.DateTime endDate; - /** Comments for this pricing period. */ - core.String pricingComment; - /** Rate or cost of this pricing period. */ - core.String rateOrCostNanos; - /** - * Pricing period start date. This date must be later than, or the same day - * as, the placement start date. The hours, minutes, and seconds of the start - * date should not be set, as doing so will result in an error. - */ - core.DateTime startDate; - /** Units of this pricing period. */ - core.String units; - - PricingSchedulePricingPeriod(); - - PricingSchedulePricingPeriod.fromJson(core.Map _json) { - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("pricingComment")) { - pricingComment = _json["pricingComment"]; - } - if (_json.containsKey("rateOrCostNanos")) { - rateOrCostNanos = _json["rateOrCostNanos"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("units")) { - units = _json["units"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (pricingComment != null) { - _json["pricingComment"] = pricingComment; - } - if (rateOrCostNanos != null) { - _json["rateOrCostNanos"] = rateOrCostNanos; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (units != null) { - _json["units"] = units; - } - return _json; - } -} - -/** Contains properties of a DoubleClick Planning project. */ -class Project { - /** Account ID of this project. */ - core.String accountId; - /** Advertiser ID of this project. */ - core.String advertiserId; - /** - * Audience age group of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_AGE_18_24" - * - "PLANNING_AUDIENCE_AGE_25_34" - * - "PLANNING_AUDIENCE_AGE_35_44" - * - "PLANNING_AUDIENCE_AGE_45_54" - * - "PLANNING_AUDIENCE_AGE_55_64" - * - "PLANNING_AUDIENCE_AGE_65_OR_MORE" - * - "PLANNING_AUDIENCE_AGE_UNKNOWN" - */ - core.String audienceAgeGroup; - /** - * Audience gender of this project. - * Possible string values are: - * - "PLANNING_AUDIENCE_GENDER_FEMALE" - * - "PLANNING_AUDIENCE_GENDER_MALE" - */ - core.String audienceGender; - /** - * Budget of this project in the currency specified by the current account. - * The value stored in this field represents only the non-fractional amount. - * For example, for USD, the smallest value that can be represented by this - * field is 1 US dollar. - */ - core.String budget; - /** Client billing code of this project. */ - core.String clientBillingCode; - /** Name of the project client. */ - core.String clientName; - /** End date of the project. */ - core.DateTime endDate; - /** ID of this project. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#project". - */ - core.String kind; - /** Information about the most recent modification of this project. */ - LastModifiedInfo lastModifiedInfo; - /** Name of this project. */ - core.String name; - /** Overview of this project. */ - core.String overview; - /** Start date of the project. */ - core.DateTime startDate; - /** Subaccount ID of this project. */ - core.String subaccountId; - /** Number of clicks that the advertiser is targeting. */ - core.String targetClicks; - /** Number of conversions that the advertiser is targeting. */ - core.String targetConversions; - /** CPA that the advertiser is targeting. */ - core.String targetCpaNanos; - /** CPC that the advertiser is targeting. */ - core.String targetCpcNanos; - /** CPM that the advertiser is targeting. */ - core.String targetCpmNanos; - /** Number of impressions that the advertiser is targeting. */ - core.String targetImpressions; - - Project(); - - Project.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("audienceAgeGroup")) { - audienceAgeGroup = _json["audienceAgeGroup"]; - } - if (_json.containsKey("audienceGender")) { - audienceGender = _json["audienceGender"]; - } - if (_json.containsKey("budget")) { - budget = _json["budget"]; - } - if (_json.containsKey("clientBillingCode")) { - clientBillingCode = _json["clientBillingCode"]; - } - if (_json.containsKey("clientName")) { - clientName = _json["clientName"]; - } - if (_json.containsKey("endDate")) { - endDate = core.DateTime.parse(_json["endDate"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedInfo")) { - lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("overview")) { - overview = _json["overview"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - if (_json.containsKey("targetClicks")) { - targetClicks = _json["targetClicks"]; - } - if (_json.containsKey("targetConversions")) { - targetConversions = _json["targetConversions"]; - } - if (_json.containsKey("targetCpaNanos")) { - targetCpaNanos = _json["targetCpaNanos"]; - } - if (_json.containsKey("targetCpcNanos")) { - targetCpcNanos = _json["targetCpcNanos"]; - } - if (_json.containsKey("targetCpmNanos")) { - targetCpmNanos = _json["targetCpmNanos"]; - } - if (_json.containsKey("targetImpressions")) { - targetImpressions = _json["targetImpressions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (audienceAgeGroup != null) { - _json["audienceAgeGroup"] = audienceAgeGroup; - } - if (audienceGender != null) { - _json["audienceGender"] = audienceGender; - } - if (budget != null) { - _json["budget"] = budget; - } - if (clientBillingCode != null) { - _json["clientBillingCode"] = clientBillingCode; - } - if (clientName != null) { - _json["clientName"] = clientName; - } - if (endDate != null) { - _json["endDate"] = "${(endDate).year.toString().padLeft(4, '0')}-${(endDate).month.toString().padLeft(2, '0')}-${(endDate).day.toString().padLeft(2, '0')}"; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedInfo != null) { - _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); - } - if (name != null) { - _json["name"] = name; - } - if (overview != null) { - _json["overview"] = overview; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - if (targetClicks != null) { - _json["targetClicks"] = targetClicks; - } - if (targetConversions != null) { - _json["targetConversions"] = targetConversions; - } - if (targetCpaNanos != null) { - _json["targetCpaNanos"] = targetCpaNanos; - } - if (targetCpcNanos != null) { - _json["targetCpcNanos"] = targetCpcNanos; - } - if (targetCpmNanos != null) { - _json["targetCpmNanos"] = targetCpmNanos; - } - if (targetImpressions != null) { - _json["targetImpressions"] = targetImpressions; - } - return _json; - } -} - -/** Project List Response */ -class ProjectsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#projectsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Project collection. */ - core.List<Project> projects; - - ProjectsListResponse(); - - ProjectsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("projects")) { - projects = _json["projects"].map((value) => new Project.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (projects != null) { - _json["projects"] = projects.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "REACH". - */ -class ReachReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reachReportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - /** - * Metrics which are compatible to be selected in the - * "reachByFrequencyMetricNames" section of the report. - */ - core.List<Metric> reachByFrequencyMetrics; - - ReachReportCompatibleFields(); - - ReachReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("reachByFrequencyMetrics")) { - reachByFrequencyMetrics = _json["reachByFrequencyMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - if (reachByFrequencyMetrics != null) { - _json["reachByFrequencyMetrics"] = reachByFrequencyMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a recipient. */ -class Recipient { - /** - * The delivery type for the recipient. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String deliveryType; - /** The email address of the recipient. */ - core.String email; - /** The kind of resource this is, in this case dfareporting#recipient. */ - core.String kind; - - Recipient(); - - Recipient.fromJson(core.Map _json) { - if (_json.containsKey("deliveryType")) { - deliveryType = _json["deliveryType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (deliveryType != null) { - _json["deliveryType"] = deliveryType; - } - if (email != null) { - _json["email"] = email; - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains information about a region that can be targeted by ads. */ -class Region { - /** Country code of the country to which this region belongs. */ - core.String countryCode; - /** DART ID of the country to which this region belongs. */ - core.String countryDartId; - /** DART ID of this region. */ - core.String dartId; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#region". - */ - core.String kind; - /** Name of this region. */ - core.String name; - /** Region code. */ - core.String regionCode; - - Region(); - - Region.fromJson(core.Map _json) { - if (_json.containsKey("countryCode")) { - countryCode = _json["countryCode"]; - } - if (_json.containsKey("countryDartId")) { - countryDartId = _json["countryDartId"]; - } - if (_json.containsKey("dartId")) { - dartId = _json["dartId"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("regionCode")) { - regionCode = _json["regionCode"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (countryCode != null) { - _json["countryCode"] = countryCode; - } - if (countryDartId != null) { - _json["countryDartId"] = countryDartId; - } - if (dartId != null) { - _json["dartId"] = dartId; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (regionCode != null) { - _json["regionCode"] = regionCode; - } - return _json; - } -} - -/** Region List Response */ -class RegionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#regionsListResponse". - */ - core.String kind; - /** Region collection. */ - core.List<Region> regions; - - RegionsListResponse(); - - RegionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("regions")) { - regions = _json["regions"].map((value) => new Region.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (regions != null) { - _json["regions"] = regions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Contains properties of a remarketing list. Remarketing enables you to create - * lists of users who have performed specific actions on a site, then target ads - * to members of those lists. This resource can be used to manage remarketing - * lists that are owned by your advertisers. To see all remarketing lists that - * are visible to your advertisers, including those that are shared to your - * advertiser or account, use the TargetableRemarketingLists resource. - */ -class RemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this remarketing list. This - * is a required field. - */ - core.String advertiserId; - /** - * Dimension value for the ID of the advertiser. This is a read-only, - * auto-generated field. - */ - DimensionValue advertiserIdDimensionValue; - /** Remarketing list description. */ - core.String description; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the remarketing list without an - * impression. - */ - core.String lifeSpan; - /** Rule used to populate the remarketing list with users. */ - ListPopulationRule listPopulationRule; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the remarketing list. This is a required field. Must be no greater - * than 128 characters long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - RemarketingList(); - - RemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listPopulationRule")) { - listPopulationRule = new ListPopulationRule.fromJson(_json["listPopulationRule"]); - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listPopulationRule != null) { - _json["listPopulationRule"] = (listPopulationRule).toJson(); - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** - * Contains properties of a remarketing list's sharing information. Sharing - * allows other accounts or advertisers to target to your remarketing lists. - * This resource can be used to manage remarketing list sharing to other - * accounts and advertisers. - */ -class RemarketingListShare { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListShare". - */ - core.String kind; - /** Remarketing list ID. This is a read-only, auto-generated field. */ - core.String remarketingListId; - /** Accounts that the remarketing list is shared with. */ - core.List<core.String> sharedAccountIds; - /** Advertisers that the remarketing list is shared with. */ - core.List<core.String> sharedAdvertiserIds; - - RemarketingListShare(); - - RemarketingListShare.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("remarketingListId")) { - remarketingListId = _json["remarketingListId"]; - } - if (_json.containsKey("sharedAccountIds")) { - sharedAccountIds = _json["sharedAccountIds"]; - } - if (_json.containsKey("sharedAdvertiserIds")) { - sharedAdvertiserIds = _json["sharedAdvertiserIds"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (remarketingListId != null) { - _json["remarketingListId"] = remarketingListId; - } - if (sharedAccountIds != null) { - _json["sharedAccountIds"] = sharedAccountIds; - } - if (sharedAdvertiserIds != null) { - _json["sharedAdvertiserIds"] = sharedAdvertiserIds; - } - return _json; - } -} - -/** Remarketing list response */ -class RemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#remarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Remarketing list collection. */ - core.List<RemarketingList> remarketingLists; - - RemarketingListsListResponse(); - - RemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("remarketingLists")) { - remarketingLists = _json["remarketingLists"].map((value) => new RemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (remarketingLists != null) { - _json["remarketingLists"] = remarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The report criteria for a report of type "STANDARD". */ -class ReportCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range for which this report should be run. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of standard dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - - ReportCriteria(); - - ReportCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - return _json; - } -} - -/** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ -class ReportCrossDimensionReachCriteria { - /** The list of dimensions the report should include. */ - core.List<SortedDimension> breakdown; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The dimension option. - * Possible string values are: - * - "ADVERTISER" - * - "CAMPAIGN" - * - "SITE_BY_ADVERTISER" - * - "SITE_BY_CAMPAIGN" - */ - core.String dimension; - /** The list of filters on which dimensions are filtered. */ - core.List<DimensionValue> dimensionFilters; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of names of overlap metrics the report should include. */ - core.List<core.String> overlapMetricNames; - /** Whether the report is pivoted or not. Defaults to true. */ - core.bool pivoted; - - ReportCrossDimensionReachCriteria(); - - ReportCrossDimensionReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("breakdown")) { - breakdown = _json["breakdown"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimension")) { - dimension = _json["dimension"]; - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("overlapMetricNames")) { - overlapMetricNames = _json["overlapMetricNames"]; - } - if (_json.containsKey("pivoted")) { - pivoted = _json["pivoted"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (breakdown != null) { - _json["breakdown"] = breakdown.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimension != null) { - _json["dimension"] = dimension; - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (overlapMetricNames != null) { - _json["overlapMetricNames"] = overlapMetricNames; - } - if (pivoted != null) { - _json["pivoted"] = pivoted; - } - return _json; - } -} - -/** The report's email delivery settings. */ -class ReportDelivery { - /** Whether the report should be emailed to the report owner. */ - core.bool emailOwner; - /** - * The type of delivery for the owner to receive, if enabled. - * Possible string values are: - * - "ATTACHMENT" - * - "LINK" - */ - core.String emailOwnerDeliveryType; - /** The message to be sent with each email. */ - core.String message; - /** The list of recipients to which to email the report. */ - core.List<Recipient> recipients; - - ReportDelivery(); - - ReportDelivery.fromJson(core.Map _json) { - if (_json.containsKey("emailOwner")) { - emailOwner = _json["emailOwner"]; - } - if (_json.containsKey("emailOwnerDeliveryType")) { - emailOwnerDeliveryType = _json["emailOwnerDeliveryType"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - if (_json.containsKey("recipients")) { - recipients = _json["recipients"].map((value) => new Recipient.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (emailOwner != null) { - _json["emailOwner"] = emailOwner; - } - if (emailOwnerDeliveryType != null) { - _json["emailOwnerDeliveryType"] = emailOwnerDeliveryType; - } - if (message != null) { - _json["message"] = message; - } - if (recipients != null) { - _json["recipients"] = recipients.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportFloodlightCriteriaReportProperties { - /** Include conversions that have no cookie, but do have an exposure path. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - - ReportFloodlightCriteriaReportProperties(); - - ReportFloodlightCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - return _json; - } -} - -/** The report criteria for a report of type "FLOODLIGHT". */ -class ReportFloodlightCriteria { - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The properties of the report. */ - ReportFloodlightCriteriaReportProperties reportProperties; - - ReportFloodlightCriteria(); - - ReportFloodlightCriteria.fromJson(core.Map _json) { - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportFloodlightCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The properties of the report. */ -class ReportPathToConversionCriteriaReportProperties { - /** - * DFA checks to see if a click interaction occurred within the specified - * period of time before a conversion. By default the value is pulled from - * Floodlight or you can manually enter a custom value. Valid values: 1-90. - */ - core.int clicksLookbackWindow; - /** - * DFA checks to see if an impression interaction occurred within the - * specified period of time before a conversion. By default the value is - * pulled from Floodlight or you can manually enter a custom value. Valid - * values: 1-90. - */ - core.int impressionsLookbackWindow; - /** Deprecated: has no effect. */ - core.bool includeAttributedIPConversions; - /** - * Include conversions of users with a DoubleClick cookie but without an - * exposure. That means the user did not click or see an ad from the - * advertiser within the Floodlight group, or that the interaction happened - * outside the lookback window. - */ - core.bool includeUnattributedCookieConversions; - /** - * Include conversions that have no associated cookies and no exposures. It’s - * therefore impossible to know how the user was exposed to your ads during - * the lookback window prior to a conversion. - */ - core.bool includeUnattributedIPConversions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumClickInteractions; - /** - * The maximum number of click interactions to include in the report. - * Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 - * impressions). If another advertiser in your network is paying for E2C, you - * can have up to 5 total exposures per report. - */ - core.int maximumImpressionInteractions; - /** - * The maximum amount of time that can take place between interactions (clicks - * or impressions) by the same user. Valid values: 1-90. - */ - core.int maximumInteractionGap; - /** Enable pivoting on interaction path. */ - core.bool pivotOnInteractionPath; - - ReportPathToConversionCriteriaReportProperties(); - - ReportPathToConversionCriteriaReportProperties.fromJson(core.Map _json) { - if (_json.containsKey("clicksLookbackWindow")) { - clicksLookbackWindow = _json["clicksLookbackWindow"]; - } - if (_json.containsKey("impressionsLookbackWindow")) { - impressionsLookbackWindow = _json["impressionsLookbackWindow"]; - } - if (_json.containsKey("includeAttributedIPConversions")) { - includeAttributedIPConversions = _json["includeAttributedIPConversions"]; - } - if (_json.containsKey("includeUnattributedCookieConversions")) { - includeUnattributedCookieConversions = _json["includeUnattributedCookieConversions"]; - } - if (_json.containsKey("includeUnattributedIPConversions")) { - includeUnattributedIPConversions = _json["includeUnattributedIPConversions"]; - } - if (_json.containsKey("maximumClickInteractions")) { - maximumClickInteractions = _json["maximumClickInteractions"]; - } - if (_json.containsKey("maximumImpressionInteractions")) { - maximumImpressionInteractions = _json["maximumImpressionInteractions"]; - } - if (_json.containsKey("maximumInteractionGap")) { - maximumInteractionGap = _json["maximumInteractionGap"]; - } - if (_json.containsKey("pivotOnInteractionPath")) { - pivotOnInteractionPath = _json["pivotOnInteractionPath"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (clicksLookbackWindow != null) { - _json["clicksLookbackWindow"] = clicksLookbackWindow; - } - if (impressionsLookbackWindow != null) { - _json["impressionsLookbackWindow"] = impressionsLookbackWindow; - } - if (includeAttributedIPConversions != null) { - _json["includeAttributedIPConversions"] = includeAttributedIPConversions; - } - if (includeUnattributedCookieConversions != null) { - _json["includeUnattributedCookieConversions"] = includeUnattributedCookieConversions; - } - if (includeUnattributedIPConversions != null) { - _json["includeUnattributedIPConversions"] = includeUnattributedIPConversions; - } - if (maximumClickInteractions != null) { - _json["maximumClickInteractions"] = maximumClickInteractions; - } - if (maximumImpressionInteractions != null) { - _json["maximumImpressionInteractions"] = maximumImpressionInteractions; - } - if (maximumInteractionGap != null) { - _json["maximumInteractionGap"] = maximumInteractionGap; - } - if (pivotOnInteractionPath != null) { - _json["pivotOnInteractionPath"] = pivotOnInteractionPath; - } - return _json; - } -} - -/** The report criteria for a report of type "PATH_TO_CONVERSION". */ -class ReportPathToConversionCriteria { - /** The list of 'dfa:activity' values to filter on. */ - core.List<DimensionValue> activityFilters; - /** The list of conversion dimensions the report should include. */ - core.List<SortedDimension> conversionDimensions; - /** The list of custom floodlight variables the report should include. */ - core.List<SortedDimension> customFloodlightVariables; - /** The list of custom rich media events to include. */ - core.List<DimensionValue> customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The floodlight ID for which to show data in this report. All advertisers - * associated with that ID will automatically be added. The dimension of the - * value needs to be 'dfa:floodlightConfigId'. - */ - DimensionValue floodlightConfigId; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** The list of per interaction dimensions the report should include. */ - core.List<SortedDimension> perInteractionDimensions; - /** The properties of the report. */ - ReportPathToConversionCriteriaReportProperties reportProperties; - - ReportPathToConversionCriteria(); - - ReportPathToConversionCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activityFilters")) { - activityFilters = _json["activityFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("conversionDimensions")) { - conversionDimensions = _json["conversionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customFloodlightVariables")) { - customFloodlightVariables = _json["customFloodlightVariables"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = _json["customRichMediaEvents"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("floodlightConfigId")) { - floodlightConfigId = new DimensionValue.fromJson(_json["floodlightConfigId"]); - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("perInteractionDimensions")) { - perInteractionDimensions = _json["perInteractionDimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("reportProperties")) { - reportProperties = new ReportPathToConversionCriteriaReportProperties.fromJson(_json["reportProperties"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activityFilters != null) { - _json["activityFilters"] = activityFilters.map((value) => (value).toJson()).toList(); - } - if (conversionDimensions != null) { - _json["conversionDimensions"] = conversionDimensions.map((value) => (value).toJson()).toList(); - } - if (customFloodlightVariables != null) { - _json["customFloodlightVariables"] = customFloodlightVariables.map((value) => (value).toJson()).toList(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = customRichMediaEvents.map((value) => (value).toJson()).toList(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (floodlightConfigId != null) { - _json["floodlightConfigId"] = (floodlightConfigId).toJson(); - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (perInteractionDimensions != null) { - _json["perInteractionDimensions"] = perInteractionDimensions.map((value) => (value).toJson()).toList(); - } - if (reportProperties != null) { - _json["reportProperties"] = (reportProperties).toJson(); - } - return _json; - } -} - -/** The report criteria for a report of type "REACH". */ -class ReportReachCriteria { - /** Activity group. */ - Activities activities; - /** Custom Rich Media Events group. */ - CustomRichMediaEvents customRichMediaEvents; - /** The date range this report should be run for. */ - DateRange dateRange; - /** - * The list of filters on which dimensions are filtered. - * Filters for different dimensions are ANDed, filters for the same dimension - * are grouped together and ORed. - */ - core.List<DimensionValue> dimensionFilters; - /** The list of dimensions the report should include. */ - core.List<SortedDimension> dimensions; - /** - * Whether to enable all reach dimension combinations in the report. Defaults - * to false. If enabled, the date range of the report should be within the - * last three months. - */ - core.bool enableAllDimensionCombinations; - /** The list of names of metrics the report should include. */ - core.List<core.String> metricNames; - /** - * The list of names of Reach By Frequency metrics the report should include. - */ - core.List<core.String> reachByFrequencyMetricNames; - - ReportReachCriteria(); - - ReportReachCriteria.fromJson(core.Map _json) { - if (_json.containsKey("activities")) { - activities = new Activities.fromJson(_json["activities"]); - } - if (_json.containsKey("customRichMediaEvents")) { - customRichMediaEvents = new CustomRichMediaEvents.fromJson(_json["customRichMediaEvents"]); - } - if (_json.containsKey("dateRange")) { - dateRange = new DateRange.fromJson(_json["dateRange"]); - } - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new DimensionValue.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new SortedDimension.fromJson(value)).toList(); - } - if (_json.containsKey("enableAllDimensionCombinations")) { - enableAllDimensionCombinations = _json["enableAllDimensionCombinations"]; - } - if (_json.containsKey("metricNames")) { - metricNames = _json["metricNames"]; - } - if (_json.containsKey("reachByFrequencyMetricNames")) { - reachByFrequencyMetricNames = _json["reachByFrequencyMetricNames"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activities != null) { - _json["activities"] = (activities).toJson(); - } - if (customRichMediaEvents != null) { - _json["customRichMediaEvents"] = (customRichMediaEvents).toJson(); - } - if (dateRange != null) { - _json["dateRange"] = (dateRange).toJson(); - } - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (enableAllDimensionCombinations != null) { - _json["enableAllDimensionCombinations"] = enableAllDimensionCombinations; - } - if (metricNames != null) { - _json["metricNames"] = metricNames; - } - if (reachByFrequencyMetricNames != null) { - _json["reachByFrequencyMetricNames"] = reachByFrequencyMetricNames; - } - return _json; - } -} - -/** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ -class ReportSchedule { - /** - * Whether the schedule is active or not. Must be set to either true or false. - */ - core.bool active; - /** - * Defines every how many days, weeks or months the report should be run. - * Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY". - */ - core.int every; - /** The expiration date when the scheduled report stops running. */ - core.DateTime expirationDate; - /** - * The interval for which the report is repeated. Note: - * - "DAILY" also requires field "every" to be set. - * - "WEEKLY" also requires fields "every" and "repeatsOnWeekDays" to be set. - * - "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be set. - */ - core.String repeats; - /** List of week days "WEEKLY" on which scheduled reports should run. */ - core.List<core.String> repeatsOnWeekDays; - /** - * Enum to define for "MONTHLY" scheduled reports whether reports should be - * repeated on the same day of the month as "startDate" or the same day of the - * week of the month. - * Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), - * "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and - * "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the - * month. - * Possible string values are: - * - "DAY_OF_MONTH" - * - "WEEK_OF_MONTH" - */ - core.String runsOnDayOfMonth; - /** Start date of date range for which scheduled reports should be run. */ - core.DateTime startDate; - - ReportSchedule(); - - ReportSchedule.fromJson(core.Map _json) { - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("every")) { - every = _json["every"]; - } - if (_json.containsKey("expirationDate")) { - expirationDate = core.DateTime.parse(_json["expirationDate"]); - } - if (_json.containsKey("repeats")) { - repeats = _json["repeats"]; - } - if (_json.containsKey("repeatsOnWeekDays")) { - repeatsOnWeekDays = _json["repeatsOnWeekDays"]; - } - if (_json.containsKey("runsOnDayOfMonth")) { - runsOnDayOfMonth = _json["runsOnDayOfMonth"]; - } - if (_json.containsKey("startDate")) { - startDate = core.DateTime.parse(_json["startDate"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (active != null) { - _json["active"] = active; - } - if (every != null) { - _json["every"] = every; - } - if (expirationDate != null) { - _json["expirationDate"] = "${(expirationDate).year.toString().padLeft(4, '0')}-${(expirationDate).month.toString().padLeft(2, '0')}-${(expirationDate).day.toString().padLeft(2, '0')}"; - } - if (repeats != null) { - _json["repeats"] = repeats; - } - if (repeatsOnWeekDays != null) { - _json["repeatsOnWeekDays"] = repeatsOnWeekDays; - } - if (runsOnDayOfMonth != null) { - _json["runsOnDayOfMonth"] = runsOnDayOfMonth; - } - if (startDate != null) { - _json["startDate"] = "${(startDate).year.toString().padLeft(4, '0')}-${(startDate).month.toString().padLeft(2, '0')}-${(startDate).day.toString().padLeft(2, '0')}"; - } - return _json; - } -} - -/** Represents a Report resource. */ -class Report { - /** The account ID to which this report belongs. */ - core.String accountId; - /** The report criteria for a report of type "STANDARD". */ - ReportCriteria criteria; - /** The report criteria for a report of type "CROSS_DIMENSION_REACH". */ - ReportCrossDimensionReachCriteria crossDimensionReachCriteria; - /** The report's email delivery settings. */ - ReportDelivery delivery; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The filename used when generating report files for this report. */ - core.String fileName; - /** The report criteria for a report of type "FLOODLIGHT". */ - ReportFloodlightCriteria floodlightCriteria; - /** - * The output format of the report. If not specified, default format is "CSV". - * Note that the actual format in the completed report file might differ if - * for instance the report's size exceeds the format's capabilities. "CSV" - * will then be the fallback format. - * Possible string values are: - * - "CSV" - * - "EXCEL" - */ - core.String format; - /** The unique ID identifying this report resource. */ - core.String id; - /** The kind of resource this is, in this case dfareporting#report. */ - core.String kind; - /** - * The timestamp (in milliseconds since epoch) of when this report was last - * modified. - */ - core.String lastModifiedTime; - /** The name of the report. */ - core.String name; - /** The user profile id of the owner of this report. */ - core.String ownerProfileId; - /** The report criteria for a report of type "PATH_TO_CONVERSION". */ - ReportPathToConversionCriteria pathToConversionCriteria; - /** The report criteria for a report of type "REACH". */ - ReportReachCriteria reachCriteria; - /** - * The report's schedule. Can only be set if the report's 'dateRange' is a - * relative date range and the relative date range is not "TODAY". - */ - ReportSchedule schedule; - /** The subaccount ID to which this report belongs if applicable. */ - core.String subAccountId; - /** - * The type of the report. - * Possible string values are: - * - "CROSS_DIMENSION_REACH" - * - "FLOODLIGHT" - * - "PATH_TO_CONVERSION" - * - "REACH" - * - "STANDARD" - */ - core.String type; - - Report(); - - Report.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("criteria")) { - criteria = new ReportCriteria.fromJson(_json["criteria"]); - } - if (_json.containsKey("crossDimensionReachCriteria")) { - crossDimensionReachCriteria = new ReportCrossDimensionReachCriteria.fromJson(_json["crossDimensionReachCriteria"]); - } - if (_json.containsKey("delivery")) { - delivery = new ReportDelivery.fromJson(_json["delivery"]); - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("fileName")) { - fileName = _json["fileName"]; - } - if (_json.containsKey("floodlightCriteria")) { - floodlightCriteria = new ReportFloodlightCriteria.fromJson(_json["floodlightCriteria"]); - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lastModifiedTime")) { - lastModifiedTime = _json["lastModifiedTime"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("ownerProfileId")) { - ownerProfileId = _json["ownerProfileId"]; - } - if (_json.containsKey("pathToConversionCriteria")) { - pathToConversionCriteria = new ReportPathToConversionCriteria.fromJson(_json["pathToConversionCriteria"]); - } - if (_json.containsKey("reachCriteria")) { - reachCriteria = new ReportReachCriteria.fromJson(_json["reachCriteria"]); - } - if (_json.containsKey("schedule")) { - schedule = new ReportSchedule.fromJson(_json["schedule"]); - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (criteria != null) { - _json["criteria"] = (criteria).toJson(); - } - if (crossDimensionReachCriteria != null) { - _json["crossDimensionReachCriteria"] = (crossDimensionReachCriteria).toJson(); - } - if (delivery != null) { - _json["delivery"] = (delivery).toJson(); - } - if (etag != null) { - _json["etag"] = etag; - } - if (fileName != null) { - _json["fileName"] = fileName; - } - if (floodlightCriteria != null) { - _json["floodlightCriteria"] = (floodlightCriteria).toJson(); - } - if (format != null) { - _json["format"] = format; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lastModifiedTime != null) { - _json["lastModifiedTime"] = lastModifiedTime; - } - if (name != null) { - _json["name"] = name; - } - if (ownerProfileId != null) { - _json["ownerProfileId"] = ownerProfileId; - } - if (pathToConversionCriteria != null) { - _json["pathToConversionCriteria"] = (pathToConversionCriteria).toJson(); - } - if (reachCriteria != null) { - _json["reachCriteria"] = (reachCriteria).toJson(); - } - if (schedule != null) { - _json["schedule"] = (schedule).toJson(); - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * Represents fields that are compatible to be selected for a report of type - * "STANDARD". - */ -class ReportCompatibleFields { - /** - * Dimensions which are compatible to be selected in the "dimensionFilters" - * section of the report. - */ - core.List<Dimension> dimensionFilters; - /** - * Dimensions which are compatible to be selected in the "dimensions" section - * of the report. - */ - core.List<Dimension> dimensions; - /** - * The kind of resource this is, in this case - * dfareporting#reportCompatibleFields. - */ - core.String kind; - /** - * Metrics which are compatible to be selected in the "metricNames" section of - * the report. - */ - core.List<Metric> metrics; - /** - * Metrics which are compatible to be selected as activity metrics to pivot on - * in the "activities" section of the report. - */ - core.List<Metric> pivotedActivityMetrics; - - ReportCompatibleFields(); - - ReportCompatibleFields.fromJson(core.Map _json) { - if (_json.containsKey("dimensionFilters")) { - dimensionFilters = _json["dimensionFilters"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("dimensions")) { - dimensions = _json["dimensions"].map((value) => new Dimension.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("metrics")) { - metrics = _json["metrics"].map((value) => new Metric.fromJson(value)).toList(); - } - if (_json.containsKey("pivotedActivityMetrics")) { - pivotedActivityMetrics = _json["pivotedActivityMetrics"].map((value) => new Metric.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dimensionFilters != null) { - _json["dimensionFilters"] = dimensionFilters.map((value) => (value).toJson()).toList(); - } - if (dimensions != null) { - _json["dimensions"] = dimensions.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (metrics != null) { - _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); - } - if (pivotedActivityMetrics != null) { - _json["pivotedActivityMetrics"] = pivotedActivityMetrics.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents the list of reports. */ -class ReportList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The reports returned in this response. */ - core.List<Report> items; - /** The kind of list this is, in this case dfareporting#reportList. */ - core.String kind; - /** - * Continuation token used to page through reports. To retrieve the next page - * of results, set the next request's "pageToken" to the value of this field. - * The page token is only valid for a limited amount of time and should not be - * persisted. - */ - core.String nextPageToken; - - ReportList(); - - ReportList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new Report.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - return _json; - } -} - -/** Reporting Configuration */ -class ReportsConfiguration { - /** - * Whether the exposure to conversion report is enabled. This report shows - * detailed pathway information on up to 10 of the most recent ad exposures - * seen by a user before converting. - */ - core.bool exposureToConversionEnabled; - /** Default lookback windows for new advertisers in this account. */ - LookbackConfiguration lookbackConfiguration; - /** - * Report generation time zone ID of this account. This is a required field - * that can only be changed by a superuser. - * Acceptable values are: - * - * - "1" for "America/New_York" - * - "2" for "Europe/London" - * - "3" for "Europe/Paris" - * - "4" for "Africa/Johannesburg" - * - "5" for "Asia/Jerusalem" - * - "6" for "Asia/Shanghai" - * - "7" for "Asia/Hong_Kong" - * - "8" for "Asia/Tokyo" - * - "9" for "Australia/Sydney" - * - "10" for "Asia/Dubai" - * - "11" for "America/Los_Angeles" - * - "12" for "Pacific/Auckland" - * - "13" for "America/Sao_Paulo" - */ - core.String reportGenerationTimeZoneId; - - ReportsConfiguration(); - - ReportsConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("exposureToConversionEnabled")) { - exposureToConversionEnabled = _json["exposureToConversionEnabled"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("reportGenerationTimeZoneId")) { - reportGenerationTimeZoneId = _json["reportGenerationTimeZoneId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (exposureToConversionEnabled != null) { - _json["exposureToConversionEnabled"] = exposureToConversionEnabled; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (reportGenerationTimeZoneId != null) { - _json["reportGenerationTimeZoneId"] = reportGenerationTimeZoneId; - } - return _json; - } -} - -/** Rich Media Exit Override. */ -class RichMediaExitOverride { - /** - * Click-through URL to override the default exit URL. Applicable if the - * useCustomExitUrl field is set to true. - */ - core.String customExitUrl; - /** ID for the override to refer to a specific exit in the creative. */ - core.String exitId; - /** Whether to use the custom exit URL. */ - core.bool useCustomExitUrl; - - RichMediaExitOverride(); - - RichMediaExitOverride.fromJson(core.Map _json) { - if (_json.containsKey("customExitUrl")) { - customExitUrl = _json["customExitUrl"]; - } - if (_json.containsKey("exitId")) { - exitId = _json["exitId"]; - } - if (_json.containsKey("useCustomExitUrl")) { - useCustomExitUrl = _json["useCustomExitUrl"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customExitUrl != null) { - _json["customExitUrl"] = customExitUrl; - } - if (exitId != null) { - _json["exitId"] = exitId; - } - if (useCustomExitUrl != null) { - _json["useCustomExitUrl"] = useCustomExitUrl; - } - return _json; - } -} - -/** Contains properties of a site. */ -class Site { - /** - * Account ID of this site. This is a read-only field that can be left blank. - */ - core.String accountId; - /** Whether this site is approved. */ - core.bool approved; - /** - * Directory site associated with this site. This is a required field that is - * read-only after insertion. - */ - core.String directorySiteId; - /** - * Dimension value for the ID of the directory site. This is a read-only, - * auto-generated field. - */ - DimensionValue directorySiteIdDimensionValue; - /** ID of this site. This is a read-only, auto-generated field. */ - core.String id; - /** - * Dimension value for the ID of this site. This is a read-only, - * auto-generated field. - */ - DimensionValue idDimensionValue; - /** Key name of this site. This is a read-only, auto-generated field. */ - core.String keyName; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#site". - */ - core.String kind; - /** - * Name of this site.This is a required field. Must be less than 128 - * characters long. If this site is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this site is a - * top-level site, and the name must be unique among top-level sites of the - * same account. - */ - core.String name; - /** Site contacts. */ - core.List<SiteContact> siteContacts; - /** Site-wide settings. */ - SiteSettings siteSettings; - /** - * Subaccount ID of this site. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - Site(); - - Site.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("approved")) { - approved = _json["approved"]; - } - if (_json.containsKey("directorySiteId")) { - directorySiteId = _json["directorySiteId"]; - } - if (_json.containsKey("directorySiteIdDimensionValue")) { - directorySiteIdDimensionValue = new DimensionValue.fromJson(_json["directorySiteIdDimensionValue"]); - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("idDimensionValue")) { - idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); - } - if (_json.containsKey("keyName")) { - keyName = _json["keyName"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("siteContacts")) { - siteContacts = _json["siteContacts"].map((value) => new SiteContact.fromJson(value)).toList(); - } - if (_json.containsKey("siteSettings")) { - siteSettings = new SiteSettings.fromJson(_json["siteSettings"]); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (approved != null) { - _json["approved"] = approved; - } - if (directorySiteId != null) { - _json["directorySiteId"] = directorySiteId; - } - if (directorySiteIdDimensionValue != null) { - _json["directorySiteIdDimensionValue"] = (directorySiteIdDimensionValue).toJson(); - } - if (id != null) { - _json["id"] = id; - } - if (idDimensionValue != null) { - _json["idDimensionValue"] = (idDimensionValue).toJson(); - } - if (keyName != null) { - _json["keyName"] = keyName; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (siteContacts != null) { - _json["siteContacts"] = siteContacts.map((value) => (value).toJson()).toList(); - } - if (siteSettings != null) { - _json["siteSettings"] = (siteSettings).toJson(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Site Contact */ -class SiteContact { - /** Address of this site contact. */ - core.String address; - /** - * Site contact type. - * Possible string values are: - * - "SALES_PERSON" - * - "TRAFFICKER" - */ - core.String contactType; - /** Email address of this site contact. This is a required field. */ - core.String email; - /** First name of this site contact. */ - core.String firstName; - /** ID of this site contact. This is a read-only, auto-generated field. */ - core.String id; - /** Last name of this site contact. */ - core.String lastName; - /** Primary phone number of this site contact. */ - core.String phone; - /** Title or designation of this site contact. */ - core.String title; - - SiteContact(); - - SiteContact.fromJson(core.Map _json) { - if (_json.containsKey("address")) { - address = _json["address"]; - } - if (_json.containsKey("contactType")) { - contactType = _json["contactType"]; - } - if (_json.containsKey("email")) { - email = _json["email"]; - } - if (_json.containsKey("firstName")) { - firstName = _json["firstName"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("lastName")) { - lastName = _json["lastName"]; - } - if (_json.containsKey("phone")) { - phone = _json["phone"]; - } - if (_json.containsKey("title")) { - title = _json["title"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (address != null) { - _json["address"] = address; - } - if (contactType != null) { - _json["contactType"] = contactType; - } - if (email != null) { - _json["email"] = email; - } - if (firstName != null) { - _json["firstName"] = firstName; - } - if (id != null) { - _json["id"] = id; - } - if (lastName != null) { - _json["lastName"] = lastName; - } - if (phone != null) { - _json["phone"] = phone; - } - if (title != null) { - _json["title"] = title; - } - return _json; - } -} - -/** Site Settings */ -class SiteSettings { - /** Whether active view creatives are disabled for this site. */ - core.bool activeViewOptOut; - /** Site-wide creative settings. */ - CreativeSettings creativeSettings; - /** Whether brand safe ads are disabled for this site. */ - core.bool disableBrandSafeAds; - /** Whether new cookies are disabled for this site. */ - core.bool disableNewCookie; - /** Lookback window settings for this site. */ - LookbackConfiguration lookbackConfiguration; - /** Configuration settings for dynamic and image floodlight tags. */ - TagSetting tagSetting; - /** - * Whether Verification and ActiveView are disabled for in-stream video - * creatives on this site. The same setting videoActiveViewOptOut exists on - * the directory site level -- the opt out occurs if either of these settings - * are true. These settings are distinct from - * DirectorySites.settings.activeViewOptOut or - * Sites.siteSettings.activeViewOptOut which only apply to display ads. - * However, Accounts.activeViewOptOut opts out both video traffic, as well as - * display ads, from Verification and ActiveView. - */ - core.bool videoActiveViewOptOut; - - SiteSettings(); - - SiteSettings.fromJson(core.Map _json) { - if (_json.containsKey("activeViewOptOut")) { - activeViewOptOut = _json["activeViewOptOut"]; - } - if (_json.containsKey("creativeSettings")) { - creativeSettings = new CreativeSettings.fromJson(_json["creativeSettings"]); - } - if (_json.containsKey("disableBrandSafeAds")) { - disableBrandSafeAds = _json["disableBrandSafeAds"]; - } - if (_json.containsKey("disableNewCookie")) { - disableNewCookie = _json["disableNewCookie"]; - } - if (_json.containsKey("lookbackConfiguration")) { - lookbackConfiguration = new LookbackConfiguration.fromJson(_json["lookbackConfiguration"]); - } - if (_json.containsKey("tagSetting")) { - tagSetting = new TagSetting.fromJson(_json["tagSetting"]); - } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (activeViewOptOut != null) { - _json["activeViewOptOut"] = activeViewOptOut; - } - if (creativeSettings != null) { - _json["creativeSettings"] = (creativeSettings).toJson(); - } - if (disableBrandSafeAds != null) { - _json["disableBrandSafeAds"] = disableBrandSafeAds; - } - if (disableNewCookie != null) { - _json["disableNewCookie"] = disableNewCookie; - } - if (lookbackConfiguration != null) { - _json["lookbackConfiguration"] = (lookbackConfiguration).toJson(); - } - if (tagSetting != null) { - _json["tagSetting"] = (tagSetting).toJson(); - } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; - } - return _json; - } -} - -/** Site List Response */ -class SitesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sitesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Site collection. */ - core.List<Site> sites; - - SitesListResponse(); - - SitesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("sites")) { - sites = _json["sites"].map((value) => new Site.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (sites != null) { - _json["sites"] = sites.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** - * Represents the dimensions of ads, placements, creatives, or creative assets. - */ -class Size { - /** Height of this size. */ - core.int height; - /** IAB standard size. This is a read-only, auto-generated field. */ - core.bool iab; - /** ID of this size. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#size". - */ - core.String kind; - /** Width of this size. */ - core.int width; - - Size(); - - Size.fromJson(core.Map _json) { - if (_json.containsKey("height")) { - height = _json["height"]; - } - if (_json.containsKey("iab")) { - iab = _json["iab"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("width")) { - width = _json["width"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (height != null) { - _json["height"] = height; - } - if (iab != null) { - _json["iab"] = iab; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (width != null) { - _json["width"] = width; - } - return _json; - } -} - -/** Size List Response */ -class SizesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#sizesListResponse". - */ - core.String kind; - /** Size collection. */ - core.List<Size> sizes; - - SizesListResponse(); - - SizesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("sizes")) { - sizes = _json["sizes"].map((value) => new Size.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (sizes != null) { - _json["sizes"] = sizes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Represents a sorted dimension. */ -class SortedDimension { - /** - * The kind of resource this is, in this case dfareporting#sortedDimension. - */ - core.String kind; - /** The name of the dimension. */ - core.String name; - /** - * An optional sort order for the dimension column. - * Possible string values are: - * - "ASCENDING" - * - "DESCENDING" - */ - core.String sortOrder; - - SortedDimension(); - - SortedDimension.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("sortOrder")) { - sortOrder = _json["sortOrder"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (sortOrder != null) { - _json["sortOrder"] = sortOrder; - } - return _json; - } -} - -/** Contains properties of a DCM subaccount. */ -class Subaccount { - /** - * ID of the account that contains this subaccount. This is a read-only field - * that can be left blank. - */ - core.String accountId; - /** IDs of the available user role permissions for this subaccount. */ - core.List<core.String> availablePermissionIds; - /** ID of this subaccount. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccount". - */ - core.String kind; - /** - * Name of this subaccount. This is a required field. Must be less than 128 - * characters long and be unique among subaccounts of the same account. - */ - core.String name; - - Subaccount(); - - Subaccount.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("availablePermissionIds")) { - availablePermissionIds = _json["availablePermissionIds"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (availablePermissionIds != null) { - _json["availablePermissionIds"] = availablePermissionIds; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** Subaccount List Response */ -class SubaccountsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#subaccountsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Subaccount collection. */ - core.List<Subaccount> subaccounts; - - SubaccountsListResponse(); - - SubaccountsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("subaccounts")) { - subaccounts = _json["subaccounts"].map((value) => new Subaccount.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (subaccounts != null) { - _json["subaccounts"] = subaccounts.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Placement Tag Data */ -class TagData { - /** Ad associated with this placement tag. */ - core.String adId; - /** Tag string to record a click. */ - core.String clickTag; - /** Creative associated with this placement tag. */ - core.String creativeId; - /** - * TagData tag format of this tag. - * Possible string values are: - * - "PLACEMENT_TAG_CLICK_COMMANDS" - * - "PLACEMENT_TAG_IFRAME_ILAYER" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH" - * - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3" - * - "PLACEMENT_TAG_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT" - * - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_JAVASCRIPT" - * - "PLACEMENT_TAG_JAVASCRIPT_LEGACY" - * - "PLACEMENT_TAG_STANDARD" - * - "PLACEMENT_TAG_TRACKING" - * - "PLACEMENT_TAG_TRACKING_IFRAME" - * - "PLACEMENT_TAG_TRACKING_JAVASCRIPT" - */ - core.String format; - /** Tag string for serving an ad. */ - core.String impressionTag; - - TagData(); - - TagData.fromJson(core.Map _json) { - if (_json.containsKey("adId")) { - adId = _json["adId"]; - } - if (_json.containsKey("clickTag")) { - clickTag = _json["clickTag"]; - } - if (_json.containsKey("creativeId")) { - creativeId = _json["creativeId"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("impressionTag")) { - impressionTag = _json["impressionTag"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (adId != null) { - _json["adId"] = adId; - } - if (clickTag != null) { - _json["clickTag"] = clickTag; - } - if (creativeId != null) { - _json["creativeId"] = creativeId; - } - if (format != null) { - _json["format"] = format; - } - if (impressionTag != null) { - _json["impressionTag"] = impressionTag; - } - return _json; - } -} - -/** Tag Settings */ -class TagSetting { - /** - * Additional key-values to be included in tags. Each key-value pair must be - * of the form key=value, and pairs must be separated by a semicolon (;). Keys - * and values must not contain commas. For example, id=2;color=red is a valid - * value for this field. - */ - core.String additionalKeyValues; - /** - * Whether static landing page URLs should be included in the tags. This - * setting applies only to placements. - */ - core.bool includeClickThroughUrls; - /** Whether click-tracking string should be included in the tags. */ - core.bool includeClickTracking; - /** - * Option specifying how keywords are embedded in ad tags. This setting can be - * used to specify whether keyword placeholders are inserted in placement tags - * for this site. Publishers can then add keywords to those placeholders. - * Possible string values are: - * - "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - * - "IGNORE" - * - "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - */ - core.String keywordOption; - - TagSetting(); - - TagSetting.fromJson(core.Map _json) { - if (_json.containsKey("additionalKeyValues")) { - additionalKeyValues = _json["additionalKeyValues"]; - } - if (_json.containsKey("includeClickThroughUrls")) { - includeClickThroughUrls = _json["includeClickThroughUrls"]; - } - if (_json.containsKey("includeClickTracking")) { - includeClickTracking = _json["includeClickTracking"]; - } - if (_json.containsKey("keywordOption")) { - keywordOption = _json["keywordOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (additionalKeyValues != null) { - _json["additionalKeyValues"] = additionalKeyValues; - } - if (includeClickThroughUrls != null) { - _json["includeClickThroughUrls"] = includeClickThroughUrls; - } - if (includeClickTracking != null) { - _json["includeClickTracking"] = includeClickTracking; - } - if (keywordOption != null) { - _json["keywordOption"] = keywordOption; - } - return _json; - } -} - -/** Dynamic and Image Tag Settings. */ -class TagSettings { - /** Whether dynamic floodlight tags are enabled. */ - core.bool dynamicTagEnabled; - /** Whether image tags are enabled. */ - core.bool imageTagEnabled; - - TagSettings(); - - TagSettings.fromJson(core.Map _json) { - if (_json.containsKey("dynamicTagEnabled")) { - dynamicTagEnabled = _json["dynamicTagEnabled"]; - } - if (_json.containsKey("imageTagEnabled")) { - imageTagEnabled = _json["imageTagEnabled"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dynamicTagEnabled != null) { - _json["dynamicTagEnabled"] = dynamicTagEnabled; - } - if (imageTagEnabled != null) { - _json["imageTagEnabled"] = imageTagEnabled; - } - return _json; - } -} - -/** Target Window. */ -class TargetWindow { - /** User-entered value. */ - core.String customHtml; - /** - * Type of browser window for which the backup image of the flash creative can - * be displayed. - * Possible string values are: - * - "CURRENT_WINDOW" - * - "CUSTOM" - * - "NEW_WINDOW" - */ - core.String targetWindowOption; - - TargetWindow(); - - TargetWindow.fromJson(core.Map _json) { - if (_json.containsKey("customHtml")) { - customHtml = _json["customHtml"]; - } - if (_json.containsKey("targetWindowOption")) { - targetWindowOption = _json["targetWindowOption"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (customHtml != null) { - _json["customHtml"] = customHtml; - } - if (targetWindowOption != null) { - _json["targetWindowOption"] = targetWindowOption; - } - return _json; - } -} - -/** - * Contains properties of a targetable remarketing list. Remarketing enables you - * to create lists of users who have performed specific actions on a site, then - * target ads to members of those lists. This resource is a read-only view of a - * remarketing list to be used to faciliate targeting ads to specific lists. - * Remarketing lists that are owned by your advertisers and those that are - * shared to your advertisers or account are accessible via this resource. To - * manage remarketing lists that are owned by your advertisers, use the - * RemarketingLists resource. - */ -class TargetableRemarketingList { - /** - * Account ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String accountId; - /** Whether this targetable remarketing list is active. */ - core.bool active; - /** - * Dimension value for the advertiser ID that owns this targetable remarketing - * list. - */ - core.String advertiserId; - /** Dimension value for the ID of the advertiser. */ - DimensionValue advertiserIdDimensionValue; - /** Targetable remarketing list description. */ - core.String description; - /** Targetable remarketing list ID. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingList". - */ - core.String kind; - /** - * Number of days that a user should remain in the targetable remarketing list - * without an impression. - */ - core.String lifeSpan; - /** Number of users currently in the list. This is a read-only field. */ - core.String listSize; - /** - * Product from which this targetable remarketing list was originated. - * Possible string values are: - * - "REMARKETING_LIST_SOURCE_ADX" - * - "REMARKETING_LIST_SOURCE_DBM" - * - "REMARKETING_LIST_SOURCE_DFA" - * - "REMARKETING_LIST_SOURCE_DFP" - * - "REMARKETING_LIST_SOURCE_DMP" - * - "REMARKETING_LIST_SOURCE_GA" - * - "REMARKETING_LIST_SOURCE_GPLUS" - * - "REMARKETING_LIST_SOURCE_OTHER" - * - "REMARKETING_LIST_SOURCE_PLAY_STORE" - * - "REMARKETING_LIST_SOURCE_XFP" - * - "REMARKETING_LIST_SOURCE_YOUTUBE" - */ - core.String listSource; - /** - * Name of the targetable remarketing list. Is no greater than 128 characters - * long. - */ - core.String name; - /** - * Subaccount ID of this remarketing list. This is a read-only, auto-generated - * field that is only returned in GET requests. - */ - core.String subaccountId; - - TargetableRemarketingList(); - - TargetableRemarketingList.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("active")) { - active = _json["active"]; - } - if (_json.containsKey("advertiserId")) { - advertiserId = _json["advertiserId"]; - } - if (_json.containsKey("advertiserIdDimensionValue")) { - advertiserIdDimensionValue = new DimensionValue.fromJson(_json["advertiserIdDimensionValue"]); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("lifeSpan")) { - lifeSpan = _json["lifeSpan"]; - } - if (_json.containsKey("listSize")) { - listSize = _json["listSize"]; - } - if (_json.containsKey("listSource")) { - listSource = _json["listSource"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (active != null) { - _json["active"] = active; - } - if (advertiserId != null) { - _json["advertiserId"] = advertiserId; - } - if (advertiserIdDimensionValue != null) { - _json["advertiserIdDimensionValue"] = (advertiserIdDimensionValue).toJson(); - } - if (description != null) { - _json["description"] = description; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (lifeSpan != null) { - _json["lifeSpan"] = lifeSpan; - } - if (listSize != null) { - _json["listSize"] = listSize; - } - if (listSource != null) { - _json["listSource"] = listSource; - } - if (name != null) { - _json["name"] = name; - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Targetable remarketing list response */ -class TargetableRemarketingListsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#targetableRemarketingListsListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** Targetable remarketing list collection. */ - core.List<TargetableRemarketingList> targetableRemarketingLists; - - TargetableRemarketingListsListResponse(); - - TargetableRemarketingListsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("targetableRemarketingLists")) { - targetableRemarketingLists = _json["targetableRemarketingLists"].map((value) => new TargetableRemarketingList.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (targetableRemarketingLists != null) { - _json["targetableRemarketingLists"] = targetableRemarketingLists.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Technology Targeting. */ -class TechnologyTargeting { - /** - * Browsers that this ad targets. For each browser either set browserVersionId - * or dartId along with the version numbers. If both are specified, only - * browserVersionId will be used. The other fields are populated automatically - * when the ad is inserted or updated. - */ - core.List<Browser> browsers; - /** - * Connection types that this ad targets. For each connection type only id is - * required. The other fields are populated automatically when the ad is - * inserted or updated. - */ - core.List<ConnectionType> connectionTypes; - /** - * Mobile carriers that this ad targets. For each mobile carrier only id is - * required, and the other fields are populated automatically when the ad is - * inserted or updated. If targeting a mobile carrier, do not set targeting - * for any zip codes. - */ - core.List<MobileCarrier> mobileCarriers; - /** - * Operating system versions that this ad targets. To target all versions, use - * operatingSystems. For each operating system version, only id is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system version, do not set targeting for - * the corresponding operating system in operatingSystems. - */ - core.List<OperatingSystemVersion> operatingSystemVersions; - /** - * Operating systems that this ad targets. To target specific versions, use - * operatingSystemVersions. For each operating system only dartId is required. - * The other fields are populated automatically when the ad is inserted or - * updated. If targeting an operating system, do not set targeting for - * operating system versions for the same operating system. - */ - core.List<OperatingSystem> operatingSystems; - /** - * Platform types that this ad targets. For example, desktop, mobile, or - * tablet. For each platform type, only id is required, and the other fields - * are populated automatically when the ad is inserted or updated. - */ - core.List<PlatformType> platformTypes; - - TechnologyTargeting(); - - TechnologyTargeting.fromJson(core.Map _json) { - if (_json.containsKey("browsers")) { - browsers = _json["browsers"].map((value) => new Browser.fromJson(value)).toList(); - } - if (_json.containsKey("connectionTypes")) { - connectionTypes = _json["connectionTypes"].map((value) => new ConnectionType.fromJson(value)).toList(); - } - if (_json.containsKey("mobileCarriers")) { - mobileCarriers = _json["mobileCarriers"].map((value) => new MobileCarrier.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystemVersions")) { - operatingSystemVersions = _json["operatingSystemVersions"].map((value) => new OperatingSystemVersion.fromJson(value)).toList(); - } - if (_json.containsKey("operatingSystems")) { - operatingSystems = _json["operatingSystems"].map((value) => new OperatingSystem.fromJson(value)).toList(); - } - if (_json.containsKey("platformTypes")) { - platformTypes = _json["platformTypes"].map((value) => new PlatformType.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (browsers != null) { - _json["browsers"] = browsers.map((value) => (value).toJson()).toList(); - } - if (connectionTypes != null) { - _json["connectionTypes"] = connectionTypes.map((value) => (value).toJson()).toList(); - } - if (mobileCarriers != null) { - _json["mobileCarriers"] = mobileCarriers.map((value) => (value).toJson()).toList(); - } - if (operatingSystemVersions != null) { - _json["operatingSystemVersions"] = operatingSystemVersions.map((value) => (value).toJson()).toList(); - } - if (operatingSystems != null) { - _json["operatingSystems"] = operatingSystems.map((value) => (value).toJson()).toList(); - } - if (platformTypes != null) { - _json["platformTypes"] = platformTypes.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** Third Party Authentication Token */ -class ThirdPartyAuthenticationToken { - /** Name of the third-party authentication token. */ - core.String name; - /** - * Value of the third-party authentication token. This is a read-only, - * auto-generated field. - */ - core.String value; - - ThirdPartyAuthenticationToken(); - - ThirdPartyAuthenticationToken.fromJson(core.Map _json) { - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (name != null) { - _json["name"] = name; - } - if (value != null) { - _json["value"] = value; - } - return _json; - } -} - -/** Third-party Tracking URL. */ -class ThirdPartyTrackingUrl { - /** - * Third-party URL type for in-stream video creatives. - * Possible string values are: - * - "CLICK_TRACKING" - * - "IMPRESSION" - * - "RICH_MEDIA_BACKUP_IMPRESSION" - * - "RICH_MEDIA_IMPRESSION" - * - "RICH_MEDIA_RM_IMPRESSION" - * - "SURVEY" - * - "VIDEO_COMPLETE" - * - "VIDEO_CUSTOM" - * - "VIDEO_FIRST_QUARTILE" - * - "VIDEO_FULLSCREEN" - * - "VIDEO_MIDPOINT" - * - "VIDEO_MUTE" - * - "VIDEO_PAUSE" - * - "VIDEO_PROGRESS" - * - "VIDEO_REWIND" - * - "VIDEO_SKIP" - * - "VIDEO_START" - * - "VIDEO_STOP" - * - "VIDEO_THIRD_QUARTILE" - */ - core.String thirdPartyUrlType; - /** URL for the specified third-party URL type. */ - core.String url; - - ThirdPartyTrackingUrl(); - - ThirdPartyTrackingUrl.fromJson(core.Map _json) { - if (_json.containsKey("thirdPartyUrlType")) { - thirdPartyUrlType = _json["thirdPartyUrlType"]; - } - if (_json.containsKey("url")) { - url = _json["url"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (thirdPartyUrlType != null) { - _json["thirdPartyUrlType"] = thirdPartyUrlType; - } - if (url != null) { - _json["url"] = url; - } - return _json; - } -} - -/** User Defined Variable configuration. */ -class UserDefinedVariableConfiguration { - /** - * Data type for the variable. This is a required field. - * Possible string values are: - * - "NUMBER" - * - "STRING" - */ - core.String dataType; - /** - * User-friendly name for the variable which will appear in reports. This is a - * required field, must be less than 64 characters long, and cannot contain - * the following characters: ""<>". - */ - core.String reportName; - /** - * Variable name in the tag. This is a required field. - * Possible string values are: - * - "U1" - * - "U10" - * - "U100" - * - "U11" - * - "U12" - * - "U13" - * - "U14" - * - "U15" - * - "U16" - * - "U17" - * - "U18" - * - "U19" - * - "U2" - * - "U20" - * - "U21" - * - "U22" - * - "U23" - * - "U24" - * - "U25" - * - "U26" - * - "U27" - * - "U28" - * - "U29" - * - "U3" - * - "U30" - * - "U31" - * - "U32" - * - "U33" - * - "U34" - * - "U35" - * - "U36" - * - "U37" - * - "U38" - * - "U39" - * - "U4" - * - "U40" - * - "U41" - * - "U42" - * - "U43" - * - "U44" - * - "U45" - * - "U46" - * - "U47" - * - "U48" - * - "U49" - * - "U5" - * - "U50" - * - "U51" - * - "U52" - * - "U53" - * - "U54" - * - "U55" - * - "U56" - * - "U57" - * - "U58" - * - "U59" - * - "U6" - * - "U60" - * - "U61" - * - "U62" - * - "U63" - * - "U64" - * - "U65" - * - "U66" - * - "U67" - * - "U68" - * - "U69" - * - "U7" - * - "U70" - * - "U71" - * - "U72" - * - "U73" - * - "U74" - * - "U75" - * - "U76" - * - "U77" - * - "U78" - * - "U79" - * - "U8" - * - "U80" - * - "U81" - * - "U82" - * - "U83" - * - "U84" - * - "U85" - * - "U86" - * - "U87" - * - "U88" - * - "U89" - * - "U9" - * - "U90" - * - "U91" - * - "U92" - * - "U93" - * - "U94" - * - "U95" - * - "U96" - * - "U97" - * - "U98" - * - "U99" - */ - core.String variableType; - - UserDefinedVariableConfiguration(); - - UserDefinedVariableConfiguration.fromJson(core.Map _json) { - if (_json.containsKey("dataType")) { - dataType = _json["dataType"]; - } - if (_json.containsKey("reportName")) { - reportName = _json["reportName"]; - } - if (_json.containsKey("variableType")) { - variableType = _json["variableType"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (dataType != null) { - _json["dataType"] = dataType; - } - if (reportName != null) { - _json["reportName"] = reportName; - } - if (variableType != null) { - _json["variableType"] = variableType; - } - return _json; - } -} - -/** Represents a UserProfile resource. */ -class UserProfile { - /** The account ID to which this profile belongs. */ - core.String accountId; - /** The account name this profile belongs to. */ - core.String accountName; - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The kind of resource this is, in this case dfareporting#userProfile. */ - core.String kind; - /** The unique ID of the user profile. */ - core.String profileId; - /** The sub account ID this profile belongs to if applicable. */ - core.String subAccountId; - /** The sub account name this profile belongs to if applicable. */ - core.String subAccountName; - /** The user name. */ - core.String userName; - - UserProfile(); - - UserProfile.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("accountName")) { - accountName = _json["accountName"]; - } - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("profileId")) { - profileId = _json["profileId"]; - } - if (_json.containsKey("subAccountId")) { - subAccountId = _json["subAccountId"]; - } - if (_json.containsKey("subAccountName")) { - subAccountName = _json["subAccountName"]; - } - if (_json.containsKey("userName")) { - userName = _json["userName"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (accountName != null) { - _json["accountName"] = accountName; - } - if (etag != null) { - _json["etag"] = etag; - } - if (kind != null) { - _json["kind"] = kind; - } - if (profileId != null) { - _json["profileId"] = profileId; - } - if (subAccountId != null) { - _json["subAccountId"] = subAccountId; - } - if (subAccountName != null) { - _json["subAccountName"] = subAccountName; - } - if (userName != null) { - _json["userName"] = userName; - } - return _json; - } -} - -/** Represents the list of user profiles. */ -class UserProfileList { - /** The eTag of this response for caching purposes. */ - core.String etag; - /** The user profiles returned in this response. */ - core.List<UserProfile> items; - /** The kind of list this is, in this case dfareporting#userProfileList. */ - core.String kind; - - UserProfileList(); - - UserProfileList.fromJson(core.Map _json) { - if (_json.containsKey("etag")) { - etag = _json["etag"]; - } - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new UserProfile.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (etag != null) { - _json["etag"] = etag; - } - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** Contains properties of auser role, which is used to manage user access. */ -class UserRole { - /** - * Account ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String accountId; - /** - * Whether this is a default user role. Default user roles are created by the - * system for the account/subaccount and cannot be modified or deleted. Each - * default user role comes with a basic set of preassigned permissions. - */ - core.bool defaultUserRole; - /** ID of this user role. This is a read-only, auto-generated field. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRole". - */ - core.String kind; - /** - * Name of this user role. This is a required field. Must be less than 256 - * characters long. If this user role is under a subaccount, the name must be - * unique among sites of the same subaccount. Otherwise, this user role is a - * top-level user role, and the name must be unique among top-level user roles - * of the same account. - */ - core.String name; - /** - * ID of the user role that this user role is based on or copied from. This is - * a required field. - */ - core.String parentUserRoleId; - /** List of permissions associated with this user role. */ - core.List<UserRolePermission> permissions; - /** - * Subaccount ID of this user role. This is a read-only field that can be left - * blank. - */ - core.String subaccountId; - - UserRole(); - - UserRole.fromJson(core.Map _json) { - if (_json.containsKey("accountId")) { - accountId = _json["accountId"]; - } - if (_json.containsKey("defaultUserRole")) { - defaultUserRole = _json["defaultUserRole"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("parentUserRoleId")) { - parentUserRoleId = _json["parentUserRoleId"]; - } - if (_json.containsKey("permissions")) { - permissions = _json["permissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - if (_json.containsKey("subaccountId")) { - subaccountId = _json["subaccountId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (accountId != null) { - _json["accountId"] = accountId; - } - if (defaultUserRole != null) { - _json["defaultUserRole"] = defaultUserRole; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (parentUserRoleId != null) { - _json["parentUserRoleId"] = parentUserRoleId; - } - if (permissions != null) { - _json["permissions"] = permissions.map((value) => (value).toJson()).toList(); - } - if (subaccountId != null) { - _json["subaccountId"] = subaccountId; - } - return _json; - } -} - -/** Contains properties of a user role permission. */ -class UserRolePermission { - /** - * Levels of availability for a user role permission. - * Possible string values are: - * - "ACCOUNT_ALWAYS" - * - "ACCOUNT_BY_DEFAULT" - * - "NOT_AVAILABLE_BY_DEFAULT" - * - "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - * - "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - */ - core.String availability; - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermission". - */ - core.String kind; - /** Name of this user role permission. */ - core.String name; - /** ID of the permission group that this user role permission belongs to. */ - core.String permissionGroupId; - - UserRolePermission(); - - UserRolePermission.fromJson(core.Map _json) { - if (_json.containsKey("availability")) { - availability = _json["availability"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("permissionGroupId")) { - permissionGroupId = _json["permissionGroupId"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (availability != null) { - _json["availability"] = availability; - } - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (permissionGroupId != null) { - _json["permissionGroupId"] = permissionGroupId; - } - return _json; - } -} - -/** Represents a grouping of related user role permissions. */ -class UserRolePermissionGroup { - /** ID of this user role permission. */ - core.String id; - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroup". - */ - core.String kind; - /** Name of this user role permission group. */ - core.String name; - - UserRolePermissionGroup(); - - UserRolePermissionGroup.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -/** User Role Permission Group List Response */ -class UserRolePermissionGroupsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionGroupsListResponse". - */ - core.String kind; - /** User role permission group collection. */ - core.List<UserRolePermissionGroup> userRolePermissionGroups; - - UserRolePermissionGroupsListResponse(); - - UserRolePermissionGroupsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissionGroups")) { - userRolePermissionGroups = _json["userRolePermissionGroups"].map((value) => new UserRolePermissionGroup.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissionGroups != null) { - _json["userRolePermissionGroups"] = userRolePermissionGroups.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role Permission List Response */ -class UserRolePermissionsListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolePermissionsListResponse". - */ - core.String kind; - /** User role permission collection. */ - core.List<UserRolePermission> userRolePermissions; - - UserRolePermissionsListResponse(); - - UserRolePermissionsListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("userRolePermissions")) { - userRolePermissions = _json["userRolePermissions"].map((value) => new UserRolePermission.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (userRolePermissions != null) { - _json["userRolePermissions"] = userRolePermissions.map((value) => (value).toJson()).toList(); - } - return _json; - } -} - -/** User Role List Response */ -class UserRolesListResponse { - /** - * Identifies what kind of resource this is. Value: the fixed string - * "dfareporting#userRolesListResponse". - */ - core.String kind; - /** Pagination token to be used for the next list operation. */ - core.String nextPageToken; - /** User role collection. */ - core.List<UserRole> userRoles; - - UserRolesListResponse(); - - UserRolesListResponse.fromJson(core.Map _json) { - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("nextPageToken")) { - nextPageToken = _json["nextPageToken"]; - } - if (_json.containsKey("userRoles")) { - userRoles = _json["userRoles"].map((value) => new UserRole.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (kind != null) { - _json["kind"] = kind; - } - if (nextPageToken != null) { - _json["nextPageToken"] = nextPageToken; - } - if (userRoles != null) { - _json["userRoles"] = userRoles.map((value) => (value).toJson()).toList(); - } - return _json; - } -}
diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart index 02e4d64..b51c751 100644 --- a/generated/googleapis/lib/drive/v2.dart +++ b/generated/googleapis/lib/drive/v2.dart
@@ -3414,6 +3414,7 @@ * [fileId] - The ID of the file. * * [maxResults] - Maximum number of revisions to return. + * Value must be between "1" and "1000". * * [pageToken] - Page token for revisions. To get the next page of results, * set this parameter to the value of "nextPageToken" from the previous @@ -5390,8 +5391,8 @@ } /** - * Thumbnail for the file. Only accepted on upload and for files that are not - * already thumbnailed by Google. + * A thumbnail for the file. This will only be used if Drive cannot generate a + * standard thumbnail. */ class FileThumbnail { /** @@ -5537,6 +5538,8 @@ * files. */ core.String fullFileExtension; + /** Whether this file has a thumbnail. */ + core.bool hasThumbnail; /** * The ID of the file's head revision. This field is only populated for files * with content stored in Drive; it is not populated for Google Docs or @@ -5644,15 +5647,21 @@ */ core.List<core.String> spaces; /** - * Thumbnail for the file. Only accepted on upload and for files that are not - * already thumbnailed by Google. + * A thumbnail for the file. This will only be used if Drive cannot generate a + * standard thumbnail. */ FileThumbnail thumbnail; /** * A short-lived link to the file's thumbnail. Typically lasts on the order of - * hours. + * hours. Only populated when the requesting app can access the file's + * content. */ core.String thumbnailLink; + /** + * The thumbnail version for use in client-contructable thumbnail URLs or + * thumbnail cache invalidation. + */ + core.String thumbnailVersion; /** The title of this file. */ core.String title; /** The permissions for the authenticated user on this file. */ @@ -5736,6 +5745,9 @@ if (_json.containsKey("fullFileExtension")) { fullFileExtension = _json["fullFileExtension"]; } + if (_json.containsKey("hasThumbnail")) { + hasThumbnail = _json["hasThumbnail"]; + } if (_json.containsKey("headRevisionId")) { headRevisionId = _json["headRevisionId"]; } @@ -5835,6 +5847,9 @@ if (_json.containsKey("thumbnailLink")) { thumbnailLink = _json["thumbnailLink"]; } + if (_json.containsKey("thumbnailVersion")) { + thumbnailVersion = _json["thumbnailVersion"]; + } if (_json.containsKey("title")) { title = _json["title"]; } @@ -5914,6 +5929,9 @@ if (fullFileExtension != null) { _json["fullFileExtension"] = fullFileExtension; } + if (hasThumbnail != null) { + _json["hasThumbnail"] = hasThumbnail; + } if (headRevisionId != null) { _json["headRevisionId"] = headRevisionId; } @@ -6013,6 +6031,9 @@ if (thumbnailLink != null) { _json["thumbnailLink"] = thumbnailLink; } + if (thumbnailVersion != null) { + _json["thumbnailVersion"] = thumbnailVersion; + } if (title != null) { _json["title"] = title; } @@ -6264,8 +6285,8 @@ * The ID of the user this permission refers to, and identical to the * permissionId in the About and Files resources. When making a * drive.permissions.insert request, exactly one of the id or value fields - * must be specified unless the permission type anyone, in which case both id - * and value are ignored. + * must be specified unless the permission type is anyone, in which case both + * id and value are ignored. */ core.String id; /** This is always drive#permission. */ @@ -6295,8 +6316,8 @@ * The email address or domain name for the entity. This is used during * inserts and is not populated in responses. When making a * drive.permissions.insert request, exactly one of the id or value fields - * must be specified unless the permission type anyone, in which case both id - * and value are ignored. + * must be specified unless the permission type is anyone, in which case both + * id and value are ignored. */ core.String value; /** Whether the link is required for this permission. */
diff --git a/generated/googleapis/lib/drive/v3.dart b/generated/googleapis/lib/drive/v3.dart index 1185d3c..b206909 100644 --- a/generated/googleapis/lib/drive/v3.dart +++ b/generated/googleapis/lib/drive/v3.dart
@@ -1893,6 +1893,7 @@ * [fileId] - The ID of the file. * * [pageSize] - The maximum number of revisions to return per page. + * Value must be between "1" and "1000". * * [pageToken] - The token for continuing a previous list request on the next * page. This should be set to the value of 'nextPageToken' from the previous @@ -3016,6 +3017,8 @@ * not cleared if the new name does not contain a valid extension. */ core.String fullFileExtension; + /** Whether this file has a thumbnail. */ + core.bool hasThumbnail; /** * The ID of the file's head revision. This is currently only available for * files with binary content in Drive. @@ -3121,10 +3124,16 @@ core.bool starred; /** * A short-lived link to the file's thumbnail, if available. Typically lasts - * on the order of hours. + * on the order of hours. Only populated when the requesting app can access + * the file's content. */ core.String thumbnailLink; /** + * The thumbnail version for use in client-contructable thumbnail URLs or + * thumbnail cache invalidation. + */ + core.String thumbnailVersion; + /** * Whether the file has been trashed, either explicitly or from a trashed * parent folder. Only the owner may trash a file, and other users cannot see * files in the owner's trash. @@ -3195,6 +3204,9 @@ if (_json.containsKey("fullFileExtension")) { fullFileExtension = _json["fullFileExtension"]; } + if (_json.containsKey("hasThumbnail")) { + hasThumbnail = _json["hasThumbnail"]; + } if (_json.containsKey("headRevisionId")) { headRevisionId = _json["headRevisionId"]; } @@ -3276,6 +3288,9 @@ if (_json.containsKey("thumbnailLink")) { thumbnailLink = _json["thumbnailLink"]; } + if (_json.containsKey("thumbnailVersion")) { + thumbnailVersion = _json["thumbnailVersion"]; + } if (_json.containsKey("trashed")) { trashed = _json["trashed"]; } @@ -3334,6 +3349,9 @@ if (fullFileExtension != null) { _json["fullFileExtension"] = fullFileExtension; } + if (hasThumbnail != null) { + _json["hasThumbnail"] = hasThumbnail; + } if (headRevisionId != null) { _json["headRevisionId"] = headRevisionId; } @@ -3415,6 +3433,9 @@ if (thumbnailLink != null) { _json["thumbnailLink"] = thumbnailLink; } + if (thumbnailVersion != null) { + _json["thumbnailVersion"] = thumbnailVersion; + } if (trashed != null) { _json["trashed"] = trashed; }
diff --git a/generated/googleapis/lib/firebasedynamiclinks/v1.dart b/generated/googleapis/lib/firebasedynamiclinks/v1.dart index 9d376bb..5af23a9 100644 --- a/generated/googleapis/lib/firebasedynamiclinks/v1.dart +++ b/generated/googleapis/lib/firebasedynamiclinks/v1.dart
@@ -281,12 +281,6 @@ */ IosInfo iosInfo; /** - * Declares that the Dynamic Link is used in an advertisement. - * See the 'ad' parameter in the - * [documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). - */ - core.bool isAd; - /** * The link your app will open, You can specify any URL your app can handle. * This link must be a well-formatted URL, be properly URL-encoded, and use * the HTTP or HTTPS scheme. See 'link' parameters in the @@ -316,9 +310,6 @@ if (_json.containsKey("iosInfo")) { iosInfo = new IosInfo.fromJson(_json["iosInfo"]); } - if (_json.containsKey("isAd")) { - isAd = _json["isAd"]; - } if (_json.containsKey("link")) { link = _json["link"]; } @@ -341,9 +332,6 @@ if (iosInfo != null) { _json["iosInfo"] = (iosInfo).toJson(); } - if (isAd != null) { - _json["isAd"] = isAd; - } if (link != null) { _json["link"] = link; }
diff --git a/generated/googleapis/lib/fitness/v1.dart b/generated/googleapis/lib/fitness/v1.dart index 1f2d007..c7481dd 100644 --- a/generated/googleapis/lib/fitness/v1.dart +++ b/generated/googleapis/lib/fitness/v1.dart
@@ -24,12 +24,30 @@ /** View and store your activity information in Google Fit */ static const FitnessActivityWriteScope = "https://www.googleapis.com/auth/fitness.activity.write"; + /** View blood glucose data in Google Fit */ + static const FitnessBloodGlucoseReadScope = "https://www.googleapis.com/auth/fitness.blood_glucose.read"; + + /** View and store blood glucose data in Google Fit */ + static const FitnessBloodGlucoseWriteScope = "https://www.googleapis.com/auth/fitness.blood_glucose.write"; + + /** View blood pressure data in Google Fit */ + static const FitnessBloodPressureReadScope = "https://www.googleapis.com/auth/fitness.blood_pressure.read"; + + /** View and store blood pressure data in Google Fit */ + static const FitnessBloodPressureWriteScope = "https://www.googleapis.com/auth/fitness.blood_pressure.write"; + /** View body sensor information in Google Fit */ static const FitnessBodyReadScope = "https://www.googleapis.com/auth/fitness.body.read"; /** View and store body sensor data in Google Fit */ static const FitnessBodyWriteScope = "https://www.googleapis.com/auth/fitness.body.write"; + /** View body temperature data in Google Fit */ + static const FitnessBodyTemperatureReadScope = "https://www.googleapis.com/auth/fitness.body_temperature.read"; + + /** View and store body temperature data in Google Fit */ + static const FitnessBodyTemperatureWriteScope = "https://www.googleapis.com/auth/fitness.body_temperature.write"; + /** View your stored location data in Google Fit */ static const FitnessLocationReadScope = "https://www.googleapis.com/auth/fitness.location.read"; @@ -42,6 +60,18 @@ /** View and store nutrition information in Google Fit */ static const FitnessNutritionWriteScope = "https://www.googleapis.com/auth/fitness.nutrition.write"; + /** View oxygen saturation data in Google Fit */ + static const FitnessOxygenSaturationReadScope = "https://www.googleapis.com/auth/fitness.oxygen_saturation.read"; + + /** View and store oxygen saturation data in Google Fit */ + static const FitnessOxygenSaturationWriteScope = "https://www.googleapis.com/auth/fitness.oxygen_saturation.write"; + + /** View reproductive health data in Google Fit */ + static const FitnessReproductiveHealthReadScope = "https://www.googleapis.com/auth/fitness.reproductive_health.read"; + + /** View and store reproductive health data in Google Fit */ + static const FitnessReproductiveHealthWriteScope = "https://www.googleapis.com/auth/fitness.reproductive_health.write"; + final commons.ApiRequester _requester; @@ -1993,7 +2023,7 @@ * Holder object for the value of a single field in a data point. * * A field value has a particular format and is only ever set to one of an - * integer or a floating point value. + * integer or a floating point value. LINT.IfChange */ class Value { /** Floating point value. When this is set, other values must not be set. */
diff --git a/generated/googleapis/lib/gmail/v1.dart b/generated/googleapis/lib/gmail/v1.dart index c517a4a..b1bc1bb 100644 --- a/generated/googleapis/lib/gmail/v1.dart +++ b/generated/googleapis/lib/gmail/v1.dart
@@ -984,6 +984,51 @@ } /** + * Modifies the labels on the specified messages. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [userId] - The user's email address. The special value me can be used to + * indicate the authenticated user. + * + * 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 batchModify(BatchModifyMessagesRequest request, core.String userId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (userId == null) { + throw new core.ArgumentError("Parameter userId is required."); + } + + _downloadOptions = null; + + _url = commons.Escaper.ecapeVariable('$userId') + '/messages/batchModify'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } + + /** * Immediately and permanently deletes the specified message. This operation * cannot be undone. Prefer messages.trash instead. * @@ -1276,7 +1321,8 @@ * * [q] - Only return messages matching the specified query. Supports the same * query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". + * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be + * used when accessing the api using the gmail.metadata scope. * * Completes with a [ListMessagesResponse]. * @@ -2789,7 +2835,8 @@ * * [q] - Only return threads matching the specified query. Supports the same * query format as the Gmail search box. For example, - * "from:someuser@example.com rfc822msgid: is:unread". + * "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be + * used when accessing the api using the gmail.metadata scope. * * Completes with a [ListThreadsResponse]. * @@ -3055,6 +3102,46 @@ } } +class BatchModifyMessagesRequest { + /** A list of label IDs to add to messages. */ + core.List<core.String> addLabelIds; + /** + * The IDs of the messages to modify. There is a limit of 1000 ids per + * request. + */ + core.List<core.String> ids; + /** A list of label IDs to remove from messages. */ + core.List<core.String> removeLabelIds; + + BatchModifyMessagesRequest(); + + BatchModifyMessagesRequest.fromJson(core.Map _json) { + if (_json.containsKey("addLabelIds")) { + addLabelIds = _json["addLabelIds"]; + } + if (_json.containsKey("ids")) { + ids = _json["ids"]; + } + if (_json.containsKey("removeLabelIds")) { + removeLabelIds = _json["removeLabelIds"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (addLabelIds != null) { + _json["addLabelIds"] = addLabelIds; + } + if (ids != null) { + _json["ids"] = ids; + } + if (removeLabelIds != null) { + _json["removeLabelIds"] = removeLabelIds; + } + return _json; + } +} + /** A draft email in the user's mailbox. */ class Draft { /** The immutable ID of the draft. */ @@ -4100,7 +4187,7 @@ void set dataAsBytes(core.List<core.int> _bytes) { data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /** Total number of bytes in the body of the message part. */ + /** Number of bytes for the message part data (encoding notwithstanding). */ core.int size; MessagePartBody();
diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart index cafd23c..78166cd 100644 --- a/generated/googleapis/lib/identitytoolkit/v3.dart +++ b/generated/googleapis/lib/identitytoolkit/v3.dart
@@ -17,6 +17,9 @@ /** Help the third party sites to implement federated login. */ class IdentitytoolkitApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + /** View and administer all your Firebase data and settings */ static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; @@ -1225,6 +1228,11 @@ * response. */ core.String nextPageToken; + /** + * Specify which project (field value is actually project id) to operate. Only + * used when provided credential. + */ + core.String targetProjectId; IdentitytoolkitRelyingpartyDownloadAccountRequest(); @@ -1238,6 +1246,9 @@ if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } + if (_json.containsKey("targetProjectId")) { + targetProjectId = _json["targetProjectId"]; + } } core.Map toJson() { @@ -1251,6 +1262,9 @@ if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } + if (targetProjectId != null) { + _json["targetProjectId"] = targetProjectId; + } return _json; } }
diff --git a/generated/googleapis/lib/language/v1.dart b/generated/googleapis/lib/language/v1.dart new file mode 100644 index 0000000..fc4be2b --- /dev/null +++ b/generated/googleapis/lib/language/v1.dart
@@ -0,0 +1,1459 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.language.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +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; + +const core.String USER_AGENT = 'dart-api-client language/v1'; + +/** + * Google Cloud Natural Language API provides natural language understanding + * technologies to developers. Examples include sentiment analysis, entity + * recognition, and text annotations. + */ +class LanguageApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + + + final commons.ApiRequester _requester; + + DocumentsResourceApi get documents => new DocumentsResourceApi(_requester); + + LanguageApi(http.Client client, {core.String rootUrl: "https://language.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class DocumentsResourceApi { + final commons.ApiRequester _requester; + + DocumentsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Finds named entities (currently finds proper names) in the text, + * entity types, salience, mentions for each entity, and other properties. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [AnalyzeEntitiesResponse]. + * + * 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<AnalyzeEntitiesResponse> analyzeEntities(AnalyzeEntitiesRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/documents:analyzeEntities'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AnalyzeEntitiesResponse.fromJson(data)); + } + + /** + * Analyzes the sentiment of the provided text. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [AnalyzeSentimentResponse]. + * + * 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<AnalyzeSentimentResponse> analyzeSentiment(AnalyzeSentimentRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/documents:analyzeSentiment'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AnalyzeSentimentResponse.fromJson(data)); + } + + /** + * Analyzes the syntax of the text and provides sentence boundaries and + * tokenization along with part of speech tags, dependency trees, and other + * properties. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [AnalyzeSyntaxResponse]. + * + * 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<AnalyzeSyntaxResponse> analyzeSyntax(AnalyzeSyntaxRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/documents:analyzeSyntax'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AnalyzeSyntaxResponse.fromJson(data)); + } + + /** + * A convenience method that provides all the features that analyzeSentiment, + * analyzeEntities, and analyzeSyntax provide in one call. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [AnnotateTextResponse]. + * + * 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<AnnotateTextResponse> annotateText(AnnotateTextRequest request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/documents:annotateText'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AnnotateTextResponse.fromJson(data)); + } + +} + + + +/** The entity analysis request message. */ +class AnalyzeEntitiesRequest { + /** Input document. */ + Document document; + /** + * The encoding type used by the API to calculate offsets. + * Possible string values are: + * - "NONE" : If `EncodingType` is not specified, encoding-dependent + * information (such as + * `begin_offset`) will be set at `-1`. + * - "UTF8" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-8 encoding of the input. C++ and Go are examples of languages + * that use this encoding natively. + * - "UTF16" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-16 encoding of the input. Java and Javascript are examples of + * languages that use this encoding natively. + * - "UTF32" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-32 encoding of the input. Python is an example of a language + * that uses this encoding natively. + */ + core.String encodingType; + + AnalyzeEntitiesRequest(); + + AnalyzeEntitiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("document")) { + document = new Document.fromJson(_json["document"]); + } + if (_json.containsKey("encodingType")) { + encodingType = _json["encodingType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (document != null) { + _json["document"] = (document).toJson(); + } + if (encodingType != null) { + _json["encodingType"] = encodingType; + } + return _json; + } +} + +/** The entity analysis response message. */ +class AnalyzeEntitiesResponse { + /** The recognized entities in the input document. */ + core.List<Entity> entities; + /** + * The language of the text, which will be the same as the language specified + * in the request or, if not specified, the automatically-detected language. + * See `Document.language` field for more details. + */ + core.String language; + + AnalyzeEntitiesResponse(); + + AnalyzeEntitiesResponse.fromJson(core.Map _json) { + if (_json.containsKey("entities")) { + entities = _json["entities"].map((value) => new Entity.fromJson(value)).toList(); + } + if (_json.containsKey("language")) { + language = _json["language"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (entities != null) { + _json["entities"] = entities.map((value) => (value).toJson()).toList(); + } + if (language != null) { + _json["language"] = language; + } + return _json; + } +} + +/** The sentiment analysis request message. */ +class AnalyzeSentimentRequest { + /** + * Input document. Currently, `analyzeSentiment` only supports English text + * (Document.language="EN"). + */ + Document document; + /** + * The encoding type used by the API to calculate sentence offsets. + * Possible string values are: + * - "NONE" : If `EncodingType` is not specified, encoding-dependent + * information (such as + * `begin_offset`) will be set at `-1`. + * - "UTF8" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-8 encoding of the input. C++ and Go are examples of languages + * that use this encoding natively. + * - "UTF16" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-16 encoding of the input. Java and Javascript are examples of + * languages that use this encoding natively. + * - "UTF32" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-32 encoding of the input. Python is an example of a language + * that uses this encoding natively. + */ + core.String encodingType; + + AnalyzeSentimentRequest(); + + AnalyzeSentimentRequest.fromJson(core.Map _json) { + if (_json.containsKey("document")) { + document = new Document.fromJson(_json["document"]); + } + if (_json.containsKey("encodingType")) { + encodingType = _json["encodingType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (document != null) { + _json["document"] = (document).toJson(); + } + if (encodingType != null) { + _json["encodingType"] = encodingType; + } + return _json; + } +} + +/** The sentiment analysis response message. */ +class AnalyzeSentimentResponse { + /** The overall sentiment of the input document. */ + Sentiment documentSentiment; + /** + * The language of the text, which will be the same as the language specified + * in the request or, if not specified, the automatically-detected language. + * See `Document.language` field for more details. + */ + core.String language; + /** The sentiment for all the sentences in the document. */ + core.List<Sentence> sentences; + + AnalyzeSentimentResponse(); + + AnalyzeSentimentResponse.fromJson(core.Map _json) { + if (_json.containsKey("documentSentiment")) { + documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); + } + if (_json.containsKey("language")) { + language = _json["language"]; + } + if (_json.containsKey("sentences")) { + sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (documentSentiment != null) { + _json["documentSentiment"] = (documentSentiment).toJson(); + } + if (language != null) { + _json["language"] = language; + } + if (sentences != null) { + _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** The syntax analysis request message. */ +class AnalyzeSyntaxRequest { + /** Input document. */ + Document document; + /** + * The encoding type used by the API to calculate offsets. + * Possible string values are: + * - "NONE" : If `EncodingType` is not specified, encoding-dependent + * information (such as + * `begin_offset`) will be set at `-1`. + * - "UTF8" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-8 encoding of the input. C++ and Go are examples of languages + * that use this encoding natively. + * - "UTF16" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-16 encoding of the input. Java and Javascript are examples of + * languages that use this encoding natively. + * - "UTF32" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-32 encoding of the input. Python is an example of a language + * that uses this encoding natively. + */ + core.String encodingType; + + AnalyzeSyntaxRequest(); + + AnalyzeSyntaxRequest.fromJson(core.Map _json) { + if (_json.containsKey("document")) { + document = new Document.fromJson(_json["document"]); + } + if (_json.containsKey("encodingType")) { + encodingType = _json["encodingType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (document != null) { + _json["document"] = (document).toJson(); + } + if (encodingType != null) { + _json["encodingType"] = encodingType; + } + return _json; + } +} + +/** The syntax analysis response message. */ +class AnalyzeSyntaxResponse { + /** + * The language of the text, which will be the same as the language specified + * in the request or, if not specified, the automatically-detected language. + * See `Document.language` field for more details. + */ + core.String language; + /** Sentences in the input document. */ + core.List<Sentence> sentences; + /** Tokens, along with their syntactic information, in the input document. */ + core.List<Token> tokens; + + AnalyzeSyntaxResponse(); + + AnalyzeSyntaxResponse.fromJson(core.Map _json) { + if (_json.containsKey("language")) { + language = _json["language"]; + } + if (_json.containsKey("sentences")) { + sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)).toList(); + } + if (_json.containsKey("tokens")) { + tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (language != null) { + _json["language"] = language; + } + if (sentences != null) { + _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); + } + if (tokens != null) { + _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * The request message for the text annotation API, which can perform multiple + * analysis types (sentiment, entities, and syntax) in one call. + */ +class AnnotateTextRequest { + /** Input document. */ + Document document; + /** + * The encoding type used by the API to calculate offsets. + * Possible string values are: + * - "NONE" : If `EncodingType` is not specified, encoding-dependent + * information (such as + * `begin_offset`) will be set at `-1`. + * - "UTF8" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-8 encoding of the input. C++ and Go are examples of languages + * that use this encoding natively. + * - "UTF16" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-16 encoding of the input. Java and Javascript are examples of + * languages that use this encoding natively. + * - "UTF32" : Encoding-dependent information (such as `begin_offset`) is + * calculated based + * on the UTF-32 encoding of the input. Python is an example of a language + * that uses this encoding natively. + */ + core.String encodingType; + /** The enabled features. */ + Features features; + + AnnotateTextRequest(); + + AnnotateTextRequest.fromJson(core.Map _json) { + if (_json.containsKey("document")) { + document = new Document.fromJson(_json["document"]); + } + if (_json.containsKey("encodingType")) { + encodingType = _json["encodingType"]; + } + if (_json.containsKey("features")) { + features = new Features.fromJson(_json["features"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (document != null) { + _json["document"] = (document).toJson(); + } + if (encodingType != null) { + _json["encodingType"] = encodingType; + } + if (features != null) { + _json["features"] = (features).toJson(); + } + return _json; + } +} + +/** The text annotations response message. */ +class AnnotateTextResponse { + /** + * The overall sentiment for the document. Populated if the user enables + * AnnotateTextRequest.Features.extract_document_sentiment. + */ + Sentiment documentSentiment; + /** + * Entities, along with their semantic information, in the input document. + * Populated if the user enables + * AnnotateTextRequest.Features.extract_entities. + */ + core.List<Entity> entities; + /** + * The language of the text, which will be the same as the language specified + * in the request or, if not specified, the automatically-detected language. + * See `Document.language` field for more details. + */ + core.String language; + /** + * Sentences in the input document. Populated if the user enables + * AnnotateTextRequest.Features.extract_syntax. + */ + core.List<Sentence> sentences; + /** + * Tokens, along with their syntactic information, in the input document. + * Populated if the user enables + * AnnotateTextRequest.Features.extract_syntax. + */ + core.List<Token> tokens; + + AnnotateTextResponse(); + + AnnotateTextResponse.fromJson(core.Map _json) { + if (_json.containsKey("documentSentiment")) { + documentSentiment = new Sentiment.fromJson(_json["documentSentiment"]); + } + if (_json.containsKey("entities")) { + entities = _json["entities"].map((value) => new Entity.fromJson(value)).toList(); + } + if (_json.containsKey("language")) { + language = _json["language"]; + } + if (_json.containsKey("sentences")) { + sentences = _json["sentences"].map((value) => new Sentence.fromJson(value)).toList(); + } + if (_json.containsKey("tokens")) { + tokens = _json["tokens"].map((value) => new Token.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (documentSentiment != null) { + _json["documentSentiment"] = (documentSentiment).toJson(); + } + if (entities != null) { + _json["entities"] = entities.map((value) => (value).toJson()).toList(); + } + if (language != null) { + _json["language"] = language; + } + if (sentences != null) { + _json["sentences"] = sentences.map((value) => (value).toJson()).toList(); + } + if (tokens != null) { + _json["tokens"] = tokens.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Represents dependency parse tree information for a token. (For more + * information on dependency labels, see + * http://www.aclweb.org/anthology/P13-2017 + */ +class DependencyEdge { + /** + * Represents the head of this token in the dependency tree. + * This is the index of the token which has an arc going to this token. + * The index is the position of the token in the array of tokens returned + * by the API method. If this token is a root token, then the + * `head_token_index` is its own index. + */ + core.int headTokenIndex; + /** + * The parse label for the token. + * Possible string values are: + * - "UNKNOWN" : Unknown + * - "ABBREV" : Abbreviation modifier + * - "ACOMP" : Adjectival complement + * - "ADVCL" : Adverbial clause modifier + * - "ADVMOD" : Adverbial modifier + * - "AMOD" : Adjectival modifier of an NP + * - "APPOS" : Appositional modifier of an NP + * - "ATTR" : Attribute dependent of a copular verb + * - "AUX" : Auxiliary (non-main) verb + * - "AUXPASS" : Passive auxiliary + * - "CC" : Coordinating conjunction + * - "CCOMP" : Clausal complement of a verb or adjective + * - "CONJ" : Conjunct + * - "CSUBJ" : Clausal subject + * - "CSUBJPASS" : Clausal passive subject + * - "DEP" : Dependency (unable to determine) + * - "DET" : Determiner + * - "DISCOURSE" : Discourse + * - "DOBJ" : Direct object + * - "EXPL" : Expletive + * - "GOESWITH" : Goes with (part of a word in a text not well edited) + * - "IOBJ" : Indirect object + * - "MARK" : Marker (word introducing a subordinate clause) + * - "MWE" : Multi-word expression + * - "MWV" : Multi-word verbal expression + * - "NEG" : Negation modifier + * - "NN" : Noun compound modifier + * - "NPADVMOD" : Noun phrase used as an adverbial modifier + * - "NSUBJ" : Nominal subject + * - "NSUBJPASS" : Passive nominal subject + * - "NUM" : Numeric modifier of a noun + * - "NUMBER" : Element of compound number + * - "P" : Punctuation mark + * - "PARATAXIS" : Parataxis relation + * - "PARTMOD" : Participial modifier + * - "PCOMP" : The complement of a preposition is a clause + * - "POBJ" : Object of a preposition + * - "POSS" : Possession modifier + * - "POSTNEG" : Postverbal negative particle + * - "PRECOMP" : Predicate complement + * - "PRECONJ" : Preconjunt + * - "PREDET" : Predeterminer + * - "PREF" : Prefix + * - "PREP" : Prepositional modifier + * - "PRONL" : The relationship between a verb and verbal morpheme + * - "PRT" : Particle + * - "PS" : Associative or possessive marker + * - "QUANTMOD" : Quantifier phrase modifier + * - "RCMOD" : Relative clause modifier + * - "RCMODREL" : Complementizer in relative clause + * - "RDROP" : Ellipsis without a preceding predicate + * - "REF" : Referent + * - "REMNANT" : Remnant + * - "REPARANDUM" : Reparandum + * - "ROOT" : Root + * - "SNUM" : Suffix specifying a unit of number + * - "SUFF" : Suffix + * - "TMOD" : Temporal modifier + * - "TOPIC" : Topic marker + * - "VMOD" : Clause headed by an infinite form of the verb that modifies a + * noun + * - "VOCATIVE" : Vocative + * - "XCOMP" : Open clausal complement + * - "SUFFIX" : Name suffix + * - "TITLE" : Name title + * - "ADVPHMOD" : Adverbial phrase modifier + * - "AUXCAUS" : Causative auxiliary + * - "AUXVV" : Helper auxiliary + * - "DTMOD" : Rentaishi (Prenominal modifier) + * - "FOREIGN" : Foreign words + * - "KW" : Keyword + * - "LIST" : List for chains of comparable items + * - "NOMC" : Nominalized clause + * - "NOMCSUBJ" : Nominalized clausal subject + * - "NOMCSUBJPASS" : Nominalized clausal passive + * - "NUMC" : Compound of numeric modifier + * - "COP" : Copula + * - "DISLOCATED" : Dislocated relation (for fronted/topicalized elements) + */ + core.String label; + + DependencyEdge(); + + DependencyEdge.fromJson(core.Map _json) { + if (_json.containsKey("headTokenIndex")) { + headTokenIndex = _json["headTokenIndex"]; + } + if (_json.containsKey("label")) { + label = _json["label"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (headTokenIndex != null) { + _json["headTokenIndex"] = headTokenIndex; + } + if (label != null) { + _json["label"] = label; + } + return _json; + } +} + +/** + * ################################################################ # + * + * Represents the input to API methods. + */ +class Document { + /** The content of the input in string format. */ + core.String content; + /** + * The Google Cloud Storage URI where the file content is located. + * This URI must be of the form: gs://bucket_name/object_name. For more + * details, see https://cloud.google.com/storage/docs/reference-uris. + * NOTE: Cloud Storage object versioning is not supported. + */ + core.String gcsContentUri; + /** + * The language of the document (if not specified, the language is + * automatically detected). Both ISO and BCP-47 language codes are + * accepted.<br> + * **Current Language Restrictions:** + * + * * Only English, Spanish, and Japanese textual content are supported. + * If the language (either specified by the caller or automatically detected) + * is not supported by the called API method, an `INVALID_ARGUMENT` error + * is returned. + */ + core.String language; + /** + * Required. If the type is not set or is `TYPE_UNSPECIFIED`, + * returns an `INVALID_ARGUMENT` error. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : The content type is not specified. + * - "PLAIN_TEXT" : Plain text + * - "HTML" : HTML + */ + core.String type; + + Document(); + + Document.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = _json["content"]; + } + if (_json.containsKey("gcsContentUri")) { + gcsContentUri = _json["gcsContentUri"]; + } + if (_json.containsKey("language")) { + language = _json["language"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (content != null) { + _json["content"] = content; + } + if (gcsContentUri != null) { + _json["gcsContentUri"] = gcsContentUri; + } + if (language != null) { + _json["language"] = language; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * Represents a phrase in the text that is a known entity, such as + * a person, an organization, or location. The API associates information, such + * as salience and mentions, with entities. + */ +class Entity { + /** + * The mentions of this entity in the input document. The API currently + * supports proper noun mentions. + */ + core.List<EntityMention> mentions; + /** + * Metadata associated with the entity. + * + * Currently, Wikipedia URLs and Knowledge Graph MIDs are provided, if + * available. The associated keys are "wikipedia_url" and "mid", respectively. + */ + core.Map<core.String, core.String> metadata; + /** The representative name for the entity. */ + core.String name; + /** + * The salience score associated with the entity in the [0, 1.0] range. + * + * The salience score for an entity provides information about the + * importance or centrality of that entity to the entire document text. + * Scores closer to 0 are less salient, while scores closer to 1.0 are highly + * salient. + */ + core.double salience; + /** + * The entity type. + * Possible string values are: + * - "UNKNOWN" : Unknown + * - "PERSON" : Person + * - "LOCATION" : Location + * - "ORGANIZATION" : Organization + * - "EVENT" : Event + * - "WORK_OF_ART" : Work of art + * - "CONSUMER_GOOD" : Consumer goods + * - "OTHER" : Other types + */ + core.String type; + + Entity(); + + Entity.fromJson(core.Map _json) { + if (_json.containsKey("mentions")) { + mentions = _json["mentions"].map((value) => new EntityMention.fromJson(value)).toList(); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("salience")) { + salience = _json["salience"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (mentions != null) { + _json["mentions"] = mentions.map((value) => (value).toJson()).toList(); + } + if (metadata != null) { + _json["metadata"] = metadata; + } + if (name != null) { + _json["name"] = name; + } + if (salience != null) { + _json["salience"] = salience; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * Represents a mention for an entity in the text. Currently, proper noun + * mentions are supported. + */ +class EntityMention { + /** The mention text. */ + TextSpan text; + /** + * The type of the entity mention. + * Possible string values are: + * - "TYPE_UNKNOWN" : Unknown + * - "PROPER" : Proper name + * - "COMMON" : Common noun (or noun compound) + */ + core.String type; + + EntityMention(); + + EntityMention.fromJson(core.Map _json) { + if (_json.containsKey("text")) { + text = new TextSpan.fromJson(_json["text"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (text != null) { + _json["text"] = (text).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * All available features for sentiment, syntax, and semantic analysis. + * Setting each one to true will enable that specific analysis for the input. + */ +class Features { + /** Extract document-level sentiment. */ + core.bool extractDocumentSentiment; + /** Extract entities. */ + core.bool extractEntities; + /** Extract syntax information. */ + core.bool extractSyntax; + + Features(); + + Features.fromJson(core.Map _json) { + if (_json.containsKey("extractDocumentSentiment")) { + extractDocumentSentiment = _json["extractDocumentSentiment"]; + } + if (_json.containsKey("extractEntities")) { + extractEntities = _json["extractEntities"]; + } + if (_json.containsKey("extractSyntax")) { + extractSyntax = _json["extractSyntax"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (extractDocumentSentiment != null) { + _json["extractDocumentSentiment"] = extractDocumentSentiment; + } + if (extractEntities != null) { + _json["extractEntities"] = extractEntities; + } + if (extractSyntax != null) { + _json["extractSyntax"] = extractSyntax; + } + return _json; + } +} + +/** + * Represents part of speech information for a token. Parts of speech + * are as defined in + * http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdf + */ +class PartOfSpeech { + /** + * The grammatical aspect. + * Possible string values are: + * - "ASPECT_UNKNOWN" : Aspect is not applicable in the analyzed language or + * is not predicted. + * - "PERFECTIVE" : Perfective + * - "IMPERFECTIVE" : Imperfective + * - "PROGRESSIVE" : Progressive + */ + core.String aspect; + /** + * The grammatical case. + * Possible string values are: + * - "CASE_UNKNOWN" : Case is not applicable in the analyzed language or is + * not predicted. + * - "ACCUSATIVE" : Accusative + * - "ADVERBIAL" : Adverbial + * - "COMPLEMENTIVE" : Complementive + * - "DATIVE" : Dative + * - "GENITIVE" : Genitive + * - "INSTRUMENTAL" : Instrumental + * - "LOCATIVE" : Locative + * - "NOMINATIVE" : Nominative + * - "OBLIQUE" : Oblique + * - "PARTITIVE" : Partitive + * - "PREPOSITIONAL" : Prepositional + * - "REFLEXIVE_CASE" : Reflexive + * - "RELATIVE_CASE" : Relative + * - "VOCATIVE" : Vocative + */ + core.String case_; + /** + * The grammatical form. + * Possible string values are: + * - "FORM_UNKNOWN" : Form is not applicable in the analyzed language or is + * not predicted. + * - "ADNOMIAL" : Adnomial + * - "AUXILIARY" : Auxiliary + * - "COMPLEMENTIZER" : Complementizer + * - "FINAL_ENDING" : Final ending + * - "GERUND" : Gerund + * - "REALIS" : Realis + * - "IRREALIS" : Irrealis + * - "SHORT" : Short form + * - "LONG" : Long form + * - "ORDER" : Order form + * - "SPECIFIC" : Specific form + */ + core.String form; + /** + * The grammatical gender. + * Possible string values are: + * - "GENDER_UNKNOWN" : Gender is not applicable in the analyzed language or + * is not predicted. + * - "FEMININE" : Feminine + * - "MASCULINE" : Masculine + * - "NEUTER" : Neuter + */ + core.String gender; + /** + * The grammatical mood. + * Possible string values are: + * - "MOOD_UNKNOWN" : Mood is not applicable in the analyzed language or is + * not predicted. + * - "CONDITIONAL_MOOD" : Conditional + * - "IMPERATIVE" : Imperative + * - "INDICATIVE" : Indicative + * - "INTERROGATIVE" : Interrogative + * - "JUSSIVE" : Jussive + * - "SUBJUNCTIVE" : Subjunctive + */ + core.String mood; + /** + * The grammatical number. + * Possible string values are: + * - "NUMBER_UNKNOWN" : Number is not applicable in the analyzed language or + * is not predicted. + * - "SINGULAR" : Singular + * - "PLURAL" : Plural + * - "DUAL" : Dual + */ + core.String number; + /** + * The grammatical person. + * Possible string values are: + * - "PERSON_UNKNOWN" : Person is not applicable in the analyzed language or + * is not predicted. + * - "FIRST" : First + * - "SECOND" : Second + * - "THIRD" : Third + * - "REFLEXIVE_PERSON" : Reflexive + */ + core.String person; + /** + * The grammatical properness. + * Possible string values are: + * - "PROPER_UNKNOWN" : Proper is not applicable in the analyzed language or + * is not predicted. + * - "PROPER" : Proper + * - "NOT_PROPER" : Not proper + */ + core.String proper; + /** + * The grammatical reciprocity. + * Possible string values are: + * - "RECIPROCITY_UNKNOWN" : Reciprocity is not applicable in the analyzed + * language or is not + * predicted. + * - "RECIPROCAL" : Reciprocal + * - "NON_RECIPROCAL" : Non-reciprocal + */ + core.String reciprocity; + /** + * The part of speech tag. + * Possible string values are: + * - "UNKNOWN" : Unknown + * - "ADJ" : Adjective + * - "ADP" : Adposition (preposition and postposition) + * - "ADV" : Adverb + * - "CONJ" : Conjunction + * - "DET" : Determiner + * - "NOUN" : Noun (common and proper) + * - "NUM" : Cardinal number + * - "PRON" : Pronoun + * - "PRT" : Particle or other function word + * - "PUNCT" : Punctuation + * - "VERB" : Verb (all tenses and modes) + * - "X" : Other: foreign words, typos, abbreviations + * - "AFFIX" : Affix + */ + core.String tag; + /** + * The grammatical tense. + * Possible string values are: + * - "TENSE_UNKNOWN" : Tense is not applicable in the analyzed language or is + * not predicted. + * - "CONDITIONAL_TENSE" : Conditional + * - "FUTURE" : Future + * - "PAST" : Past + * - "PRESENT" : Present + * - "IMPERFECT" : Imperfect + * - "PLUPERFECT" : Pluperfect + */ + core.String tense; + /** + * The grammatical voice. + * Possible string values are: + * - "VOICE_UNKNOWN" : Voice is not applicable in the analyzed language or is + * not predicted. + * - "ACTIVE" : Active + * - "CAUSATIVE" : Causative + * - "PASSIVE" : Passive + */ + core.String voice; + + PartOfSpeech(); + + PartOfSpeech.fromJson(core.Map _json) { + if (_json.containsKey("aspect")) { + aspect = _json["aspect"]; + } + if (_json.containsKey("case")) { + case_ = _json["case"]; + } + if (_json.containsKey("form")) { + form = _json["form"]; + } + if (_json.containsKey("gender")) { + gender = _json["gender"]; + } + if (_json.containsKey("mood")) { + mood = _json["mood"]; + } + if (_json.containsKey("number")) { + number = _json["number"]; + } + if (_json.containsKey("person")) { + person = _json["person"]; + } + if (_json.containsKey("proper")) { + proper = _json["proper"]; + } + if (_json.containsKey("reciprocity")) { + reciprocity = _json["reciprocity"]; + } + if (_json.containsKey("tag")) { + tag = _json["tag"]; + } + if (_json.containsKey("tense")) { + tense = _json["tense"]; + } + if (_json.containsKey("voice")) { + voice = _json["voice"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (aspect != null) { + _json["aspect"] = aspect; + } + if (case_ != null) { + _json["case"] = case_; + } + if (form != null) { + _json["form"] = form; + } + if (gender != null) { + _json["gender"] = gender; + } + if (mood != null) { + _json["mood"] = mood; + } + if (number != null) { + _json["number"] = number; + } + if (person != null) { + _json["person"] = person; + } + if (proper != null) { + _json["proper"] = proper; + } + if (reciprocity != null) { + _json["reciprocity"] = reciprocity; + } + if (tag != null) { + _json["tag"] = tag; + } + if (tense != null) { + _json["tense"] = tense; + } + if (voice != null) { + _json["voice"] = voice; + } + return _json; + } +} + +/** Represents a sentence in the input document. */ +class Sentence { + /** + * For calls to AnalyzeSentiment or if + * AnnotateTextRequest.Features.extract_document_sentiment is set to + * true, this field will contain the sentiment for the sentence. + */ + Sentiment sentiment; + /** The sentence text. */ + TextSpan text; + + Sentence(); + + Sentence.fromJson(core.Map _json) { + if (_json.containsKey("sentiment")) { + sentiment = new Sentiment.fromJson(_json["sentiment"]); + } + if (_json.containsKey("text")) { + text = new TextSpan.fromJson(_json["text"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (sentiment != null) { + _json["sentiment"] = (sentiment).toJson(); + } + if (text != null) { + _json["text"] = (text).toJson(); + } + return _json; + } +} + +/** + * Represents the feeling associated with the entire text or entities in + * the text. + */ +class Sentiment { + /** + * A non-negative number in the [0, +inf) range, which represents + * the absolute magnitude of sentiment regardless of score (positive or + * negative). + */ + core.double magnitude; + /** + * Sentiment score between -1.0 (negative sentiment) and 1.0 + * (positive sentiment). + */ + core.double score; + + Sentiment(); + + Sentiment.fromJson(core.Map _json) { + if (_json.containsKey("magnitude")) { + magnitude = _json["magnitude"]; + } + if (_json.containsKey("score")) { + score = _json["score"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (magnitude != null) { + _json["magnitude"] = magnitude; + } + if (score != null) { + _json["score"] = score; + } + return _json; + } +} + +/** + * The `Status` type defines a logical error model that is suitable for + * different + * programming environments, including REST APIs and RPC APIs. It is used by + * [gRPC](https://github.com/grpc). The error model is designed to be: + * + * - Simple to use and understand for most users + * - Flexible enough to meet unexpected needs + * + * # Overview + * + * The `Status` message contains three pieces of data: error code, error + * message, + * and error details. The error code should be an enum value of + * google.rpc.Code, but it may accept additional error codes if needed. The + * error message should be a developer-facing English message that helps + * developers *understand* and *resolve* the error. If a localized user-facing + * error message is needed, put the localized message in the error details or + * localize it in the client. The optional error details may contain arbitrary + * information about the error. There is a predefined set of error detail types + * in the package `google.rpc` which can be used for common error conditions. + * + * # Language mapping + * + * The `Status` message is the logical representation of the error model, but it + * is not necessarily the actual wire format. When the `Status` message is + * exposed in different client libraries and different wire protocols, it can be + * mapped differently. For example, it will likely be mapped to some exceptions + * in Java, but more likely mapped to some error codes in C. + * + * # Other uses + * + * The error model and the `Status` message can be used in a variety of + * environments, either with or without APIs, to provide a + * consistent developer experience across different environments. + * + * Example uses of this error model include: + * + * - Partial errors. If a service needs to return partial errors to the client, + * it may embed the `Status` in the normal response to indicate the partial + * errors. + * + * - Workflow errors. A typical workflow has multiple steps. Each step may + * have a `Status` message for error reporting purpose. + * + * - Batch operations. If a client uses batch request and batch response, the + * `Status` message should be used directly inside batch response, one for + * each error sub-response. + * + * - Asynchronous operations. If an API call embeds asynchronous operation + * results in its response, the status of those operations should be + * represented directly using the `Status` message. + * + * - Logging. If some API errors are stored in logs, the message `Status` could + * be used directly after any stripping needed for security/privacy reasons. + */ +class Status { + /** The status code, which should be an enum value of google.rpc.Code. */ + core.int code; + /** + * A list of messages that carry the error details. There will be a + * common set of message types for APIs to use. + * + * The values for Object must be JSON objects. It can consist of `num`, + * `String`, `bool` and `null` as well as `Map` and `List` values. + */ + core.List<core.Map<core.String, core.Object>> details; + /** + * A developer-facing error message, which should be in English. Any + * user-facing error message should be localized and sent in the + * google.rpc.Status.details field, or localized by the client. + */ + core.String message; + + Status(); + + Status.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("details")) { + details = _json["details"]; + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (code != null) { + _json["code"] = code; + } + if (details != null) { + _json["details"] = details; + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +/** Represents an output piece of text. */ +class TextSpan { + /** + * The API calculates the beginning offset of the content in the original + * document according to the EncodingType specified in the API request. + */ + core.int beginOffset; + /** The content of the output text. */ + core.String content; + + TextSpan(); + + TextSpan.fromJson(core.Map _json) { + if (_json.containsKey("beginOffset")) { + beginOffset = _json["beginOffset"]; + } + if (_json.containsKey("content")) { + content = _json["content"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (beginOffset != null) { + _json["beginOffset"] = beginOffset; + } + if (content != null) { + _json["content"] = content; + } + return _json; + } +} + +/** Represents the smallest syntactic building block of the text. */ +class Token { + /** Dependency tree parse for this token. */ + DependencyEdge dependencyEdge; + /** + * [Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token. + */ + core.String lemma; + /** Parts of speech tag for this token. */ + PartOfSpeech partOfSpeech; + /** The token text. */ + TextSpan text; + + Token(); + + Token.fromJson(core.Map _json) { + if (_json.containsKey("dependencyEdge")) { + dependencyEdge = new DependencyEdge.fromJson(_json["dependencyEdge"]); + } + if (_json.containsKey("lemma")) { + lemma = _json["lemma"]; + } + if (_json.containsKey("partOfSpeech")) { + partOfSpeech = new PartOfSpeech.fromJson(_json["partOfSpeech"]); + } + if (_json.containsKey("text")) { + text = new TextSpan.fromJson(_json["text"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dependencyEdge != null) { + _json["dependencyEdge"] = (dependencyEdge).toJson(); + } + if (lemma != null) { + _json["lemma"] = lemma; + } + if (partOfSpeech != null) { + _json["partOfSpeech"] = (partOfSpeech).toJson(); + } + if (text != null) { + _json["text"] = (text).toJson(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart index d7173b9..d6c76c9 100644 --- a/generated/googleapis/lib/logging/v2.dart +++ b/generated/googleapis/lib/logging/v2.dart
@@ -36,6 +36,7 @@ BillingAccountsResourceApi get billingAccounts => new BillingAccountsResourceApi(_requester); EntriesResourceApi get entries => new EntriesResourceApi(_requester); + FoldersResourceApi get folders => new FoldersResourceApi(_requester); MonitoredResourceDescriptorsResourceApi get monitoredResourceDescriptors => new MonitoredResourceDescriptorsResourceApi(_requester); OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); @@ -63,13 +64,18 @@ _requester = client; /** - * Deletes a log and all its log entries. - * The log will reappear if it receives new entries. + * Deletes all the log entries in a log. The log reappears if it receives new + * entries. * * Request parameters: * - * [logName] - Required. The resource name of the log to delete. Example: - * `"projects/my-project/logs/syslog"`. + * [logName] - Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded. For example, + * "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. * Value must have pattern "^billingAccounts/[^/]+/logs/[^/]+$". * * Completes with a [Empty]. @@ -104,6 +110,65 @@ return _response.then((data) => new Empty.fromJson(data)); } + /** + * Lists the logs in projects or organizations. Only logs that have entries + * are listed. + * + * Request parameters: + * + * [parent] - Required. The resource name that owns the logs: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * + * Value must have pattern "^billingAccounts/[^/]+$". + * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * + * [pageToken] - Optional. If present, then retrieve the next batch of results + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + * + * Completes with a [ListLogsResponse]. + * + * 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<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogsResponse.fromJson(data)); + } + } @@ -114,23 +179,32 @@ _requester = client; /** - * Creates a sink. + * Creates a sink that exports specified log entries to a destination. The + * export of newly-ingested log entries begins immediately, unless the current + * time is outside the sink's start and end times or the sink's + * writer_identity is not permitted to write to the destination. A sink can + * export log entries only from the resource owning the sink. * * [request] - The metadata request object. * * Request parameters: * - * [parent] - Required. The resource in which to create the sink. - * Example: `"projects/my-project-id"`. - * The new sink must be provided in the request. + * [parent] - Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^billingAccounts/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity + * returned as writer_identity in the new sink. If this value is omitted or + * set to false, and if the sink's parent is a project, then the value + * returned as writer_identity is cloud-logs@google.com, the same identity + * used before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * * Completes with a [LogSink]. * @@ -171,15 +245,18 @@ } /** - * Deletes a sink. + * Deletes a sink. If the sink has a unique writer_identity, then that service + * account is also deleted. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to delete, including - * the parent - * resource and the sink identifier. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. It is an error if the sink - * does not exist. + * [sinkName] - Required. The full resource name of the sink to delete, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * It is an error if the sink does not exist. Example: + * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does + * not exist. * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". * * Completes with a [Empty]. @@ -219,8 +296,10 @@ * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to return. - * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The parent resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". * * Completes with a [LogSink]. @@ -260,19 +339,17 @@ * * Request parameters: * - * [parent] - Required. The resource name where this sink was created. - * Example: `"projects/my-logging-project"`. + * [parent] - Required. The parent resource whose sinks are to be listed. + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^billingAccounts/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `nextPageToken` in the - * response indicates that more results might be available. + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. * * [pageToken] - Optional. If present, then retrieve the next batch of results - * from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * * Completes with a [ListSinksResponse]. @@ -314,24 +391,33 @@ } /** - * Updates or creates a sink. + * Updates a sink. If the named sink doesn't exist, then this method is + * identical to sinks.create. If the named sink does exist, then this method + * replaces the following fields in the existing sink with values from the new + * sink: destination, filter, output_version_format, start_time, and end_time. + * The updated filter might also have a new writer_identity; see the + * unique_writer_identity field. * * [request] - The metadata request object. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to update, including - * the parent - * resource and the sink identifier. If the sink does not exist, this method - * creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The full resource name of the sink to update, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^billingAccounts/[^/]+/sinks/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. See sinks.create for a description of + * this field. When updating a sink, the effect of this field on the value of + * writer_identity in the updated sink depends on both the old and new values + * of this field: + * If the old and new values of this field are both false or both true, then + * there is no change to the sink's writer_identity. + * If the old value was false and the new value is true, then writer_identity + * is changed to a unique service account. + * It is an error if the old value was true and the new value is false. * * Completes with a [LogSink]. * @@ -381,9 +467,8 @@ _requester = client; /** - * Lists log entries. Use this method to retrieve log entries from Cloud - * Logging. For ways to export log entries, see - * [Exporting Logs](/logging/docs/export). + * Lists log entries. Use this method to retrieve log entries from Stackdriver + * Logging. For ways to export log entries, see Exporting Logs. * * [request] - The metadata request object. * @@ -422,8 +507,8 @@ } /** - * Writes log entries to Stackdriver Logging. All log entries are - * written by this method. + * Writes log entries to Stackdriver Logging. All log entries are written by + * this method. * * [request] - The metadata request object. * @@ -464,6 +549,420 @@ } +class FoldersResourceApi { + final commons.ApiRequester _requester; + + FoldersLogsResourceApi get logs => new FoldersLogsResourceApi(_requester); + FoldersSinksResourceApi get sinks => new FoldersSinksResourceApi(_requester); + + FoldersResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class FoldersLogsResourceApi { + final commons.ApiRequester _requester; + + FoldersLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes all the log entries in a log. The log reappears if it receives new + * entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded. For example, + * "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. + * Value must have pattern "^folders/[^/]+/logs/[^/]+$". + * + * Completes with a [Empty]. + * + * 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<Empty> delete(core.String logName) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (logName == null) { + throw new core.ArgumentError("Parameter logName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$logName'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Lists the logs in projects or organizations. Only logs that have entries + * are listed. + * + * Request parameters: + * + * [parent] - Required. The resource name that owns the logs: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * + * Value must have pattern "^folders/[^/]+$". + * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * + * [pageToken] - Optional. If present, then retrieve the next batch of results + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + * + * Completes with a [ListLogsResponse]. + * + * 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<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogsResponse.fromJson(data)); + } + +} + + +class FoldersSinksResourceApi { + final commons.ApiRequester _requester; + + FoldersSinksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a sink that exports specified log entries to a destination. The + * export of newly-ingested log entries begins immediately, unless the current + * time is outside the sink's start and end times or the sink's + * writer_identity is not permitted to write to the destination. A sink can + * export log entries only from the resource owning the sink. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * Examples: "projects/my-logging-project", "organizations/123456789". + * Value must have pattern "^folders/[^/]+$". + * + * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity + * returned as writer_identity in the new sink. If this value is omitted or + * set to false, and if the sink's parent is a project, then the value + * returned as writer_identity is cloud-logs@google.com, the same identity + * used before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. + * + * Completes with a [LogSink]. + * + * 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<LogSink> create(LogSink request, core.String parent, {core.bool uniqueWriterIdentity}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (uniqueWriterIdentity != null) { + _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogSink.fromJson(data)); + } + + /** + * Deletes a sink. If the sink has a unique writer_identity, then that service + * account is also deleted. + * + * Request parameters: + * + * [sinkName] - Required. The full resource name of the sink to delete, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * It is an error if the sink does not exist. Example: + * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does + * not exist. + * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". + * + * Completes with a [Empty]. + * + * 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<Empty> delete(core.String sinkName) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (sinkName == null) { + throw new core.ArgumentError("Parameter sinkName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Empty.fromJson(data)); + } + + /** + * Gets a sink. + * + * Request parameters: + * + * [sinkName] - Required. The parent resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". + * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". + * + * Completes with a [LogSink]. + * + * 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<LogSink> get(core.String sinkName) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (sinkName == null) { + throw new core.ArgumentError("Parameter sinkName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogSink.fromJson(data)); + } + + /** + * Lists sinks. + * + * Request parameters: + * + * [parent] - Required. The parent resource whose sinks are to be listed. + * Examples: "projects/my-logging-project", "organizations/123456789". + * Value must have pattern "^folders/[^/]+$". + * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * + * [pageToken] - Optional. If present, then retrieve the next batch of results + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + * + * Completes with a [ListSinksResponse]. + * + * 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<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListSinksResponse.fromJson(data)); + } + + /** + * Updates a sink. If the named sink doesn't exist, then this method is + * identical to sinks.create. If the named sink does exist, then this method + * replaces the following fields in the existing sink with values from the new + * sink: destination, filter, output_version_format, start_time, and end_time. + * The updated filter might also have a new writer_identity; see the + * unique_writer_identity field. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [sinkName] - Required. The full resource name of the sink to update, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". + * Value must have pattern "^folders/[^/]+/sinks/[^/]+$". + * + * [uniqueWriterIdentity] - Optional. See sinks.create for a description of + * this field. When updating a sink, the effect of this field on the value of + * writer_identity in the updated sink depends on both the old and new values + * of this field: + * If the old and new values of this field are both false or both true, then + * there is no change to the sink's writer_identity. + * If the old value was false and the new value is true, then writer_identity + * is changed to a unique service account. + * It is an error if the old value was true and the new value is false. + * + * Completes with a [LogSink]. + * + * 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<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (sinkName == null) { + throw new core.ArgumentError("Parameter sinkName is required."); + } + if (uniqueWriterIdentity != null) { + _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$sinkName'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogSink.fromJson(data)); + } + +} + + class MonitoredResourceDescriptorsResourceApi { final commons.ApiRequester _requester; @@ -471,19 +970,18 @@ _requester = client; /** - * Lists the monitored resource descriptors used by Stackdriver Logging. + * Lists the descriptors for monitored resource types used by Stackdriver + * Logging. * * Request parameters: * * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `nextPageToken` in the - * response indicates that more results might be available. + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. * * [pageToken] - Optional. If present, then retrieve the next batch of results - * from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * * Completes with a [ListMonitoredResourceDescriptorsResponse]. @@ -542,13 +1040,18 @@ _requester = client; /** - * Deletes a log and all its log entries. - * The log will reappear if it receives new entries. + * Deletes all the log entries in a log. The log reappears if it receives new + * entries. * * Request parameters: * - * [logName] - Required. The resource name of the log to delete. Example: - * `"projects/my-project/logs/syslog"`. + * [logName] - Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded. For example, + * "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. * Value must have pattern "^organizations/[^/]+/logs/[^/]+$". * * Completes with a [Empty]. @@ -583,6 +1086,65 @@ return _response.then((data) => new Empty.fromJson(data)); } + /** + * Lists the logs in projects or organizations. Only logs that have entries + * are listed. + * + * Request parameters: + * + * [parent] - Required. The resource name that owns the logs: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * + * Value must have pattern "^organizations/[^/]+$". + * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * + * [pageToken] - Optional. If present, then retrieve the next batch of results + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + * + * Completes with a [ListLogsResponse]. + * + * 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<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogsResponse.fromJson(data)); + } + } @@ -593,23 +1155,32 @@ _requester = client; /** - * Creates a sink. + * Creates a sink that exports specified log entries to a destination. The + * export of newly-ingested log entries begins immediately, unless the current + * time is outside the sink's start and end times or the sink's + * writer_identity is not permitted to write to the destination. A sink can + * export log entries only from the resource owning the sink. * * [request] - The metadata request object. * * Request parameters: * - * [parent] - Required. The resource in which to create the sink. - * Example: `"projects/my-project-id"`. - * The new sink must be provided in the request. + * [parent] - Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^organizations/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity + * returned as writer_identity in the new sink. If this value is omitted or + * set to false, and if the sink's parent is a project, then the value + * returned as writer_identity is cloud-logs@google.com, the same identity + * used before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * * Completes with a [LogSink]. * @@ -650,15 +1221,18 @@ } /** - * Deletes a sink. + * Deletes a sink. If the sink has a unique writer_identity, then that service + * account is also deleted. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to delete, including - * the parent - * resource and the sink identifier. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. It is an error if the sink - * does not exist. + * [sinkName] - Required. The full resource name of the sink to delete, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * It is an error if the sink does not exist. Example: + * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does + * not exist. * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". * * Completes with a [Empty]. @@ -698,8 +1272,10 @@ * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to return. - * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The parent resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". * * Completes with a [LogSink]. @@ -739,19 +1315,17 @@ * * Request parameters: * - * [parent] - Required. The resource name where this sink was created. - * Example: `"projects/my-logging-project"`. + * [parent] - Required. The parent resource whose sinks are to be listed. + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^organizations/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `nextPageToken` in the - * response indicates that more results might be available. + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. * * [pageToken] - Optional. If present, then retrieve the next batch of results - * from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * * Completes with a [ListSinksResponse]. @@ -793,24 +1367,33 @@ } /** - * Updates or creates a sink. + * Updates a sink. If the named sink doesn't exist, then this method is + * identical to sinks.create. If the named sink does exist, then this method + * replaces the following fields in the existing sink with values from the new + * sink: destination, filter, output_version_format, start_time, and end_time. + * The updated filter might also have a new writer_identity; see the + * unique_writer_identity field. * * [request] - The metadata request object. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to update, including - * the parent - * resource and the sink identifier. If the sink does not exist, this method - * creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The full resource name of the sink to update, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^organizations/[^/]+/sinks/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. See sinks.create for a description of + * this field. When updating a sink, the effect of this field on the value of + * writer_identity in the updated sink depends on both the old and new values + * of this field: + * If the old and new values of this field are both false or both true, then + * there is no change to the sink's writer_identity. + * If the old value was false and the new value is true, then writer_identity + * is changed to a unique service account. + * It is an error if the old value was true and the new value is false. * * Completes with a [LogSink]. * @@ -872,13 +1455,18 @@ _requester = client; /** - * Deletes a log and all its log entries. - * The log will reappear if it receives new entries. + * Deletes all the log entries in a log. The log reappears if it receives new + * entries. * * Request parameters: * - * [logName] - Required. The resource name of the log to delete. Example: - * `"projects/my-project/logs/syslog"`. + * [logName] - Required. The resource name of the log to delete: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded. For example, + * "projects/my-project-id/logs/syslog", + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. * Value must have pattern "^projects/[^/]+/logs/[^/]+$". * * Completes with a [Empty]. @@ -913,6 +1501,65 @@ return _response.then((data) => new Empty.fromJson(data)); } + /** + * Lists the logs in projects or organizations. Only logs that have entries + * are listed. + * + * Request parameters: + * + * [parent] - Required. The resource name that owns the logs: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * + * Value must have pattern "^projects/[^/]+$". + * + * [pageSize] - Optional. The maximum number of results to return from this + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. + * + * [pageToken] - Optional. If present, then retrieve the next batch of results + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method + * parameters should be identical to those in the previous call. + * + * Completes with a [ListLogsResponse]. + * + * 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<ListLogsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/logs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogsResponse.fromJson(data)); + } + } @@ -929,9 +1576,8 @@ * * Request parameters: * - * [parent] - The resource name of the project in which to create the metric. - * Example: `"projects/my-project-id"`. - * + * [parent] - The resource name of the project in which to create the metric: + * "projects/[PROJECT_ID]" * The new metric must be provided in the request. * Value must have pattern "^projects/[^/]+$". * @@ -975,8 +1621,9 @@ * * Request parameters: * - * [metricName] - The resource name of the metric to delete. - * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * [metricName] - The resource name of the metric to delete: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [Empty]. @@ -1016,8 +1663,9 @@ * * Request parameters: * - * [metricName] - The resource name of the desired metric. - * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * [metricName] - The resource name of the desired metric: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [LogMetric]. @@ -1057,19 +1705,18 @@ * * Request parameters: * - * [parent] - Required. The resource name containing the metrics. - * Example: `"projects/my-project-id"`. + * [parent] - Required. The name of the project containing the metrics: + * "projects/[PROJECT_ID]" + * * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `nextPageToken` in the - * response indicates that more results might be available. + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. * * [pageToken] - Optional. If present, then retrieve the next batch of results - * from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * * Completes with a [ListLogMetricsResponse]. @@ -1117,12 +1764,11 @@ * * Request parameters: * - * [metricName] - The resource name of the metric to update. - * Example: `"projects/my-project-id/metrics/my-metric-id"`. - * - * The updated metric must be provided in the request and have the - * same identifier that is specified in `metricName`. - * If the metric does not exist, it is created. + * [metricName] - The resource name of the metric to update: + * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" + * The updated metric must be provided in the request and it's name field must + * be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], + * then a new metric is created. * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [LogMetric]. @@ -1170,23 +1816,32 @@ _requester = client; /** - * Creates a sink. + * Creates a sink that exports specified log entries to a destination. The + * export of newly-ingested log entries begins immediately, unless the current + * time is outside the sink's start and end times or the sink's + * writer_identity is not permitted to write to the destination. A sink can + * export log entries only from the resource owning the sink. * * [request] - The metadata request object. * * Request parameters: * - * [parent] - Required. The resource in which to create the sink. - * Example: `"projects/my-project-id"`. - * The new sink must be provided in the request. + * [parent] - Required. The resource in which to create the sink: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^projects/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. Determines the kind of IAM identity + * returned as writer_identity in the new sink. If this value is omitted or + * set to false, and if the sink's parent is a project, then the value + * returned as writer_identity is cloud-logs@google.com, the same identity + * used before the addition of writer identities to this API. The sink's + * destination must be in the same project as the sink itself.If this field is + * set to true, or if the sink is owned by a non-project resource such as an + * organization, then the value of writer_identity will be a unique service + * account used only for exports from the new sink. For more information, see + * writer_identity in LogSink. * * Completes with a [LogSink]. * @@ -1227,15 +1882,18 @@ } /** - * Deletes a sink. + * Deletes a sink. If the sink has a unique writer_identity, then that service + * account is also deleted. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to delete, including - * the parent - * resource and the sink identifier. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. It is an error if the sink - * does not exist. + * [sinkName] - Required. The full resource name of the sink to delete, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * It is an error if the sink does not exist. Example: + * "projects/my-project-id/sinks/my-sink-id". It is an error if the sink does + * not exist. * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". * * Completes with a [Empty]. @@ -1275,8 +1933,10 @@ * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to return. - * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The parent resource name of the sink: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". * * Completes with a [LogSink]. @@ -1316,19 +1976,17 @@ * * Request parameters: * - * [parent] - Required. The resource name where this sink was created. - * Example: `"projects/my-logging-project"`. + * [parent] - Required. The parent resource whose sinks are to be listed. + * Examples: "projects/my-logging-project", "organizations/123456789". * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. - * Non-positive values are ignored. The presence of `nextPageToken` in the - * response indicates that more results might be available. + * request. Non-positive values are ignored. The presence of nextPageToken in + * the response indicates that more results might be available. * * [pageToken] - Optional. If present, then retrieve the next batch of results - * from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method + * from the preceding call to this method. pageToken must be the value of + * nextPageToken from the previous response. The values of other method * parameters should be identical to those in the previous call. * * Completes with a [ListSinksResponse]. @@ -1370,24 +2028,33 @@ } /** - * Updates or creates a sink. + * Updates a sink. If the named sink doesn't exist, then this method is + * identical to sinks.create. If the named sink does exist, then this method + * replaces the following fields in the existing sink with values from the new + * sink: destination, filter, output_version_format, start_time, and end_time. + * The updated filter might also have a new writer_identity; see the + * unique_writer_identity field. * * [request] - The metadata request object. * * Request parameters: * - * [sinkName] - Required. The resource name of the sink to update, including - * the parent - * resource and the sink identifier. If the sink does not exist, this method - * creates the sink. Example: `"projects/my-project-id/sinks/my-sink-id"`. + * [sinkName] - Required. The full resource name of the sink to update, + * including the parent resource and the sink identifier: + * "projects/[PROJECT_ID]/sinks/[SINK_ID]" + * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" + * Example: "projects/my-project-id/sinks/my-sink-id". * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". * - * [uniqueWriterIdentity] - Optional. Whether the sink will have a dedicated - * service account returned - * in the sink's writer_identity. Set this field to be true to export - * logs from one project to a different project. This field is ignored for - * non-project sinks (e.g. organization sinks) because those sinks are - * required to have dedicated service accounts. + * [uniqueWriterIdentity] - Optional. See sinks.create for a description of + * this field. When updating a sink, the effect of this field on the value of + * writer_identity in the updated sink depends on both the old and new values + * of this field: + * If the old and new values of this field are both false or both true, then + * there is no change to the sink's writer_identity. + * If the old value was false and the new value is true, then writer_identity + * is changed to a unique service account. + * It is an error if the old value was true and the new value is false. * * Completes with a [LogSink]. * @@ -1433,14 +2100,12 @@ /** * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. + * empty messages in your APIs. A typical example is to use it as the request or + * the response type of an API method. For instance: + * service Foo { + * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + * } + * The JSON representation for Empty is empty JSON object {}. */ class Empty { @@ -1456,9 +2121,9 @@ } /** - * A common proto for logging HTTP requests. Only contains semantics - * defined by the HTTP specification. Product-specific logging - * information MUST be defined in a separate message. + * A common proto for logging HTTP requests. Only contains semantics defined by + * the HTTP specification. Product-specific logging information MUST be defined + * in a separate message. */ class HttpRequest { /** @@ -1467,15 +2132,15 @@ */ core.String cacheFillBytes; /** - * Whether or not an entity was served from cache - * (with or without validation). + * Whether or not an entity was served from cache (with or without + * validation). */ core.bool cacheHit; /** Whether or not a cache lookup was attempted. */ core.bool cacheLookup; /** * Whether or not the response was validated with the origin server before - * being served from cache. This field is only meaningful if `cache_hit` is + * being served from cache. This field is only meaningful if cache_hit is * True. */ core.bool cacheValidatedWithOriginServer; @@ -1485,17 +2150,16 @@ */ core.String latency; /** - * The referer URL of the request, as defined in - * [HTTP/1.1 Header Field - * Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + * The referer URL of the request, as defined in HTTP/1.1 Header Field + * Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). */ core.String referer; /** - * The IP address (IPv4 or IPv6) of the client that issued the HTTP - * request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + * The IP address (IPv4 or IPv6) of the client that issued the HTTP request. + * Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". */ core.String remoteIp; - /** The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. */ + /** The request method. Examples: "GET", "HEAD", "PUT", "POST". */ core.String requestMethod; /** * The size of the HTTP request message in bytes, including the request @@ -1503,9 +2167,9 @@ */ core.String requestSize; /** - * The scheme (http, https), the host name, the path and the query - * portion of the URL that was requested. - * Example: `"http://example.com/some/info?color=red"`. + * The scheme (http, https), the host name, the path and the query portion of + * the URL that was requested. Example: + * "http://example.com/some/info?color=red". */ core.String requestUrl; /** @@ -1519,14 +2183,12 @@ */ core.String serverIp; /** - * The response code indicating the status of response. - * Examples: 200, 404. + * The response code indicating the status of response. Examples: 200, 404. */ core.int status; /** - * The user agent sent by the client. Example: - * `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR - * 1.0.3705)"`. + * The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE + * 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". */ core.String userAgent; @@ -1669,48 +2331,52 @@ } } -/** The parameters to `ListLogEntries`. */ +/** The parameters to ListLogEntries. */ class ListLogEntriesRequest { /** - * Optional. A filter that chooses which log entries to return. See [Advanced - * Logs Filters](/logging/docs/view/advanced_filters). Only log entries that - * match the filter are returned. An empty filter matches all log entries. + * Optional. A filter that chooses which log entries to return. See Advanced + * Logs Filters. Only log entries that match the filter are returned. An empty + * filter matches all log entries in the resources listed in resource_names. + * Referencing a parent resource that is not listed in resource_names will + * cause the filter to return no results. The maximum length of the filter is + * 20000 characters. */ core.String filter; /** - * Optional. How the results should be sorted. Presently, the only permitted - * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first - * option returns entries in order of increasing values of - * `LogEntry.timestamp` (oldest first), and the second option returns entries - * in order of decreasing timestamps (newest first). Entries with equal - * timestamps are returned in order of `LogEntry.insertId`. + * Optional. How the results should be sorted. Presently, the only permitted + * values are "timestamp asc" (default) and "timestamp desc". The first option + * returns entries in order of increasing values of LogEntry.timestamp (oldest + * first), and the second option returns entries in order of decreasing + * timestamps (newest first). Entries with equal timestamps are returned in + * order of LogEntry.insertId. */ core.String orderBy; /** * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `nextPageToken` in the + * Non-positive values are ignored. The presence of nextPageToken in the * response indicates that more results might be available. */ core.int pageSize; /** * Optional. If present, then retrieve the next batch of results from the - * preceding call to this method. `pageToken` must be the value of - * `nextPageToken` from the previous response. The values of other method - * parameters should be identical to those in the previous call. + * preceding call to this method. pageToken must be the value of nextPageToken + * from the previous response. The values of other method parameters should be + * identical to those in the previous call. */ core.String pageToken; /** - * Deprecated. One or more project identifiers or project numbers from which - * to retrieve log entries. Examples: `"my-project-1A"`, `"1234567890"`. If - * present, these project identifiers are converted to resource format and - * added to the list of resources in `resourceNames`. Callers should use - * `resourceNames` rather than this parameter. + * Deprecated. Use resource_names instead. One or more project identifiers or + * project numbers from which to retrieve log entries. Example: + * "my-project-1A". If present, these project identifiers are converted to + * resource name format and added to the list of resources in resource_names. */ core.List<core.String> projectIds; /** - * Required. One or more cloud resources from which to retrieve log entries. - * Example: `"projects/my-project-1A"`, `"projects/1234567890"`. Projects - * listed in `projectIds` are added to this list. + * Required. Names of one or more resources from which to retrieve log + * entries: + * "projects/[PROJECT_ID]" + * "organizations/[ORGANIZATION_ID]" + * Projects listed in the project_ids field are added to this list. */ core.List<core.String> resourceNames; @@ -1761,14 +2427,20 @@ } } -/** Result returned from `ListLogEntries`. */ +/** Result returned from ListLogEntries. */ class ListLogEntriesResponse { /** A list of log entries. */ core.List<LogEntry> entries; /** - * If there might be more results than appear in this response, then - * `nextPageToken` is included. To get the next set of results, call this - * method again using the value of `nextPageToken` as `pageToken`. + * If there might be more results than those appearing in this response, then + * nextPageToken is included. To get the next set of results, call this method + * again using the value of nextPageToken as pageToken.If a value for + * next_page_token appears and the entries field is empty, it means that the + * search found no log entries so far but it did not have time to search all + * the possible log entries. Retry the method with this value for page_token + * to continue the search. Alternatively, consider speeding up the search by + * changing your filter to specify a single log name or resource type, or to + * narrow the time range of the search. */ core.String nextPageToken; @@ -1801,8 +2473,8 @@ core.List<LogMetric> metrics; /** * If there might be more results than appear in this response, then - * `nextPageToken` is included. To get the next set of results, call this - * method again using the value of `nextPageToken` as `pageToken`. + * nextPageToken is included. To get the next set of results, call this method + * again using the value of nextPageToken as pageToken. */ core.String nextPageToken; @@ -1829,12 +2501,49 @@ } } +/** Result returned from ListLogs. */ +class ListLogsResponse { + /** + * A list of log names. For example, "projects/my-project/syslog" or + * "organizations/123/cloudresourcemanager.googleapis.com%2Factivity". + */ + core.List<core.String> logNames; + /** + * If there might be more results than those appearing in this response, then + * nextPageToken is included. To get the next set of results, call this method + * again using the value of nextPageToken as pageToken. + */ + core.String nextPageToken; + + ListLogsResponse(); + + ListLogsResponse.fromJson(core.Map _json) { + if (_json.containsKey("logNames")) { + logNames = _json["logNames"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (logNames != null) { + _json["logNames"] = logNames; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + /** Result returned from ListMonitoredResourceDescriptors. */ class ListMonitoredResourceDescriptorsResponse { /** - * If there might be more results than appear in this response, then - * `nextPageToken` is included. To get the next set of results, call this - * method again using the value of `nextPageToken` as `pageToken`. + * If there might be more results than those appearing in this response, then + * nextPageToken is included. To get the next set of results, call this method + * again using the value of nextPageToken as pageToken. */ core.String nextPageToken; /** A list of resource descriptors. */ @@ -1863,12 +2572,12 @@ } } -/** Result returned from `ListSinks`. */ +/** Result returned from ListSinks. */ class ListSinksResponse { /** * If there might be more results than appear in this response, then - * `nextPageToken` is included. To get the next set of results, call the same - * method again using the value of `nextPageToken` as `pageToken`. + * nextPageToken is included. To get the next set of results, call the same + * method again using the value of nextPageToken as pageToken. */ core.String nextPageToken; /** A list of sinks. */ @@ -1900,21 +2609,20 @@ /** An individual entry in a log. */ class LogEntry { /** - * Optional. Information about the HTTP request associated with this - * log entry, if applicable. + * Optional. Information about the HTTP request associated with this log + * entry, if applicable. */ HttpRequest httpRequest; /** - * Optional. A unique ID for the log entry. If you provide this - * field, the logging service considers other log entries in the - * same project with the same ID as duplicates which can be removed. If - * omitted, Stackdriver Logging will generate a unique ID for this - * log entry. + * Optional. A unique ID for the log entry. If you provide this field, the + * logging service considers other log entries in the same project with the + * same ID as duplicates which can be removed. If omitted, Stackdriver Logging + * will generate a unique ID for this log entry. */ core.String insertId; /** - * The log entry payload, represented as a structure that - * is expressed as a JSON object. + * The log entry payload, represented as a structure that is expressed as a + * JSON object. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -1926,17 +2634,18 @@ */ core.Map<core.String, core.String> labels; /** - * Required. The resource name of the log to which this log entry - * belongs. The format of the name is - * `"projects/<project-id>/logs/<log-id>"`. Examples: - * `"projects/my-projectid/logs/syslog"`, - * `"projects/my-projectid/logs/library.googleapis.com%2Fbook_log"`. - * - * The log ID part of resource name must be less than 512 characters - * long and can only include the following characters: upper and - * lower case alphanumeric characters: [A-Za-z0-9]; and punctuation - * characters: forward-slash, underscore, hyphen, and period. - * Forward-slash (`/`) characters in the log ID must be URL-encoded. + * Required. The resource name of the log to which this log entry belongs: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded within log_name. Example: + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * [LOG_ID] must be less than 512 characters long and can only include the + * following characters: upper and lower case alphanumeric characters, + * forward-slash, underscore, hyphen, and period.For backward compatibility, + * if log_name begins with a forward-slash, such as /projects/..., then the + * log entry is ingested as usual but the forward-slash is removed. Listing + * the log entry will not show the leading slash and filtering for a log name + * with a leading slash will never return any results. */ core.String logName; /** @@ -1945,32 +2654,30 @@ */ LogEntryOperation operation; /** - * The log entry payload, represented as a protocol buffer. Some - * Google Cloud Platform services use this field for their log - * entry payloads. + * The log entry payload, represented as a protocol buffer. Some Google Cloud + * Platform services use this field for their log entry payloads. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. */ core.Map<core.String, core.Object> protoPayload; /** - * Required. The monitored resource associated with this log entry. - * Example: a log entry that reports a database error would be - * associated with the monitored resource designating the particular - * database that reported the error. + * Required. The monitored resource associated with this log entry. Example: a + * log entry that reports a database error would be associated with the + * monitored resource designating the particular database that reported the + * error. */ MonitoredResource resource; /** * Optional. The severity of the log entry. The default value is - * `LogSeverity.DEFAULT`. + * LogSeverity.DEFAULT. * Possible string values are: * - "DEFAULT" : (0) The log entry has no assigned severity level. * - "DEBUG" : (100) Debug or trace information. * - "INFO" : (200) Routine information, such as ongoing status or * performance. * - "NOTICE" : (300) Normal but significant events, such as start up, shut - * down, or - * a configuration change. + * down, or a configuration change. * - "WARNING" : (400) Warning events might cause problems. * - "ERROR" : (500) Error events are likely to cause problems. * - "CRITICAL" : (600) Critical events cause more severe problems or outages. @@ -1978,13 +2685,25 @@ * - "EMERGENCY" : (800) One or more systems are unusable. */ core.String severity; + /** + * Optional. Source code location information associated with the log entry, + * if any. + */ + LogEntrySourceLocation sourceLocation; /** The log entry payload, represented as a Unicode string (UTF-8). */ core.String textPayload; /** - * Optional. The time the event described by the log entry occurred. If + * Optional. The time the event described by the log entry occurred. If * omitted, Stackdriver Logging will use the time the log entry is received. */ core.String timestamp; + /** + * Optional. Resource name of the trace associated with the log entry, if any. + * If it contains a relative resource name, the name is assumed to be relative + * to //tracing.googleapis.com. Example: + * projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824 + */ + core.String trace; LogEntry(); @@ -2016,12 +2735,18 @@ if (_json.containsKey("severity")) { severity = _json["severity"]; } + if (_json.containsKey("sourceLocation")) { + sourceLocation = new LogEntrySourceLocation.fromJson(_json["sourceLocation"]); + } if (_json.containsKey("textPayload")) { textPayload = _json["textPayload"]; } if (_json.containsKey("timestamp")) { timestamp = _json["timestamp"]; } + if (_json.containsKey("trace")) { + trace = _json["trace"]; + } } core.Map toJson() { @@ -2053,12 +2778,18 @@ if (severity != null) { _json["severity"] = severity; } + if (sourceLocation != null) { + _json["sourceLocation"] = (sourceLocation).toJson(); + } if (textPayload != null) { _json["textPayload"] = textPayload; } if (timestamp != null) { _json["timestamp"] = timestamp; } + if (trace != null) { + _json["trace"] = trace; + } return _json; } } @@ -2073,8 +2804,8 @@ */ core.bool first; /** - * Optional. An arbitrary operation identifier. Log entries with the - * same identifier are assumed to be part of the same operation. + * Optional. An arbitrary operation identifier. Log entries with the same + * identifier are assumed to be part of the same operation. */ core.String id; /** @@ -2082,9 +2813,9 @@ */ core.bool last; /** - * Optional. An arbitrary producer identifier. The combination of - * `id` and `producer` must be globally unique. Examples for `producer`: - * `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`. + * Optional. An arbitrary producer identifier. The combination of id and + * producer must be globally unique. Examples for producer: + * "MyDivision.MyBigCompany.com", "github.com/MyProject/MyApplication". */ core.String producer; @@ -2123,6 +2854,59 @@ } } +/** + * Additional information about the source code location that produced the log + * entry. + */ +class LogEntrySourceLocation { + /** + * Optional. Source file name. Depending on the runtime environment, this + * might be a simple name or a fully-qualified name. + */ + core.String file; + /** + * Optional. Human-readable name of the function or method being invoked, with + * optional context such as the class or package name. This information may be + * used in contexts such as the logs viewer, where a file and line number are + * less meaningful. The format can vary by language. For example: + * qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). + */ + core.String function; + /** + * Optional. Line within the source file. 1-based; 0 indicates no line number + * available. + */ + core.String line; + + LogEntrySourceLocation(); + + LogEntrySourceLocation.fromJson(core.Map _json) { + if (_json.containsKey("file")) { + file = _json["file"]; + } + if (_json.containsKey("function")) { + function = _json["function"]; + } + if (_json.containsKey("line")) { + line = _json["line"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (file != null) { + _json["file"] = file; + } + if (function != null) { + _json["function"] = function; + } + if (line != null) { + _json["line"] = line; + } + return _json; + } +} + /** Application log line emitted while processing a request. */ class LogLine { /** App-provided log message. */ @@ -2135,8 +2919,7 @@ * - "INFO" : (200) Routine information, such as ongoing status or * performance. * - "NOTICE" : (300) Normal but significant events, such as start up, shut - * down, or - * a configuration change. + * down, or a configuration change. * - "WARNING" : (400) Warning events might cause problems. * - "ERROR" : (500) Error events are likely to cause problems. * - "CRITICAL" : (600) Critical events cause more severe problems or outages. @@ -2185,8 +2968,8 @@ } /** - * Describes a logs-based metric. The value of the metric is the - * number of log entries that match a logs filter. + * Describes a logs-based metric. The value of the metric is the number of log + * entries that match a logs filter in a given time interval. */ class LogMetric { /** @@ -2194,25 +2977,29 @@ */ core.String description; /** - * Required. An [advanced logs filter](/logging/docs/view/advanced_filters). - * Example: `"resource.type=gae_app AND severity>=ERROR"`. + * Required. An advanced logs filter which is used to match log entries. + * Example: + * "resource.type=gae_app AND severity>=ERROR" + * The maximum length of the filter is 20000 characters. */ core.String filter; /** - * Required. The client-assigned metric identifier. Example: - * `"severe_errors"`. Metric identifiers are limited to 100 - * characters and can include only the following characters: `A-Z`, - * `a-z`, `0-9`, and the special characters `_-.,+!*',()%/`. The - * forward-slash character (`/`) denotes a hierarchy of name pieces, - * and it cannot be the first character of the name. The '%' character - * is used to URL encode unsafe and reserved characters and must be - * followed by two hexadecimal digits according to RFC 1738. + * Required. The client-assigned metric identifier. Examples: "error_count", + * "nginx/requests".Metric identifiers are limited to 100 characters and can + * include only the following characters: A-Z, a-z, 0-9, and the special + * characters _-.,+!*',()%/. The forward-slash character (/) denotes a + * hierarchy of name pieces, and it cannot be the first character of the + * name.The metric identifier in this field must not be URL-encoded + * (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric + * identifier appears as the [METRIC_ID] part of a metric_name API parameter, + * then the metric identifier must be URL-encoded. Example: + * "projects/my-project/metrics/nginx%2Frequests". */ core.String name; /** - * Output only. The API version that created or updated this metric. - * The version also dictates the syntax of the filter expression. When a value - * for this field is missing, the default value of V2 should be assumed. + * Output only. The API version that created or updated this metric. The + * version also dictates the syntax of the filter expression. When a value for + * this field is missing, the default value of V2 should be assumed. * Possible string values are: * - "V2" : Stackdriver Logging API v2. * - "V1" : Stackdriver Logging API v1. @@ -2255,72 +3042,72 @@ } /** - * Describes a sink used to export log entries outside of Stackdriver Logging. - * A logs filter controls which log entries are exported. Sinks can have a - * start time and an end time; these can be used to place log entries from an - * exact time range into a particular destination. If both `start_time` and - * `end_time` are present, then `start_time` must be less than `end_time`. + * Describes a sink used to export log entries to one of the following + * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a + * Cloud Pub/Sub topic. A logs filter controls which log entries are exported. + * The sink must be created within a project or organization. */ class LogSink { /** - * Required. The export destination. See - * [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). - * Examples: - * - * "storage.googleapis.com/my-gcs-bucket" - * "bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset" - * "pubsub.googleapis.com/projects/my-project/topics/my-topic" + * Required. The export destination: + * "storage.googleapis.com/[GCS_BUCKET]" + * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" + * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" + * The sink's writer_identity, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see Exporting Logs With Sinks. */ core.String destination; /** - * Optional. Time at which this sink will stop exporting log entries. If this - * value is present, then log entries are exported only if `entry.timestamp` < - * `end_time`. + * Optional. The time at which this sink will stop exporting log entries. Log + * entries are exported only if their timestamp is earlier than the end time. + * If this field is not supplied, there is no end time. If both a start time + * and an end time are provided, then the end time must be later than the + * start time. */ core.String endTime; /** - * Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). - * Only log entries matching the filter are exported. The filter - * must be consistent with the log entry format specified by the - * `outputVersionFormat` parameter, regardless of the format of the - * log entry that was originally written to Stackdriver Logging. - * Example filter (V2 format): - * - * logName=projects/my-projectid/logs/syslog AND severity>=ERROR + * Optional. An advanced logs filter. The only exported log entries are those + * that are in the resource owning the sink and that match the filter. The + * filter must use the log entry format specified by the output_version_format + * parameter. For example, in the v2 format: + * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR */ core.String filter; /** - * Required. The client-assigned sink identifier, unique within the - * project. Example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are - * limited to 1000 characters and can include only the following characters: - * `A-Z`, `a-z`, `0-9`, and the special characters `_-.`. The maximum length - * of the name is 100 characters. + * Required. The client-assigned sink identifier, unique within the project. + * Example: "my-syslog-errors-to-pubsub". Sink identifiers are limited to 100 + * characters and can include only the following characters: upper and + * lower-case alphanumeric characters, underscores, hyphens, and periods. */ core.String name; /** - * Optional. The log entry version to use for this sink's exported log - * entries. This version does not have to correspond to the version of the - * log entry that was written to Stackdriver Logging. If omitted, the - * v2 format is used. + * Optional. The log entry format to use for this sink's exported log entries. + * The v2 format is used by default. The v1 format is deprecated and should be + * used only as part of a migration effort to v2. See Migration to the v2 API. * Possible string values are: - * - "VERSION_FORMAT_UNSPECIFIED" : An unspecified version format will default - * to V2. - * - "V2" : `LogEntry` version 2 format. - * - "V1" : `LogEntry` version 1 format. + * - "VERSION_FORMAT_UNSPECIFIED" : An unspecified format version that will + * default to V2. + * - "V2" : LogEntry version 2 format. + * - "V1" : LogEntry version 1 format. */ core.String outputVersionFormat; /** - * Optional. The time at which this sink will begin exporting log entries. If - * this value is present, then log entries are exported only if `start_time` - * <=`entry.timestamp`. + * Optional. The time at which this sink will begin exporting log entries. Log + * entries are exported only if their timestamp is not earlier than the start + * time. The default value of this field is the time the sink is created or + * updated. */ core.String startTime; /** - * Output only. An IAM identity—a service account or group—that - * will write exported log entries to the destination on behalf of Stackdriver - * Logging. You must grant this identity write-access to the destination. - * Consult the destination service's documentation to determine the exact role - * that must be granted. + * Output only. An IAM identity—a service account or group—under + * which Stackdriver Logging writes the exported log entries to the sink's + * destination. This field is set by sinks.create and sinks.update, based on + * the setting of unique_writer_identity in those methods.Until you grant this + * identity write-access to the destination, log entry exports from this sink + * will fail. For more information, see Granting access for a resource. + * Consult the destination service's documentation to determine the + * appropriate IAM roles to assign to the identity. */ core.String writerIdentity; @@ -2380,29 +3167,28 @@ /** * An object representing a resource that can be used for monitoring, logging, * billing, or other purposes. Examples include virtual machine instances, - * databases, and storage devices such as disks. The `type` field identifies a - * MonitoredResourceDescriptor object that describes the resource's - * schema. Information in the `labels` field identifies the actual resource and - * its attributes according to the schema. For example, a particular Compute - * Engine VM instance could be represented by the following object, because the - * MonitoredResourceDescriptor for `"gce_instance"` has labels - * `"instance_id"` and `"zone"`: - * - * { "type": "gce_instance", - * "labels": { "instance_id": "12345678901234", - * "zone": "us-central1-a" }} + * databases, and storage devices such as disks. The type field identifies a + * MonitoredResourceDescriptor object that describes the resource's schema. + * Information in the labels field identifies the actual resource and its + * attributes according to the schema. For example, a particular Compute Engine + * VM instance could be represented by the following object, because the + * MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and + * "zone": + * { "type": "gce_instance", + * "labels": { "instance_id": "12345678901234", + * "zone": "us-central1-a" }} */ class MonitoredResource { /** * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Cloud SQL databases use the labels - * `"database_id"` and `"zone"`. + * "database_id" and "zone". */ core.Map<core.String, core.String> labels; /** - * Required. The monitored resource type. This field must match - * the `type` field of a MonitoredResourceDescriptor object. For - * example, the type of a Cloud SQL database is `"cloudsql_database"`. + * Required. The monitored resource type. This field must match the type field + * of a MonitoredResourceDescriptor object. For example, the type of a Cloud + * SQL database is "cloudsql_database". */ core.String type; @@ -2431,14 +3217,12 @@ /** * An object that describes the schema of a MonitoredResource object using a - * type name and a set of labels. For example, the monitored resource - * descriptor for Google Compute Engine VM instances has a type of - * `"gce_instance"` and specifies the use of the labels `"instance_id"` and - * `"zone"` to identify particular VM instances. - * - * Different APIs can support different monitored resource types. APIs generally - * provide a `list` method that returns the monitored resource descriptors used - * by the API. + * type name and a set of labels. For example, the monitored resource descriptor + * for Google Compute Engine VM instances has a type of "gce_instance" and + * specifies the use of the labels "instance_id" and "zone" to identify + * particular VM instances.Different APIs can support different monitored + * resource types. APIs generally provide a list method that returns the + * monitored resource descriptors used by the API. */ class MonitoredResourceDescriptor { /** @@ -2449,29 +3233,29 @@ /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, - * `"Google Cloud SQL Database"`. + * without any article or other determiners. For example, "Google Cloud SQL + * Database". */ core.String displayName; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels `"database_id"` and `"zone"`. + * identified by values for the labels "database_id" and "zone". */ core.List<LabelDescriptor> labels; /** * Optional. The resource name of the monitored resource descriptor: - * `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where - * {type} is the value of the `type` field in this object and - * {project_id} is a project ID that provides API-specific context for - * accessing the type. APIs that do not use project information can use the - * resource name format `"monitoredResourceDescriptors/{type}"`. + * "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is + * the value of the type field in this object and {project_id} is a project ID + * that provides API-specific context for accessing the type. APIs that do not + * use project information can use the resource name format + * "monitoredResourceDescriptors/{type}". */ core.String name; /** * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. - * The maximum length of this value is 256 characters. + * "cloudsql_database" represents databases in Google Cloud SQL. The maximum + * length of this value is 256 characters. */ core.String type; @@ -2532,14 +3316,14 @@ /** Whether this request is finished or active. */ core.bool finished; /** - * Whether this is the first RequestLog entry for this request. If an active - * request has several RequestLog entries written to Cloud Logging, this field - * will be set for one of them. + * Whether this is the first RequestLog entry for this request. If an active + * request has several RequestLog entries written to Stackdriver Logging, then + * this field will be set for one of them. */ core.bool first; /** Internet host and port number of the resource being requested. */ core.String host; - /** HTTP version of request. Example: `"HTTP/1.1"`. */ + /** HTTP version of request. Example: "HTTP/1.1". */ core.String httpVersion; /** An identifier for the instance that handled the request. */ core.String instanceId; @@ -2559,21 +3343,17 @@ core.List<LogLine> line; /** Number of CPU megacycles used to process request. */ core.String megaCycles; - /** - * Request method. Example: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`, `"DELETE"`. - */ + /** Request method. Example: "GET", "HEAD", "PUT", "POST", "DELETE". */ core.String method; /** Module of the application that handled this request. */ core.String moduleId; /** - * The logged-in user who made the request. - * - * Most likely, this is the part of the user's email before the `@` sign. The - * field value is the same for different requests from the same user, but - * different users can have similar names. This information is also - * available to the application via the App Engine Users API. - * - * This field will be populated starting with App Engine 1.9.21. + * The logged-in user who made the request.Most likely, this is the part of + * the user's email before the @ sign. The field value is the same for + * different requests from the same user, but different users can have similar + * names. This information is also available to the application via the App + * Engine Users API.This field will be populated starting with App Engine + * 1.9.21. */ core.String nickname; /** Time this request spent in the pending request queue. */ @@ -2582,15 +3362,15 @@ core.String referrer; /** * Globally unique identifier for a request, which is based on the request - * start time. Request IDs for requests which started later will compare + * start time. Request IDs for requests which started later will compare * greater as strings than those for requests which started earlier. */ core.String requestId; /** * Contains the path and query portion of the URL that was requested. For * example, if the URL was "http://example.com/app?name=val", the resource - * would be "/app?name=val". The fragment identifier, which is identified by - * the `#` character, is not included. + * would be "/app?name=val". The fragment identifier, which is identified by + * the # character, is not included. */ core.String resource; /** Size in bytes sent back to client by request. */ @@ -2609,7 +3389,7 @@ core.String taskName; /** Queue name of the request, in the case of an offline request. */ core.String taskQueueName; - /** Cloud Trace identifier for this request. */ + /** Stackdriver Trace identifier for this request. */ core.String traceId; /** File or class that handled the request. */ core.String urlMapEntry; @@ -2835,8 +3615,7 @@ * context such as the class or package name. This information is used in * contexts such as the logs viewer, where a file and line number are less * meaningful. The format can vary by language. For example: - * `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` - * (Python). + * qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python). */ core.String functionName; /** Line within the source file. */ @@ -2877,13 +3656,13 @@ */ class SourceReference { /** - * Optional. A URI string identifying the repository. - * Example: "https://github.com/GoogleCloudPlatform/kubernetes.git" + * Optional. A URI string identifying the repository. Example: + * "https://github.com/GoogleCloudPlatform/kubernetes.git" */ core.String repository; /** - * The canonical and persistent identifier of the deployed revision. - * Example (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" + * The canonical and persistent identifier of the deployed revision. Example + * (git): "0035781c50ec7aa23385dc841529ce8a4b70db1b" */ core.String revisionId; @@ -2914,46 +3693,45 @@ class WriteLogEntriesRequest { /** * Required. The log entries to write. Values supplied for the fields - * `log_name`, `resource`, and `labels` in this `entries.write` request are - * added to those log entries that do not provide their own values for the - * fields. - * - * To improve throughput and to avoid exceeding the - * [quota limit](/logging/quota-policy) for calls to `entries.write`, - * you should write multiple log entries at once rather than + * log_name, resource, and labels in this entries.write request are added to + * those log entries that do not provide their own values for the fields.To + * improve throughput and to avoid exceeding the quota limit for calls to + * entries.write, you should write multiple log entries at once rather than * calling this method for each individual log entry. */ core.List<LogEntry> entries; /** - * Optional. Default labels that are added to the `labels` field of all log - * entries in `entries`. If a log entry already has a label with the same key - * as a label in this parameter, then the log entry's label is not changed. - * See LogEntry. + * Optional. Default labels that are added to the labels field of all log + * entries in entries. If a log entry already has a label with the same key as + * a label in this parameter, then the log entry's label is not changed. See + * LogEntry. */ core.Map<core.String, core.String> labels; /** * Optional. A default log resource name that is assigned to all log entries - * in `entries` that do not specify a value for `log_name`. Example: - * `"projects/my-project/logs/syslog"`. See - * LogEntry. + * in entries that do not specify a value for log_name: + * "projects/[PROJECT_ID]/logs/[LOG_ID]" + * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" + * [LOG_ID] must be URL-encoded. For example, + * "projects/my-project-id/logs/syslog" or + * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity". + * For more information about log names, see LogEntry. */ core.String logName; /** * Optional. Whether valid entries should be written even if some other * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any - * entry is not written, the response status will be the error associated - * with one of the failed entries and include error details in the form of + * entry is not written, the response status will be the error associated with + * one of the failed entries and include error details in the form of * WriteLogEntriesPartialErrors. */ core.bool partialSuccess; /** * Optional. A default monitored resource object that is assigned to all log - * entries in `entries` that do not specify a value for `resource`. Example: - * - * { "type": "gce_instance", - * "labels": { - * "zone": "us-central1-a", "instance_id": "00000000000000000000" }} - * + * entries in entries that do not specify a value for resource. Example: + * { "type": "gce_instance", + * "labels": { + * "zone": "us-central1-a", "instance_id": "00000000000000000000" }} * See LogEntry. */ MonitoredResource resource; @@ -2999,10 +3777,7 @@ } } -/** - * Result returned from WriteLogEntries. - * empty - */ +/** Result returned from WriteLogEntries. empty */ class WriteLogEntriesResponse { WriteLogEntriesResponse();
diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index a320345..71198c7 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart
@@ -77,7 +77,7 @@ * Request parameters: * * [name] - The project in which to create the time series. The format is - * "projects/PROJECT_ID_OR_NUMBER". + * "projects/PROJECT_ID_OR_NUMBER". * Value must have pattern "^projects/[^/]+$". * * Completes with a [Empty]. @@ -134,7 +134,7 @@ * Request parameters: * * [name] - The project in which to create the group. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * [validateOnly] - If true, validate this request but do not create the @@ -184,7 +184,7 @@ * Request parameters: * * [name] - The group to delete. The format is - * "projects/{project_id_or_number}/groups/{group_id}". + * "projects/{project_id_or_number}/groups/{group_id}". * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [Empty]. @@ -225,7 +225,7 @@ * Request parameters: * * [name] - The group to retrieve. The format is - * "projects/{project_id_or_number}/groups/{group_id}". + * "projects/{project_id_or_number}/groups/{group_id}". * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [Group]. @@ -266,11 +266,11 @@ * Request parameters: * * [name] - The project whose groups are to be listed. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * [descendantsOfGroup] - A group name: - * "projects/{project_id_or_number}/groups/{group_id}". Returns the + * "projects/{project_id_or_number}/groups/{group_id}". Returns the * descendants of the specified group. This is a superset of the results * returned by the childrenOfGroup filter, and includes children-of-children, * and so forth. @@ -279,16 +279,16 @@ * return. * * [childrenOfGroup] - A group name: - * "projects/{project_id_or_number}/groups/{group_id}". Returns - * groups whose parentName field contains the group name. If no groups have - * this parent, the results are empty. + * "projects/{project_id_or_number}/groups/{group_id}". Returns groups whose + * parentName field contains the group name. If no groups have this parent, + * the results are empty. * * [ancestorsOfGroup] - A group name: - * "projects/{project_id_or_number}/groups/{group_id}". Returns - * groups that are ancestors of the specified group. The groups are returned - * in order, starting with the immediate parent and ending with the most - * distant ancestor. If the specified group has no immediate parent, the - * results are empty. + * "projects/{project_id_or_number}/groups/{group_id}". Returns groups that + * are ancestors of the specified group. The groups are returned in order, + * starting with the immediate parent and ending with the most distant + * ancestor. If the specified group has no immediate parent, the results are + * empty. * * [pageToken] - If this field is not empty then it must contain the * nextPageToken value returned by a previous call to this method. Using this @@ -350,10 +350,10 @@ * Request parameters: * * [name] - Output only. The name of this group. The format is - * "projects/{project_id_or_number}/groups/{group_id}". When - * creating a group, this field is ignored and a new name is created - * consisting of the project specified in the call to CreateGroup and a unique - * {group_id} that is generated automatically. + * "projects/{project_id_or_number}/groups/{group_id}". When creating a group, + * this field is ignored and a new name is created consisting of the project + * specified in the call to CreateGroup and a unique {group_id} that is + * generated automatically. * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * [validateOnly] - If true, validate this request but do not update the @@ -412,15 +412,14 @@ * Request parameters: * * [name] - The group whose members are listed. The format is - * "projects/{project_id_or_number}/groups/{group_id}". + * "projects/{project_id_or_number}/groups/{group_id}". * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * - * [filter] - An optional list filter (/monitoring/api/learn_more#filtering) - * describing the members to be returned. The filter may reference the type, - * labels, and metadata of monitored resources that comprise the group. For - * example, to return only resources representing Compute Engine VM instances, - * use this filter: - * resource.type = "gce_instance" + * [filter] - An optional list filter describing the members to be returned. + * The filter may reference the type, labels, and metadata of monitored + * resources that comprise the group. For example, to return only resources + * representing Compute Engine VM instances, use this filter: + * resource.type = "gce_instance" * * [interval_endTime] - Required. The end of the time interval. * @@ -494,14 +493,14 @@ /** * Creates a new metric descriptor. User-created metric descriptors define - * custom metrics (/monitoring/custom-metrics). + * custom metrics. * * [request] - The metadata request object. * * Request parameters: * * [name] - The project on which to execute the request. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * Completes with a [MetricDescriptor]. @@ -540,16 +539,14 @@ } /** - * Deletes a metric descriptor. Only user-created custom metrics - * (/monitoring/custom-metrics) can be deleted. + * Deletes a metric descriptor. Only user-created custom metrics can be + * deleted. * * Request parameters: * * [name] - The metric descriptor on which to execute the request. The format - * is - * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". - * An example of {metric_id} is: - * "custom.googleapis.com/my_test_metric". + * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An + * example of {metric_id} is: "custom.googleapis.com/my_test_metric". * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". * * Completes with a [Empty]. @@ -591,10 +588,9 @@ * Request parameters: * * [name] - The metric descriptor on which to execute the request. The format - * is - * "projects/{project_id_or_number}/metricDescriptors/{metric_id}". - * An example value of {metric_id} is - * "compute.googleapis.com/instance/disk/read_bytes_count". + * is "projects/{project_id_or_number}/metricDescriptors/{metric_id}". An + * example value of {metric_id} is + * "compute.googleapis.com/instance/disk/read_bytes_count". * Value must have pattern "^projects/[^/]+/metricDescriptors/.+$". * * Completes with a [MetricDescriptor]. @@ -636,18 +632,17 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * [pageSize] - A positive number that is the maximum number of results to * return. * * [filter] - If this field is empty, all custom and system-defined metric - * descriptors are returned. Otherwise, the filter - * (/monitoring/api/v3/filters) specifies which metric descriptors are to be - * returned. For example, the following filter matches all custom metrics - * (/monitoring/custom-metrics): - * metric.type = starts_with("custom.googleapis.com/") + * descriptors are returned. Otherwise, the filter specifies which metric + * descriptors are to be returned. For example, the following filter matches + * all custom metrics: + * metric.type = starts_with("custom.googleapis.com/") * * [pageToken] - If this field is not empty then it must contain the * nextPageToken value returned by a previous call to this method. Using this @@ -711,7 +706,7 @@ * Request parameters: * * [name] - The monitored resource descriptor to get. The format is - * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}". + * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}". * The {resource_type} is a predefined type, such as cloudsql_database. * Value must have pattern * "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$". @@ -755,17 +750,17 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * [pageSize] - A positive number that is the maximum number of results to * return. * - * [filter] - An optional filter (/monitoring/api/v3/filters) describing the - * descriptors to be returned. The filter can reference the descriptor's type - * and labels. For example, the following filter returns only Google Compute - * Engine descriptors that have an id label: - * resource.type = starts_with("gce_") AND resource.label:id + * [filter] - An optional filter describing the descriptors to be returned. + * The filter can reference the descriptor's type and labels. For example, the + * following filter returns only Google Compute Engine descriptors that have + * an id label: + * resource.type = starts_with("gce_") AND resource.label:id * * [pageToken] - If this field is not empty then it must contain the * nextPageToken value returned by a previous call to this method. Using this @@ -833,7 +828,7 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * "projects/{project_id_or_number}". + * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * * Completes with a [Empty]. @@ -881,13 +876,11 @@ * "projects/{project_id_or_number}". * Value must have pattern "^projects/[^/]+$". * - * [filter] - A monitoring filter (/monitoring/api/v3/filters) that specifies - * which time series should be returned. The filter must specify a single - * metric type, and can additionally specify metric labels and other - * information. For example: - * metric.type = "compute.googleapis.com/instance/cpu/usage_time" - * AND - * metric.label.instance_name = "my-instance-name" + * [filter] - A monitoring filter that specifies which time series should be + * returned. The filter must specify a single metric type, and can + * additionally specify metric labels and other information. For example: + * metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND + * metric.label.instance_name = "my-instance-name" * * [aggregation_groupByFields] - The set of fields to preserve when * crossSeriesReducer is specified. The groupByFields determine how the time @@ -895,10 +888,12 @@ * function. Each subset contains time series that have the same value for * each of the grouping fields. Each individual time series is a member of * exactly one subset. The crossSeriesReducer is applied to each subset of - * time series. Fields not specified in groupByFields are aggregated away. If - * groupByFields is not specified, the time series are aggregated into a - * single output time series. If crossSeriesReducer is not defined, this field - * is ignored. + * time series. It is not possible to reduce across different resource types, + * so this field implicitly contains resource.type. Fields not specified in + * groupByFields are aggregated away. If groupByFields is not specified and + * all the time series have the same resource type, then the time series are + * aggregated into a single output time series. If crossSeriesReducer is not + * defined, this field is ignored. * * [aggregation_crossSeriesReducer] - The approach to be used to combine time * series. Not all reducer functions may be applied to all time series, @@ -1062,14 +1057,14 @@ * bound.The sequence of N buckets for a Distribution consists of an underflow * bucket (number 0), zero or more finite buckets (number 1 through N - 2) and * an overflow bucket (number N - 1). The buckets are contiguous: the lower - * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. - * The buckets span the whole range of finite values: lower bound of the - * underflow bucket is -infinity and the upper bound of the overflow bucket is - * +infinity. The finite buckets are so-called because both bounds are - * finite.BucketOptions describes bucket boundaries in one of three ways. Two - * describe the boundaries by giving parameters for a formula to generate - * boundaries and one gives the bucket boundaries explicitly.If bucket_options - * is not given, then no bucket_counts may be given. + * bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The + * buckets span the whole range of finite values: lower bound of the underflow + * bucket is -infinity and the upper bound of the overflow bucket is +infinity. + * The finite buckets are so-called because both bounds are finite.BucketOptions + * describes bucket boundaries in one of three ways. Two describe the boundaries + * by giving parameters for a formula to generate boundaries and one gives the + * bucket boundaries explicitly.If bucket_options is not given, then no + * bucket_counts may be given. */ class BucketOptions { /** The explicit buckets. */ @@ -1115,17 +1110,17 @@ class CollectdPayload { /** The end time of the interval. */ core.String endTime; - /** The measurement metadata. Example: "process_id" -> 12345 */ + /** The measurement metadata. Example: "process_id" -> 12345 */ core.Map<core.String, TypedValue> metadata; - /** The name of the plugin. Example: "disk". */ + /** The name of the plugin. Example: "disk". */ core.String plugin; - /** The instance name of the plugin Example: "hdcl". */ + /** The instance name of the plugin Example: "hdcl". */ core.String pluginInstance; /** The start time of the interval. */ core.String startTime; - /** The measurement type. Example: "memory". */ + /** The measurement type. Example: "memory". */ core.String type; - /** The measurement type instance. Example: "used". */ + /** The measurement type instance. Example: "used". */ core.String typeInstance; /** * The measured values during this time interval. Each value must have a @@ -1196,7 +1191,7 @@ class CollectdValue { /** * The data source for the collectd value. For example there are two data - * sources for network measurements: "rx" and "tx". + * sources for network measurements: "rx" and "tx". */ core.String dataSourceName; /** @@ -1256,8 +1251,7 @@ */ core.List<CollectdPayload> collectdPayloads; /** - * The version of collectd that collected the data. Example: - * "5.3.0-192.el6". + * The version of collectd that collected the data. Example: "5.3.0-192.el6". */ core.String collectdVersion; /** The monitored resource associated with the time series. */ @@ -1442,11 +1436,10 @@ /** * A set of buckets with arbitrary widths.Defines size(bounds) + 1 (= N) buckets - * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi - * Lower bound (1 <= i < N); boundsi - 1There must be at least one element - * in bounds. If bounds has only one element, there are no finite buckets, and - * that single element is the common boundary of the overflow and underflow - * buckets. + * with these boundaries for bucket i:Upper bound (0 <= i < N-1): boundsi Lower + * bound (1 <= i < N); boundsi - 1There must be at least one element in bounds. + * If bounds has only one element, there are no finite buckets, and that single + * element is the common boundary of the overflow and underflow buckets. */ class Explicit { /** The values must be monotonically increasing. */ @@ -1473,8 +1466,8 @@ * Specify a sequence of buckets that have a width that is proportional to the * value of the lower bound. Each bucket represents a constant relative * uncertainty on a specific value in the bucket.Defines num_finite_buckets + 2 - * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < - * N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * + * (= N) buckets with these boundaries for bucket i:Upper bound (0 <= i < N-1): + * scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * * (growth_factor ^ (i - 1)). */ class Exponential { @@ -1570,7 +1563,7 @@ core.bool packed; /** * The field type URL, without the scheme, for message or enumeration types. - * Example: "type.googleapis.com/google.protobuf.Timestamp". + * Example: "type.googleapis.com/google.protobuf.Timestamp". */ core.String typeUrl; @@ -1658,11 +1651,10 @@ * words, a group contains the monitored resources that match its filter and the * filters of all the group's ancestors. A group without a parent can contain * any monitored resource.For example, consider an infrastructure running a set - * of instances with two user-defined tags: "environment" and - * "role". A parent group has a filter, - * environment="production". A child of that parent group has a - * filter, role="transcoder". The parent group contains all instances - * in the production environment, regardless of their roles. The child group + * of instances with two user-defined tags: "environment" and "role". A parent + * group has a filter, environment="production". A child of that parent group + * has a filter, role="transcoder". The parent group contains all instances in + * the production environment, regardless of their roles. The child group * contains instances that have the transcoder role and are in the production * environment.The monitored resources contained in a group can change at any * moment, depending on what resources exist and what filters are associated @@ -1683,16 +1675,16 @@ core.bool isCluster; /** * Output only. The name of this group. The format is - * "projects/{project_id_or_number}/groups/{group_id}". When - * creating a group, this field is ignored and a new name is created - * consisting of the project specified in the call to CreateGroup and a unique - * {group_id} that is generated automatically. + * "projects/{project_id_or_number}/groups/{group_id}". When creating a group, + * this field is ignored and a new name is created consisting of the project + * specified in the call to CreateGroup and a unique {group_id} that is + * generated automatically. */ core.String name; /** * The name of the group's parent, if it has one. The format is - * "projects/{project_id_or_number}/groups/{group_id}". For groups - * with no parent, parentName is the empty string, "". + * "projects/{project_id_or_number}/groups/{group_id}". For groups with no + * parent, parentName is the empty string, "". */ core.String parentName; @@ -1785,8 +1777,8 @@ * Specify a sequence of buckets that all have the same width (except overflow * and underflow). Each bucket represents a constant absolute uncertainty on the * specific value in the bucket.Defines num_finite_buckets + 2 (= N) buckets - * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + - * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). + * with these boundaries for bucket i:Upper bound (0 <= i < N-1): offset + + * (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)). */ class Linear { /** Must be greater than 0. */ @@ -2091,7 +2083,7 @@ * metric's URL-encoded type, which also appears in the type field of this * descriptor. For example, following is the resource name of a custom metric * within the GCP project 123456789: - * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount" + * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount" */ core.String name; /** @@ -2099,8 +2091,8 @@ * URL-encoded. All user-defined metric types have the DNS name * custom.googleapis.com. Metric types should use a natural hierarchical * grouping. For example: - * "custom.googleapis.com/invoice/paid/amount" - * "appengine.googleapis.com/http/server/response_latencies" + * "custom.googleapis.com/invoice/paid/amount" + * "appengine.googleapis.com/http/server/response_latencies" */ core.String type; /** @@ -2138,15 +2130,14 @@ * / division (as an infix operator, e.g. 1/s). * . multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit * is as follows: - * Expression = Component { "." Component } { "/" - * Component } ; + * Expression = Component { "." Component } { "/" Component } ; * * Component = [ PREFIX ] UNIT [ Annotation ] * | Annotation - * | "1" + * | "1" * ; * - * Annotation = "{" NAME "}" ; + * Annotation = "{" NAME "}" ; * Notes: * Annotation is just a comment if it follows a UNIT and is equivalent to 1 * if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s @@ -2238,23 +2229,23 @@ * Information in the labels field identifies the actual resource and its * attributes according to the schema. For example, a particular Compute Engine * VM instance could be represented by the following object, because the - * MonitoredResourceDescriptor for "gce_instance" has labels - * "instance_id" and "zone": - * { "type": "gce_instance", - * "labels": { "instance_id": "12345678901234", - * "zone": "us-central1-a" }} + * MonitoredResourceDescriptor for "gce_instance" has labels "instance_id" and + * "zone": + * { "type": "gce_instance", + * "labels": { "instance_id": "12345678901234", + * "zone": "us-central1-a" }} */ class MonitoredResource { /** * Required. Values for all of the labels listed in the associated monitored * resource descriptor. For example, Cloud SQL databases use the labels - * "database_id" and "zone". + * "database_id" and "zone". */ core.Map<core.String, core.String> labels; /** * Required. The monitored resource type. This field must match the type field * of a MonitoredResourceDescriptor object. For example, the type of a Cloud - * SQL database is "cloudsql_database". + * SQL database is "cloudsql_database". */ core.String type; @@ -2284,11 +2275,11 @@ /** * An object that describes the schema of a MonitoredResource object using a * type name and a set of labels. For example, the monitored resource descriptor - * for Google Compute Engine VM instances has a type of "gce_instance" - * and specifies the use of the labels "instance_id" and - * "zone" to identify particular VM instances.Different APIs can - * support different monitored resource types. APIs generally provide a list - * method that returns the monitored resource descriptors used by the API. + * for Google Compute Engine VM instances has a type of "gce_instance" and + * specifies the use of the labels "instance_id" and "zone" to identify + * particular VM instances.Different APIs can support different monitored + * resource types. APIs generally provide a list method that returns the + * monitored resource descriptors used by the API. */ class MonitoredResourceDescriptor { /** @@ -2299,30 +2290,29 @@ /** * Optional. A concise name for the monitored resource type that might be * displayed in user interfaces. It should be a Title Cased Noun Phrase, - * without any article or other determiners. For example, "Google Cloud - * SQL Database". + * without any article or other determiners. For example, "Google Cloud SQL + * Database". */ core.String displayName; /** * Required. A set of labels used to describe instances of this monitored * resource type. For example, an individual Google Cloud SQL database is - * identified by values for the labels "database_id" and - * "zone". + * identified by values for the labels "database_id" and "zone". */ core.List<LabelDescriptor> labels; /** * Optional. The resource name of the monitored resource descriptor: - * "projects/{project_id}/monitoredResourceDescriptors/{type}" where - * {type} is the value of the type field in this object and {project_id} is a - * project ID that provides API-specific context for accessing the type. APIs - * that do not use project information can use the resource name format - * "monitoredResourceDescriptors/{type}". + * "projects/{project_id}/monitoredResourceDescriptors/{type}" where {type} is + * the value of the type field in this object and {project_id} is a project ID + * that provides API-specific context for accessing the type. APIs that do not + * use project information can use the resource name format + * "monitoredResourceDescriptors/{type}". */ core.String name; /** * Required. The monitored resource type. For example, the type - * "cloudsql_database" represents databases in Google Cloud SQL. The - * maximum length of this value is 256 characters. + * "cloudsql_database" represents databases in Google Cloud SQL. The maximum + * length of this value is 256 characters. */ core.String type; @@ -2372,10 +2362,18 @@ * enumeration, etc. */ class Option { - /** The option's name. For example, "java_package". */ + /** + * The option's name. For protobuf built-in options (options defined in + * descriptor.proto), this is the short name. For example, "map_entry". For + * custom options, it should be the fully-qualified name. For example, + * "google.api.http". + */ core.String name; /** - * The option's value. For example, "com.google.protobuf". + * The option's value packed in an Any message. If the value is a primitive, + * the corresponding wrapper type defined in google/protobuf/wrappers.proto + * should be used. If the value is an enum, it should be stored as an int32 + * value using the google.protobuf.Int32Value type. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -2481,8 +2479,7 @@ class SourceContext { /** * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: - * "google/protobuf/source_context.proto". + * protobuf element. For example: "google/protobuf/source_context.proto". */ core.String fileName;
diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index 064dd12..b4e8b87 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart
@@ -47,9 +47,11 @@ * operation is executed. * * If feasible, the client should cache the check results and reuse them for - * up to 60s. In case of server errors, the client may rely on the cached + * 60 seconds. In case of server errors, the client can rely on the cached * results for longer time. * + * NOTE: the `CheckRequest` has the size limit of 1MB. + * * This method requires the `servicemanagement.services.check` permission * on the specified service. For more information, see * [Google Cloud IAM](https://cloud.google.com/iam). @@ -100,14 +102,16 @@ } /** - * Reports operations to Google Service Control. It should be called - * after the operation is completed. + * Reports operation results to Google Service Control, such as logs and + * metrics. It should be called after an operation is completed. * - * If feasible, the client should aggregate reporting data for up to 5s to - * reduce API traffic. Limiting aggregation to 5s is to reduce data loss - * during client crashes. Clients should carefully choose the aggregation - * window to avoid data loss risk more than 0.01% for business and - * compliance reasons. + * If feasible, the client should aggregate reporting data for up to 5 + * seconds to reduce API traffic. Limiting aggregation to 5 seconds is to + * reduce data loss during client crashes. Clients should carefully choose + * the aggregation time window to avoid data loss risk more than 0.01% + * for business and compliance reasons. + * + * NOTE: the `ReportRequest` has the size limit of 1MB. * * This method requires the `servicemanagement.services.report` permission * on the specified service. For more information, see
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart index fa25549..1d9617a 100644 --- a/generated/googleapis/lib/servicemanagement/v1.dart +++ b/generated/googleapis/lib/servicemanagement/v1.dart
@@ -146,7 +146,7 @@ } /** - * Deletes a managed service. This method will change the serivce in the + * Deletes a managed service. This method will change the service to the * `Soft-Delete` state for 30 days. Within this period, service producers may * call UndeleteService to restore the service. * After 30 days, the service will be permanently deleted. @@ -493,6 +493,12 @@ * previous list * call. * + * [consumerId] - Include services consumed by the specified consumer. + * + * The Google Service Management implementation accepts the following + * forms: + * - project:<project_id> + * * Completes with a [ListServicesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -501,7 +507,7 @@ * If the used [http_1.Client] completes with an error when making a REST * call, this method will complete with the same error. */ - async.Future<ListServicesResponse> list({core.int pageSize, core.String producerProjectId, core.String pageToken}) { + async.Future<ListServicesResponse> list({core.int pageSize, core.String producerProjectId, core.String pageToken, core.String consumerId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -518,6 +524,9 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (consumerId != null) { + _queryParams["consumerId"] = [consumerId]; + } _url = 'v1/services'; @@ -582,6 +591,8 @@ /** * Returns permissions that a caller has on the specified resource. + * If the resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. * * [request] - The metadata request object. * @@ -1181,19 +1192,23 @@ } /** - * Enables "data access" audit logging for a service and specifies a list - * of members that are log-exempted. + * Provides the configuration for non-admin_activity logging for a service. + * Controls exemptions and specific log sub-types. */ class AuditConfig { /** + * The configuration for each type of logging + * Next ID: 4 + */ + core.List<AuditLogConfig> auditLogConfigs; + /** * Specifies the identities that are exempted from "data access" audit * logging for the `service` specified above. * Follows the same format of Binding.members. */ core.List<core.String> exemptedMembers; /** - * Specifies a service that will be enabled for "data access" audit - * logging. + * Specifies a service that will be enabled for audit logging. * For example, `resourcemanager`, `storage`, `compute`. * `allServices` is a special value that covers all services. */ @@ -1202,6 +1217,9 @@ AuditConfig(); AuditConfig.fromJson(core.Map _json) { + if (_json.containsKey("auditLogConfigs")) { + auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConfig.fromJson(value)).toList(); + } if (_json.containsKey("exemptedMembers")) { exemptedMembers = _json["exemptedMembers"]; } @@ -1212,6 +1230,9 @@ core.Map toJson() { var _json = new core.Map(); + if (auditLogConfigs != null) { + _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson()).toList(); + } if (exemptedMembers != null) { _json["exemptedMembers"] = exemptedMembers; } @@ -1222,6 +1243,46 @@ } } +/** Provides the configuration for a sub-type of logging. */ +class AuditLogConfig { + /** + * Specifies the identities that are exempted from this type of logging + * Follows the same format of Binding.members. + */ + core.List<core.String> exemptedMembers; + /** + * The log type that this config enables. + * Possible string values are: + * - "LOG_TYPE_UNSPECIFIED" : Default case. Should never be this. + * - "ADMIN_READ" : Log admin reads + * - "DATA_WRITE" : Log data writes + * - "DATA_READ" : Log data reads + */ + core.String logType; + + AuditLogConfig(); + + AuditLogConfig.fromJson(core.Map _json) { + if (_json.containsKey("exemptedMembers")) { + exemptedMembers = _json["exemptedMembers"]; + } + if (_json.containsKey("logType")) { + logType = _json["logType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (exemptedMembers != null) { + _json["exemptedMembers"] = exemptedMembers; + } + if (logType != null) { + _json["logType"] = logType; + } + return _json; + } +} + /** * Configuration for an anthentication provider, including support for * [JSON Web Token @@ -1375,14 +1436,14 @@ * * name: calendar.googleapis.com * authentication: + * providers: + * - id: google_calendar_auth + * jwks_uri: https://www.googleapis.com/oauth2/v1/certs + * issuer: https://securetoken.google.com * rules: * - selector: "*" - * oauth: - * canonical_scopes: https://www.googleapis.com/auth/calendar - * - * - selector: google.calendar.Delegate - * oauth: - * canonical_scopes: https://www.googleapis.com/auth/calendar.read + * requirements: + * provider_id: google_calendar_auth */ class Authentication { /** Defines a set of authentication providers that a service supports. */ @@ -2563,29 +2624,7 @@ * # it to decide whether the subsequent cross-origin request is * # allowed to proceed. * - name: library-example.googleapis.com - * apis: google.example.library.v1.Library * allow_cors: true - * # Below entry makes 'google.example.library.v1.Library' - * # API be served from endpoint address - * # google.example.library-example.v1.LibraryManager. - * - name: library-manager.googleapis.com - * apis: google.example.library.v1.LibraryManager - * # BNS address for a borg job. Can specify a task by appending - * # "/taskId" (e.g. "/0") to the job spec. - * - * Example OpenAPI extension for endpoint with allow_cors set to true: - * - * { - * "swagger": "2.0", - * "info": { - * "description": "A simple..." - * }, - * "host": "MY_PROJECT_ID.appspot.com", - * "x-google-endpoints": [{ - * "name": "MY_PROJECT_ID.appspot.com", - * "allow_cors": "true" - * }] - * } */ class Endpoint { /** @@ -3039,23 +3078,30 @@ * message, as in the example below which describes a REST GET * operation on a resource collection of messages: * - * ```proto - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { + * + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; - * } - * } - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // mapped to the URL - * SubMessage sub = 2; // `sub.subfield` is url-mapped - * } - * message Message { - * string text = 1; // content of the resource - * } - * ``` + * } + * } + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // mapped to the URL + * SubMessage sub = 2; // `sub.subfield` is url-mapped + * } + * message Message { + * string text = 1; // content of the resource + * } + * + * The same http annotation can alternatively be expressed inside the + * `GRPC API Configuration` YAML file. + * + * http: + * rules: + * - selector: <proto_package_name>.Messaging.GetMessage + * get: /v1/messages/{message_id}/{sub.subfield} * * This definition enables an automatic, bidrectional mapping of HTTP * JSON to RPC. Example: @@ -3073,16 +3119,16 @@ * pattern automatically become (optional) HTTP query * parameters. Assume the following definition of the request message: * - * ```proto - * message GetMessageRequest { - * message SubMessage { - * string subfield = 1; - * } - * string message_id = 1; // mapped to the URL - * int64 revision = 2; // becomes a parameter - * SubMessage sub = 3; // `sub.subfield` becomes a parameter - * } - * ``` + * + * message GetMessageRequest { + * message SubMessage { + * string subfield = 1; + * } + * string message_id = 1; // mapped to the URL + * int64 revision = 2; // becomes a parameter + * SubMessage sub = 3; // `sub.subfield` becomes a parameter + * } + * * * This enables a HTTP JSON to RPC mapping as below: * @@ -3101,20 +3147,20 @@ * specifies the mapping. Consider a REST update method on the * message resource collection: * - * ```proto - * service Messaging { - * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { - * option (google.api.http) = { - * put: "/v1/messages/{message_id}" - * body: "message" - * }; - * } - * } - * message UpdateMessageRequest { - * string message_id = 1; // mapped to the URL - * Message message = 2; // mapped to the body - * } - * ``` + * + * service Messaging { + * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { + * option (google.api.http) = { + * put: "/v1/messages/{message_id}" + * body: "message" + * }; + * } + * } + * message UpdateMessageRequest { + * string message_id = 1; // mapped to the URL + * Message message = 2; // mapped to the body + * } + * * * The following HTTP JSON to RPC mapping is enabled, where the * representation of the JSON in the request body is determined by @@ -3130,20 +3176,19 @@ * request body. This enables the following alternative definition of * the update method: * - * ```proto - * service Messaging { - * rpc UpdateMessage(Message) returns (Message) { - * option (google.api.http) = { - * put: "/v1/messages/{message_id}" - * body: "*" - * }; - * } - * } - * message Message { - * string message_id = 1; - * string text = 2; - * } - * ``` + * service Messaging { + * rpc UpdateMessage(Message) returns (Message) { + * option (google.api.http) = { + * put: "/v1/messages/{message_id}" + * body: "*" + * }; + * } + * } + * message Message { + * string message_id = 1; + * string text = 2; + * } + * * * The following HTTP JSON to RPC mapping is enabled: * @@ -3161,22 +3206,21 @@ * It is possible to define multiple HTTP methods for one RPC by using * the `additional_bindings` option. Example: * - * ```proto - * service Messaging { - * rpc GetMessage(GetMessageRequest) returns (Message) { - * option (google.api.http) = { - * get: "/v1/messages/{message_id}" - * additional_bindings { - * get: "/v1/users/{user_id}/messages/{message_id}" + * service Messaging { + * rpc GetMessage(GetMessageRequest) returns (Message) { + * option (google.api.http) = { + * get: "/v1/messages/{message_id}" + * additional_bindings { + * get: "/v1/users/{user_id}/messages/{message_id}" + * } + * }; * } - * }; - * } - * } - * message GetMessageRequest { - * string message_id = 1; - * string user_id = 2; - * } - * ``` + * } + * message GetMessageRequest { + * string message_id = 1; + * string user_id = 2; + * } + * * * This enables the following two alternative HTTP JSON to RPC * mappings: @@ -3247,7 +3291,7 @@ * The name of the request field whose value is mapped to the HTTP body, or * `*` for mapping all fields not captured by the path pattern to the HTTP * body. NOTE: the referred field must not be a repeated field and must be - * present at the top-level of response message type. + * present at the top-level of request message type. */ core.String body; /** Custom pattern is used for defining custom verbs. */ @@ -4618,10 +4662,18 @@ * enumeration, etc. */ class Option { - /** The option's name. For example, `"java_package"`. */ + /** + * The option's name. For protobuf built-in options (options defined in + * descriptor.proto), this is the short name. For example, `"map_entry"`. + * For custom options, it should be the fully-qualified name. For example, + * `"google.api.http"`. + */ core.String name; /** - * The option's value. For example, `"com.google.protobuf"`. + * The option's value packed in an Any message. If the value is a primitive, + * the corresponding wrapper type defined in google/protobuf/wrappers.proto + * should be used. If the value is an enum, it should be stored as an int32 + * value using the google.protobuf.Int32Value type. * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -5062,10 +5114,15 @@ * title: Google Calendar API * apis: * - name: google.calendar.v3.Calendar - * backend: + * authentication: + * providers: + * - id: google_calendar_auth + * jwks_uri: https://www.googleapis.com/oauth2/v1/certs + * issuer: https://securetoken.google.com * rules: - * - selector: "google.calendar.v3.*" - * address: calendar.example.com + * - selector: "*" + * requirements: + * provider_id: google_calendar_auth */ class Service { /** @@ -5597,8 +5654,7 @@ */ core.String httpHeader; /** - * Define the name of the parameter, such as "api_key", "alt", "callback", - * and etc. It is case sensitive. + * Define the name of the parameter, such as "api_key" . It is case sensitive. */ core.String name; /** @@ -5697,27 +5753,26 @@ * config, default system parameters will be used. Default system parameters * and names is implementation-dependent. * - * Example: define api key and alt name for all methods + * Example: define api key for all methods * - * system_parameters - * rules: - * - selector: "*" - * parameters: - * - name: api_key - * url_query_parameter: api_key - * - name: alt - * http_header: Response-Content-Type + * system_parameters + * rules: + * - selector: "*" + * parameters: + * - name: api_key + * url_query_parameter: api_key + * * * Example: define 2 api key names for a specific method. * - * system_parameters - * rules: - * - selector: "/ListShelves" - * parameters: - * - name: api_key - * http_header: Api-Key1 - * - name: api_key - * http_header: Api-Key2 + * system_parameters + * rules: + * - selector: "/ListShelves" + * parameters: + * - name: api_key + * http_header: Api-Key1 + * - name: api_key + * http_header: Api-Key2 * * **NOTE:** All service configuration rules follow "last one wins" order. */ @@ -5940,6 +5995,17 @@ /** Configuration controlling usage of a service. */ class Usage { /** + * The full resource name of a channel used for sending notifications to the + * service producer. + * + * Google Service Management currently only supports + * [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification + * channel. To use Google Cloud Pub/Sub as the channel, this must be the name + * of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format + * documented in https://cloud.google.com/pubsub/docs/overview. + */ + core.String producerNotificationChannel; + /** * Requirements that must be satisfied before a consumer project can use the * service. Each requirement is of the form <service.name>/<requirement-id>; * for example 'serviceusage.googleapis.com/billing-enabled'. @@ -5955,6 +6021,9 @@ Usage(); Usage.fromJson(core.Map _json) { + if (_json.containsKey("producerNotificationChannel")) { + producerNotificationChannel = _json["producerNotificationChannel"]; + } if (_json.containsKey("requirements")) { requirements = _json["requirements"]; } @@ -5965,6 +6034,9 @@ core.Map toJson() { var _json = new core.Map(); + if (producerNotificationChannel != null) { + _json["producerNotificationChannel"] = producerNotificationChannel; + } if (requirements != null) { _json["requirements"] = requirements; }
diff --git a/generated/googleapis/lib/sheets/v4.dart b/generated/googleapis/lib/sheets/v4.dart index 2af7091..003f7b4 100644 --- a/generated/googleapis/lib/sheets/v4.dart +++ b/generated/googleapis/lib/sheets/v4.dart
@@ -311,12 +311,34 @@ * [range] - The A1 notation of a range to search for a logical table of data. * Values will be appended after the last row of the table. * + * [responseValueRenderOption] - Determines how values in the response should + * be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + * Possible string values are: + * - "FORMATTED_VALUE" : A FORMATTED_VALUE. + * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. + * - "FORMULA" : A FORMULA. + * * [valueInputOption] - How the input data should be interpreted. * Possible string values are: * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. * - "RAW" : A RAW. * - "USER_ENTERED" : A USER_ENTERED. * + * [responseDateTimeRenderOption] - Determines how dates, times, and durations + * in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + * Possible string values are: + * - "SERIAL_NUMBER" : A SERIAL_NUMBER. + * - "FORMATTED_STRING" : A FORMATTED_STRING. + * + * [includeValuesInResponse] - Determines if the update response should + * include the values + * of the cells that were appended. By default, responses + * do not include the updated values. + * * [insertDataOption] - How the input data should be inserted. * Possible string values are: * - "OVERWRITE" : A OVERWRITE. @@ -330,7 +352,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String valueInputOption, core.String insertDataOption}) { + async.Future<AppendValuesResponse> append(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse, core.String insertDataOption}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -347,9 +369,18 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } + if (responseValueRenderOption != null) { + _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; + } if (valueInputOption != null) { _queryParams["valueInputOption"] = [valueInputOption]; } + if (responseDateTimeRenderOption != null) { + _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; + } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } if (insertDataOption != null) { _queryParams["insertDataOption"] = [insertDataOption]; } @@ -424,6 +455,7 @@ * [ranges] - The A1 notation of the values to retrieve. * * [valueRenderOption] - How values should be represented in the output. + * The default render option is ValueRenderOption.FORMATTED_VALUE. * Possible string values are: * - "FORMATTED_VALUE" : A FORMATTED_VALUE. * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. @@ -433,6 +465,7 @@ * represented in the output. * This is ignored if value_render_option is * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. * Possible string values are: * - "SERIAL_NUMBER" : A SERIAL_NUMBER. * - "FORMATTED_STRING" : A FORMATTED_STRING. @@ -603,6 +636,7 @@ * [range] - The A1 notation of the values to retrieve. * * [valueRenderOption] - How values should be represented in the output. + * The default render option is ValueRenderOption.FORMATTED_VALUE. * Possible string values are: * - "FORMATTED_VALUE" : A FORMATTED_VALUE. * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. @@ -612,6 +646,7 @@ * represented in the output. * This is ignored if value_render_option is * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. * Possible string values are: * - "SERIAL_NUMBER" : A SERIAL_NUMBER. * - "FORMATTED_STRING" : A FORMATTED_STRING. @@ -685,12 +720,37 @@ * * [range] - The A1 notation of the values to update. * + * [responseValueRenderOption] - Determines how values in the response should + * be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + * Possible string values are: + * - "FORMATTED_VALUE" : A FORMATTED_VALUE. + * - "UNFORMATTED_VALUE" : A UNFORMATTED_VALUE. + * - "FORMULA" : A FORMULA. + * * [valueInputOption] - How the input data should be interpreted. * Possible string values are: * - "INPUT_VALUE_OPTION_UNSPECIFIED" : A INPUT_VALUE_OPTION_UNSPECIFIED. * - "RAW" : A RAW. * - "USER_ENTERED" : A USER_ENTERED. * + * [responseDateTimeRenderOption] - Determines how dates, times, and durations + * in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + * Possible string values are: + * - "SERIAL_NUMBER" : A SERIAL_NUMBER. + * - "FORMATTED_STRING" : A FORMATTED_STRING. + * + * [includeValuesInResponse] - Determines if the update response should + * include the values + * of the cells that were updated. By default, responses + * do not include the updated values. + * If the range to write was larger than than the range actually written, + * the response will include all values in the requested range (excluding + * trailing empty rows and columns). + * * Completes with a [UpdateValuesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -699,7 +759,7 @@ * If the used [http.Client] completes with an error when making a REST call, * this method will complete with the same error. */ - async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.String valueInputOption}) { + async.Future<UpdateValuesResponse> update(ValueRange request, core.String spreadsheetId, core.String range, {core.String responseValueRenderOption, core.String valueInputOption, core.String responseDateTimeRenderOption, core.bool includeValuesInResponse}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -716,9 +776,18 @@ if (range == null) { throw new core.ArgumentError("Parameter range is required."); } + if (responseValueRenderOption != null) { + _queryParams["responseValueRenderOption"] = [responseValueRenderOption]; + } if (valueInputOption != null) { _queryParams["valueInputOption"] = [valueInputOption]; } + if (responseDateTimeRenderOption != null) { + _queryParams["responseDateTimeRenderOption"] = [responseDateTimeRenderOption]; + } + if (includeValuesInResponse != null) { + _queryParams["includeValuesInResponse"] = ["${includeValuesInResponse}"]; + } _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range'); @@ -1813,22 +1882,56 @@ /** The request for updating any aspect of a spreadsheet. */ class BatchUpdateSpreadsheetRequest { + /** + * Determines if the update response should include the spreadsheet + * resource. + */ + core.bool includeSpreadsheetInResponse; /** A list of updates to apply to the spreadsheet. */ core.List<Request> requests; + /** + * True if grid data should be returned. Meaningful only if + * if include_spreadsheet_response is 'true'. + * This parameter is ignored if a field mask was set in the request. + */ + core.bool responseIncludeGridData; + /** + * Limits the ranges included in the response spreadsheet. + * Meaningful only if include_spreadsheet_response is 'true'. + */ + core.List<core.String> responseRanges; BatchUpdateSpreadsheetRequest(); BatchUpdateSpreadsheetRequest.fromJson(core.Map _json) { + if (_json.containsKey("includeSpreadsheetInResponse")) { + includeSpreadsheetInResponse = _json["includeSpreadsheetInResponse"]; + } if (_json.containsKey("requests")) { requests = _json["requests"].map((value) => new Request.fromJson(value)).toList(); } + if (_json.containsKey("responseIncludeGridData")) { + responseIncludeGridData = _json["responseIncludeGridData"]; + } + if (_json.containsKey("responseRanges")) { + responseRanges = _json["responseRanges"]; + } } core.Map toJson() { var _json = new core.Map(); + if (includeSpreadsheetInResponse != null) { + _json["includeSpreadsheetInResponse"] = includeSpreadsheetInResponse; + } if (requests != null) { _json["requests"] = requests.map((value) => (value).toJson()).toList(); } + if (responseIncludeGridData != null) { + _json["responseIncludeGridData"] = responseIncludeGridData; + } + if (responseRanges != null) { + _json["responseRanges"] = responseRanges; + } return _json; } } @@ -1842,6 +1945,11 @@ core.List<Response> replies; /** The spreadsheet the updates were applied to. */ core.String spreadsheetId; + /** + * The spreadsheet after updates were applied. This is only set if + * [BatchUpdateSpreadsheetRequest.include_spreadsheet_in_response] is `true`. + */ + Spreadsheet updatedSpreadsheet; BatchUpdateSpreadsheetResponse(); @@ -1852,6 +1960,9 @@ if (_json.containsKey("spreadsheetId")) { spreadsheetId = _json["spreadsheetId"]; } + if (_json.containsKey("updatedSpreadsheet")) { + updatedSpreadsheet = new Spreadsheet.fromJson(_json["updatedSpreadsheet"]); + } } core.Map toJson() { @@ -1862,6 +1973,9 @@ if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } + if (updatedSpreadsheet != null) { + _json["updatedSpreadsheet"] = (updatedSpreadsheet).toJson(); + } return _json; } } @@ -1871,6 +1985,56 @@ /** The new values to apply to the spreadsheet. */ core.List<ValueRange> data; /** + * Determines if the update response should include the values + * of the cells that were updated. By default, responses + * do not include the updated values. The `updatedData` field within + * each of the BatchUpdateValuesResponse.responses will contain + * the updated values. If the range to write was larger than than the range + * actually written, the response will include all values in the requested + * range (excluding trailing empty rows and columns). + */ + core.bool includeValuesInResponse; + /** + * Determines how dates, times, and durations in the response should be + * rendered. This is ignored if response_value_render_option is + * FORMATTED_VALUE. + * The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER]. + * Possible string values are: + * - "SERIAL_NUMBER" : Instructs date, time, datetime, and duration fields to + * be output + * as doubles in "serial number" format, as popularized by Lotus 1-2-3. + * Days are counted from December 31st 1899 and are incremented by 1, + * and times are fractions of a day. For example, January 1st 1900 at noon + * would be 1.5, 1 because it's 1 day offset from December 31st 1899, + * and .5 because noon is half a day. February 1st 1900 at 3pm would + * be 32.625. This correctly treats the year 1900 as not a leap year. + * - "FORMATTED_STRING" : Instructs date, time, datetime, and duration fields + * to be output + * as strings in their given number format (which is dependent + * on the spreadsheet locale). + */ + core.String responseDateTimeRenderOption; + /** + * Determines how values in the response should be rendered. + * The default render option is ValueRenderOption.FORMATTED_VALUE. + * Possible string values are: + * - "FORMATTED_VALUE" : Values will be calculated & formatted in the reply + * according to the + * cell's formatting. Formatting is based on the spreadsheet's locale, + * not the requesting user's locale. + * For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, + * then `A2` would return `"$1.23"`. + * - "UNFORMATTED_VALUE" : Values will be calculated, but not formatted in the + * reply. + * For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, + * then `A2` would return the number `1.23`. + * - "FORMULA" : Values will not be calculated. The reply will include the + * formulas. + * For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, + * then A2 would return `"=A1"`. + */ + core.String responseValueRenderOption; + /** * How the input data should be interpreted. * Possible string values are: * - "INPUT_VALUE_OPTION_UNSPECIFIED" : Default input value. This value must @@ -1892,6 +2056,15 @@ if (_json.containsKey("data")) { data = _json["data"].map((value) => new ValueRange.fromJson(value)).toList(); } + if (_json.containsKey("includeValuesInResponse")) { + includeValuesInResponse = _json["includeValuesInResponse"]; + } + if (_json.containsKey("responseDateTimeRenderOption")) { + responseDateTimeRenderOption = _json["responseDateTimeRenderOption"]; + } + if (_json.containsKey("responseValueRenderOption")) { + responseValueRenderOption = _json["responseValueRenderOption"]; + } if (_json.containsKey("valueInputOption")) { valueInputOption = _json["valueInputOption"]; } @@ -1902,6 +2075,15 @@ if (data != null) { _json["data"] = data.map((value) => (value).toJson()).toList(); } + if (includeValuesInResponse != null) { + _json["includeValuesInResponse"] = includeValuesInResponse; + } + if (responseDateTimeRenderOption != null) { + _json["responseDateTimeRenderOption"] = responseDateTimeRenderOption; + } + if (responseValueRenderOption != null) { + _json["responseValueRenderOption"] = responseValueRenderOption; + } if (valueInputOption != null) { _json["valueInputOption"] = valueInputOption; } @@ -6164,7 +6346,13 @@ * The index of the sheet within the spreadsheet. * When adding or updating sheet properties, if this field * is excluded then the sheet will be added or moved to the end - * of the sheet list. + * of the sheet list. When updating sheet indices or inserting + * sheets, movement is considered in "before the move" indexes. + * For example, if there were 3 sheets (S1, S2, S3) in order to + * move S1 ahead of S2 the index would have to be set to 2. A sheet + * index update request will be ignored if the requested index is + * identical to the sheets current index or if the requested new + * index is equal to the current sheet index + 1. */ core.int index; /** True if the sheet is an RTL sheet instead of an LTR sheet. */ @@ -6379,6 +6567,11 @@ * This field is read-only. */ core.String spreadsheetId; + /** + * The url of the spreadsheet. + * This field is read-only. + */ + core.String spreadsheetUrl; Spreadsheet(); @@ -6395,6 +6588,9 @@ if (_json.containsKey("spreadsheetId")) { spreadsheetId = _json["spreadsheetId"]; } + if (_json.containsKey("spreadsheetUrl")) { + spreadsheetUrl = _json["spreadsheetUrl"]; + } } core.Map toJson() { @@ -6411,6 +6607,9 @@ if (spreadsheetId != null) { _json["spreadsheetId"] = spreadsheetId; } + if (spreadsheetUrl != null) { + _json["spreadsheetUrl"] = spreadsheetUrl; + } return _json; } } @@ -7309,6 +7508,12 @@ * The number of columns where at least one cell in the column was updated. */ core.int updatedColumns; + /** + * The values of the cells after updates were applied. + * This is only included if the request's `includeValuesInResponse` field + * was `true`. + */ + ValueRange updatedData; /** The range (in A1 notation) that updates were applied to. */ core.String updatedRange; /** The number of rows where at least one cell in the row was updated. */ @@ -7326,6 +7531,9 @@ if (_json.containsKey("updatedColumns")) { updatedColumns = _json["updatedColumns"]; } + if (_json.containsKey("updatedData")) { + updatedData = new ValueRange.fromJson(_json["updatedData"]); + } if (_json.containsKey("updatedRange")) { updatedRange = _json["updatedRange"]; } @@ -7345,6 +7553,9 @@ if (updatedColumns != null) { _json["updatedColumns"] = updatedColumns; } + if (updatedData != null) { + _json["updatedData"] = (updatedData).toJson(); + } if (updatedRange != null) { _json["updatedRange"] = updatedRange; }
diff --git a/generated/googleapis/lib/slides/v1.dart b/generated/googleapis/lib/slides/v1.dart new file mode 100644 index 0000000..157dfd2 --- /dev/null +++ b/generated/googleapis/lib/slides/v1.dart
@@ -0,0 +1,6467 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.slides.v1; + +import 'dart:core' as core; +import 'dart:async' as async; +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; + +const core.String USER_AGENT = 'dart-api-client slides/v1'; + +/** An API for creating and editing Google Slides presentations. */ +class SlidesApi { + /** View and manage the files in your Google Drive */ + static const DriveScope = "https://www.googleapis.com/auth/drive"; + + /** View the files in your Google Drive */ + static const DriveReadonlyScope = "https://www.googleapis.com/auth/drive.readonly"; + + /** View and manage your Google Slides presentations */ + static const PresentationsScope = "https://www.googleapis.com/auth/presentations"; + + /** View your Google Slides presentations */ + static const PresentationsReadonlyScope = "https://www.googleapis.com/auth/presentations.readonly"; + + /** View and manage your spreadsheets in Google Drive */ + static const SpreadsheetsScope = "https://www.googleapis.com/auth/spreadsheets"; + + /** View your Google Spreadsheets */ + static const SpreadsheetsReadonlyScope = "https://www.googleapis.com/auth/spreadsheets.readonly"; + + + final commons.ApiRequester _requester; + + PresentationsResourceApi get presentations => new PresentationsResourceApi(_requester); + + SlidesApi(http.Client client, {core.String rootUrl: "https://slides.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class PresentationsResourceApi { + final commons.ApiRequester _requester; + + PresentationsPagesResourceApi get pages => new PresentationsPagesResourceApi(_requester); + + PresentationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Applies one or more updates to the presentation. + * + * Each request is validated before + * being applied. If any request is not valid, then the entire request will + * fail and nothing will be applied. + * + * Some requests have replies to + * give you some information about how they are applied. Other requests do + * not need to return information; these each return an empty reply. + * The order of replies matches that of the requests. + * + * For example, suppose you call batchUpdate with four updates, and only the + * third one returns information. The response would have two empty replies: + * the reply to the third request, and another empty reply, in that order. + * + * Because other users may be editing the presentation, the presentation + * might not exactly reflect your changes: your changes may + * be altered with respect to collaborator changes. If there are no + * collaborators, the presentation should reflect your changes. In any case, + * the updates in your request are guaranteed to be applied together + * atomically. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [presentationId] - The presentation to apply the updates to. + * + * Completes with a [BatchUpdatePresentationResponse]. + * + * 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<BatchUpdatePresentationResponse> batchUpdate(BatchUpdatePresentationRequest request, core.String presentationId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (presentationId == null) { + throw new core.ArgumentError("Parameter presentationId is required."); + } + + _url = 'v1/presentations/' + commons.Escaper.ecapeVariable('$presentationId') + ':batchUpdate'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BatchUpdatePresentationResponse.fromJson(data)); + } + + /** + * Creates a new presentation using the title given in the request. Other + * fields in the request are ignored. + * Returns the created presentation. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [Presentation]. + * + * 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<Presentation> create(Presentation request) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + + _url = 'v1/presentations'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Presentation.fromJson(data)); + } + + /** + * Gets the latest version of the specified presentation. + * + * Request parameters: + * + * [presentationId] - The ID of the presentation to retrieve. + * Value must have pattern "^[^/]+$". + * + * Completes with a [Presentation]. + * + * 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<Presentation> get(core.String presentationId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (presentationId == null) { + throw new core.ArgumentError("Parameter presentationId is required."); + } + + _url = 'v1/presentations/' + commons.Escaper.ecapeVariableReserved('$presentationId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Presentation.fromJson(data)); + } + +} + + +class PresentationsPagesResourceApi { + final commons.ApiRequester _requester; + + PresentationsPagesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets the latest version of the specified page in the presentation. + * + * Request parameters: + * + * [presentationId] - The ID of the presentation to retrieve. + * + * [pageObjectId] - The object ID of the page to retrieve. + * + * Completes with a [Page]. + * + * 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<Page> get(core.String presentationId, core.String pageObjectId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (presentationId == null) { + throw new core.ArgumentError("Parameter presentationId is required."); + } + if (pageObjectId == null) { + throw new core.ArgumentError("Parameter pageObjectId is required."); + } + + _url = 'v1/presentations/' + commons.Escaper.ecapeVariable('$presentationId') + '/pages/' + commons.Escaper.ecapeVariable('$pageObjectId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Page.fromJson(data)); + } + +} + + + +/** + * AffineTransform uses a 3x3 matrix with an implied last row of [ 0 0 1 ] + * to transform source coordinates (x,y) into destination coordinates (x', y') + * according to: + * + * x' x = shear_y scale_y translate_y + * 1 [ 1 ] + * + * After transformation, + * + * x' = scale_x * x + shear_x * y + translate_x; + * y' = scale_y * y + shear_y * x + translate_y; + * + * This message is therefore composed of these six matrix elements. + */ +class AffineTransform { + /** The X coordinate scaling element. */ + core.double scaleX; + /** The Y coordinate scaling element. */ + core.double scaleY; + /** The X coordinate shearing element. */ + core.double shearX; + /** The Y coordinate shearing element. */ + core.double shearY; + /** The X coordinate translation element. */ + core.double translateX; + /** The Y coordinate translation element. */ + core.double translateY; + /** + * The units for translate elements. + * Possible string values are: + * - "UNIT_UNSPECIFIED" : The units are unknown. + * - "EMU" : An English Metric Unit (EMU) is defined as 1/360,000 of a + * centimeter + * and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point. + * - "PT" : A point, 1/72 of an inch. + */ + core.String unit; + + AffineTransform(); + + AffineTransform.fromJson(core.Map _json) { + if (_json.containsKey("scaleX")) { + scaleX = _json["scaleX"]; + } + if (_json.containsKey("scaleY")) { + scaleY = _json["scaleY"]; + } + if (_json.containsKey("shearX")) { + shearX = _json["shearX"]; + } + if (_json.containsKey("shearY")) { + shearY = _json["shearY"]; + } + if (_json.containsKey("translateX")) { + translateX = _json["translateX"]; + } + if (_json.containsKey("translateY")) { + translateY = _json["translateY"]; + } + if (_json.containsKey("unit")) { + unit = _json["unit"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (scaleX != null) { + _json["scaleX"] = scaleX; + } + if (scaleY != null) { + _json["scaleY"] = scaleY; + } + if (shearX != null) { + _json["shearX"] = shearX; + } + if (shearY != null) { + _json["shearY"] = shearY; + } + if (translateX != null) { + _json["translateX"] = translateX; + } + if (translateY != null) { + _json["translateY"] = translateY; + } + if (unit != null) { + _json["unit"] = unit; + } + return _json; + } +} + +/** A TextElement kind that represents auto text. */ +class AutoText { + /** The rendered content of this auto text, if available. */ + core.String content; + /** The styling applied to this auto text. */ + TextStyle style; + /** + * The type of this auto text. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : An unspecified autotext type. + * - "SLIDE_NUMBER" : Type for autotext that represents the current slide + * number. + */ + core.String type; + + AutoText(); + + AutoText.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = _json["content"]; + } + if (_json.containsKey("style")) { + style = new TextStyle.fromJson(_json["style"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (content != null) { + _json["content"] = content; + } + if (style != null) { + _json["style"] = (style).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** Request message for PresentationsService.BatchUpdatePresentation. */ +class BatchUpdatePresentationRequest { + /** A list of updates to apply to the presentation. */ + core.List<Request> requests; + + BatchUpdatePresentationRequest(); + + BatchUpdatePresentationRequest.fromJson(core.Map _json) { + if (_json.containsKey("requests")) { + requests = _json["requests"].map((value) => new Request.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (requests != null) { + _json["requests"] = requests.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Response message from a batch update. */ +class BatchUpdatePresentationResponse { + /** The presentation the updates were applied to. */ + core.String presentationId; + /** + * The reply of the updates. This maps 1:1 with the updates, although + * replies to some requests may be empty. + */ + core.List<Response> replies; + + BatchUpdatePresentationResponse(); + + BatchUpdatePresentationResponse.fromJson(core.Map _json) { + if (_json.containsKey("presentationId")) { + presentationId = _json["presentationId"]; + } + if (_json.containsKey("replies")) { + replies = _json["replies"].map((value) => new Response.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (presentationId != null) { + _json["presentationId"] = presentationId; + } + if (replies != null) { + _json["replies"] = replies.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Describes the bullet of a paragraph. */ +class Bullet { + /** The paragraph specific text style applied to this bullet. */ + TextStyle bulletStyle; + /** The rendered bullet glyph for this paragraph. */ + core.String glyph; + /** The ID of the list this paragraph belongs to. */ + core.String listId; + /** The nesting level of this paragraph in the list. */ + core.int nestingLevel; + + Bullet(); + + Bullet.fromJson(core.Map _json) { + if (_json.containsKey("bulletStyle")) { + bulletStyle = new TextStyle.fromJson(_json["bulletStyle"]); + } + if (_json.containsKey("glyph")) { + glyph = _json["glyph"]; + } + if (_json.containsKey("listId")) { + listId = _json["listId"]; + } + if (_json.containsKey("nestingLevel")) { + nestingLevel = _json["nestingLevel"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bulletStyle != null) { + _json["bulletStyle"] = (bulletStyle).toJson(); + } + if (glyph != null) { + _json["glyph"] = glyph; + } + if (listId != null) { + _json["listId"] = listId; + } + if (nestingLevel != null) { + _json["nestingLevel"] = nestingLevel; + } + return _json; + } +} + +/** The palette of predefined colors for a page. */ +class ColorScheme { + /** The ThemeColorType and corresponding concrete color pairs. */ + core.List<ThemeColorPair> colors; + + ColorScheme(); + + ColorScheme.fromJson(core.Map _json) { + if (_json.containsKey("colors")) { + colors = _json["colors"].map((value) => new ThemeColorPair.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (colors != null) { + _json["colors"] = colors.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** A color and position in a gradient band. */ +class ColorStop { + /** + * The alpha value of this color in the gradient band. Defaults to 1.0, + * fully opaque. + */ + core.double alpha; + /** The color of the gradient stop. */ + OpaqueColor color; + /** + * The relative position of the color stop in the gradient band measured + * in percentage. The value should be in the interval [0.0, 1.0]. + */ + core.double position; + + ColorStop(); + + ColorStop.fromJson(core.Map _json) { + if (_json.containsKey("alpha")) { + alpha = _json["alpha"]; + } + if (_json.containsKey("color")) { + color = new OpaqueColor.fromJson(_json["color"]); + } + if (_json.containsKey("position")) { + position = _json["position"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (alpha != null) { + _json["alpha"] = alpha; + } + if (color != null) { + _json["color"] = (color).toJson(); + } + if (position != null) { + _json["position"] = position; + } + return _json; + } +} + +/** Creates an image. */ +class CreateImageRequest { + /** + * The element properties for the image. + * + * When the aspect ratio of the provided size does not match the image aspect + * ratio, the image is scaled and centered with respect to the size in order + * to maintain aspect ratio. The provided transform is applied after this + * operation. + */ + PageElementProperties elementProperties; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * + * If you don't specify an ID, a unique one is generated. + */ + core.String objectId; + /** + * The image URL. + * + * The image is fetched once at insertion time and a copy is stored for + * display inside the presentation. Images must be less than 50MB in size, + * cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + * format. + */ + core.String url; + + CreateImageRequest(); + + CreateImageRequest.fromJson(core.Map _json) { + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/** The result of creating an image. */ +class CreateImageResponse { + /** The object ID of the created image. */ + core.String objectId; + + CreateImageResponse(); + + CreateImageResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Creates a line. */ +class CreateLineRequest { + /** The element properties for the line. */ + PageElementProperties elementProperties; + /** + * The category of line to be created. + * Possible string values are: + * - "STRAIGHT" : Straight connectors, including straight connector 1. The is + * the default + * category when one is not specified. + * - "BENT" : Bent connectors, including bent connector 2 to 5. + * - "CURVED" : Curved connectors, including curved connector 2 to 5. + */ + core.String lineCategory; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * + * If you don't specify an ID, a unique one is generated. + */ + core.String objectId; + + CreateLineRequest(); + + CreateLineRequest.fromJson(core.Map _json) { + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("lineCategory")) { + lineCategory = _json["lineCategory"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (lineCategory != null) { + _json["lineCategory"] = lineCategory; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** The result of creating a line. */ +class CreateLineResponse { + /** The object ID of the created line. */ + core.String objectId; + + CreateLineResponse(); + + CreateLineResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** + * Creates bullets for all of the paragraphs that overlap with the given + * text index range. + * + * The nesting level of each paragraph will be determined by counting leading + * tabs in front of each paragraph. To avoid excess space between the bullet and + * the corresponding paragraph, these leading tabs are removed by this request. + * This may change the indices of parts of the text. + * + * If the paragraph immediately before paragraphs being updated is in a list + * with a matching preset, the paragraphs being updated are added to that + * preceding list. + */ +class CreateParagraphBulletsRequest { + /** + * The kinds of bullet glyphs to be used. Defaults to the + * `BULLET_DISC_CIRCLE_SQUARE` preset. + * Possible string values are: + * - "BULLET_DISC_CIRCLE_SQUARE" : A bulleted list with a `DISC`, `CIRCLE` and + * `SQUARE` bullet glyph for the + * first 3 list nesting levels. + * - "BULLET_DIAMONDX_ARROW3D_SQUARE" : A bulleted list with a `DIAMONDX`, + * `ARROW3D` and `SQUARE` bullet glyph for + * the first 3 list nesting levels. + * - "BULLET_CHECKBOX" : A bulleted list with `CHECKBOX` bullet glyphs for all + * list nesting levels. + * - "BULLET_ARROW_DIAMOND_DISC" : A bulleted list with a `ARROW`, `DIAMOND` + * and `DISC` bullet glyph for + * the first 3 list nesting levels. + * - "BULLET_STAR_CIRCLE_SQUARE" : A bulleted list with a `STAR`, `CIRCLE` and + * `DISC` bullet glyph for + * the first 3 list nesting levels. + * - "BULLET_ARROW3D_CIRCLE_SQUARE" : A bulleted list with a `ARROW3D`, + * `CIRCLE` and `SQUARE` bullet glyph for + * the first 3 list nesting levels. + * - "BULLET_LEFTTRIANGLE_DIAMOND_DISC" : A bulleted list with a + * `LEFTTRIANGLE`, `DIAMOND` and `DISC` bullet glyph + * for the first 3 list nesting levels. + * - "BULLET_DIAMONDX_HOLLOWDIAMOND_SQUARE" : A bulleted list with a + * `DIAMONDX`, `HOLLOWDIAMOND` and `SQUARE` bullet + * glyph for the first 3 list nesting levels. + * - "BULLET_DIAMOND_CIRCLE_SQUARE" : A bulleted list with a `DIAMOND`, + * `CIRCLE` and `SQUARE` bullet glyph + * for the first 3 list nesting levels. + * - "NUMBERED_DIGIT_ALPHA_ROMAN" : A numbered list with `DIGIT`, `ALPHA` and + * `ROMAN` numeric glyphs for + * the first 3 list nesting levels, followed by periods. + * - "NUMBERED_DIGIT_ALPHA_ROMAN_PARENS" : A numbered list with `DIGIT`, + * `ALPHA` and `ROMAN` numeric glyphs for + * the first 3 list nesting levels, followed by parenthesis. + * - "NUMBERED_DIGIT_NESTED" : A numbered list with `DIGIT` numeric glyphs + * separated by periods, where + * each nesting level uses the previous nesting level's glyph as a prefix. + * For example: '1.', '1.1.', '2.', '2.2.'. + * - "NUMBERED_UPPERALPHA_ALPHA_ROMAN" : A numbered list with `UPPERALPHA`, + * `ALPHA` and `ROMAN` numeric glyphs for + * the first 3 list nesting levels, followed by periods. + * - "NUMBERED_UPPERROMAN_UPPERALPHA_DIGIT" : A numbered list with + * `UPPERROMAN`, `UPPERALPHA` and `DIGIT` numeric glyphs + * for the first 3 list nesting levels, followed by periods. + * - "NUMBERED_ZERODIGIT_ALPHA_ROMAN" : A numbered list with `ZERODIGIT`, + * `ALPHA` and `ROMAN` numeric glyphs for + * the first 3 list nesting levels, followed by periods. + */ + core.String bulletPreset; + /** + * The optional table cell location if the text to be modified is in a table + * cell. If present, the object_id must refer to a table. + */ + TableCellLocation cellLocation; + /** + * The object ID of the shape or table containing the text to add bullets to. + */ + core.String objectId; + /** + * The range of text to apply the bullet presets to, based on TextElement + * indexes. + */ + Range textRange; + + CreateParagraphBulletsRequest(); + + CreateParagraphBulletsRequest.fromJson(core.Map _json) { + if (_json.containsKey("bulletPreset")) { + bulletPreset = _json["bulletPreset"]; + } + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("textRange")) { + textRange = new Range.fromJson(_json["textRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bulletPreset != null) { + _json["bulletPreset"] = bulletPreset; + } + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (textRange != null) { + _json["textRange"] = (textRange).toJson(); + } + return _json; + } +} + +/** Creates a new shape. */ +class CreateShapeRequest { + /** The element properties for the shape. */ + PageElementProperties elementProperties; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * If empty, a unique identifier will be generated. + */ + core.String objectId; + /** + * The shape type. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : The shape type that is not predefined. + * - "TEXT_BOX" : Text box shape. + * - "RECTANGLE" : Rectangle shape. Corresponds to ECMA-376 ST_ShapeType + * 'rect'. + * - "ROUND_RECTANGLE" : Round corner rectangle shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'roundRect' + * - "ELLIPSE" : Ellipse shape. Corresponds to ECMA-376 ST_ShapeType 'ellipse' + * - "ARC" : Curved arc shape. Corresponds to ECMA-376 ST_ShapeType 'arc' + * - "BENT_ARROW" : Bent arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'bentArrow' + * - "BENT_UP_ARROW" : Bent up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'bentUpArrow' + * - "BEVEL" : Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel' + * - "BLOCK_ARC" : Block arc shape. Corresponds to ECMA-376 ST_ShapeType + * 'blockArc' + * - "BRACE_PAIR" : Brace pair shape. Corresponds to ECMA-376 ST_ShapeType + * 'bracePair' + * - "BRACKET_PAIR" : Bracket pair shape. Corresponds to ECMA-376 ST_ShapeType + * 'bracketPair' + * - "CAN" : Can shape. Corresponds to ECMA-376 ST_ShapeType 'can' + * - "CHEVRON" : Chevron shape. Corresponds to ECMA-376 ST_ShapeType 'chevron' + * - "CHORD" : Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord' + * - "CLOUD" : Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud' + * - "CORNER" : Corner shape. Corresponds to ECMA-376 ST_ShapeType 'corner' + * - "CUBE" : Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube' + * - "CURVED_DOWN_ARROW" : Curved down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedDownArrow' + * - "CURVED_LEFT_ARROW" : Curved left arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedLeftArrow' + * - "CURVED_RIGHT_ARROW" : Curved right arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedRightArrow' + * - "CURVED_UP_ARROW" : Curved up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedUpArrow' + * - "DECAGON" : Decagon shape. Corresponds to ECMA-376 ST_ShapeType 'decagon' + * - "DIAGONAL_STRIPE" : Diagonal stripe shape. Corresponds to ECMA-376 + * ST_ShapeType 'diagStripe' + * - "DIAMOND" : Diamond shape. Corresponds to ECMA-376 ST_ShapeType 'diamond' + * - "DODECAGON" : Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'dodecagon' + * - "DONUT" : Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut' + * - "DOUBLE_WAVE" : Double wave shape. Corresponds to ECMA-376 ST_ShapeType + * 'doubleWave' + * - "DOWN_ARROW" : Down arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'downArrow' + * - "DOWN_ARROW_CALLOUT" : Callout down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'downArrowCallout' + * - "FOLDED_CORNER" : Folded corner shape. Corresponds to ECMA-376 + * ST_ShapeType 'foldedCorner' + * - "FRAME" : Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame' + * - "HALF_FRAME" : Half frame shape. Corresponds to ECMA-376 ST_ShapeType + * 'halfFrame' + * - "HEART" : Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart' + * - "HEPTAGON" : Heptagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'heptagon' + * - "HEXAGON" : Hexagon shape. Corresponds to ECMA-376 ST_ShapeType 'hexagon' + * - "HOME_PLATE" : Home plate shape. Corresponds to ECMA-376 ST_ShapeType + * 'homePlate' + * - "HORIZONTAL_SCROLL" : Horizontal scroll shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'horizontalScroll' + * - "IRREGULAR_SEAL_1" : Irregular seal 1 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'irregularSeal1' + * - "IRREGULAR_SEAL_2" : Irregular seal 2 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'irregularSeal2' + * - "LEFT_ARROW" : Left arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftArrow' + * - "LEFT_ARROW_CALLOUT" : Callout left arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'leftArrowCallout' + * - "LEFT_BRACE" : Left brace shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftBrace' + * - "LEFT_BRACKET" : Left bracket shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftBracket' + * - "LEFT_RIGHT_ARROW" : Left right arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'leftRightArrow' + * - "LEFT_RIGHT_ARROW_CALLOUT" : Callout left right arrow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'leftRightArrowCallout' + * - "LEFT_RIGHT_UP_ARROW" : Left right up arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'leftRightUpArrow' + * - "LEFT_UP_ARROW" : Left up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'leftUpArrow' + * - "LIGHTNING_BOLT" : Lightning bolt shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'lightningBolt' + * - "MATH_DIVIDE" : Divide math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathDivide' + * - "MATH_EQUAL" : Equal math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathEqual' + * - "MATH_MINUS" : Minus math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathMinus' + * - "MATH_MULTIPLY" : Multiply math shape. Corresponds to ECMA-376 + * ST_ShapeType 'mathMultiply' + * - "MATH_NOT_EQUAL" : Not equal math shape. Corresponds to ECMA-376 + * ST_ShapeType 'mathNotEqual' + * - "MATH_PLUS" : Plus math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathPlus' + * - "MOON" : Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon' + * - "NO_SMOKING" : No smoking shape. Corresponds to ECMA-376 ST_ShapeType + * 'noSmoking' + * - "NOTCHED_RIGHT_ARROW" : Notched right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'notchedRightArrow' + * - "OCTAGON" : Octagon shape. Corresponds to ECMA-376 ST_ShapeType 'octagon' + * - "PARALLELOGRAM" : Parallelogram shape. Corresponds to ECMA-376 + * ST_ShapeType 'parallelogram' + * - "PENTAGON" : Pentagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'pentagon' + * - "PIE" : Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie' + * - "PLAQUE" : Plaque shape. Corresponds to ECMA-376 ST_ShapeType 'plaque' + * - "PLUS" : Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus' + * - "QUAD_ARROW" : Quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'quadArrow' + * - "QUAD_ARROW_CALLOUT" : Callout quad-arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'quadArrowCallout' + * - "RIBBON" : Ribbon shape. Corresponds to ECMA-376 ST_ShapeType 'ribbon' + * - "RIBBON_2" : Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType + * 'ribbon2' + * - "RIGHT_ARROW" : Right arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'rightArrow' + * - "RIGHT_ARROW_CALLOUT" : Callout right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'rightArrowCallout' + * - "RIGHT_BRACE" : Right brace shape. Corresponds to ECMA-376 ST_ShapeType + * 'rightBrace' + * - "RIGHT_BRACKET" : Right bracket shape. Corresponds to ECMA-376 + * ST_ShapeType 'rightBracket' + * - "ROUND_1_RECTANGLE" : One round corner rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'round1Rect' + * - "ROUND_2_DIAGONAL_RECTANGLE" : Two diagonal round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'round2DiagRect' + * - "ROUND_2_SAME_RECTANGLE" : Two same-side round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'round2SameRect' + * - "RIGHT_TRIANGLE" : Right triangle shape. Corresponds to ECMA-376 + * ST_ShapeType 'rtTriangle' + * - "SMILEY_FACE" : Smiley face shape. Corresponds to ECMA-376 ST_ShapeType + * 'smileyFace' + * - "SNIP_1_RECTANGLE" : One snip corner rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'snip1Rect' + * - "SNIP_2_DIAGONAL_RECTANGLE" : Two diagonal snip corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snip2DiagRect' + * - "SNIP_2_SAME_RECTANGLE" : Two same-side snip corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snip2SameRect' + * - "SNIP_ROUND_RECTANGLE" : One snip one round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snipRoundRect' + * - "STAR_10" : Ten pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star10' + * - "STAR_12" : Twelve pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType 'star12' + * - "STAR_16" : Sixteen pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType 'star16' + * - "STAR_24" : Twenty four pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'star24' + * - "STAR_32" : Thirty two pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'star32' + * - "STAR_4" : Four pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star4' + * - "STAR_5" : Five pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star5' + * - "STAR_6" : Six pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star6' + * - "STAR_7" : Seven pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star7' + * - "STAR_8" : Eight pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star8' + * - "STRIPED_RIGHT_ARROW" : Striped right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'stripedRightArrow' + * - "SUN" : Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun' + * - "TRAPEZOID" : Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType + * 'trapezoid' + * - "TRIANGLE" : Triangle shape. Corresponds to ECMA-376 ST_ShapeType + * 'triangle' + * - "UP_ARROW" : Up arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'upArrow' + * - "UP_ARROW_CALLOUT" : Callout up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'upArrowCallout' + * - "UP_DOWN_ARROW" : Up down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'upDownArrow' + * - "UTURN_ARROW" : U-turn arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'uturnArrow' + * - "VERTICAL_SCROLL" : Vertical scroll shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'verticalScroll' + * - "WAVE" : Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave' + * - "WEDGE_ELLIPSE_CALLOUT" : Callout wedge ellipse shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'wedgeEllipseCallout' + * - "WEDGE_RECTANGLE_CALLOUT" : Callout wedge rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'wedgeRectCallout' + * - "WEDGE_ROUND_RECTANGLE_CALLOUT" : Callout wedge round rectangle shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'wedgeRoundRectCallout' + * - "FLOW_CHART_ALTERNATE_PROCESS" : Alternate process flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartAlternateProcess' + * - "FLOW_CHART_COLLATE" : Collate flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartCollate' + * - "FLOW_CHART_CONNECTOR" : Connector flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartConnector' + * - "FLOW_CHART_DECISION" : Decision flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDecision' + * - "FLOW_CHART_DELAY" : Delay flow shape. Corresponds to ECMA-376 + * ST_ShapeType 'flowChartDelay' + * - "FLOW_CHART_DISPLAY" : Display flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDisplay' + * - "FLOW_CHART_DOCUMENT" : Document flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDocument' + * - "FLOW_CHART_EXTRACT" : Extract flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartExtract' + * - "FLOW_CHART_INPUT_OUTPUT" : Input output flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartInputOutput' + * - "FLOW_CHART_INTERNAL_STORAGE" : Internal storage flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartInternalStorage' + * - "FLOW_CHART_MAGNETIC_DISK" : Magnetic disk flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticDisk' + * - "FLOW_CHART_MAGNETIC_DRUM" : Magnetic drum flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticDrum' + * - "FLOW_CHART_MAGNETIC_TAPE" : Magnetic tape flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticTape' + * - "FLOW_CHART_MANUAL_INPUT" : Manual input flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartManualInput' + * - "FLOW_CHART_MANUAL_OPERATION" : Manual operation flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartManualOperation' + * - "FLOW_CHART_MERGE" : Merge flow shape. Corresponds to ECMA-376 + * ST_ShapeType 'flowChartMerge' + * - "FLOW_CHART_MULTIDOCUMENT" : Multi-document flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMultidocument' + * - "FLOW_CHART_OFFLINE_STORAGE" : Offline storage flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartOfflineStorage' + * - "FLOW_CHART_OFFPAGE_CONNECTOR" : Off-page connector flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartOffpageConnector' + * - "FLOW_CHART_ONLINE_STORAGE" : Online storage flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartOnlineStorage' + * - "FLOW_CHART_OR" : Or flow shape. Corresponds to ECMA-376 ST_ShapeType + * 'flowChartOr' + * - "FLOW_CHART_PREDEFINED_PROCESS" : Predefined process flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartPredefinedProcess' + * - "FLOW_CHART_PREPARATION" : Preparation flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPreparation' + * - "FLOW_CHART_PROCESS" : Process flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartProcess' + * - "FLOW_CHART_PUNCHED_CARD" : Punched card flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPunchedCard' + * - "FLOW_CHART_PUNCHED_TAPE" : Punched tape flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPunchedTape' + * - "FLOW_CHART_SORT" : Sort flow shape. Corresponds to ECMA-376 ST_ShapeType + * 'flowChartSort' + * - "FLOW_CHART_SUMMING_JUNCTION" : Summing junction flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartSummingJunction' + * - "FLOW_CHART_TERMINATOR" : Terminator flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartTerminator' + * - "ARROW_EAST" : East arrow shape. + * - "ARROW_NORTH_EAST" : Northeast arrow shape. + * - "ARROW_NORTH" : North arrow shape. + * - "SPEECH" : Speech shape. + * - "STARBURST" : Star burst shape. + * - "TEARDROP" : Teardrop shape. Corresponds to ECMA-376 ST_ShapeType + * 'teardrop' + * - "ELLIPSE_RIBBON" : Ellipse ribbon shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'ellipseRibbon' + * - "ELLIPSE_RIBBON_2" : Ellipse ribbon 2 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'ellipseRibbon2' + * - "CLOUD_CALLOUT" : Callout cloud shape. Corresponds to ECMA-376 + * ST_ShapeType 'cloudCallout' + * - "CUSTOM" : Custom shape. + */ + core.String shapeType; + + CreateShapeRequest(); + + CreateShapeRequest.fromJson(core.Map _json) { + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("shapeType")) { + shapeType = _json["shapeType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (shapeType != null) { + _json["shapeType"] = shapeType; + } + return _json; + } +} + +/** The result of creating a shape. */ +class CreateShapeResponse { + /** The object ID of the created shape. */ + core.String objectId; + + CreateShapeResponse(); + + CreateShapeResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** + * Creates an embedded Google Sheets chart. + * + * NOTE: Chart creation requires at least one of the spreadsheets.readonly, + * spreadsheets, drive.readonly, or drive OAuth scopes. + */ +class CreateSheetsChartRequest { + /** The ID of the specific chart in the Google Sheets spreadsheet. */ + core.int chartId; + /** + * The element properties for the chart. + * + * When the aspect ratio of the provided size does not match the chart aspect + * ratio, the chart is scaled and centered with respect to the size in order + * to maintain aspect ratio. The provided transform is applied after this + * operation. + */ + PageElementProperties elementProperties; + /** + * The mode with which the chart is linked to the source spreadsheet. When + * not specified, the chart will be an image that is not linked. + * Possible string values are: + * - "NOT_LINKED_IMAGE" : The chart is not associated with the source + * spreadsheet and cannot be + * updated. A chart that is not linked will be inserted as an image. + * - "LINKED" : Linking the chart allows it to be updated, and other + * collaborators will + * see a link to the spreadsheet. + */ + core.String linkingMode; + /** + * A user-supplied object ID. + * + * If specified, the ID must be unique among all pages and page elements in + * the presentation. The ID should start with a word character [a-zA-Z0-9_] + * and then followed by any number of the following characters [a-zA-Z0-9_-:]. + * The length of the ID should not be less than 5 or greater than 50. + * If empty, a unique identifier will be generated. + */ + core.String objectId; + /** The ID of the Google Sheets spreadsheet that contains the chart. */ + core.String spreadsheetId; + + CreateSheetsChartRequest(); + + CreateSheetsChartRequest.fromJson(core.Map _json) { + if (_json.containsKey("chartId")) { + chartId = _json["chartId"]; + } + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("linkingMode")) { + linkingMode = _json["linkingMode"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("spreadsheetId")) { + spreadsheetId = _json["spreadsheetId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (chartId != null) { + _json["chartId"] = chartId; + } + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (linkingMode != null) { + _json["linkingMode"] = linkingMode; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (spreadsheetId != null) { + _json["spreadsheetId"] = spreadsheetId; + } + return _json; + } +} + +/** The result of creating an embedded Google Sheets chart. */ +class CreateSheetsChartResponse { + /** The object ID of the created chart. */ + core.String objectId; + + CreateSheetsChartResponse(); + + CreateSheetsChartResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Creates a new slide. */ +class CreateSlideRequest { + /** + * The optional zero-based index indicating where to insert the slides. + * + * If you don't specify an index, the new slide is created at the end. + */ + core.int insertionIndex; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * + * If you don't specify an ID, a unique one is generated. + */ + core.String objectId; + /** + * Layout reference of the slide to be inserted, based on the *current + * master*, which is one of the following: + * + * - The master of the previous slide index. + * - The master of the first slide, if the insertion_index is zero. + * - The first master in the presentation, if there are no slides. + * + * If the LayoutReference is not found in the current master, a 400 bad + * request error is returned. + * + * If you don't specify a layout reference, then the new slide will use the + * predefined layout `BLANK`. + */ + LayoutReference slideLayoutReference; + + CreateSlideRequest(); + + CreateSlideRequest.fromJson(core.Map _json) { + if (_json.containsKey("insertionIndex")) { + insertionIndex = _json["insertionIndex"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("slideLayoutReference")) { + slideLayoutReference = new LayoutReference.fromJson(_json["slideLayoutReference"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (insertionIndex != null) { + _json["insertionIndex"] = insertionIndex; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (slideLayoutReference != null) { + _json["slideLayoutReference"] = (slideLayoutReference).toJson(); + } + return _json; + } +} + +/** The result of creating a slide. */ +class CreateSlideResponse { + /** The object ID of the created slide. */ + core.String objectId; + + CreateSlideResponse(); + + CreateSlideResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Creates a new table. */ +class CreateTableRequest { + /** Number of columns in the table. */ + core.int columns; + /** + * The element properties for the table. + * + * The table will be created at the provided size, subject to a minimum size. + * If no size is provided, the table will be automatically sized. + * + * Table transforms must have a scale of 1 and no shear components. If no + * transform is provided, the table will be centered on the page. + */ + PageElementProperties elementProperties; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * + * If you don't specify an ID, a unique one is generated. + */ + core.String objectId; + /** Number of rows in the table. */ + core.int rows; + + CreateTableRequest(); + + CreateTableRequest.fromJson(core.Map _json) { + if (_json.containsKey("columns")) { + columns = _json["columns"]; + } + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("rows")) { + rows = _json["rows"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columns != null) { + _json["columns"] = columns; + } + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (rows != null) { + _json["rows"] = rows; + } + return _json; + } +} + +/** The result of creating a table. */ +class CreateTableResponse { + /** The object ID of the created table. */ + core.String objectId; + + CreateTableResponse(); + + CreateTableResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Creates a video. */ +class CreateVideoRequest { + /** The element properties for the video. */ + PageElementProperties elementProperties; + /** + * The video source's unique identifier for this video. + * + * e.g. For YouTube video https://www.youtube.com/watch?v=7U3axjORYZ0, + * the ID is 7U3axjORYZ0. + */ + core.String id; + /** + * A user-supplied object ID. + * + * If you specify an ID, it must be unique among all pages and page elements + * in the presentation. The ID must start with an alphanumeric character or an + * underscore (matches regex `[a-zA-Z0-9_]`); remaining characters + * may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). + * The length of the ID must not be less than 5 or greater than 50. + * + * If you don't specify an ID, a unique one is generated. + */ + core.String objectId; + /** + * The video source. + * Possible string values are: + * - "SOURCE_UNSPECIFIED" : The video source is unspecified. + * - "YOUTUBE" : The video source is YouTube. + */ + core.String source; + + CreateVideoRequest(); + + CreateVideoRequest.fromJson(core.Map _json) { + if (_json.containsKey("elementProperties")) { + elementProperties = new PageElementProperties.fromJson(_json["elementProperties"]); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("source")) { + source = _json["source"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (elementProperties != null) { + _json["elementProperties"] = (elementProperties).toJson(); + } + if (id != null) { + _json["id"] = id; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (source != null) { + _json["source"] = source; + } + return _json; + } +} + +/** The result of creating a video. */ +class CreateVideoResponse { + /** The object ID of the created video. */ + core.String objectId; + + CreateVideoResponse(); + + CreateVideoResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** + * The crop properties of an object enclosed in a container. For example, an + * Image. + * + * The crop properties is represented by the offsets of four edges which define + * a crop rectangle. The offsets are measured in percentage from the + * corresponding edges of the object's original bounding rectangle towards + * inside, relative to the object's original dimensions. + * + * - If the offset is in the interval (0, 1), the corresponding edge of crop + * rectangle is positioned inside of the object's original bounding rectangle. + * - If the offset is negative or greater than 1, the corresponding edge of crop + * rectangle is positioned outside of the object's original bounding rectangle. + * - If the left edge of the crop rectangle is on the right side of its right + * edge, the object will be flipped horizontally. + * - If the top edge of the crop rectangle is below its bottom edge, the object + * will be flipped vertically. + * - If all offsets and rotation angle is 0, the object is not cropped. + * + * After cropping, the content in the crop rectangle will be stretched to fit + * its container. + */ +class CropProperties { + /** + * The rotation angle of the crop window around its center, in radians. + * Rotation angle is applied after the offset. + */ + core.double angle; + /** + * The offset specifies the bottom edge of the crop rectangle that is located + * above the original bounding rectangle bottom edge, relative to the object's + * original height. + */ + core.double bottomOffset; + /** + * The offset specifies the left edge of the crop rectangle that is located to + * the right of the original bounding rectangle left edge, relative to the + * object's original width. + */ + core.double leftOffset; + /** + * The offset specifies the right edge of the crop rectangle that is located + * to the left of the original bounding rectangle right edge, relative to the + * object's original width. + */ + core.double rightOffset; + /** + * The offset specifies the top edge of the crop rectangle that is located + * below the original bounding rectangle top edge, relative to the object's + * original height. + */ + core.double topOffset; + + CropProperties(); + + CropProperties.fromJson(core.Map _json) { + if (_json.containsKey("angle")) { + angle = _json["angle"]; + } + if (_json.containsKey("bottomOffset")) { + bottomOffset = _json["bottomOffset"]; + } + if (_json.containsKey("leftOffset")) { + leftOffset = _json["leftOffset"]; + } + if (_json.containsKey("rightOffset")) { + rightOffset = _json["rightOffset"]; + } + if (_json.containsKey("topOffset")) { + topOffset = _json["topOffset"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (angle != null) { + _json["angle"] = angle; + } + if (bottomOffset != null) { + _json["bottomOffset"] = bottomOffset; + } + if (leftOffset != null) { + _json["leftOffset"] = leftOffset; + } + if (rightOffset != null) { + _json["rightOffset"] = rightOffset; + } + if (topOffset != null) { + _json["topOffset"] = topOffset; + } + return _json; + } +} + +/** + * Deletes an object, either pages or + * page elements, from the + * presentation. + */ +class DeleteObjectRequest { + /** + * The object ID of the page or page element to delete. + * + * If after a delete operation a group contains + * only 1 or no page elements, the group is also deleted. + * + * If a placeholder is deleted on a layout, any empty inheriting shapes are + * also deleted. + */ + core.String objectId; + + DeleteObjectRequest(); + + DeleteObjectRequest.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Deletes a column from a table. */ +class DeleteTableColumnRequest { + /** + * The reference table cell location from which a column will be deleted. + * + * The column this cell spans will be deleted. If this is a merged cell, + * multiple columns will be deleted. If no columns remain in the table after + * this deletion, the whole table is deleted. + */ + TableCellLocation cellLocation; + /** The table to delete columns from. */ + core.String tableObjectId; + + DeleteTableColumnRequest(); + + DeleteTableColumnRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("tableObjectId")) { + tableObjectId = _json["tableObjectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (tableObjectId != null) { + _json["tableObjectId"] = tableObjectId; + } + return _json; + } +} + +/** Deletes a row from a table. */ +class DeleteTableRowRequest { + /** + * The reference table cell location from which a row will be deleted. + * + * The row this cell spans will be deleted. If this is a merged cell, multiple + * rows will be deleted. If no rows remain in the table after this deletion, + * the whole table is deleted. + */ + TableCellLocation cellLocation; + /** The table to delete rows from. */ + core.String tableObjectId; + + DeleteTableRowRequest(); + + DeleteTableRowRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("tableObjectId")) { + tableObjectId = _json["tableObjectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (tableObjectId != null) { + _json["tableObjectId"] = tableObjectId; + } + return _json; + } +} + +/** Deletes text from a shape or a table cell. */ +class DeleteTextRequest { + /** + * The optional table cell location if the text is to be deleted from a table + * cell. If present, the object_id must refer to a table. + */ + TableCellLocation cellLocation; + /** + * The object ID of the shape or table from which the text will be deleted. + */ + core.String objectId; + /** + * The range of text to delete, based on TextElement indexes. + * + * There is always an implicit newline character at the end of a shape's or + * table cell's text that cannot be deleted. `Range.Type.ALL` will use the + * correct bounds, but care must be taken when specifying explicit bounds for + * range types `FROM_START_INDEX` and `FIXED_RANGE`. For example, if the text + * is "ABC", followed by an implicit newline, then the maximum value is 2 for + * `text_range.start_index` and 3 for `text_range.end_index`. + * + * Deleting text that crosses a paragraph boundary may result in changes + * to paragraph styles and lists as the two paragraphs are merged. + * + * Ranges that include only one code unit of a surrogate pair are expanded to + * include both code units. + */ + Range textRange; + + DeleteTextRequest(); + + DeleteTextRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("textRange")) { + textRange = new Range.fromJson(_json["textRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (textRange != null) { + _json["textRange"] = (textRange).toJson(); + } + return _json; + } +} + +/** A magnitude in a single direction in the specified units. */ +class Dimension { + /** The magnitude. */ + core.double magnitude; + /** + * The units for magnitude. + * Possible string values are: + * - "UNIT_UNSPECIFIED" : The units are unknown. + * - "EMU" : An English Metric Unit (EMU) is defined as 1/360,000 of a + * centimeter + * and thus there are 914,400 EMUs per inch, and 12,700 EMUs per point. + * - "PT" : A point, 1/72 of an inch. + */ + core.String unit; + + Dimension(); + + Dimension.fromJson(core.Map _json) { + if (_json.containsKey("magnitude")) { + magnitude = _json["magnitude"]; + } + if (_json.containsKey("unit")) { + unit = _json["unit"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (magnitude != null) { + _json["magnitude"] = magnitude; + } + if (unit != null) { + _json["unit"] = unit; + } + return _json; + } +} + +/** + * Duplicates a slide or page element. + * + * When duplicating a slide, the duplicate slide will be created immediately + * following the specified slide. When duplicating a page element, the duplicate + * will be placed on the same page at the same position as the original. + */ +class DuplicateObjectRequest { + /** The ID of the object to duplicate. */ + core.String objectId; + /** + * The object being duplicated may contain other objects, for example when + * duplicating a slide or a group page element. This map defines how the IDs + * of duplicated objects are generated: the keys are the IDs of the original + * objects and its values are the IDs that will be assigned to the + * corresponding duplicate object. The ID of the source object's duplicate + * may be specified in this map as well, using the same value of the + * `object_id` field as a key and the newly desired ID as the value. + * + * All keys must correspond to existing IDs in the presentation. All values + * must be unique in the presentation and must start with an alphanumeric + * character or an underscore (matches regex `[a-zA-Z0-9_]`); remaining + * characters may include those as well as a hyphen or colon (matches regex + * `[a-zA-Z0-9_-:]`). The length of the new ID must not be less than 5 or + * greater than 50. + * + * If any IDs of source objects are omitted from the map, a new random ID will + * be assigned. If the map is empty or unset, all duplicate objects will + * receive a new random ID. + */ + core.Map<core.String, core.String> objectIds; + + DuplicateObjectRequest(); + + DuplicateObjectRequest.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("objectIds")) { + objectIds = _json["objectIds"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + if (objectIds != null) { + _json["objectIds"] = objectIds; + } + return _json; + } +} + +/** The response of duplicating an object. */ +class DuplicateObjectResponse { + /** The ID of the new duplicate object. */ + core.String objectId; + + DuplicateObjectResponse(); + + DuplicateObjectResponse.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** + * A PageElement kind representing a + * joined collection of PageElements. + */ +class Group { + /** + * The collection of elements in the group. The minimum size of a group is 2. + */ + core.List<PageElement> children; + + Group(); + + Group.fromJson(core.Map _json) { + if (_json.containsKey("children")) { + children = _json["children"].map((value) => new PageElement.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (children != null) { + _json["children"] = children.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * A PageElement kind representing an + * image. + */ +class Image { + /** + * An URL to an image with a default lifetime of 30 minutes. + * This URL is tagged with the account of the requester. Anyone with the URL + * effectively accesses the image as the original requester. Access to the + * image may be lost if the presentation's sharing settings change. + */ + core.String contentUrl; + /** The properties of the image. */ + ImageProperties imageProperties; + + Image(); + + Image.fromJson(core.Map _json) { + if (_json.containsKey("contentUrl")) { + contentUrl = _json["contentUrl"]; + } + if (_json.containsKey("imageProperties")) { + imageProperties = new ImageProperties.fromJson(_json["imageProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contentUrl != null) { + _json["contentUrl"] = contentUrl; + } + if (imageProperties != null) { + _json["imageProperties"] = (imageProperties).toJson(); + } + return _json; + } +} + +/** The properties of the Image. */ +class ImageProperties { + /** + * The brightness effect of the image. The value should be in the interval + * [-1.0, 1.0], where 0 means no effect. This property is read-only. + */ + core.double brightness; + /** + * The contrast effect of the image. The value should be in the interval + * [-1.0, 1.0], where 0 means no effect. This property is read-only. + */ + core.double contrast; + /** + * The crop properties of the image. If not set, the image is not cropped. + * This property is read-only. + */ + CropProperties cropProperties; + /** The hyperlink destination of the image. If unset, there is no link. */ + Link link; + /** The outline of the image. If not set, the the image has no outline. */ + Outline outline; + /** + * The recolor effect of the image. If not set, the image is not recolored. + * This property is read-only. + */ + Recolor recolor; + /** + * The shadow of the image. If not set, the image has no shadow. This property + * is read-only. + */ + Shadow shadow; + /** + * The transparency effect of the image. The value should be in the interval + * [0.0, 1.0], where 0 means no effect and 1 means completely transparent. + * This property is read-only. + */ + core.double transparency; + + ImageProperties(); + + ImageProperties.fromJson(core.Map _json) { + if (_json.containsKey("brightness")) { + brightness = _json["brightness"]; + } + if (_json.containsKey("contrast")) { + contrast = _json["contrast"]; + } + if (_json.containsKey("cropProperties")) { + cropProperties = new CropProperties.fromJson(_json["cropProperties"]); + } + if (_json.containsKey("link")) { + link = new Link.fromJson(_json["link"]); + } + if (_json.containsKey("outline")) { + outline = new Outline.fromJson(_json["outline"]); + } + if (_json.containsKey("recolor")) { + recolor = new Recolor.fromJson(_json["recolor"]); + } + if (_json.containsKey("shadow")) { + shadow = new Shadow.fromJson(_json["shadow"]); + } + if (_json.containsKey("transparency")) { + transparency = _json["transparency"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (brightness != null) { + _json["brightness"] = brightness; + } + if (contrast != null) { + _json["contrast"] = contrast; + } + if (cropProperties != null) { + _json["cropProperties"] = (cropProperties).toJson(); + } + if (link != null) { + _json["link"] = (link).toJson(); + } + if (outline != null) { + _json["outline"] = (outline).toJson(); + } + if (recolor != null) { + _json["recolor"] = (recolor).toJson(); + } + if (shadow != null) { + _json["shadow"] = (shadow).toJson(); + } + if (transparency != null) { + _json["transparency"] = transparency; + } + return _json; + } +} + +/** + * Inserts columns into a table. + * + * Other columns in the table will be resized to fit the new column. + */ +class InsertTableColumnsRequest { + /** + * The reference table cell location from which columns will be inserted. + * + * A new column will be inserted to the left (or right) of the column where + * the reference cell is. If the reference cell is a merged cell, a new + * column will be inserted to the left (or right) of the merged cell. + */ + TableCellLocation cellLocation; + /** + * Whether to insert new columns to the right of the reference cell location. + * + * - `True`: insert to the right. + * - `False`: insert to the left. + */ + core.bool insertRight; + /** The number of columns to be inserted. Maximum 20 per request. */ + core.int number; + /** The table to insert columns into. */ + core.String tableObjectId; + + InsertTableColumnsRequest(); + + InsertTableColumnsRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("insertRight")) { + insertRight = _json["insertRight"]; + } + if (_json.containsKey("number")) { + number = _json["number"]; + } + if (_json.containsKey("tableObjectId")) { + tableObjectId = _json["tableObjectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (insertRight != null) { + _json["insertRight"] = insertRight; + } + if (number != null) { + _json["number"] = number; + } + if (tableObjectId != null) { + _json["tableObjectId"] = tableObjectId; + } + return _json; + } +} + +/** Inserts rows into a table. */ +class InsertTableRowsRequest { + /** + * The reference table cell location from which rows will be inserted. + * + * A new row will be inserted above (or below) the row where the reference + * cell is. If the reference cell is a merged cell, a new row will be + * inserted above (or below) the merged cell. + */ + TableCellLocation cellLocation; + /** + * Whether to insert new rows below the reference cell location. + * + * - `True`: insert below the cell. + * - `False`: insert above the cell. + */ + core.bool insertBelow; + /** The number of rows to be inserted. Maximum 20 per request. */ + core.int number; + /** The table to insert rows into. */ + core.String tableObjectId; + + InsertTableRowsRequest(); + + InsertTableRowsRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("insertBelow")) { + insertBelow = _json["insertBelow"]; + } + if (_json.containsKey("number")) { + number = _json["number"]; + } + if (_json.containsKey("tableObjectId")) { + tableObjectId = _json["tableObjectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (insertBelow != null) { + _json["insertBelow"] = insertBelow; + } + if (number != null) { + _json["number"] = number; + } + if (tableObjectId != null) { + _json["tableObjectId"] = tableObjectId; + } + return _json; + } +} + +/** Inserts text into a shape or a table cell. */ +class InsertTextRequest { + /** + * The optional table cell location if the text is to be inserted into a table + * cell. If present, the object_id must refer to a table. + */ + TableCellLocation cellLocation; + /** + * The index where the text will be inserted, in Unicode code units, based + * on TextElement indexes. + * + * The index is zero-based and is computed from the start of the string. + * The index may be adjusted to prevent insertions inside Unicode grapheme + * clusters. In these cases, the text will be inserted immediately after the + * grapheme cluster. + */ + core.int insertionIndex; + /** The object ID of the shape or table where the text will be inserted. */ + core.String objectId; + /** + * The text to be inserted. + * + * Inserting a newline character will implicitly create a new + * ParagraphMarker at that index. + * The paragraph style of the new paragraph will be copied from the paragraph + * at the current insertion index, including lists and bullets. + * + * Text styles for inserted text will be determined automatically, generally + * preserving the styling of neighboring text. In most cases, the text will be + * added to the TextRun that exists at the + * insertion index. + * + * Some control characters (U+0000-U+0008, U+000C-U+001F) and characters + * from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF) + * will be stripped out of the inserted text. + */ + core.String text; + + InsertTextRequest(); + + InsertTextRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("insertionIndex")) { + insertionIndex = _json["insertionIndex"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("text")) { + text = _json["text"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (insertionIndex != null) { + _json["insertionIndex"] = insertionIndex; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (text != null) { + _json["text"] = text; + } + return _json; + } +} + +/** + * The properties of Page are only + * relevant for pages with page_type LAYOUT. + */ +class LayoutProperties { + /** The human readable name of the layout in the presentation's locale. */ + core.String displayName; + /** The object ID of the master that this layout is based on. */ + core.String masterObjectId; + /** The name of the layout. */ + core.String name; + + LayoutProperties(); + + LayoutProperties.fromJson(core.Map _json) { + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("masterObjectId")) { + masterObjectId = _json["masterObjectId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (displayName != null) { + _json["displayName"] = displayName; + } + if (masterObjectId != null) { + _json["masterObjectId"] = masterObjectId; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** + * Slide layout reference. This may reference either: + * + * - A predefined layout + * - One of the layouts in the presentation. + */ +class LayoutReference { + /** Layout ID: the object ID of one of the layouts in the presentation. */ + core.String layoutId; + /** + * Predefined layout. + * Possible string values are: + * - "PREDEFINED_LAYOUT_UNSPECIFIED" : Unspecified layout. + * - "BLANK" : Blank layout, with no placeholders. + * - "CAPTION_ONLY" : Layout with a caption at the bottom. + * - "TITLE" : Layout with a title and a subtitle. + * - "TITLE_AND_BODY" : Layout with a title and body. + * - "TITLE_AND_TWO_COLUMNS" : Layout with a title and two columns. + * - "TITLE_ONLY" : Layout with only a title. + * - "SECTION_HEADER" : Layout with a section title. + * - "SECTION_TITLE_AND_DESCRIPTION" : Layout with a title and subtitle on one + * side and description on the other. + * - "ONE_COLUMN_TEXT" : Layout with one title and one body, arranged in a + * single column. + * - "MAIN_POINT" : Layout with a main point. + * - "BIG_NUMBER" : Layout with a big number heading. + */ + core.String predefinedLayout; + + LayoutReference(); + + LayoutReference.fromJson(core.Map _json) { + if (_json.containsKey("layoutId")) { + layoutId = _json["layoutId"]; + } + if (_json.containsKey("predefinedLayout")) { + predefinedLayout = _json["predefinedLayout"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (layoutId != null) { + _json["layoutId"] = layoutId; + } + if (predefinedLayout != null) { + _json["predefinedLayout"] = predefinedLayout; + } + return _json; + } +} + +/** + * A PageElement kind representing a + * line, curved connector, or bent connector. + */ +class Line { + /** The properties of the line. */ + LineProperties lineProperties; + /** + * The type of the line. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : An unspecified line type. + * - "STRAIGHT_CONNECTOR_1" : Straight connector 1 form. Corresponds to + * ECMA-376 ST_ShapeType + * 'straightConnector1'. + * - "BENT_CONNECTOR_2" : Bent connector 2 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'bentConnector2'. + * - "BENT_CONNECTOR_3" : Bent connector 3 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'bentConnector3'. + * - "BENT_CONNECTOR_4" : Bent connector 4 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'bentConnector4'. + * - "BENT_CONNECTOR_5" : Bent connector 5 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'bentConnector5'. + * - "CURVED_CONNECTOR_2" : Curved connector 2 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedConnector2'. + * - "CURVED_CONNECTOR_3" : Curved connector 3 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedConnector3'. + * - "CURVED_CONNECTOR_4" : Curved connector 4 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedConnector4'. + * - "CURVED_CONNECTOR_5" : Curved connector 5 form. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedConnector5'. + */ + core.String lineType; + + Line(); + + Line.fromJson(core.Map _json) { + if (_json.containsKey("lineProperties")) { + lineProperties = new LineProperties.fromJson(_json["lineProperties"]); + } + if (_json.containsKey("lineType")) { + lineType = _json["lineType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (lineProperties != null) { + _json["lineProperties"] = (lineProperties).toJson(); + } + if (lineType != null) { + _json["lineType"] = lineType; + } + return _json; + } +} + +/** The fill of the line. */ +class LineFill { + /** Solid color fill. */ + SolidFill solidFill; + + LineFill(); + + LineFill.fromJson(core.Map _json) { + if (_json.containsKey("solidFill")) { + solidFill = new SolidFill.fromJson(_json["solidFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (solidFill != null) { + _json["solidFill"] = (solidFill).toJson(); + } + return _json; + } +} + +/** + * The properties of the Line. + * + * When unset, these fields default to values that match the appearance of + * new lines created in the Slides editor. + */ +class LineProperties { + /** + * The dash style of the line. + * Possible string values are: + * - "DASH_STYLE_UNSPECIFIED" : Unspecified dash style. + * - "SOLID" : Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'solid'. + * This is the default dash style. + * - "DOT" : Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'dot'. + * - "DASH" : Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'dash'. + * - "DASH_DOT" : Alternating dashes and dots. Corresponds to ECMA-376 + * ST_PresetLineDashVal + * value 'dashDot'. + * - "LONG_DASH" : Line with large dashes. Corresponds to ECMA-376 + * ST_PresetLineDashVal + * value 'lgDash'. + * - "LONG_DASH_DOT" : Alternating large dashes and dots. Corresponds to + * ECMA-376 + * ST_PresetLineDashVal value 'lgDashDot'. + */ + core.String dashStyle; + /** + * The style of the arrow at the end of the line. + * Possible string values are: + * - "ARROW_STYLE_UNSPECIFIED" : An unspecified arrow style. + * - "NONE" : No arrow. + * - "STEALTH_ARROW" : Arrow with notched back. Corresponds to ECMA-376 + * ST_LineEndType value + * 'stealth'. + * - "FILL_ARROW" : Filled arrow. Corresponds to ECMA-376 ST_LineEndType value + * 'triangle'. + * - "FILL_CIRCLE" : Filled circle. Corresponds to ECMA-376 ST_LineEndType + * value 'oval'. + * - "FILL_SQUARE" : Filled square. + * - "FILL_DIAMOND" : Filled diamond. Corresponds to ECMA-376 ST_LineEndType + * value 'diamond'. + * - "OPEN_ARROW" : Hollow arrow. + * - "OPEN_CIRCLE" : Hollow circle. + * - "OPEN_SQUARE" : Hollow square. + * - "OPEN_DIAMOND" : Hollow diamond. + */ + core.String endArrow; + /** + * The fill of the line. The default line fill matches the defaults for new + * lines created in the Slides editor. + */ + LineFill lineFill; + /** The hyperlink destination of the line. If unset, there is no link. */ + Link link; + /** + * The style of the arrow at the beginning of the line. + * Possible string values are: + * - "ARROW_STYLE_UNSPECIFIED" : An unspecified arrow style. + * - "NONE" : No arrow. + * - "STEALTH_ARROW" : Arrow with notched back. Corresponds to ECMA-376 + * ST_LineEndType value + * 'stealth'. + * - "FILL_ARROW" : Filled arrow. Corresponds to ECMA-376 ST_LineEndType value + * 'triangle'. + * - "FILL_CIRCLE" : Filled circle. Corresponds to ECMA-376 ST_LineEndType + * value 'oval'. + * - "FILL_SQUARE" : Filled square. + * - "FILL_DIAMOND" : Filled diamond. Corresponds to ECMA-376 ST_LineEndType + * value 'diamond'. + * - "OPEN_ARROW" : Hollow arrow. + * - "OPEN_CIRCLE" : Hollow circle. + * - "OPEN_SQUARE" : Hollow square. + * - "OPEN_DIAMOND" : Hollow diamond. + */ + core.String startArrow; + /** The thickness of the line. */ + Dimension weight; + + LineProperties(); + + LineProperties.fromJson(core.Map _json) { + if (_json.containsKey("dashStyle")) { + dashStyle = _json["dashStyle"]; + } + if (_json.containsKey("endArrow")) { + endArrow = _json["endArrow"]; + } + if (_json.containsKey("lineFill")) { + lineFill = new LineFill.fromJson(_json["lineFill"]); + } + if (_json.containsKey("link")) { + link = new Link.fromJson(_json["link"]); + } + if (_json.containsKey("startArrow")) { + startArrow = _json["startArrow"]; + } + if (_json.containsKey("weight")) { + weight = new Dimension.fromJson(_json["weight"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dashStyle != null) { + _json["dashStyle"] = dashStyle; + } + if (endArrow != null) { + _json["endArrow"] = endArrow; + } + if (lineFill != null) { + _json["lineFill"] = (lineFill).toJson(); + } + if (link != null) { + _json["link"] = (link).toJson(); + } + if (startArrow != null) { + _json["startArrow"] = startArrow; + } + if (weight != null) { + _json["weight"] = (weight).toJson(); + } + return _json; + } +} + +/** A hypertext link. */ +class Link { + /** + * If set, indicates this is a link to the specific page in this + * presentation with this ID. A page with this ID may not exist. + */ + core.String pageObjectId; + /** + * If set, indicates this is a link to a slide in this presentation, + * addressed by its position. + * Possible string values are: + * - "RELATIVE_SLIDE_LINK_UNSPECIFIED" : An unspecified relative slide link. + * - "NEXT_SLIDE" : A link to the next slide. + * - "PREVIOUS_SLIDE" : A link to the previous slide. + * - "FIRST_SLIDE" : A link to the first slide in the presentation. + * - "LAST_SLIDE" : A link to the last slide in the presentation. + */ + core.String relativeLink; + /** + * If set, indicates this is a link to the slide at this zero-based index + * in the presentation. There may not be a slide at this index. + */ + core.int slideIndex; + /** If set, indicates this is a link to the external web page at this URL. */ + core.String url; + + Link(); + + Link.fromJson(core.Map _json) { + if (_json.containsKey("pageObjectId")) { + pageObjectId = _json["pageObjectId"]; + } + if (_json.containsKey("relativeLink")) { + relativeLink = _json["relativeLink"]; + } + if (_json.containsKey("slideIndex")) { + slideIndex = _json["slideIndex"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (pageObjectId != null) { + _json["pageObjectId"] = pageObjectId; + } + if (relativeLink != null) { + _json["relativeLink"] = relativeLink; + } + if (slideIndex != null) { + _json["slideIndex"] = slideIndex; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/** + * A List describes the look and feel of bullets belonging to paragraphs + * associated with a list. A paragraph that is part of a list has an implicit + * reference to that list's ID. + */ +class List { + /** The ID of the list. */ + core.String listId; + /** + * A map of nesting levels to the properties of bullets at the associated + * level. A list has at most nine levels of nesting, so the possible values + * for the keys of this map are 0 through 8, inclusive. + */ + core.Map<core.String, NestingLevel> nestingLevel; + + List(); + + List.fromJson(core.Map _json) { + if (_json.containsKey("listId")) { + listId = _json["listId"]; + } + if (_json.containsKey("nestingLevel")) { + nestingLevel = commons.mapMap(_json["nestingLevel"], (item) => new NestingLevel.fromJson(item)); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (listId != null) { + _json["listId"] = listId; + } + if (nestingLevel != null) { + _json["nestingLevel"] = commons.mapMap(nestingLevel, (item) => (item).toJson()); + } + return _json; + } +} + +/** + * Contains properties describing the look and feel of a list bullet at a given + * level of nesting. + */ +class NestingLevel { + /** The style of a bullet at this level of nesting. */ + TextStyle bulletStyle; + + NestingLevel(); + + NestingLevel.fromJson(core.Map _json) { + if (_json.containsKey("bulletStyle")) { + bulletStyle = new TextStyle.fromJson(_json["bulletStyle"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bulletStyle != null) { + _json["bulletStyle"] = (bulletStyle).toJson(); + } + return _json; + } +} + +/** A themeable solid color value. */ +class OpaqueColor { + /** An opaque RGB color. */ + RgbColor rgbColor; + /** + * An opaque theme color. + * Possible string values are: + * - "THEME_COLOR_TYPE_UNSPECIFIED" : Unspecified theme color. This value + * should not be used. + * - "DARK1" : Represents the first dark color. + * - "LIGHT1" : Represents the first light color. + * - "DARK2" : Represents the second dark color. + * - "LIGHT2" : Represents the second light color. + * - "ACCENT1" : Represents the first accent color. + * - "ACCENT2" : Represents the second accent color. + * - "ACCENT3" : Represents the third accent color. + * - "ACCENT4" : Represents the fourth accent color. + * - "ACCENT5" : Represents the fifth accent color. + * - "ACCENT6" : Represents the sixth accent color. + * - "HYPERLINK" : Represents the color to use for hyperlinks. + * - "FOLLOWED_HYPERLINK" : Represents the color to use for visited + * hyperlinks. + * - "TEXT1" : Represents the first text color. + * - "BACKGROUND1" : Represents the first background color. + * - "TEXT2" : Represents the second text color. + * - "BACKGROUND2" : Represents the second background color. + */ + core.String themeColor; + + OpaqueColor(); + + OpaqueColor.fromJson(core.Map _json) { + if (_json.containsKey("rgbColor")) { + rgbColor = new RgbColor.fromJson(_json["rgbColor"]); + } + if (_json.containsKey("themeColor")) { + themeColor = _json["themeColor"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (rgbColor != null) { + _json["rgbColor"] = (rgbColor).toJson(); + } + if (themeColor != null) { + _json["themeColor"] = themeColor; + } + return _json; + } +} + +/** A color that can either be fully opaque or fully transparent. */ +class OptionalColor { + /** + * If set, this will be used as an opaque color. If unset, this represents + * a transparent color. + */ + OpaqueColor opaqueColor; + + OptionalColor(); + + OptionalColor.fromJson(core.Map _json) { + if (_json.containsKey("opaqueColor")) { + opaqueColor = new OpaqueColor.fromJson(_json["opaqueColor"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (opaqueColor != null) { + _json["opaqueColor"] = (opaqueColor).toJson(); + } + return _json; + } +} + +/** + * The outline of a PageElement. + * + * If these fields are unset, they may be inherited from a parent placeholder + * if it exists. If there is no parent, the fields will default to the value + * used for new page elements created in the Slides editor, which may depend on + * the page element kind. + */ +class Outline { + /** + * The dash style of the outline. + * Possible string values are: + * - "DASH_STYLE_UNSPECIFIED" : Unspecified dash style. + * - "SOLID" : Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'solid'. + * This is the default dash style. + * - "DOT" : Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'dot'. + * - "DASH" : Dashed line. Corresponds to ECMA-376 ST_PresetLineDashVal value + * 'dash'. + * - "DASH_DOT" : Alternating dashes and dots. Corresponds to ECMA-376 + * ST_PresetLineDashVal + * value 'dashDot'. + * - "LONG_DASH" : Line with large dashes. Corresponds to ECMA-376 + * ST_PresetLineDashVal + * value 'lgDash'. + * - "LONG_DASH_DOT" : Alternating large dashes and dots. Corresponds to + * ECMA-376 + * ST_PresetLineDashVal value 'lgDashDot'. + */ + core.String dashStyle; + /** The fill of the outline. */ + OutlineFill outlineFill; + /** + * The outline property state. + * + * Updating the the outline on a page element will implicitly update this + * field to`RENDERED`, unless another value is specified in the same request. + * To have no outline on a page element, set this field to `NOT_RENDERED`. In + * this case, any other outline fields set in the same request will be + * ignored. + * Possible string values are: + * - "RENDERED" : If a property's state is RENDERED, then the element has the + * corresponding + * property when rendered on a page. If the element is a placeholder shape as + * determined by the placeholder + * field, and it inherits from a placeholder shape, the corresponding field + * may be unset, meaning that the property value is inherited from a parent + * placeholder. If the element does not inherit, then the field will contain + * the rendered value. This is the default value. + * - "NOT_RENDERED" : If a property's state is NOT_RENDERED, then the element + * does not have the + * corresponding property when rendered on a page. However, the field may + * still be set so it can be inherited by child shapes. To remove a property + * from a rendered element, set its property_state to NOT_RENDERED. + * - "INHERIT" : If a property's state is INHERIT, then the property state + * uses the value of + * corresponding `property_state` field on the parent shape. Elements that do + * not inherit will never have an INHERIT property state. + */ + core.String propertyState; + /** The thickness of the outline. */ + Dimension weight; + + Outline(); + + Outline.fromJson(core.Map _json) { + if (_json.containsKey("dashStyle")) { + dashStyle = _json["dashStyle"]; + } + if (_json.containsKey("outlineFill")) { + outlineFill = new OutlineFill.fromJson(_json["outlineFill"]); + } + if (_json.containsKey("propertyState")) { + propertyState = _json["propertyState"]; + } + if (_json.containsKey("weight")) { + weight = new Dimension.fromJson(_json["weight"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dashStyle != null) { + _json["dashStyle"] = dashStyle; + } + if (outlineFill != null) { + _json["outlineFill"] = (outlineFill).toJson(); + } + if (propertyState != null) { + _json["propertyState"] = propertyState; + } + if (weight != null) { + _json["weight"] = (weight).toJson(); + } + return _json; + } +} + +/** The fill of the outline. */ +class OutlineFill { + /** Solid color fill. */ + SolidFill solidFill; + + OutlineFill(); + + OutlineFill.fromJson(core.Map _json) { + if (_json.containsKey("solidFill")) { + solidFill = new SolidFill.fromJson(_json["solidFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (solidFill != null) { + _json["solidFill"] = (solidFill).toJson(); + } + return _json; + } +} + +/** A page in a presentation. */ +class Page { + /** Layout specific properties. Only set if page_type = LAYOUT. */ + LayoutProperties layoutProperties; + /** + * The object ID for this page. Object IDs used by + * Page and + * PageElement share the same namespace. + */ + core.String objectId; + /** The page elements rendered on the page. */ + core.List<PageElement> pageElements; + /** The properties of the page. */ + PageProperties pageProperties; + /** + * The type of the page. + * Possible string values are: + * - "SLIDE" : A slide page. + * - "MASTER" : A master slide page. + * - "LAYOUT" : A layout page. + */ + core.String pageType; + /** Slide specific properties. Only set if page_type = SLIDE. */ + SlideProperties slideProperties; + + Page(); + + Page.fromJson(core.Map _json) { + if (_json.containsKey("layoutProperties")) { + layoutProperties = new LayoutProperties.fromJson(_json["layoutProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("pageElements")) { + pageElements = _json["pageElements"].map((value) => new PageElement.fromJson(value)).toList(); + } + if (_json.containsKey("pageProperties")) { + pageProperties = new PageProperties.fromJson(_json["pageProperties"]); + } + if (_json.containsKey("pageType")) { + pageType = _json["pageType"]; + } + if (_json.containsKey("slideProperties")) { + slideProperties = new SlideProperties.fromJson(_json["slideProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (layoutProperties != null) { + _json["layoutProperties"] = (layoutProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (pageElements != null) { + _json["pageElements"] = pageElements.map((value) => (value).toJson()).toList(); + } + if (pageProperties != null) { + _json["pageProperties"] = (pageProperties).toJson(); + } + if (pageType != null) { + _json["pageType"] = pageType; + } + if (slideProperties != null) { + _json["slideProperties"] = (slideProperties).toJson(); + } + return _json; + } +} + +/** The page background fill. */ +class PageBackgroundFill { + /** + * The background fill property state. + * + * Updating the the fill on a page will implicitly update this field to + * `RENDERED`, unless another value is specified in the same request. To + * have no fill on a page, set this field to `NOT_RENDERED`. In this case, + * any other fill fields set in the same request will be ignored. + * Possible string values are: + * - "RENDERED" : If a property's state is RENDERED, then the element has the + * corresponding + * property when rendered on a page. If the element is a placeholder shape as + * determined by the placeholder + * field, and it inherits from a placeholder shape, the corresponding field + * may be unset, meaning that the property value is inherited from a parent + * placeholder. If the element does not inherit, then the field will contain + * the rendered value. This is the default value. + * - "NOT_RENDERED" : If a property's state is NOT_RENDERED, then the element + * does not have the + * corresponding property when rendered on a page. However, the field may + * still be set so it can be inherited by child shapes. To remove a property + * from a rendered element, set its property_state to NOT_RENDERED. + * - "INHERIT" : If a property's state is INHERIT, then the property state + * uses the value of + * corresponding `property_state` field on the parent shape. Elements that do + * not inherit will never have an INHERIT property state. + */ + core.String propertyState; + /** Solid color fill. */ + SolidFill solidFill; + /** Stretched picture fill. */ + StretchedPictureFill stretchedPictureFill; + + PageBackgroundFill(); + + PageBackgroundFill.fromJson(core.Map _json) { + if (_json.containsKey("propertyState")) { + propertyState = _json["propertyState"]; + } + if (_json.containsKey("solidFill")) { + solidFill = new SolidFill.fromJson(_json["solidFill"]); + } + if (_json.containsKey("stretchedPictureFill")) { + stretchedPictureFill = new StretchedPictureFill.fromJson(_json["stretchedPictureFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (propertyState != null) { + _json["propertyState"] = propertyState; + } + if (solidFill != null) { + _json["solidFill"] = (solidFill).toJson(); + } + if (stretchedPictureFill != null) { + _json["stretchedPictureFill"] = (stretchedPictureFill).toJson(); + } + return _json; + } +} + +/** A visual element rendered on a page. */ +class PageElement { + /** + * The description of the page element. Combined with title to display alt + * text. + */ + core.String description; + /** A collection of page elements joined as a single unit. */ + Group elementGroup; + /** An image page element. */ + Image image; + /** A line page element. */ + Line line; + /** + * The object ID for this page element. Object IDs used by + * google.apps.slides.v1.Page and + * google.apps.slides.v1.PageElement share the same namespace. + */ + core.String objectId; + /** A generic shape. */ + Shape shape; + /** + * A linked chart embedded from Google Sheets. Unlinked charts are + * represented as images. + */ + SheetsChart sheetsChart; + /** The size of the page element. */ + Size size; + /** A table page element. */ + Table table; + /** + * The title of the page element. Combined with description to display alt + * text. + */ + core.String title; + /** The transform of the page element. */ + AffineTransform transform; + /** A video page element. */ + Video video; + /** A word art page element. */ + WordArt wordArt; + + PageElement(); + + PageElement.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("elementGroup")) { + elementGroup = new Group.fromJson(_json["elementGroup"]); + } + if (_json.containsKey("image")) { + image = new Image.fromJson(_json["image"]); + } + if (_json.containsKey("line")) { + line = new Line.fromJson(_json["line"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("shape")) { + shape = new Shape.fromJson(_json["shape"]); + } + if (_json.containsKey("sheetsChart")) { + sheetsChart = new SheetsChart.fromJson(_json["sheetsChart"]); + } + if (_json.containsKey("size")) { + size = new Size.fromJson(_json["size"]); + } + if (_json.containsKey("table")) { + table = new Table.fromJson(_json["table"]); + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + if (_json.containsKey("transform")) { + transform = new AffineTransform.fromJson(_json["transform"]); + } + if (_json.containsKey("video")) { + video = new Video.fromJson(_json["video"]); + } + if (_json.containsKey("wordArt")) { + wordArt = new WordArt.fromJson(_json["wordArt"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (description != null) { + _json["description"] = description; + } + if (elementGroup != null) { + _json["elementGroup"] = (elementGroup).toJson(); + } + if (image != null) { + _json["image"] = (image).toJson(); + } + if (line != null) { + _json["line"] = (line).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (shape != null) { + _json["shape"] = (shape).toJson(); + } + if (sheetsChart != null) { + _json["sheetsChart"] = (sheetsChart).toJson(); + } + if (size != null) { + _json["size"] = (size).toJson(); + } + if (table != null) { + _json["table"] = (table).toJson(); + } + if (title != null) { + _json["title"] = title; + } + if (transform != null) { + _json["transform"] = (transform).toJson(); + } + if (video != null) { + _json["video"] = (video).toJson(); + } + if (wordArt != null) { + _json["wordArt"] = (wordArt).toJson(); + } + return _json; + } +} + +/** + * Common properties for a page element. + * + * Note: When you initially create a + * PageElement, the API may modify + * the values of both `size` and `transform`, but the + * visual size will be unchanged. + */ +class PageElementProperties { + /** The object ID of the page where the element is located. */ + core.String pageObjectId; + /** The size of the element. */ + Size size; + /** The transform for the element. */ + AffineTransform transform; + + PageElementProperties(); + + PageElementProperties.fromJson(core.Map _json) { + if (_json.containsKey("pageObjectId")) { + pageObjectId = _json["pageObjectId"]; + } + if (_json.containsKey("size")) { + size = new Size.fromJson(_json["size"]); + } + if (_json.containsKey("transform")) { + transform = new AffineTransform.fromJson(_json["transform"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (pageObjectId != null) { + _json["pageObjectId"] = pageObjectId; + } + if (size != null) { + _json["size"] = (size).toJson(); + } + if (transform != null) { + _json["transform"] = (transform).toJson(); + } + return _json; + } +} + +/** + * The properties of the Page. + * + * The page will inherit properties from the parent page. Depending on the page + * type the hierarchy is defined in either + * SlideProperties or + * LayoutProperties. + */ +class PageProperties { + /** + * The color scheme of the page. If unset, the color scheme is inherited from + * a parent page. If the page has no parent, the color scheme uses a default + * Slides color scheme. This field is read-only. + */ + ColorScheme colorScheme; + /** + * The background fill of the page. If unset, the background fill is inherited + * from a parent page if it exists. If the page has no parent, then the + * background fill defaults to the corresponding fill in the Slides editor. + */ + PageBackgroundFill pageBackgroundFill; + + PageProperties(); + + PageProperties.fromJson(core.Map _json) { + if (_json.containsKey("colorScheme")) { + colorScheme = new ColorScheme.fromJson(_json["colorScheme"]); + } + if (_json.containsKey("pageBackgroundFill")) { + pageBackgroundFill = new PageBackgroundFill.fromJson(_json["pageBackgroundFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (colorScheme != null) { + _json["colorScheme"] = (colorScheme).toJson(); + } + if (pageBackgroundFill != null) { + _json["pageBackgroundFill"] = (pageBackgroundFill).toJson(); + } + return _json; + } +} + +/** A TextElement kind that represents the beginning of a new paragraph. */ +class ParagraphMarker { + /** + * The bullet for this paragraph. If not present, the paragraph does not + * belong to a list. + */ + Bullet bullet; + /** The paragraph's style */ + ParagraphStyle style; + + ParagraphMarker(); + + ParagraphMarker.fromJson(core.Map _json) { + if (_json.containsKey("bullet")) { + bullet = new Bullet.fromJson(_json["bullet"]); + } + if (_json.containsKey("style")) { + style = new ParagraphStyle.fromJson(_json["style"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bullet != null) { + _json["bullet"] = (bullet).toJson(); + } + if (style != null) { + _json["style"] = (style).toJson(); + } + return _json; + } +} + +/** + * Styles that apply to a whole paragraph. + * + * If this text is contained in a shape with a parent placeholder, then these + * paragraph styles may be + * inherited from the parent. Which paragraph styles are inherited depend on the + * nesting level of lists: + * + * * A paragraph not in a list will inherit its paragraph style from the + * paragraph at the 0 nesting level of the list inside the parent placeholder. + * * A paragraph in a list will inherit its paragraph style from the paragraph + * at its corresponding nesting level of the list inside the parent + * placeholder. + * + * Inherited paragraph styles are represented as unset fields in this message. + */ +class ParagraphStyle { + /** + * The text alignment for this paragraph. This property is read-only. + * Possible string values are: + * - "ALIGNMENT_UNSPECIFIED" : The paragraph alignment is inherited from the + * parent. + * - "START" : The paragraph is aligned to the start of the line. Left-aligned + * for + * LTR text, right-aligned otherwise. + * - "CENTER" : The paragraph is centered. + * - "END" : The paragraph is aligned to the end of the line. Right-aligned + * for + * LTR text, left-aligned otherwise. + * - "JUSTIFIED" : The paragraph is justified. + */ + core.String alignment; + /** + * The text direction of this paragraph. This property is read-only. + * Possible string values are: + * - "TEXT_DIRECTION_UNSPECIFIED" : The text direction is inherited from the + * parent. + * - "LEFT_TO_RIGHT" : The text goes from left to right. + * - "RIGHT_TO_LEFT" : The text goes from right to left. + */ + core.String direction; + /** + * The amount indentation for the paragraph on the side that corresponds to + * the end of the text, based on the current text direction. If unset, the + * value is inherited from the parent. This property is read-only. + */ + Dimension indentEnd; + /** + * The amount of indentation for the start of the first line of the paragraph. + * If unset, the value is inherited from the parent. This property is + * read-only. + */ + Dimension indentFirstLine; + /** + * The amount indentation for the paragraph on the side that corresponds to + * the start of the text, based on the current text direction. If unset, the + * value is inherited from the parent. This property is read-only. + */ + Dimension indentStart; + /** + * The amount of space between lines, as a percentage of normal, where normal + * is represented as 100.0. If unset, the value is inherited from the parent. + * This property is read-only. + */ + core.double lineSpacing; + /** + * The amount of extra space above the paragraph. If unset, the value is + * inherited from the parent. This property is read-only. + */ + Dimension spaceAbove; + /** + * The amount of extra space above the paragraph. If unset, the value is + * inherited from the parent. This property is read-only. + */ + Dimension spaceBelow; + /** + * The spacing mode for the paragraph. This property is read-only. + * Possible string values are: + * - "SPACING_MODE_UNSPECIFIED" : The spacing mode is inherited from the + * parent. + * - "NEVER_COLLAPSE" : Paragraph spacing is always rendered. + * - "COLLAPSE_LISTS" : Paragraph spacing is skipped between list elements. + */ + core.String spacingMode; + + ParagraphStyle(); + + ParagraphStyle.fromJson(core.Map _json) { + if (_json.containsKey("alignment")) { + alignment = _json["alignment"]; + } + if (_json.containsKey("direction")) { + direction = _json["direction"]; + } + if (_json.containsKey("indentEnd")) { + indentEnd = new Dimension.fromJson(_json["indentEnd"]); + } + if (_json.containsKey("indentFirstLine")) { + indentFirstLine = new Dimension.fromJson(_json["indentFirstLine"]); + } + if (_json.containsKey("indentStart")) { + indentStart = new Dimension.fromJson(_json["indentStart"]); + } + if (_json.containsKey("lineSpacing")) { + lineSpacing = _json["lineSpacing"]; + } + if (_json.containsKey("spaceAbove")) { + spaceAbove = new Dimension.fromJson(_json["spaceAbove"]); + } + if (_json.containsKey("spaceBelow")) { + spaceBelow = new Dimension.fromJson(_json["spaceBelow"]); + } + if (_json.containsKey("spacingMode")) { + spacingMode = _json["spacingMode"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (alignment != null) { + _json["alignment"] = alignment; + } + if (direction != null) { + _json["direction"] = direction; + } + if (indentEnd != null) { + _json["indentEnd"] = (indentEnd).toJson(); + } + if (indentFirstLine != null) { + _json["indentFirstLine"] = (indentFirstLine).toJson(); + } + if (indentStart != null) { + _json["indentStart"] = (indentStart).toJson(); + } + if (lineSpacing != null) { + _json["lineSpacing"] = lineSpacing; + } + if (spaceAbove != null) { + _json["spaceAbove"] = (spaceAbove).toJson(); + } + if (spaceBelow != null) { + _json["spaceBelow"] = (spaceBelow).toJson(); + } + if (spacingMode != null) { + _json["spacingMode"] = spacingMode; + } + return _json; + } +} + +/** + * The placeholder information that uniquely identifies a placeholder shape. + */ +class Placeholder { + /** + * The index of the placeholder. If the same placeholder types are the present + * in the same page, they would have different index values. + */ + core.int index; + /** + * The object ID of this shape's parent placeholder. + * If unset, the parent placeholder shape does not exist, so the shape does + * not inherit properties from any other shape. + */ + core.String parentObjectId; + /** + * The type of the placeholder. + * Possible string values are: + * - "NONE" : Default value, signifies it is not a placeholder. + * - "BODY" : Body text. + * - "CHART" : Chart or graph. + * - "CLIP_ART" : Clip art image. + * - "CENTERED_TITLE" : Title centered. + * - "DIAGRAM" : Diagram. + * - "DATE_AND_TIME" : Date and time. + * - "FOOTER" : Footer text. + * - "HEADER" : Header text. + * - "MEDIA" : Multimedia. + * - "OBJECT" : Any content type. + * - "PICTURE" : Picture. + * - "SLIDE_NUMBER" : Number of a slide. + * - "SUBTITLE" : Subtitle. + * - "TABLE" : Table. + * - "TITLE" : Slide title. + * - "SLIDE_IMAGE" : Slide image. + */ + core.String type; + + Placeholder(); + + Placeholder.fromJson(core.Map _json) { + if (_json.containsKey("index")) { + index = _json["index"]; + } + if (_json.containsKey("parentObjectId")) { + parentObjectId = _json["parentObjectId"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (index != null) { + _json["index"] = index; + } + if (parentObjectId != null) { + _json["parentObjectId"] = parentObjectId; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** A Google Slides presentation. */ +class Presentation { + /** + * The layouts in the presentation. A layout is a template that determines + * how content is arranged and styled on the slides that inherit from that + * layout. + */ + core.List<Page> layouts; + /** The locale of the presentation, as an IETF BCP 47 language tag. */ + core.String locale; + /** + * The slide masters in the presentation. A slide master contains all common + * page elements and the common properties for a set of layouts. They serve + * three purposes: + * + * - Placeholder shapes on a master contain the default text styles and shape + * properties of all placeholder shapes on pages that use that master. + * - The master page properties define the common page properties inherited by + * its layouts. + * - Any other shapes on the master slide will appear on all slides using that + * master, regardless of their layout. + */ + core.List<Page> masters; + /** The size of pages in the presentation. */ + Size pageSize; + /** The ID of the presentation. */ + core.String presentationId; + /** + * The slides in the presentation. + * A slide inherits properties from a slide layout. + */ + core.List<Page> slides; + /** The title of the presentation. */ + core.String title; + + Presentation(); + + Presentation.fromJson(core.Map _json) { + if (_json.containsKey("layouts")) { + layouts = _json["layouts"].map((value) => new Page.fromJson(value)).toList(); + } + if (_json.containsKey("locale")) { + locale = _json["locale"]; + } + if (_json.containsKey("masters")) { + masters = _json["masters"].map((value) => new Page.fromJson(value)).toList(); + } + if (_json.containsKey("pageSize")) { + pageSize = new Size.fromJson(_json["pageSize"]); + } + if (_json.containsKey("presentationId")) { + presentationId = _json["presentationId"]; + } + if (_json.containsKey("slides")) { + slides = _json["slides"].map((value) => new Page.fromJson(value)).toList(); + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (layouts != null) { + _json["layouts"] = layouts.map((value) => (value).toJson()).toList(); + } + if (locale != null) { + _json["locale"] = locale; + } + if (masters != null) { + _json["masters"] = masters.map((value) => (value).toJson()).toList(); + } + if (pageSize != null) { + _json["pageSize"] = (pageSize).toJson(); + } + if (presentationId != null) { + _json["presentationId"] = presentationId; + } + if (slides != null) { + _json["slides"] = slides.map((value) => (value).toJson()).toList(); + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + +/** + * Specifies a contiguous range of an indexed collection, such as characters in + * text. + */ +class Range { + /** + * The optional zero-based index of the end of the collection. + * Required for `SPECIFIC_RANGE` delete mode. + */ + core.int endIndex; + /** + * The optional zero-based index of the beginning of the collection. + * Required for `SPECIFIC_RANGE` and `FROM_START_INDEX` ranges. + */ + core.int startIndex; + /** + * The type of range. + * Possible string values are: + * - "RANGE_TYPE_UNSPECIFIED" : Unspecified range type. This value must not be + * used. + * - "FIXED_RANGE" : A fixed range. Both the `start_index` and + * `end_index` must be specified. + * - "FROM_START_INDEX" : Starts the range at `start_index` and continues + * until the + * end of the collection. The `end_index` must not be specified. + * - "ALL" : Sets the range to be the whole length of the collection. Both the + * `start_index` and the `end_index` must not be + * specified. + */ + core.String type; + + Range(); + + Range.fromJson(core.Map _json) { + if (_json.containsKey("endIndex")) { + endIndex = _json["endIndex"]; + } + if (_json.containsKey("startIndex")) { + startIndex = _json["startIndex"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (endIndex != null) { + _json["endIndex"] = endIndex; + } + if (startIndex != null) { + _json["startIndex"] = startIndex; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** A recolor effect applied on an image. */ +class Recolor { + /** + * The recolor effect is represented by a gradient, which is a list of color + * stops. This property is read-only. + */ + core.List<ColorStop> recolorStops; + + Recolor(); + + Recolor.fromJson(core.Map _json) { + if (_json.containsKey("recolorStops")) { + recolorStops = _json["recolorStops"].map((value) => new ColorStop.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (recolorStops != null) { + _json["recolorStops"] = recolorStops.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Refreshes an embedded Google Sheets chart by replacing it with the latest + * version of the chart from Google Sheets. + * + * NOTE: Refreshing charts requires at least one of the spreadsheets.readonly, + * spreadsheets, drive.readonly, or drive OAuth scopes. + */ +class RefreshSheetsChartRequest { + /** The object ID of the chart to refresh. */ + core.String objectId; + + RefreshSheetsChartRequest(); + + RefreshSheetsChartRequest.fromJson(core.Map _json) { + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** + * Replaces all shapes that match the given criteria with the provided image. + */ +class ReplaceAllShapesWithImageRequest { + /** + * If set, this request will replace all of the shapes that contain the + * given text. + */ + SubstringMatchCriteria containsText; + /** + * The image URL. + * + * The image is fetched once at insertion time and a copy is stored for + * display inside the presentation. Images must be less than 50MB in size, + * cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + * format. + */ + core.String imageUrl; + /** + * The replace method. + * Possible string values are: + * - "CENTER_INSIDE" : Scales and centers the image to fit within the bounds + * of the original + * shape and maintains the image's aspect ratio. The rendered size of the + * image may be smaller than the size of the shape. This is the default + * method when one is not specified. + * - "CENTER_CROP" : Scales and centers the image to fill the bounds of the + * original shape. + * The image may be cropped in order to fill the shape. The rendered size of + * the image will be the same as that of the original shape. + */ + core.String replaceMethod; + + ReplaceAllShapesWithImageRequest(); + + ReplaceAllShapesWithImageRequest.fromJson(core.Map _json) { + if (_json.containsKey("containsText")) { + containsText = new SubstringMatchCriteria.fromJson(_json["containsText"]); + } + if (_json.containsKey("imageUrl")) { + imageUrl = _json["imageUrl"]; + } + if (_json.containsKey("replaceMethod")) { + replaceMethod = _json["replaceMethod"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (containsText != null) { + _json["containsText"] = (containsText).toJson(); + } + if (imageUrl != null) { + _json["imageUrl"] = imageUrl; + } + if (replaceMethod != null) { + _json["replaceMethod"] = replaceMethod; + } + return _json; + } +} + +/** The result of replacing shapes with an image. */ +class ReplaceAllShapesWithImageResponse { + /** The number of shapes replaced with images. */ + core.int occurrencesChanged; + + ReplaceAllShapesWithImageResponse(); + + ReplaceAllShapesWithImageResponse.fromJson(core.Map _json) { + if (_json.containsKey("occurrencesChanged")) { + occurrencesChanged = _json["occurrencesChanged"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (occurrencesChanged != null) { + _json["occurrencesChanged"] = occurrencesChanged; + } + return _json; + } +} + +/** Replaces all instances of text matching a criteria with replace text. */ +class ReplaceAllTextRequest { + /** Finds text in a shape matching this substring. */ + SubstringMatchCriteria containsText; + /** The text that will replace the matched text. */ + core.String replaceText; + + ReplaceAllTextRequest(); + + ReplaceAllTextRequest.fromJson(core.Map _json) { + if (_json.containsKey("containsText")) { + containsText = new SubstringMatchCriteria.fromJson(_json["containsText"]); + } + if (_json.containsKey("replaceText")) { + replaceText = _json["replaceText"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (containsText != null) { + _json["containsText"] = (containsText).toJson(); + } + if (replaceText != null) { + _json["replaceText"] = replaceText; + } + return _json; + } +} + +/** The result of replacing text. */ +class ReplaceAllTextResponse { + /** The number of occurrences changed by replacing all text. */ + core.int occurrencesChanged; + + ReplaceAllTextResponse(); + + ReplaceAllTextResponse.fromJson(core.Map _json) { + if (_json.containsKey("occurrencesChanged")) { + occurrencesChanged = _json["occurrencesChanged"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (occurrencesChanged != null) { + _json["occurrencesChanged"] = occurrencesChanged; + } + return _json; + } +} + +/** A single kind of update to apply to a presentation. */ +class Request { + /** Creates an image. */ + CreateImageRequest createImage; + /** Creates a line. */ + CreateLineRequest createLine; + /** Creates bullets for paragraphs. */ + CreateParagraphBulletsRequest createParagraphBullets; + /** Creates a new shape. */ + CreateShapeRequest createShape; + /** Creates an embedded Google Sheets chart. */ + CreateSheetsChartRequest createSheetsChart; + /** Creates a new slide. */ + CreateSlideRequest createSlide; + /** Creates a new table. */ + CreateTableRequest createTable; + /** Creates a video. */ + CreateVideoRequest createVideo; + /** Deletes a page or page element from the presentation. */ + DeleteObjectRequest deleteObject; + /** Deletes a column from a table. */ + DeleteTableColumnRequest deleteTableColumn; + /** Deletes a row from a table. */ + DeleteTableRowRequest deleteTableRow; + /** Deletes text from a shape or a table cell. */ + DeleteTextRequest deleteText; + /** Duplicates a slide or page element. */ + DuplicateObjectRequest duplicateObject; + /** Inserts columns into a table. */ + InsertTableColumnsRequest insertTableColumns; + /** Inserts rows into a table. */ + InsertTableRowsRequest insertTableRows; + /** Inserts text into a shape or table cell. */ + InsertTextRequest insertText; + /** Refreshes a Google Sheets chart. */ + RefreshSheetsChartRequest refreshSheetsChart; + /** Replaces all shapes matching some criteria with an image. */ + ReplaceAllShapesWithImageRequest replaceAllShapesWithImage; + /** Replaces all instances of specified text. */ + ReplaceAllTextRequest replaceAllText; + /** Updates the properties of an Image. */ + UpdateImagePropertiesRequest updateImageProperties; + /** Updates the properties of a Line. */ + UpdateLinePropertiesRequest updateLineProperties; + /** Updates the transform of a page element. */ + UpdatePageElementTransformRequest updatePageElementTransform; + /** Updates the properties of a Page. */ + UpdatePagePropertiesRequest updatePageProperties; + /** Updates the properties of a Shape. */ + UpdateShapePropertiesRequest updateShapeProperties; + /** Updates the position of a set of slides in the presentation. */ + UpdateSlidesPositionRequest updateSlidesPosition; + /** Updates the properties of a TableCell. */ + UpdateTableCellPropertiesRequest updateTableCellProperties; + /** Updates the styling of text within a Shape or Table. */ + UpdateTextStyleRequest updateTextStyle; + /** Updates the properties of a Video. */ + UpdateVideoPropertiesRequest updateVideoProperties; + + Request(); + + Request.fromJson(core.Map _json) { + if (_json.containsKey("createImage")) { + createImage = new CreateImageRequest.fromJson(_json["createImage"]); + } + if (_json.containsKey("createLine")) { + createLine = new CreateLineRequest.fromJson(_json["createLine"]); + } + if (_json.containsKey("createParagraphBullets")) { + createParagraphBullets = new CreateParagraphBulletsRequest.fromJson(_json["createParagraphBullets"]); + } + if (_json.containsKey("createShape")) { + createShape = new CreateShapeRequest.fromJson(_json["createShape"]); + } + if (_json.containsKey("createSheetsChart")) { + createSheetsChart = new CreateSheetsChartRequest.fromJson(_json["createSheetsChart"]); + } + if (_json.containsKey("createSlide")) { + createSlide = new CreateSlideRequest.fromJson(_json["createSlide"]); + } + if (_json.containsKey("createTable")) { + createTable = new CreateTableRequest.fromJson(_json["createTable"]); + } + if (_json.containsKey("createVideo")) { + createVideo = new CreateVideoRequest.fromJson(_json["createVideo"]); + } + if (_json.containsKey("deleteObject")) { + deleteObject = new DeleteObjectRequest.fromJson(_json["deleteObject"]); + } + if (_json.containsKey("deleteTableColumn")) { + deleteTableColumn = new DeleteTableColumnRequest.fromJson(_json["deleteTableColumn"]); + } + if (_json.containsKey("deleteTableRow")) { + deleteTableRow = new DeleteTableRowRequest.fromJson(_json["deleteTableRow"]); + } + if (_json.containsKey("deleteText")) { + deleteText = new DeleteTextRequest.fromJson(_json["deleteText"]); + } + if (_json.containsKey("duplicateObject")) { + duplicateObject = new DuplicateObjectRequest.fromJson(_json["duplicateObject"]); + } + if (_json.containsKey("insertTableColumns")) { + insertTableColumns = new InsertTableColumnsRequest.fromJson(_json["insertTableColumns"]); + } + if (_json.containsKey("insertTableRows")) { + insertTableRows = new InsertTableRowsRequest.fromJson(_json["insertTableRows"]); + } + if (_json.containsKey("insertText")) { + insertText = new InsertTextRequest.fromJson(_json["insertText"]); + } + if (_json.containsKey("refreshSheetsChart")) { + refreshSheetsChart = new RefreshSheetsChartRequest.fromJson(_json["refreshSheetsChart"]); + } + if (_json.containsKey("replaceAllShapesWithImage")) { + replaceAllShapesWithImage = new ReplaceAllShapesWithImageRequest.fromJson(_json["replaceAllShapesWithImage"]); + } + if (_json.containsKey("replaceAllText")) { + replaceAllText = new ReplaceAllTextRequest.fromJson(_json["replaceAllText"]); + } + if (_json.containsKey("updateImageProperties")) { + updateImageProperties = new UpdateImagePropertiesRequest.fromJson(_json["updateImageProperties"]); + } + if (_json.containsKey("updateLineProperties")) { + updateLineProperties = new UpdateLinePropertiesRequest.fromJson(_json["updateLineProperties"]); + } + if (_json.containsKey("updatePageElementTransform")) { + updatePageElementTransform = new UpdatePageElementTransformRequest.fromJson(_json["updatePageElementTransform"]); + } + if (_json.containsKey("updatePageProperties")) { + updatePageProperties = new UpdatePagePropertiesRequest.fromJson(_json["updatePageProperties"]); + } + if (_json.containsKey("updateShapeProperties")) { + updateShapeProperties = new UpdateShapePropertiesRequest.fromJson(_json["updateShapeProperties"]); + } + if (_json.containsKey("updateSlidesPosition")) { + updateSlidesPosition = new UpdateSlidesPositionRequest.fromJson(_json["updateSlidesPosition"]); + } + if (_json.containsKey("updateTableCellProperties")) { + updateTableCellProperties = new UpdateTableCellPropertiesRequest.fromJson(_json["updateTableCellProperties"]); + } + if (_json.containsKey("updateTextStyle")) { + updateTextStyle = new UpdateTextStyleRequest.fromJson(_json["updateTextStyle"]); + } + if (_json.containsKey("updateVideoProperties")) { + updateVideoProperties = new UpdateVideoPropertiesRequest.fromJson(_json["updateVideoProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createImage != null) { + _json["createImage"] = (createImage).toJson(); + } + if (createLine != null) { + _json["createLine"] = (createLine).toJson(); + } + if (createParagraphBullets != null) { + _json["createParagraphBullets"] = (createParagraphBullets).toJson(); + } + if (createShape != null) { + _json["createShape"] = (createShape).toJson(); + } + if (createSheetsChart != null) { + _json["createSheetsChart"] = (createSheetsChart).toJson(); + } + if (createSlide != null) { + _json["createSlide"] = (createSlide).toJson(); + } + if (createTable != null) { + _json["createTable"] = (createTable).toJson(); + } + if (createVideo != null) { + _json["createVideo"] = (createVideo).toJson(); + } + if (deleteObject != null) { + _json["deleteObject"] = (deleteObject).toJson(); + } + if (deleteTableColumn != null) { + _json["deleteTableColumn"] = (deleteTableColumn).toJson(); + } + if (deleteTableRow != null) { + _json["deleteTableRow"] = (deleteTableRow).toJson(); + } + if (deleteText != null) { + _json["deleteText"] = (deleteText).toJson(); + } + if (duplicateObject != null) { + _json["duplicateObject"] = (duplicateObject).toJson(); + } + if (insertTableColumns != null) { + _json["insertTableColumns"] = (insertTableColumns).toJson(); + } + if (insertTableRows != null) { + _json["insertTableRows"] = (insertTableRows).toJson(); + } + if (insertText != null) { + _json["insertText"] = (insertText).toJson(); + } + if (refreshSheetsChart != null) { + _json["refreshSheetsChart"] = (refreshSheetsChart).toJson(); + } + if (replaceAllShapesWithImage != null) { + _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson(); + } + if (replaceAllText != null) { + _json["replaceAllText"] = (replaceAllText).toJson(); + } + if (updateImageProperties != null) { + _json["updateImageProperties"] = (updateImageProperties).toJson(); + } + if (updateLineProperties != null) { + _json["updateLineProperties"] = (updateLineProperties).toJson(); + } + if (updatePageElementTransform != null) { + _json["updatePageElementTransform"] = (updatePageElementTransform).toJson(); + } + if (updatePageProperties != null) { + _json["updatePageProperties"] = (updatePageProperties).toJson(); + } + if (updateShapeProperties != null) { + _json["updateShapeProperties"] = (updateShapeProperties).toJson(); + } + if (updateSlidesPosition != null) { + _json["updateSlidesPosition"] = (updateSlidesPosition).toJson(); + } + if (updateTableCellProperties != null) { + _json["updateTableCellProperties"] = (updateTableCellProperties).toJson(); + } + if (updateTextStyle != null) { + _json["updateTextStyle"] = (updateTextStyle).toJson(); + } + if (updateVideoProperties != null) { + _json["updateVideoProperties"] = (updateVideoProperties).toJson(); + } + return _json; + } +} + +/** A single response from an update. */ +class Response { + /** The result of creating an image. */ + CreateImageResponse createImage; + /** The result of creating a line. */ + CreateLineResponse createLine; + /** The result of creating a shape. */ + CreateShapeResponse createShape; + /** The result of creating a Google Sheets chart. */ + CreateSheetsChartResponse createSheetsChart; + /** The result of creating a slide. */ + CreateSlideResponse createSlide; + /** The result of creating a table. */ + CreateTableResponse createTable; + /** The result of creating a video. */ + CreateVideoResponse createVideo; + /** The result of duplicating an object. */ + DuplicateObjectResponse duplicateObject; + /** + * The result of replacing all shapes containing the specified text with + * an image. + */ + ReplaceAllShapesWithImageResponse replaceAllShapesWithImage; + /** The result of replacing text. */ + ReplaceAllTextResponse replaceAllText; + + Response(); + + Response.fromJson(core.Map _json) { + if (_json.containsKey("createImage")) { + createImage = new CreateImageResponse.fromJson(_json["createImage"]); + } + if (_json.containsKey("createLine")) { + createLine = new CreateLineResponse.fromJson(_json["createLine"]); + } + if (_json.containsKey("createShape")) { + createShape = new CreateShapeResponse.fromJson(_json["createShape"]); + } + if (_json.containsKey("createSheetsChart")) { + createSheetsChart = new CreateSheetsChartResponse.fromJson(_json["createSheetsChart"]); + } + if (_json.containsKey("createSlide")) { + createSlide = new CreateSlideResponse.fromJson(_json["createSlide"]); + } + if (_json.containsKey("createTable")) { + createTable = new CreateTableResponse.fromJson(_json["createTable"]); + } + if (_json.containsKey("createVideo")) { + createVideo = new CreateVideoResponse.fromJson(_json["createVideo"]); + } + if (_json.containsKey("duplicateObject")) { + duplicateObject = new DuplicateObjectResponse.fromJson(_json["duplicateObject"]); + } + if (_json.containsKey("replaceAllShapesWithImage")) { + replaceAllShapesWithImage = new ReplaceAllShapesWithImageResponse.fromJson(_json["replaceAllShapesWithImage"]); + } + if (_json.containsKey("replaceAllText")) { + replaceAllText = new ReplaceAllTextResponse.fromJson(_json["replaceAllText"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createImage != null) { + _json["createImage"] = (createImage).toJson(); + } + if (createLine != null) { + _json["createLine"] = (createLine).toJson(); + } + if (createShape != null) { + _json["createShape"] = (createShape).toJson(); + } + if (createSheetsChart != null) { + _json["createSheetsChart"] = (createSheetsChart).toJson(); + } + if (createSlide != null) { + _json["createSlide"] = (createSlide).toJson(); + } + if (createTable != null) { + _json["createTable"] = (createTable).toJson(); + } + if (createVideo != null) { + _json["createVideo"] = (createVideo).toJson(); + } + if (duplicateObject != null) { + _json["duplicateObject"] = (duplicateObject).toJson(); + } + if (replaceAllShapesWithImage != null) { + _json["replaceAllShapesWithImage"] = (replaceAllShapesWithImage).toJson(); + } + if (replaceAllText != null) { + _json["replaceAllText"] = (replaceAllText).toJson(); + } + return _json; + } +} + +/** An RGB color. */ +class RgbColor { + /** The blue component of the color, from 0.0 to 1.0. */ + core.double blue; + /** The green component of the color, from 0.0 to 1.0. */ + core.double green; + /** The red component of the color, from 0.0 to 1.0. */ + core.double red; + + RgbColor(); + + RgbColor.fromJson(core.Map _json) { + if (_json.containsKey("blue")) { + blue = _json["blue"]; + } + if (_json.containsKey("green")) { + green = _json["green"]; + } + if (_json.containsKey("red")) { + red = _json["red"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (blue != null) { + _json["blue"] = blue; + } + if (green != null) { + _json["green"] = green; + } + if (red != null) { + _json["red"] = red; + } + return _json; + } +} + +/** + * The shadow properties of a page element. + * + * If these fields are unset, they may be inherited from a parent placeholder + * if it exists. If there is no parent, the fields will default to the value + * used for new page elements created in the Slides editor, which may depend on + * the page element kind. + */ +class Shadow { + /** + * The alignment point of the shadow, that sets the origin for translate, + * scale and skew of the shadow. + * Possible string values are: + * - "RECTANGLE_POSITION_UNSPECIFIED" : Unspecified. + * - "TOP_LEFT" : Top left. + * - "TOP_CENTER" : Top center. + * - "TOP_RIGHT" : Top right. + * - "LEFT_CENTER" : Left center. + * - "CENTER" : Center. + * - "RIGHT_CENTER" : Right center. + * - "BOTTOM_LEFT" : Bottom left. + * - "BOTTOM_CENTER" : Bottom center. + * - "BOTTOM_RIGHT" : Bottom right. + */ + core.String alignment; + /** The alpha of the shadow's color, from 0.0 to 1.0. */ + core.double alpha; + /** + * The radius of the shadow blur. The larger the radius, the more diffuse the + * shadow becomes. + */ + Dimension blurRadius; + /** The shadow color value. */ + OpaqueColor color; + /** + * The shadow property state. + * + * Updating the the shadow on a page element will implicitly update this field + * to `RENDERED`, unless another value is specified in the same request. To + * have no shadow on a page element, set this field to `NOT_RENDERED`. In this + * case, any other shadow fields set in the same request will be ignored. + * Possible string values are: + * - "RENDERED" : If a property's state is RENDERED, then the element has the + * corresponding + * property when rendered on a page. If the element is a placeholder shape as + * determined by the placeholder + * field, and it inherits from a placeholder shape, the corresponding field + * may be unset, meaning that the property value is inherited from a parent + * placeholder. If the element does not inherit, then the field will contain + * the rendered value. This is the default value. + * - "NOT_RENDERED" : If a property's state is NOT_RENDERED, then the element + * does not have the + * corresponding property when rendered on a page. However, the field may + * still be set so it can be inherited by child shapes. To remove a property + * from a rendered element, set its property_state to NOT_RENDERED. + * - "INHERIT" : If a property's state is INHERIT, then the property state + * uses the value of + * corresponding `property_state` field on the parent shape. Elements that do + * not inherit will never have an INHERIT property state. + */ + core.String propertyState; + /** Whether the shadow should rotate with the shape. */ + core.bool rotateWithShape; + /** + * Transform that encodes the translate, scale, and skew of the shadow, + * relative to the alignment position. + */ + AffineTransform transform; + /** + * The type of the shadow. + * Possible string values are: + * - "SHADOW_TYPE_UNSPECIFIED" : Unspecified shadow type. + * - "OUTER" : Outer shadow. + */ + core.String type; + + Shadow(); + + Shadow.fromJson(core.Map _json) { + if (_json.containsKey("alignment")) { + alignment = _json["alignment"]; + } + if (_json.containsKey("alpha")) { + alpha = _json["alpha"]; + } + if (_json.containsKey("blurRadius")) { + blurRadius = new Dimension.fromJson(_json["blurRadius"]); + } + if (_json.containsKey("color")) { + color = new OpaqueColor.fromJson(_json["color"]); + } + if (_json.containsKey("propertyState")) { + propertyState = _json["propertyState"]; + } + if (_json.containsKey("rotateWithShape")) { + rotateWithShape = _json["rotateWithShape"]; + } + if (_json.containsKey("transform")) { + transform = new AffineTransform.fromJson(_json["transform"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (alignment != null) { + _json["alignment"] = alignment; + } + if (alpha != null) { + _json["alpha"] = alpha; + } + if (blurRadius != null) { + _json["blurRadius"] = (blurRadius).toJson(); + } + if (color != null) { + _json["color"] = (color).toJson(); + } + if (propertyState != null) { + _json["propertyState"] = propertyState; + } + if (rotateWithShape != null) { + _json["rotateWithShape"] = rotateWithShape; + } + if (transform != null) { + _json["transform"] = (transform).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * A PageElement kind representing a + * generic shape that does not have a more specific classification. + */ +class Shape { + /** + * Placeholders are shapes that are inherit from corresponding placeholders on + * layouts and masters. + * + * If set, the shape is a placeholder shape and any inherited properties + * can be resolved by looking at the parent placeholder identified by the + * Placeholder.parent_object_id field. + */ + Placeholder placeholder; + /** The properties of the shape. */ + ShapeProperties shapeProperties; + /** + * The type of the shape. + * Possible string values are: + * - "TYPE_UNSPECIFIED" : The shape type that is not predefined. + * - "TEXT_BOX" : Text box shape. + * - "RECTANGLE" : Rectangle shape. Corresponds to ECMA-376 ST_ShapeType + * 'rect'. + * - "ROUND_RECTANGLE" : Round corner rectangle shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'roundRect' + * - "ELLIPSE" : Ellipse shape. Corresponds to ECMA-376 ST_ShapeType 'ellipse' + * - "ARC" : Curved arc shape. Corresponds to ECMA-376 ST_ShapeType 'arc' + * - "BENT_ARROW" : Bent arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'bentArrow' + * - "BENT_UP_ARROW" : Bent up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'bentUpArrow' + * - "BEVEL" : Bevel shape. Corresponds to ECMA-376 ST_ShapeType 'bevel' + * - "BLOCK_ARC" : Block arc shape. Corresponds to ECMA-376 ST_ShapeType + * 'blockArc' + * - "BRACE_PAIR" : Brace pair shape. Corresponds to ECMA-376 ST_ShapeType + * 'bracePair' + * - "BRACKET_PAIR" : Bracket pair shape. Corresponds to ECMA-376 ST_ShapeType + * 'bracketPair' + * - "CAN" : Can shape. Corresponds to ECMA-376 ST_ShapeType 'can' + * - "CHEVRON" : Chevron shape. Corresponds to ECMA-376 ST_ShapeType 'chevron' + * - "CHORD" : Chord shape. Corresponds to ECMA-376 ST_ShapeType 'chord' + * - "CLOUD" : Cloud shape. Corresponds to ECMA-376 ST_ShapeType 'cloud' + * - "CORNER" : Corner shape. Corresponds to ECMA-376 ST_ShapeType 'corner' + * - "CUBE" : Cube shape. Corresponds to ECMA-376 ST_ShapeType 'cube' + * - "CURVED_DOWN_ARROW" : Curved down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedDownArrow' + * - "CURVED_LEFT_ARROW" : Curved left arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedLeftArrow' + * - "CURVED_RIGHT_ARROW" : Curved right arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedRightArrow' + * - "CURVED_UP_ARROW" : Curved up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'curvedUpArrow' + * - "DECAGON" : Decagon shape. Corresponds to ECMA-376 ST_ShapeType 'decagon' + * - "DIAGONAL_STRIPE" : Diagonal stripe shape. Corresponds to ECMA-376 + * ST_ShapeType 'diagStripe' + * - "DIAMOND" : Diamond shape. Corresponds to ECMA-376 ST_ShapeType 'diamond' + * - "DODECAGON" : Dodecagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'dodecagon' + * - "DONUT" : Donut shape. Corresponds to ECMA-376 ST_ShapeType 'donut' + * - "DOUBLE_WAVE" : Double wave shape. Corresponds to ECMA-376 ST_ShapeType + * 'doubleWave' + * - "DOWN_ARROW" : Down arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'downArrow' + * - "DOWN_ARROW_CALLOUT" : Callout down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'downArrowCallout' + * - "FOLDED_CORNER" : Folded corner shape. Corresponds to ECMA-376 + * ST_ShapeType 'foldedCorner' + * - "FRAME" : Frame shape. Corresponds to ECMA-376 ST_ShapeType 'frame' + * - "HALF_FRAME" : Half frame shape. Corresponds to ECMA-376 ST_ShapeType + * 'halfFrame' + * - "HEART" : Heart shape. Corresponds to ECMA-376 ST_ShapeType 'heart' + * - "HEPTAGON" : Heptagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'heptagon' + * - "HEXAGON" : Hexagon shape. Corresponds to ECMA-376 ST_ShapeType 'hexagon' + * - "HOME_PLATE" : Home plate shape. Corresponds to ECMA-376 ST_ShapeType + * 'homePlate' + * - "HORIZONTAL_SCROLL" : Horizontal scroll shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'horizontalScroll' + * - "IRREGULAR_SEAL_1" : Irregular seal 1 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'irregularSeal1' + * - "IRREGULAR_SEAL_2" : Irregular seal 2 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'irregularSeal2' + * - "LEFT_ARROW" : Left arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftArrow' + * - "LEFT_ARROW_CALLOUT" : Callout left arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'leftArrowCallout' + * - "LEFT_BRACE" : Left brace shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftBrace' + * - "LEFT_BRACKET" : Left bracket shape. Corresponds to ECMA-376 ST_ShapeType + * 'leftBracket' + * - "LEFT_RIGHT_ARROW" : Left right arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'leftRightArrow' + * - "LEFT_RIGHT_ARROW_CALLOUT" : Callout left right arrow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'leftRightArrowCallout' + * - "LEFT_RIGHT_UP_ARROW" : Left right up arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'leftRightUpArrow' + * - "LEFT_UP_ARROW" : Left up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'leftUpArrow' + * - "LIGHTNING_BOLT" : Lightning bolt shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'lightningBolt' + * - "MATH_DIVIDE" : Divide math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathDivide' + * - "MATH_EQUAL" : Equal math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathEqual' + * - "MATH_MINUS" : Minus math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathMinus' + * - "MATH_MULTIPLY" : Multiply math shape. Corresponds to ECMA-376 + * ST_ShapeType 'mathMultiply' + * - "MATH_NOT_EQUAL" : Not equal math shape. Corresponds to ECMA-376 + * ST_ShapeType 'mathNotEqual' + * - "MATH_PLUS" : Plus math shape. Corresponds to ECMA-376 ST_ShapeType + * 'mathPlus' + * - "MOON" : Moon shape. Corresponds to ECMA-376 ST_ShapeType 'moon' + * - "NO_SMOKING" : No smoking shape. Corresponds to ECMA-376 ST_ShapeType + * 'noSmoking' + * - "NOTCHED_RIGHT_ARROW" : Notched right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'notchedRightArrow' + * - "OCTAGON" : Octagon shape. Corresponds to ECMA-376 ST_ShapeType 'octagon' + * - "PARALLELOGRAM" : Parallelogram shape. Corresponds to ECMA-376 + * ST_ShapeType 'parallelogram' + * - "PENTAGON" : Pentagon shape. Corresponds to ECMA-376 ST_ShapeType + * 'pentagon' + * - "PIE" : Pie shape. Corresponds to ECMA-376 ST_ShapeType 'pie' + * - "PLAQUE" : Plaque shape. Corresponds to ECMA-376 ST_ShapeType 'plaque' + * - "PLUS" : Plus shape. Corresponds to ECMA-376 ST_ShapeType 'plus' + * - "QUAD_ARROW" : Quad-arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'quadArrow' + * - "QUAD_ARROW_CALLOUT" : Callout quad-arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'quadArrowCallout' + * - "RIBBON" : Ribbon shape. Corresponds to ECMA-376 ST_ShapeType 'ribbon' + * - "RIBBON_2" : Ribbon 2 shape. Corresponds to ECMA-376 ST_ShapeType + * 'ribbon2' + * - "RIGHT_ARROW" : Right arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'rightArrow' + * - "RIGHT_ARROW_CALLOUT" : Callout right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'rightArrowCallout' + * - "RIGHT_BRACE" : Right brace shape. Corresponds to ECMA-376 ST_ShapeType + * 'rightBrace' + * - "RIGHT_BRACKET" : Right bracket shape. Corresponds to ECMA-376 + * ST_ShapeType 'rightBracket' + * - "ROUND_1_RECTANGLE" : One round corner rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'round1Rect' + * - "ROUND_2_DIAGONAL_RECTANGLE" : Two diagonal round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'round2DiagRect' + * - "ROUND_2_SAME_RECTANGLE" : Two same-side round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'round2SameRect' + * - "RIGHT_TRIANGLE" : Right triangle shape. Corresponds to ECMA-376 + * ST_ShapeType 'rtTriangle' + * - "SMILEY_FACE" : Smiley face shape. Corresponds to ECMA-376 ST_ShapeType + * 'smileyFace' + * - "SNIP_1_RECTANGLE" : One snip corner rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'snip1Rect' + * - "SNIP_2_DIAGONAL_RECTANGLE" : Two diagonal snip corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snip2DiagRect' + * - "SNIP_2_SAME_RECTANGLE" : Two same-side snip corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snip2SameRect' + * - "SNIP_ROUND_RECTANGLE" : One snip one round corner rectangle shape. + * Corresponds to ECMA-376 + * ST_ShapeType 'snipRoundRect' + * - "STAR_10" : Ten pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star10' + * - "STAR_12" : Twelve pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType 'star12' + * - "STAR_16" : Sixteen pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType 'star16' + * - "STAR_24" : Twenty four pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'star24' + * - "STAR_32" : Thirty two pointed star shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'star32' + * - "STAR_4" : Four pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star4' + * - "STAR_5" : Five pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star5' + * - "STAR_6" : Six pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star6' + * - "STAR_7" : Seven pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star7' + * - "STAR_8" : Eight pointed star shape. Corresponds to ECMA-376 ST_ShapeType + * 'star8' + * - "STRIPED_RIGHT_ARROW" : Striped right arrow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'stripedRightArrow' + * - "SUN" : Sun shape. Corresponds to ECMA-376 ST_ShapeType 'sun' + * - "TRAPEZOID" : Trapezoid shape. Corresponds to ECMA-376 ST_ShapeType + * 'trapezoid' + * - "TRIANGLE" : Triangle shape. Corresponds to ECMA-376 ST_ShapeType + * 'triangle' + * - "UP_ARROW" : Up arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'upArrow' + * - "UP_ARROW_CALLOUT" : Callout up arrow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'upArrowCallout' + * - "UP_DOWN_ARROW" : Up down arrow shape. Corresponds to ECMA-376 + * ST_ShapeType 'upDownArrow' + * - "UTURN_ARROW" : U-turn arrow shape. Corresponds to ECMA-376 ST_ShapeType + * 'uturnArrow' + * - "VERTICAL_SCROLL" : Vertical scroll shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'verticalScroll' + * - "WAVE" : Wave shape. Corresponds to ECMA-376 ST_ShapeType 'wave' + * - "WEDGE_ELLIPSE_CALLOUT" : Callout wedge ellipse shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'wedgeEllipseCallout' + * - "WEDGE_RECTANGLE_CALLOUT" : Callout wedge rectangle shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'wedgeRectCallout' + * - "WEDGE_ROUND_RECTANGLE_CALLOUT" : Callout wedge round rectangle shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'wedgeRoundRectCallout' + * - "FLOW_CHART_ALTERNATE_PROCESS" : Alternate process flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartAlternateProcess' + * - "FLOW_CHART_COLLATE" : Collate flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartCollate' + * - "FLOW_CHART_CONNECTOR" : Connector flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartConnector' + * - "FLOW_CHART_DECISION" : Decision flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDecision' + * - "FLOW_CHART_DELAY" : Delay flow shape. Corresponds to ECMA-376 + * ST_ShapeType 'flowChartDelay' + * - "FLOW_CHART_DISPLAY" : Display flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDisplay' + * - "FLOW_CHART_DOCUMENT" : Document flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartDocument' + * - "FLOW_CHART_EXTRACT" : Extract flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartExtract' + * - "FLOW_CHART_INPUT_OUTPUT" : Input output flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartInputOutput' + * - "FLOW_CHART_INTERNAL_STORAGE" : Internal storage flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartInternalStorage' + * - "FLOW_CHART_MAGNETIC_DISK" : Magnetic disk flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticDisk' + * - "FLOW_CHART_MAGNETIC_DRUM" : Magnetic drum flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticDrum' + * - "FLOW_CHART_MAGNETIC_TAPE" : Magnetic tape flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMagneticTape' + * - "FLOW_CHART_MANUAL_INPUT" : Manual input flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartManualInput' + * - "FLOW_CHART_MANUAL_OPERATION" : Manual operation flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartManualOperation' + * - "FLOW_CHART_MERGE" : Merge flow shape. Corresponds to ECMA-376 + * ST_ShapeType 'flowChartMerge' + * - "FLOW_CHART_MULTIDOCUMENT" : Multi-document flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartMultidocument' + * - "FLOW_CHART_OFFLINE_STORAGE" : Offline storage flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartOfflineStorage' + * - "FLOW_CHART_OFFPAGE_CONNECTOR" : Off-page connector flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartOffpageConnector' + * - "FLOW_CHART_ONLINE_STORAGE" : Online storage flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartOnlineStorage' + * - "FLOW_CHART_OR" : Or flow shape. Corresponds to ECMA-376 ST_ShapeType + * 'flowChartOr' + * - "FLOW_CHART_PREDEFINED_PROCESS" : Predefined process flow shape. + * Corresponds to ECMA-376 ST_ShapeType + * 'flowChartPredefinedProcess' + * - "FLOW_CHART_PREPARATION" : Preparation flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPreparation' + * - "FLOW_CHART_PROCESS" : Process flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartProcess' + * - "FLOW_CHART_PUNCHED_CARD" : Punched card flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPunchedCard' + * - "FLOW_CHART_PUNCHED_TAPE" : Punched tape flow shape. Corresponds to + * ECMA-376 ST_ShapeType + * 'flowChartPunchedTape' + * - "FLOW_CHART_SORT" : Sort flow shape. Corresponds to ECMA-376 ST_ShapeType + * 'flowChartSort' + * - "FLOW_CHART_SUMMING_JUNCTION" : Summing junction flow shape. Corresponds + * to ECMA-376 ST_ShapeType + * 'flowChartSummingJunction' + * - "FLOW_CHART_TERMINATOR" : Terminator flow shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'flowChartTerminator' + * - "ARROW_EAST" : East arrow shape. + * - "ARROW_NORTH_EAST" : Northeast arrow shape. + * - "ARROW_NORTH" : North arrow shape. + * - "SPEECH" : Speech shape. + * - "STARBURST" : Star burst shape. + * - "TEARDROP" : Teardrop shape. Corresponds to ECMA-376 ST_ShapeType + * 'teardrop' + * - "ELLIPSE_RIBBON" : Ellipse ribbon shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'ellipseRibbon' + * - "ELLIPSE_RIBBON_2" : Ellipse ribbon 2 shape. Corresponds to ECMA-376 + * ST_ShapeType + * 'ellipseRibbon2' + * - "CLOUD_CALLOUT" : Callout cloud shape. Corresponds to ECMA-376 + * ST_ShapeType 'cloudCallout' + * - "CUSTOM" : Custom shape. + */ + core.String shapeType; + /** The text content of the shape. */ + TextContent text; + + Shape(); + + Shape.fromJson(core.Map _json) { + if (_json.containsKey("placeholder")) { + placeholder = new Placeholder.fromJson(_json["placeholder"]); + } + if (_json.containsKey("shapeProperties")) { + shapeProperties = new ShapeProperties.fromJson(_json["shapeProperties"]); + } + if (_json.containsKey("shapeType")) { + shapeType = _json["shapeType"]; + } + if (_json.containsKey("text")) { + text = new TextContent.fromJson(_json["text"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (placeholder != null) { + _json["placeholder"] = (placeholder).toJson(); + } + if (shapeProperties != null) { + _json["shapeProperties"] = (shapeProperties).toJson(); + } + if (shapeType != null) { + _json["shapeType"] = shapeType; + } + if (text != null) { + _json["text"] = (text).toJson(); + } + return _json; + } +} + +/** The shape background fill. */ +class ShapeBackgroundFill { + /** + * The background fill property state. + * + * Updating the the fill on a shape will implicitly update this field to + * `RENDERED`, unless another value is specified in the same request. To + * have no fill on a shape, set this field to `NOT_RENDERED`. In this case, + * any other fill fields set in the same request will be ignored. + * Possible string values are: + * - "RENDERED" : If a property's state is RENDERED, then the element has the + * corresponding + * property when rendered on a page. If the element is a placeholder shape as + * determined by the placeholder + * field, and it inherits from a placeholder shape, the corresponding field + * may be unset, meaning that the property value is inherited from a parent + * placeholder. If the element does not inherit, then the field will contain + * the rendered value. This is the default value. + * - "NOT_RENDERED" : If a property's state is NOT_RENDERED, then the element + * does not have the + * corresponding property when rendered on a page. However, the field may + * still be set so it can be inherited by child shapes. To remove a property + * from a rendered element, set its property_state to NOT_RENDERED. + * - "INHERIT" : If a property's state is INHERIT, then the property state + * uses the value of + * corresponding `property_state` field on the parent shape. Elements that do + * not inherit will never have an INHERIT property state. + */ + core.String propertyState; + /** Solid color fill. */ + SolidFill solidFill; + + ShapeBackgroundFill(); + + ShapeBackgroundFill.fromJson(core.Map _json) { + if (_json.containsKey("propertyState")) { + propertyState = _json["propertyState"]; + } + if (_json.containsKey("solidFill")) { + solidFill = new SolidFill.fromJson(_json["solidFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (propertyState != null) { + _json["propertyState"] = propertyState; + } + if (solidFill != null) { + _json["solidFill"] = (solidFill).toJson(); + } + return _json; + } +} + +/** + * The properties of a Shape. + * + * If the shape is a placeholder shape as determined by the + * placeholder field, then these + * properties may be inherited from a parent placeholder shape. + * Determining the rendered value of the property depends on the corresponding + * property_state field value. + */ +class ShapeProperties { + /** + * The hyperlink destination of the shape. If unset, there is no link. Links + * are not inherited from parent placeholders. + */ + Link link; + /** + * The outline of the shape. If unset, the outline is inherited from a + * parent placeholder if it exists. If the shape has no parent, then the + * default outline depends on the shape type, matching the defaults for + * new shapes created in the Slides editor. + */ + Outline outline; + /** + * The shadow properties of the shape. If unset, the shadow is inherited from + * a parent placeholder if it exists. If the shape has no parent, then the + * default shadow matches the defaults for new shapes created in the Slides + * editor. This property is read-only. + */ + Shadow shadow; + /** + * The background fill of the shape. If unset, the background fill is + * inherited from a parent placeholder if it exists. If the shape has no + * parent, then the default background fill depends on the shape type, + * matching the defaults for new shapes created in the Slides editor. + */ + ShapeBackgroundFill shapeBackgroundFill; + + ShapeProperties(); + + ShapeProperties.fromJson(core.Map _json) { + if (_json.containsKey("link")) { + link = new Link.fromJson(_json["link"]); + } + if (_json.containsKey("outline")) { + outline = new Outline.fromJson(_json["outline"]); + } + if (_json.containsKey("shadow")) { + shadow = new Shadow.fromJson(_json["shadow"]); + } + if (_json.containsKey("shapeBackgroundFill")) { + shapeBackgroundFill = new ShapeBackgroundFill.fromJson(_json["shapeBackgroundFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (link != null) { + _json["link"] = (link).toJson(); + } + if (outline != null) { + _json["outline"] = (outline).toJson(); + } + if (shadow != null) { + _json["shadow"] = (shadow).toJson(); + } + if (shapeBackgroundFill != null) { + _json["shapeBackgroundFill"] = (shapeBackgroundFill).toJson(); + } + return _json; + } +} + +/** + * A PageElement kind representing + * a linked chart embedded from Google Sheets. + */ +class SheetsChart { + /** + * The ID of the specific chart in the Google Sheets spreadsheet that is + * embedded. + */ + core.int chartId; + /** + * The URL of an image of the embedded chart, with a default lifetime of 30 + * minutes. This URL is tagged with the account of the requester. Anyone with + * the URL effectively accesses the image as the original requester. Access to + * the image may be lost if the presentation's sharing settings change. + */ + core.String contentUrl; + /** The properties of the Sheets chart. */ + SheetsChartProperties sheetsChartProperties; + /** + * The ID of the Google Sheets spreadsheet that contains the source chart. + */ + core.String spreadsheetId; + + SheetsChart(); + + SheetsChart.fromJson(core.Map _json) { + if (_json.containsKey("chartId")) { + chartId = _json["chartId"]; + } + if (_json.containsKey("contentUrl")) { + contentUrl = _json["contentUrl"]; + } + if (_json.containsKey("sheetsChartProperties")) { + sheetsChartProperties = new SheetsChartProperties.fromJson(_json["sheetsChartProperties"]); + } + if (_json.containsKey("spreadsheetId")) { + spreadsheetId = _json["spreadsheetId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (chartId != null) { + _json["chartId"] = chartId; + } + if (contentUrl != null) { + _json["contentUrl"] = contentUrl; + } + if (sheetsChartProperties != null) { + _json["sheetsChartProperties"] = (sheetsChartProperties).toJson(); + } + if (spreadsheetId != null) { + _json["spreadsheetId"] = spreadsheetId; + } + return _json; + } +} + +/** The properties of the SheetsChart. */ +class SheetsChartProperties { + /** The properties of the embedded chart image. */ + ImageProperties chartImageProperties; + + SheetsChartProperties(); + + SheetsChartProperties.fromJson(core.Map _json) { + if (_json.containsKey("chartImageProperties")) { + chartImageProperties = new ImageProperties.fromJson(_json["chartImageProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (chartImageProperties != null) { + _json["chartImageProperties"] = (chartImageProperties).toJson(); + } + return _json; + } +} + +/** A width and height. */ +class Size { + /** The height of the object. */ + Dimension height; + /** The width of the object. */ + Dimension width; + + Size(); + + Size.fromJson(core.Map _json) { + if (_json.containsKey("height")) { + height = new Dimension.fromJson(_json["height"]); + } + if (_json.containsKey("width")) { + width = new Dimension.fromJson(_json["width"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (height != null) { + _json["height"] = (height).toJson(); + } + if (width != null) { + _json["width"] = (width).toJson(); + } + return _json; + } +} + +/** + * The properties of Page that are only + * relevant for pages with page_type SLIDE. + */ +class SlideProperties { + /** The object ID of the layout that this slide is based on. */ + core.String layoutObjectId; + /** The object ID of the master that this slide is based on. */ + core.String masterObjectId; + + SlideProperties(); + + SlideProperties.fromJson(core.Map _json) { + if (_json.containsKey("layoutObjectId")) { + layoutObjectId = _json["layoutObjectId"]; + } + if (_json.containsKey("masterObjectId")) { + masterObjectId = _json["masterObjectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (layoutObjectId != null) { + _json["layoutObjectId"] = layoutObjectId; + } + if (masterObjectId != null) { + _json["masterObjectId"] = masterObjectId; + } + return _json; + } +} + +/** + * A solid color fill. The page or page element is filled entirely with the + * specified color value. + * + * If any field is unset, its value may be inherited from a parent placeholder + * if it exists. + */ +class SolidFill { + /** + * The fraction of this `color` that should be applied to the pixel. + * That is, the final pixel color is defined by the equation: + * + * pixel color = alpha * (color) + (1.0 - alpha) * (background color) + * + * This means that a value of 1.0 corresponds to a solid color, whereas + * a value of 0.0 corresponds to a completely transparent color. + */ + core.double alpha; + /** The color value of the solid fill. */ + OpaqueColor color; + + SolidFill(); + + SolidFill.fromJson(core.Map _json) { + if (_json.containsKey("alpha")) { + alpha = _json["alpha"]; + } + if (_json.containsKey("color")) { + color = new OpaqueColor.fromJson(_json["color"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (alpha != null) { + _json["alpha"] = alpha; + } + if (color != null) { + _json["color"] = (color).toJson(); + } + return _json; + } +} + +/** + * The stretched picture fill. The page or page element is filled entirely with + * the specified picture. The picture is stretched to fit its container. + */ +class StretchedPictureFill { + /** + * Reading the content_url: + * + * An URL to a picture with a default lifetime of 30 minutes. + * This URL is tagged with the account of the requester. Anyone with the URL + * effectively accesses the picture as the original requester. Access to the + * picture may be lost if the presentation's sharing settings change. + * + * Writing the content_url: + * + * The picture is fetched once at insertion time and a copy is stored for + * display inside the presentation. Pictures must be less than 50MB in size, + * cannot exceed 25 megapixels, and must be in either in PNG, JPEG, or GIF + * format. + */ + core.String contentUrl; + /** The original size of the picture fill. This field is read-only. */ + Size size; + + StretchedPictureFill(); + + StretchedPictureFill.fromJson(core.Map _json) { + if (_json.containsKey("contentUrl")) { + contentUrl = _json["contentUrl"]; + } + if (_json.containsKey("size")) { + size = new Size.fromJson(_json["size"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contentUrl != null) { + _json["contentUrl"] = contentUrl; + } + if (size != null) { + _json["size"] = (size).toJson(); + } + return _json; + } +} + +/** A criteria that matches a specific string of text in a shape or table. */ +class SubstringMatchCriteria { + /** + * Indicates whether the search should respect case: + * + * - `True`: the search is case sensitive. + * - `False`: the search is case insensitive. + */ + core.bool matchCase; + /** The text to search for in the shape or table. */ + core.String text; + + SubstringMatchCriteria(); + + SubstringMatchCriteria.fromJson(core.Map _json) { + if (_json.containsKey("matchCase")) { + matchCase = _json["matchCase"]; + } + if (_json.containsKey("text")) { + text = _json["text"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (matchCase != null) { + _json["matchCase"] = matchCase; + } + if (text != null) { + _json["text"] = text; + } + return _json; + } +} + +/** + * A PageElement kind representing a + * table. + */ +class Table { + /** Number of columns in the table. */ + core.int columns; + /** Number of rows in the table. */ + core.int rows; + /** Properties of each column. */ + core.List<TableColumnProperties> tableColumns; + /** + * Properties and contents of each row. + * + * Cells that span multiple rows are contained in only one of these rows and + * have a row_span greater + * than 1. + */ + core.List<TableRow> tableRows; + + Table(); + + Table.fromJson(core.Map _json) { + if (_json.containsKey("columns")) { + columns = _json["columns"]; + } + if (_json.containsKey("rows")) { + rows = _json["rows"]; + } + if (_json.containsKey("tableColumns")) { + tableColumns = _json["tableColumns"].map((value) => new TableColumnProperties.fromJson(value)).toList(); + } + if (_json.containsKey("tableRows")) { + tableRows = _json["tableRows"].map((value) => new TableRow.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columns != null) { + _json["columns"] = columns; + } + if (rows != null) { + _json["rows"] = rows; + } + if (tableColumns != null) { + _json["tableColumns"] = tableColumns.map((value) => (value).toJson()).toList(); + } + if (tableRows != null) { + _json["tableRows"] = tableRows.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Properties and contents of each table cell. */ +class TableCell { + /** Column span of the cell. */ + core.int columnSpan; + /** The location of the cell within the table. */ + TableCellLocation location; + /** Row span of the cell. */ + core.int rowSpan; + /** The properties of the table cell. */ + TableCellProperties tableCellProperties; + /** The text content of the cell. */ + TextContent text; + + TableCell(); + + TableCell.fromJson(core.Map _json) { + if (_json.containsKey("columnSpan")) { + columnSpan = _json["columnSpan"]; + } + if (_json.containsKey("location")) { + location = new TableCellLocation.fromJson(_json["location"]); + } + if (_json.containsKey("rowSpan")) { + rowSpan = _json["rowSpan"]; + } + if (_json.containsKey("tableCellProperties")) { + tableCellProperties = new TableCellProperties.fromJson(_json["tableCellProperties"]); + } + if (_json.containsKey("text")) { + text = new TextContent.fromJson(_json["text"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columnSpan != null) { + _json["columnSpan"] = columnSpan; + } + if (location != null) { + _json["location"] = (location).toJson(); + } + if (rowSpan != null) { + _json["rowSpan"] = rowSpan; + } + if (tableCellProperties != null) { + _json["tableCellProperties"] = (tableCellProperties).toJson(); + } + if (text != null) { + _json["text"] = (text).toJson(); + } + return _json; + } +} + +/** The table cell background fill. */ +class TableCellBackgroundFill { + /** + * The background fill property state. + * + * Updating the the fill on a table cell will implicitly update this field + * to `RENDERED`, unless another value is specified in the same request. To + * have no fill on a table cell, set this field to `NOT_RENDERED`. In this + * case, any other fill fields set in the same request will be ignored. + * Possible string values are: + * - "RENDERED" : If a property's state is RENDERED, then the element has the + * corresponding + * property when rendered on a page. If the element is a placeholder shape as + * determined by the placeholder + * field, and it inherits from a placeholder shape, the corresponding field + * may be unset, meaning that the property value is inherited from a parent + * placeholder. If the element does not inherit, then the field will contain + * the rendered value. This is the default value. + * - "NOT_RENDERED" : If a property's state is NOT_RENDERED, then the element + * does not have the + * corresponding property when rendered on a page. However, the field may + * still be set so it can be inherited by child shapes. To remove a property + * from a rendered element, set its property_state to NOT_RENDERED. + * - "INHERIT" : If a property's state is INHERIT, then the property state + * uses the value of + * corresponding `property_state` field on the parent shape. Elements that do + * not inherit will never have an INHERIT property state. + */ + core.String propertyState; + /** Solid color fill. */ + SolidFill solidFill; + + TableCellBackgroundFill(); + + TableCellBackgroundFill.fromJson(core.Map _json) { + if (_json.containsKey("propertyState")) { + propertyState = _json["propertyState"]; + } + if (_json.containsKey("solidFill")) { + solidFill = new SolidFill.fromJson(_json["solidFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (propertyState != null) { + _json["propertyState"] = propertyState; + } + if (solidFill != null) { + _json["solidFill"] = (solidFill).toJson(); + } + return _json; + } +} + +/** A location of a single table cell within a table. */ +class TableCellLocation { + /** The 0-based column index. */ + core.int columnIndex; + /** The 0-based row index. */ + core.int rowIndex; + + TableCellLocation(); + + TableCellLocation.fromJson(core.Map _json) { + if (_json.containsKey("columnIndex")) { + columnIndex = _json["columnIndex"]; + } + if (_json.containsKey("rowIndex")) { + rowIndex = _json["rowIndex"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columnIndex != null) { + _json["columnIndex"] = columnIndex; + } + if (rowIndex != null) { + _json["rowIndex"] = rowIndex; + } + return _json; + } +} + +/** The properties of the TableCell. */ +class TableCellProperties { + /** + * The background fill of the table cell. The default fill matches the fill + * for newly created table cells in the Slides editor. + */ + TableCellBackgroundFill tableCellBackgroundFill; + + TableCellProperties(); + + TableCellProperties.fromJson(core.Map _json) { + if (_json.containsKey("tableCellBackgroundFill")) { + tableCellBackgroundFill = new TableCellBackgroundFill.fromJson(_json["tableCellBackgroundFill"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (tableCellBackgroundFill != null) { + _json["tableCellBackgroundFill"] = (tableCellBackgroundFill).toJson(); + } + return _json; + } +} + +/** Properties of each column in a table. */ +class TableColumnProperties { + /** Width of a column. */ + Dimension columnWidth; + + TableColumnProperties(); + + TableColumnProperties.fromJson(core.Map _json) { + if (_json.containsKey("columnWidth")) { + columnWidth = new Dimension.fromJson(_json["columnWidth"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columnWidth != null) { + _json["columnWidth"] = (columnWidth).toJson(); + } + return _json; + } +} + +/** + * A table range represents a reference to a subset of a table. + * + * It's important to note that the cells specified by a table range do not + * necessarily form a rectangle. For example, let's say we have a 3 x 3 table + * where all the cells of the last row are merged together. The table looks + * like this: + * + * + * [ ] + * + * A table range with location = (0, 0), row span = 3 and column span = 2 + * specifies the following cells: + * + * x x + * [ x ] + */ +class TableRange { + /** The column span of the table range. */ + core.int columnSpan; + /** The starting location of the table range. */ + TableCellLocation location; + /** The row span of the table range. */ + core.int rowSpan; + + TableRange(); + + TableRange.fromJson(core.Map _json) { + if (_json.containsKey("columnSpan")) { + columnSpan = _json["columnSpan"]; + } + if (_json.containsKey("location")) { + location = new TableCellLocation.fromJson(_json["location"]); + } + if (_json.containsKey("rowSpan")) { + rowSpan = _json["rowSpan"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (columnSpan != null) { + _json["columnSpan"] = columnSpan; + } + if (location != null) { + _json["location"] = (location).toJson(); + } + if (rowSpan != null) { + _json["rowSpan"] = rowSpan; + } + return _json; + } +} + +/** Properties and contents of each row in a table. */ +class TableRow { + /** Height of a row. */ + Dimension rowHeight; + /** + * Properties and contents of each cell. + * + * Cells that span multiple columns are represented only once with a + * column_span greater + * than 1. As a result, the length of this collection does not always match + * the number of columns of the entire table. + */ + core.List<TableCell> tableCells; + + TableRow(); + + TableRow.fromJson(core.Map _json) { + if (_json.containsKey("rowHeight")) { + rowHeight = new Dimension.fromJson(_json["rowHeight"]); + } + if (_json.containsKey("tableCells")) { + tableCells = _json["tableCells"].map((value) => new TableCell.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (rowHeight != null) { + _json["rowHeight"] = (rowHeight).toJson(); + } + if (tableCells != null) { + _json["tableCells"] = tableCells.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * The general text content. The text must reside in a compatible shape (e.g. + * text box or rectangle) or a table cell in a page. + */ +class TextContent { + /** The bulleted lists contained in this text, keyed by list ID. */ + core.Map<core.String, List> lists; + /** + * The text contents broken down into its component parts, including styling + * information. This property is read-only. + */ + core.List<TextElement> textElements; + + TextContent(); + + TextContent.fromJson(core.Map _json) { + if (_json.containsKey("lists")) { + lists = commons.mapMap(_json["lists"], (item) => new List.fromJson(item)); + } + if (_json.containsKey("textElements")) { + textElements = _json["textElements"].map((value) => new TextElement.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (lists != null) { + _json["lists"] = commons.mapMap(lists, (item) => (item).toJson()); + } + if (textElements != null) { + _json["textElements"] = textElements.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * A TextElement describes the content of a range of indices in the text content + * of a Shape or TableCell. + */ +class TextElement { + /** + * A TextElement representing a spot in the text that is dynamically + * replaced with content that can change over time. + */ + AutoText autoText; + /** + * The zero-based end index of this text element, exclusive, in Unicode code + * units. + */ + core.int endIndex; + /** + * A marker representing the beginning of a new paragraph. + * + * The `start_index` and `end_index` of this TextElement represent the + * range of the paragraph. Other TextElements with an index range contained + * inside this paragraph's range are considered to be part of this + * paragraph. The range of indices of two separate paragraphs will never + * overlap. + */ + ParagraphMarker paragraphMarker; + /** + * The zero-based start index of this text element, in Unicode code units. + */ + core.int startIndex; + /** + * A TextElement representing a run of text where all of the characters + * in the run have the same TextStyle. + * + * The `start_index` and `end_index` of TextRuns will always be fully + * contained in the index range of a single `paragraph_marker` TextElement. + * In other words, a TextRun will never span multiple paragraphs. + */ + TextRun textRun; + + TextElement(); + + TextElement.fromJson(core.Map _json) { + if (_json.containsKey("autoText")) { + autoText = new AutoText.fromJson(_json["autoText"]); + } + if (_json.containsKey("endIndex")) { + endIndex = _json["endIndex"]; + } + if (_json.containsKey("paragraphMarker")) { + paragraphMarker = new ParagraphMarker.fromJson(_json["paragraphMarker"]); + } + if (_json.containsKey("startIndex")) { + startIndex = _json["startIndex"]; + } + if (_json.containsKey("textRun")) { + textRun = new TextRun.fromJson(_json["textRun"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (autoText != null) { + _json["autoText"] = (autoText).toJson(); + } + if (endIndex != null) { + _json["endIndex"] = endIndex; + } + if (paragraphMarker != null) { + _json["paragraphMarker"] = (paragraphMarker).toJson(); + } + if (startIndex != null) { + _json["startIndex"] = startIndex; + } + if (textRun != null) { + _json["textRun"] = (textRun).toJson(); + } + return _json; + } +} + +/** + * A TextElement kind that represents a run of text that all has the same + * styling. + */ +class TextRun { + /** The text of this run. */ + core.String content; + /** The styling applied to this run. */ + TextStyle style; + + TextRun(); + + TextRun.fromJson(core.Map _json) { + if (_json.containsKey("content")) { + content = _json["content"]; + } + if (_json.containsKey("style")) { + style = new TextStyle.fromJson(_json["style"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (content != null) { + _json["content"] = content; + } + if (style != null) { + _json["style"] = (style).toJson(); + } + return _json; + } +} + +/** + * Represents the styling that can be applied to a TextRun. + * + * If this text is contained in a shape with a parent placeholder, then these + * text styles may be + * inherited from the parent. Which text styles are inherited depend on the + * nesting level of lists: + * + * * A text run in a paragraph that is not in a list will inherit its text style + * from the the newline character in the paragraph at the 0 nesting level of + * the list inside the parent placeholder. + * * A text run in a paragraph that is in a list will inherit its text style + * from the newline character in the paragraph at its corresponding nesting + * level of the list inside the parent placeholder. + * + * Inherited text styles are represented as unset fields in this message. If + * text is contained in a shape without a parent placeholder, unsetting these + * fields will revert the style to a value matching the defaults in the Slides + * editor. + */ +class TextStyle { + /** + * The background color of the text. If set, the color is either opaque or + * transparent, depending on if the `opaque_color` field in it is set. + */ + OptionalColor backgroundColor; + /** + * The text's vertical offset from its normal position. + * + * Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically + * rendered in a smaller font size, computed based on the `font_size` field. + * The `font_size` itself is not affected by changes in this field. + * Possible string values are: + * - "BASELINE_OFFSET_UNSPECIFIED" : The text's baseline offset is inherited + * from the parent. + * - "NONE" : The text is not vertically offset. + * - "SUPERSCRIPT" : The text is vertically offset upwards (superscript). + * - "SUBSCRIPT" : The text is vertically offset downwards (subscript). + */ + core.String baselineOffset; + /** Whether or not the text is bold. */ + core.bool bold; + /** + * The font family of the text. + * + * The font family can be any font from the Font menu in Slides or from + * [Google Fonts] (https://fonts.google.com/). If the font name is + * unrecognized, the text is rendered in `Arial`. + * + * Some fonts can affect the weight of the text. If an update request + * specifies values for both `font_family` and `bold`, the explicitly-set + * `bold` value is used. + */ + core.String fontFamily; + /** + * The size of the text's font. When read, the `font_size` will specified in + * points. + */ + Dimension fontSize; + /** + * The color of the text itself. If set, the color is either opaque or + * transparent, depending on if the `opaque_color` field in it is set. + */ + OptionalColor foregroundColor; + /** Whether or not the text is italicized. */ + core.bool italic; + /** + * The hyperlink destination of the text. If unset, there is no link. Links + * are not inherited from parent text. + * + * Changing the link in an update request causes some other changes to the + * text style of the range: + * + * * When setting a link, the text foreground color will be set to + * ThemeColorType.HYPERLINK and the text will + * be underlined. If these fields are modified in the same + * request, those values will be used instead of the link defaults. + * * Setting a link on a text range that overlaps with an existing link will + * also update the existing link to point to the new URL. + * * Links are not settable on newline characters. As a result, setting a link + * on a text range that crosses a paragraph boundary, such as `"ABC\n123"`, + * will separate the newline character(s) into their own text runs. The + * link will be applied separately to the runs before and after the newline. + * * Removing a link will update the text style of the range to match the + * style of the preceding text (or the default text styles if the preceding + * text is another link) unless different styles are being set in the same + * request. + */ + Link link; + /** Whether or not the text is in small capital letters. */ + core.bool smallCaps; + /** Whether or not the text is struck through. */ + core.bool strikethrough; + /** Whether or not the text is underlined. */ + core.bool underline; + + TextStyle(); + + TextStyle.fromJson(core.Map _json) { + if (_json.containsKey("backgroundColor")) { + backgroundColor = new OptionalColor.fromJson(_json["backgroundColor"]); + } + if (_json.containsKey("baselineOffset")) { + baselineOffset = _json["baselineOffset"]; + } + if (_json.containsKey("bold")) { + bold = _json["bold"]; + } + if (_json.containsKey("fontFamily")) { + fontFamily = _json["fontFamily"]; + } + if (_json.containsKey("fontSize")) { + fontSize = new Dimension.fromJson(_json["fontSize"]); + } + if (_json.containsKey("foregroundColor")) { + foregroundColor = new OptionalColor.fromJson(_json["foregroundColor"]); + } + if (_json.containsKey("italic")) { + italic = _json["italic"]; + } + if (_json.containsKey("link")) { + link = new Link.fromJson(_json["link"]); + } + if (_json.containsKey("smallCaps")) { + smallCaps = _json["smallCaps"]; + } + if (_json.containsKey("strikethrough")) { + strikethrough = _json["strikethrough"]; + } + if (_json.containsKey("underline")) { + underline = _json["underline"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (backgroundColor != null) { + _json["backgroundColor"] = (backgroundColor).toJson(); + } + if (baselineOffset != null) { + _json["baselineOffset"] = baselineOffset; + } + if (bold != null) { + _json["bold"] = bold; + } + if (fontFamily != null) { + _json["fontFamily"] = fontFamily; + } + if (fontSize != null) { + _json["fontSize"] = (fontSize).toJson(); + } + if (foregroundColor != null) { + _json["foregroundColor"] = (foregroundColor).toJson(); + } + if (italic != null) { + _json["italic"] = italic; + } + if (link != null) { + _json["link"] = (link).toJson(); + } + if (smallCaps != null) { + _json["smallCaps"] = smallCaps; + } + if (strikethrough != null) { + _json["strikethrough"] = strikethrough; + } + if (underline != null) { + _json["underline"] = underline; + } + return _json; + } +} + +/** A pair mapping a theme color type to the concrete color it represents. */ +class ThemeColorPair { + /** The concrete color corresponding to the theme color type above. */ + RgbColor color; + /** + * The type of the theme color. + * Possible string values are: + * - "THEME_COLOR_TYPE_UNSPECIFIED" : Unspecified theme color. This value + * should not be used. + * - "DARK1" : Represents the first dark color. + * - "LIGHT1" : Represents the first light color. + * - "DARK2" : Represents the second dark color. + * - "LIGHT2" : Represents the second light color. + * - "ACCENT1" : Represents the first accent color. + * - "ACCENT2" : Represents the second accent color. + * - "ACCENT3" : Represents the third accent color. + * - "ACCENT4" : Represents the fourth accent color. + * - "ACCENT5" : Represents the fifth accent color. + * - "ACCENT6" : Represents the sixth accent color. + * - "HYPERLINK" : Represents the color to use for hyperlinks. + * - "FOLLOWED_HYPERLINK" : Represents the color to use for visited + * hyperlinks. + * - "TEXT1" : Represents the first text color. + * - "BACKGROUND1" : Represents the first background color. + * - "TEXT2" : Represents the second text color. + * - "BACKGROUND2" : Represents the second background color. + */ + core.String type; + + ThemeColorPair(); + + ThemeColorPair.fromJson(core.Map _json) { + if (_json.containsKey("color")) { + color = new RgbColor.fromJson(_json["color"]); + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (color != null) { + _json["color"] = (color).toJson(); + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** Update the properties of an Image. */ +class UpdateImagePropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `imageProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the image outline color, set `fields` to + * `"outline.outlineFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The image properties to update. */ + ImageProperties imageProperties; + /** The object ID of the image the updates are applied to. */ + core.String objectId; + + UpdateImagePropertiesRequest(); + + UpdateImagePropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("imageProperties")) { + imageProperties = new ImageProperties.fromJson(_json["imageProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (imageProperties != null) { + _json["imageProperties"] = (imageProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Updates the properties of a Line. */ +class UpdateLinePropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `lineProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the line solid fill color, set `fields` to + * `"lineFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The line properties to update. */ + LineProperties lineProperties; + /** The object ID of the line the update is applied to. */ + core.String objectId; + + UpdateLinePropertiesRequest(); + + UpdateLinePropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("lineProperties")) { + lineProperties = new LineProperties.fromJson(_json["lineProperties"]); + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (lineProperties != null) { + _json["lineProperties"] = (lineProperties).toJson(); + } + if (objectId != null) { + _json["objectId"] = objectId; + } + return _json; + } +} + +/** Updates the transform of a page element. */ +class UpdatePageElementTransformRequest { + /** + * The apply mode of the transform update. + * Possible string values are: + * - "APPLY_MODE_UNSPECIFIED" : Unspecified mode. + * - "RELATIVE" : Applies the new AffineTransform matrix to the existing one, + * and + * replaces the existing one with the resulting concatenation. + * - "ABSOLUTE" : Replaces the existing AffineTransform matrix with the new + * one. + */ + core.String applyMode; + /** The object ID of the page element to update. */ + core.String objectId; + /** The input transform matrix used to update the page element. */ + AffineTransform transform; + + UpdatePageElementTransformRequest(); + + UpdatePageElementTransformRequest.fromJson(core.Map _json) { + if (_json.containsKey("applyMode")) { + applyMode = _json["applyMode"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("transform")) { + transform = new AffineTransform.fromJson(_json["transform"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (applyMode != null) { + _json["applyMode"] = applyMode; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (transform != null) { + _json["transform"] = (transform).toJson(); + } + return _json; + } +} + +/** Updates the properties of a Page. */ +class UpdatePagePropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `pageProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the page background solid fill color, set `fields` + * to `"pageBackgroundFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The object ID of the page the update is applied to. */ + core.String objectId; + /** The page properties to update. */ + PageProperties pageProperties; + + UpdatePagePropertiesRequest(); + + UpdatePagePropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("pageProperties")) { + pageProperties = new PageProperties.fromJson(_json["pageProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (pageProperties != null) { + _json["pageProperties"] = (pageProperties).toJson(); + } + return _json; + } +} + +/** Update the properties of a Shape. */ +class UpdateShapePropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `shapeProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the shape background solid fill color, set `fields` + * to `"shapeBackgroundFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The object ID of the shape the updates are applied to. */ + core.String objectId; + /** The shape properties to update. */ + ShapeProperties shapeProperties; + + UpdateShapePropertiesRequest(); + + UpdateShapePropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("shapeProperties")) { + shapeProperties = new ShapeProperties.fromJson(_json["shapeProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (shapeProperties != null) { + _json["shapeProperties"] = (shapeProperties).toJson(); + } + return _json; + } +} + +/** Updates the position of slides in the presentation. */ +class UpdateSlidesPositionRequest { + /** + * The index where the slides should be inserted, based on the slide + * arrangement before the move takes place. Must be between zero and the + * number of slides in the presentation, inclusive. + */ + core.int insertionIndex; + /** + * The IDs of the slides in the presentation that should be moved. + * The slides in this list must be in existing presentation order, without + * duplicates. + */ + core.List<core.String> slideObjectIds; + + UpdateSlidesPositionRequest(); + + UpdateSlidesPositionRequest.fromJson(core.Map _json) { + if (_json.containsKey("insertionIndex")) { + insertionIndex = _json["insertionIndex"]; + } + if (_json.containsKey("slideObjectIds")) { + slideObjectIds = _json["slideObjectIds"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (insertionIndex != null) { + _json["insertionIndex"] = insertionIndex; + } + if (slideObjectIds != null) { + _json["slideObjectIds"] = slideObjectIds; + } + return _json; + } +} + +/** Update the properties of a TableCell. */ +class UpdateTableCellPropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `tableCellProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the table cell background solid fill color, set + * `fields` to `"tableCellBackgroundFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The object ID of the table. */ + core.String objectId; + /** The table cell properties to update. */ + TableCellProperties tableCellProperties; + /** + * The table range representing the subset of the table to which the updates + * are applied. If a table range is not specified, the updates will apply to + * the entire table. + */ + TableRange tableRange; + + UpdateTableCellPropertiesRequest(); + + UpdateTableCellPropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("tableCellProperties")) { + tableCellProperties = new TableCellProperties.fromJson(_json["tableCellProperties"]); + } + if (_json.containsKey("tableRange")) { + tableRange = new TableRange.fromJson(_json["tableRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (tableCellProperties != null) { + _json["tableCellProperties"] = (tableCellProperties).toJson(); + } + if (tableRange != null) { + _json["tableRange"] = (tableRange).toJson(); + } + return _json; + } +} + +/** + * Update the styling of text in a Shape or + * Table. + */ +class UpdateTextStyleRequest { + /** + * The optional table cell location if the text to be styled is in a table + * cell. If present, the object_id must refer to a table. + */ + TableCellLocation cellLocation; + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `style` is implied and + * should not be specified. A single `"*"` can be used as short-hand for + * listing every field. + * + * For example to update the text style to bold, set `fields` to `"bold"`. + * + * To reset a property to its default value, + * include its field name in the field mask but leave the field itself unset. + */ + core.String fields; + /** The object ID of the shape or table with the text to be styled. */ + core.String objectId; + /** + * The style(s) to set on the text. + * + * If the value for a particular style matches that of the parent, that style + * will be set to inherit. + * + * Certain text style changes may cause other changes meant to mirror the + * behavior of the Slides editor. See the documentation of + * TextStyle for more information. + */ + TextStyle style; + /** + * The range of text to style. + * + * The range may be extended to include adjacent newlines. + * + * If the range fully contains a paragraph belonging to a list, the + * paragraph's bullet is also updated with the matching text style. + */ + Range textRange; + + UpdateTextStyleRequest(); + + UpdateTextStyleRequest.fromJson(core.Map _json) { + if (_json.containsKey("cellLocation")) { + cellLocation = new TableCellLocation.fromJson(_json["cellLocation"]); + } + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("style")) { + style = new TextStyle.fromJson(_json["style"]); + } + if (_json.containsKey("textRange")) { + textRange = new Range.fromJson(_json["textRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cellLocation != null) { + _json["cellLocation"] = (cellLocation).toJson(); + } + if (fields != null) { + _json["fields"] = fields; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (style != null) { + _json["style"] = (style).toJson(); + } + if (textRange != null) { + _json["textRange"] = (textRange).toJson(); + } + return _json; + } +} + +/** Update the properties of a Video. */ +class UpdateVideoPropertiesRequest { + /** + * The fields that should be updated. + * + * At least one field must be specified. The root `videoProperties` is + * implied and should not be specified. A single `"*"` can be used as + * short-hand for listing every field. + * + * For example to update the video outline color, set `fields` to + * `"outline.outlineFill.solidFill.color"`. + * + * To reset a property to its default value, include its field name in the + * field mask but leave the field itself unset. + */ + core.String fields; + /** The object ID of the video the updates are applied to. */ + core.String objectId; + /** The video properties to update. */ + VideoProperties videoProperties; + + UpdateVideoPropertiesRequest(); + + UpdateVideoPropertiesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("videoProperties")) { + videoProperties = new VideoProperties.fromJson(_json["videoProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (videoProperties != null) { + _json["videoProperties"] = (videoProperties).toJson(); + } + return _json; + } +} + +/** + * A PageElement kind representing a + * video. + */ +class Video { + /** The video source's unique identifier for this video. */ + core.String id; + /** + * The video source. + * Possible string values are: + * - "SOURCE_UNSPECIFIED" : The video source is unspecified. + * - "YOUTUBE" : The video source is YouTube. + */ + core.String source; + /** + * An URL to a video. The URL is valid as long as the source video + * exists and sharing settings do not change. + */ + core.String url; + /** The properties of the video. */ + VideoProperties videoProperties; + + Video(); + + Video.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("source")) { + source = _json["source"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + if (_json.containsKey("videoProperties")) { + videoProperties = new VideoProperties.fromJson(_json["videoProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (id != null) { + _json["id"] = id; + } + if (source != null) { + _json["source"] = source; + } + if (url != null) { + _json["url"] = url; + } + if (videoProperties != null) { + _json["videoProperties"] = (videoProperties).toJson(); + } + return _json; + } +} + +/** The properties of the Video. */ +class VideoProperties { + /** + * The outline of the video. The default outline matches the defaults for new + * videos created in the Slides editor. + */ + Outline outline; + + VideoProperties(); + + VideoProperties.fromJson(core.Map _json) { + if (_json.containsKey("outline")) { + outline = new Outline.fromJson(_json["outline"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (outline != null) { + _json["outline"] = (outline).toJson(); + } + return _json; + } +} + +/** + * A PageElement kind representing + * word art. + */ +class WordArt { + /** The text rendered as word art. */ + core.String renderedText; + + WordArt(); + + WordArt.fromJson(core.Map _json) { + if (_json.containsKey("renderedText")) { + renderedText = _json["renderedText"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (renderedText != null) { + _json["renderedText"] = renderedText; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart index 0d148d2..79a04eb 100644 --- a/generated/googleapis/lib/storage/v1.dart +++ b/generated/googleapis/lib/storage/v1.dart
@@ -3790,6 +3790,11 @@ * only if this version of the object has been deleted. */ core.DateTime timeDeleted; + /** + * The time at which the object's storage class was last changed. When the + * object is initially created, it will be set to timeCreated. + */ + core.DateTime timeStorageClassUpdated; /** The modification time of the object metadata in RFC 3339 format. */ core.DateTime updated; @@ -3871,6 +3876,9 @@ if (_json.containsKey("timeDeleted")) { timeDeleted = core.DateTime.parse(_json["timeDeleted"]); } + if (_json.containsKey("timeStorageClassUpdated")) { + timeStorageClassUpdated = core.DateTime.parse(_json["timeStorageClassUpdated"]); + } if (_json.containsKey("updated")) { updated = core.DateTime.parse(_json["updated"]); } @@ -3953,6 +3961,9 @@ if (timeDeleted != null) { _json["timeDeleted"] = (timeDeleted).toIso8601String(); } + if (timeStorageClassUpdated != null) { + _json["timeStorageClassUpdated"] = (timeStorageClassUpdated).toIso8601String(); + } if (updated != null) { _json["updated"] = (updated).toIso8601String(); }
diff --git a/generated/googleapis/lib/tagmanager/v1.dart b/generated/googleapis/lib/tagmanager/v1.dart index 7ee7cfc..e5b7d88 100644 --- a/generated/googleapis/lib/tagmanager/v1.dart +++ b/generated/googleapis/lib/tagmanager/v1.dart
@@ -19,22 +19,27 @@ /** Delete your Google Tag Manager containers */ static const TagmanagerDeleteContainersScope = "https://www.googleapis.com/auth/tagmanager.delete.containers"; - /** Manage your Google Tag Manager containers */ + /** + * Manage your Google Tag Manager container and its subcomponents, excluding + * versioning and publishing + */ static const TagmanagerEditContainersScope = "https://www.googleapis.com/auth/tagmanager.edit.containers"; /** Manage your Google Tag Manager container versions */ static const TagmanagerEditContainerversionsScope = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; - /** Manage your Google Tag Manager accounts */ + /** View and manage your Google Tag Manager accounts */ static const TagmanagerManageAccountsScope = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; - /** Manage user permissions of your Google Tag Manager data */ + /** + * Manage user permissions of your Google Tag Manager account and container + */ static const TagmanagerManageUsersScope = "https://www.googleapis.com/auth/tagmanager.manage.users"; - /** Publish your Google Tag Manager containers */ + /** Publish your Google Tag Manager container versions */ static const TagmanagerPublishScope = "https://www.googleapis.com/auth/tagmanager.publish"; - /** View your Google Tag Manager containers */ + /** View your Google Tag Manager container and its subcomponents */ static const TagmanagerReadonlyScope = "https://www.googleapis.com/auth/tagmanager.readonly";
diff --git a/generated/googleapis/lib/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index dd02957..be79d8d 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart
@@ -127,23 +127,23 @@ class AnnotateImageResponse { /** * If set, represents the error message for the operation. - * Note that filled-in mage annotations are guaranteed to be - * correct, even when <code>error</code> is non-empty. + * Note that filled-in image annotations are guaranteed to be + * correct, even when `error` is set. */ Status error; - /** If present, face detection completed successfully. */ + /** If present, face detection has completed successfully. */ core.List<FaceAnnotation> faceAnnotations; /** If present, image properties were extracted successfully. */ ImageProperties imagePropertiesAnnotation; - /** If present, label detection completed successfully. */ + /** If present, label detection has completed successfully. */ core.List<EntityAnnotation> labelAnnotations; - /** If present, landmark detection completed successfully. */ + /** If present, landmark detection has completed successfully. */ core.List<EntityAnnotation> landmarkAnnotations; - /** If present, logo detection completed successfully. */ + /** If present, logo detection has completed successfully. */ core.List<EntityAnnotation> logoAnnotations; - /** If present, safe-search annotation completed successfully. */ + /** If present, safe-search annotation has completed successfully. */ SafeSearchAnnotation safeSearchAnnotation; - /** If present, text (OCR) detection completed successfully. */ + /** If present, text (OCR) detection has completed successfully. */ core.List<EntityAnnotation> textAnnotations; AnnotateImageResponse(); @@ -447,14 +447,14 @@ } /** - * Color information consists of RGB channels, score and fraction of - * image the color occupies in the image. + * Color information consists of RGB channels, score, and the fraction of + * the image that the color occupies in the image. */ class ColorInfo { /** RGB components of the color. */ Color color; /** - * Stores the fraction of pixels the color occupies in the image. + * The fraction of pixels the color occupies in the image. * Value in range [0, 1]. */ core.double pixelFraction; @@ -492,7 +492,7 @@ /** Set of dominant colors and their corresponding scores. */ class DominantColorsAnnotation { - /** RGB color values, with their score and pixel fraction. */ + /** RGB color values with their score and pixel fraction. */ core.List<ColorInfo> colors; DominantColorsAnnotation(); @@ -515,7 +515,7 @@ /** Set of detected entity features. */ class EntityAnnotation { /** - * Image region to which this entity belongs. Not filled currently + * Image region to which this entity belongs. Currently not produced * for `LABEL_DETECTION` features. For `TEXT_DETECTION` (OCR), `boundingPoly`s * are produced for the entire text detected in an image region, followed by * `boundingPoly`s for each word within the detected text. @@ -523,46 +523,45 @@ BoundingPoly boundingPoly; /** * The accuracy of the entity detection in an image. - * For example, for an image containing 'Eiffel Tower,' this field represents - * the confidence that there is a tower in the query image. Range [0, 1]. + * For example, for an image in which the "Eiffel Tower" entity is detected, + * this field represents the confidence that there is a tower in the query + * image. Range [0, 1]. */ core.double confidence; - /** - * Entity textual description, expressed in its <code>locale</code> language. - */ + /** Entity textual description, expressed in its `locale` language. */ core.String description; /** * The language code for the locale in which the entity textual - * <code>description</code> (next field) is expressed. + * `description` is expressed. */ core.String locale; /** * The location information for the detected entity. Multiple - * <code>LocationInfo</code> elements can be present since one location may - * indicate the location of the scene in the query image, and another the - * location of the place where the query image was taken. Location information - * is usually present for landmarks. + * `LocationInfo` elements can be present because one location may + * indicate the location of the scene in the image, and another location + * may indicate the location of the place where the image was taken. + * Location information is usually present for landmarks. */ core.List<LocationInfo> locations; /** - * Opaque entity ID. Some IDs might be available in Knowledge Graph(KG). - * For more details on KG please see: - * https://developers.google.com/knowledge-graph/ + * Opaque entity ID. Some IDs may be available in + * [Google Knowledge Graph Search + * API](https://developers.google.com/knowledge-graph/). */ core.String mid; /** - * Some entities can have additional optional <code>Property</code> fields. - * For example a different kind of score or string that qualifies the entity. + * Some entities may have optional user-supplied `Property` (name/value) + * fields, such a score or string that qualifies the entity. */ core.List<Property> properties; /** Overall score of the result. Range [0, 1]. */ core.double score; /** * The relevancy of the ICA (Image Content Annotation) label to the - * image. For example, the relevancy of 'tower' to an image containing - * 'Eiffel Tower' is likely higher than an image containing a distant towering - * building, though the confidence that there is a tower may be the same. - * Range [0, 1]. + * image. For example, the relevancy of "tower" is likely higher to an image + * containing the detected "Eiffel Tower" than to an image containing a + * detected distant towering building, even though the confidence that + * there is a tower in each image may be the same. Range [0, 1]. */ core.double topicality; @@ -637,44 +636,48 @@ * Anger likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String angerLikelihood; /** * Blurred likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String blurredLikelihood; /** * The bounding polygon around the face. The coordinates of the bounding box - * are in the original image's scale, as returned in ImageParams. + * are in the original image's scale, as returned in `ImageParams`. * The bounding box is computed to "frame" the face in accordance with human * expectations. It is based on the landmarker results. * Note that one or more x and/or y coordinates may not be generated in the - * BoundingPoly (the polygon will be unbounded) if only a partial face appears - * in - * the image to be annotated. + * `BoundingPoly` (the polygon will be unbounded) if only a partial face + * appears in the image to be annotated. */ BoundingPoly boundingPoly; /** Detection confidence. Range [0, 1]. */ core.double detectionConfidence; /** - * This bounding polygon is tighter than the previous - * <code>boundingPoly</code>, and - * encloses only the skin part of the face. Typically, it is used to - * eliminate the face from any image analysis that detects the + * The `fd_bounding_poly` bounding polygon is tighter than the + * `boundingPoly`, and encloses only the skin part of the face. Typically, it + * is used to eliminate the face from any image analysis that detects the * "amount of skin" visible in an image. It is not based on the * landmarker results, only on the initial face detection, hence * the <code>fd</code> (face detection) prefix. @@ -684,24 +687,30 @@ * Headwear likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String headwearLikelihood; /** * Joy likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String joyLikelihood; /** Face landmarking confidence. Range [0, 1]. */ @@ -709,58 +718,65 @@ /** Detected face landmarks. */ core.List<Landmark> landmarks; /** - * Yaw angle. Indicates the leftward/rightward angle that the face is - * pointing, relative to the vertical plane perpendicular to the image. Range + * Yaw angle, which indicates the leftward/rightward angle that the face is + * pointing relative to the vertical plane perpendicular to the image. Range * [-180,180]. */ core.double panAngle; /** - * Roll angle. Indicates the amount of clockwise/anti-clockwise rotation of - * the - * face relative to the image vertical, about the axis perpendicular to the - * face. Range [-180,180]. + * Roll angle, which indicates the amount of clockwise/anti-clockwise rotation + * of the face relative to the image vertical about the axis perpendicular to + * the face. Range [-180,180]. */ core.double rollAngle; /** * Sorrow likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String sorrowLikelihood; /** * Surprise likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String surpriseLikelihood; /** - * Pitch angle. Indicates the upwards/downwards angle that the face is - * pointing - * relative to the image's horizontal plane. Range [-180,180]. + * Pitch angle, which indicates the upwards/downwards angle that the face is + * pointing relative to the image's horizontal plane. Range [-180,180]. */ core.double tiltAngle; /** * Under-exposed likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String underExposedLikelihood; @@ -866,9 +882,9 @@ } /** - * The <em>Feature</em> indicates what type of image detection task to perform. * Users describe the type of Google Cloud Vision API tasks to perform over - * images by using <em>Feature</em>s. Features encode the Cloud Vision API + * images by using *Feature*s. Each Feature indicates a type of image + * detection task to perform. Features encode the Cloud Vision API * vertical to operate on and the number of top-scoring results to return. */ class Feature { @@ -883,10 +899,10 @@ * - "LOGO_DETECTION" : Run logo detection. * - "LABEL_DETECTION" : Run label detection. * - "TEXT_DETECTION" : Run OCR. - * - "SAFE_SEARCH_DETECTION" : Run various computer vision models to compute - * image safe-search properties. - * - "IMAGE_PROPERTIES" : Compute a set of properties about the image (such as - * the image's dominant colors). + * - "SAFE_SEARCH_DETECTION" : Run computer vision models to compute image + * safe-search properties. + * - "IMAGE_PROPERTIES" : Compute a set of image properties, such as the + * image's dominant colors. */ core.String type; @@ -929,9 +945,9 @@ content = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } /** - * Google Cloud Storage image location. If both 'content' and 'source' - * are filled for an image, 'content' takes precedence and it will be - * used for performing the image annotation request. + * Google Cloud Storage image location. If both `content` and `source` + * are provided for an image, `content` takes precedence and is + * used to perform the image annotation request. */ ImageSource source; @@ -968,11 +984,10 @@ * setting a hint will help get better results (although it will be a * significant hindrance if the hint is wrong). Text detection returns an * error if one or more of the specified languages is not one of the - * [supported - * languages](/translate/v2/translate-reference#supported_languages). + * [supported languages](/vision/docs/languages). */ core.List<core.String> languageHints; - /** Lat/long rectangle that specifies the location of the image. */ + /** lat/long rectangle that specifies the location of the image. */ LatLongRect latLongRect; ImageContext(); @@ -998,7 +1013,7 @@ } } -/** Stores image properties (e.g. dominant colors). */ +/** Stores image properties, such as dominant colors. */ class ImageProperties { /** If present, dominant colors completed successfully. */ DominantColorsAnnotation dominantColors; @@ -1023,10 +1038,11 @@ /** External image source (Google Cloud Storage image location). */ class ImageSource { /** - * Google Cloud Storage image URI. It must be in the following form: - * `gs://bucket_name/object_name`. For more - * details, please see: https://cloud.google.com/storage/docs/reference-uris. - * NOTE: Cloud Storage object versioning is not supported! + * Google Cloud Storage image URI, which must be in the following form: + * `gs://bucket_name/object_name` (for details, see + * [Google Cloud Storage Request + * URIs](https://cloud.google.com/storage/docs/reference-uris)). + * NOTE: Cloud Storage object versioning is not supported. */ core.String gcsImageUri; @@ -1050,8 +1066,9 @@ /** * A face-specific landmark (for example, a face feature). * Landmark positions may fall outside the bounds of the image - * when the face is near one or more edges of the image. - * Therefore it is NOT guaranteed that 0 <= x < width or 0 <= y < height. + * if the face is near one or more edges of the image. + * Therefore it is NOT guaranteed that `0 <= x < width` or + * `0 <= y < height`. */ class Landmark { /** Face landmark position. */ @@ -1191,7 +1208,7 @@ } } -/** Rectangle determined by min and max LatLng pairs. */ +/** Rectangle determined by min and max `LatLng` pairs. */ class LatLongRect { /** Max lat/long pair. */ LatLng maxLatLng; @@ -1223,7 +1240,7 @@ /** Detected entity location information. */ class LocationInfo { - /** Lat - long location coordinates. */ + /** lat/long location coordinates. */ LatLng latLng; LocationInfo(); @@ -1285,7 +1302,7 @@ } } -/** Arbitrary name/value pair. */ +/** A `Property` consists of a user-supplied name/value pair. */ class Property { /** Name of the property. */ core.String name; @@ -1315,60 +1332,67 @@ } } -/** - * Set of features pertaining to the image, computed by various computer vision - * methods over safe-search verticals (for example, adult, spoof, medical, - * violence). - */ class SafeSearchAnnotation { /** - * Represents the adult contents likelihood for the image. + * Represents the adult content likelihood for the image. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String adult; /** - * Likelihood this is a medical image. + * Likelihood that this is a medical image. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String medical; /** - * Spoof likelihood. The likelihood that an obvious modification + * Spoof likelihood. The likelihood that an modification * was made to the image's canonical version to make it appear * funny or offensive. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String spoof; /** * Violence likelihood. * Possible string values are: * - "UNKNOWN" : Unknown likelihood. - * - "VERY_UNLIKELY" : The image very unlikely belongs to the vertical - * specified. - * - "UNLIKELY" : The image unlikely belongs to the vertical specified. - * - "POSSIBLE" : The image possibly belongs to the vertical specified. - * - "LIKELY" : The image likely belongs to the vertical specified. - * - "VERY_LIKELY" : The image very likely belongs to the vertical specified. + * - "VERY_UNLIKELY" : It is very unlikely that the image belongs to the + * specified vertical. + * - "UNLIKELY" : It is unlikely that the image belongs to the specified + * vertical. + * - "POSSIBLE" : It is possible that the image belongs to the specified + * vertical. + * - "LIKELY" : It is likely that the image belongs to the specified vertical. + * - "VERY_LIKELY" : It is very likely that the image belongs to the specified + * vertical. */ core.String violence;
diff --git a/generated/googleapis/lib/youtube/v3.dart b/generated/googleapis/lib/youtube/v3.dart index c277e52..fddc10d 100644 --- a/generated/googleapis/lib/youtube/v3.dart +++ b/generated/googleapis/lib/youtube/v3.dart
@@ -5585,8 +5585,8 @@ * items that should be returned in the result set. * * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. + * and chart parameters, but it is not supported for use in conjunction with + * the id parameter. * Value must be between "1" and "50". * * [maxWidth] - The maxWidth parameter specifies a maximum width of the @@ -5618,8 +5618,8 @@ * and prevPageToken properties identify other pages that could be retrieved. * * Note: This parameter is supported for use in conjunction with the myRating - * parameter, but it is not supported for use in conjunction with the id - * parameter. + * and chart parameters, but it is not supported for use in conjunction with + * the id parameter. * * [regionCode] - The regionCode parameter instructs the API to select a video * chart available in the specified region. This parameter can only be used in @@ -7253,6 +7253,7 @@ * Possible string values are: * - "1080p" * - "1440p" + * - "2160p" * - "240p" * - "360p" * - "480p" @@ -9219,7 +9220,7 @@ /** * Ratings schemes. The country-specific ratings are mostly for movies and - * shows. NEXT_ID: 68 + * shows. NEXT_ID: 69 */ class ContentRating { /** @@ -9731,6 +9732,19 @@ */ core.String mccypRating; /** + * The video's rating system for Vietnam - MCST + * Possible string values are: + * - "mcst0" + * - "mcst16plus" + * - "mcstC13" + * - "mcstC16" + * - "mcstC18" + * - "mcstGPg" + * - "mcstP" + * - "mcstUnrated" + */ + core.String mcstRating; + /** * The video's rating from Singapore's Media Development Authority (MDA) and, * specifically, it's Board of Film Censors (BFC). * Possible string values are: @@ -10156,6 +10170,9 @@ if (_json.containsKey("mccypRating")) { mccypRating = _json["mccypRating"]; } + if (_json.containsKey("mcstRating")) { + mcstRating = _json["mcstRating"]; + } if (_json.containsKey("mdaRating")) { mdaRating = _json["mdaRating"]; } @@ -10361,6 +10378,9 @@ if (mccypRating != null) { _json["mccypRating"] = mccypRating; } + if (mcstRating != null) { + _json["mcstRating"] = mcstRating; + } if (mdaRating != null) { _json["mdaRating"] = mdaRating; } @@ -14200,6 +14220,11 @@ * request. */ core.String videoId; + /** + * The date and time that the video was published to YouTube. The value is + * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. + */ + core.DateTime videoPublishedAt; PlaylistItemContentDetails(); @@ -14216,6 +14241,9 @@ if (_json.containsKey("videoId")) { videoId = _json["videoId"]; } + if (_json.containsKey("videoPublishedAt")) { + videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); + } } core.Map toJson() { @@ -14232,6 +14260,9 @@ if (videoId != null) { _json["videoId"] = videoId; } + if (videoPublishedAt != null) { + _json["videoPublishedAt"] = (videoPublishedAt).toIso8601String(); + } return _json; } }
diff --git a/generated/googleapis/lib/youtubeanalytics/v1.dart b/generated/googleapis/lib/youtubeanalytics/v1.dart index 1b8adc6..864248b 100644 --- a/generated/googleapis/lib/youtubeanalytics/v1.dart +++ b/generated/googleapis/lib/youtubeanalytics/v1.dart
@@ -37,8 +37,6 @@ final commons.ApiRequester _requester; - BatchReportDefinitionsResourceApi get batchReportDefinitions => new BatchReportDefinitionsResourceApi(_requester); - BatchReportsResourceApi get batchReports => new BatchReportsResourceApi(_requester); GroupItemsResourceApi get groupItems => new GroupItemsResourceApi(_requester); GroupsResourceApi get groups => new GroupsResourceApi(_requester); ReportsResourceApi get reports => new ReportsResourceApi(_requester); @@ -48,114 +46,6 @@ } -class BatchReportDefinitionsResourceApi { - final commons.ApiRequester _requester; - - BatchReportDefinitionsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of available batch report definitions. - * - * Request parameters: - * - * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies - * the content owner that the user is acting on behalf of. - * - * Completes with a [BatchReportDefinitionList]. - * - * 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<BatchReportDefinitionList> list(core.String onBehalfOfContentOwner) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (onBehalfOfContentOwner == null) { - throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required."); - } - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; - - _url = 'batchReportDefinitions'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new BatchReportDefinitionList.fromJson(data)); - } - -} - - -class BatchReportsResourceApi { - final commons.ApiRequester _requester; - - BatchReportsResourceApi(commons.ApiRequester client) : - _requester = client; - - /** - * Retrieves a list of processed batch reports. - * - * Request parameters: - * - * [batchReportDefinitionId] - The batchReportDefinitionId parameter specifies - * the ID of the batch reportort definition for which you are retrieving - * reports. - * - * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter identifies - * the content owner that the user is acting on behalf of. - * - * Completes with a [BatchReportList]. - * - * 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<BatchReportList> list(core.String batchReportDefinitionId, core.String onBehalfOfContentOwner) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (batchReportDefinitionId == null) { - throw new core.ArgumentError("Parameter batchReportDefinitionId is required."); - } - _queryParams["batchReportDefinitionId"] = [batchReportDefinitionId]; - if (onBehalfOfContentOwner == null) { - throw new core.ArgumentError("Parameter onBehalfOfContentOwner is required."); - } - _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; - - _url = 'batchReports'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new BatchReportList.fromJson(data)); - } - -} - - class GroupItemsResourceApi { final commons.ApiRequester _requester; @@ -717,286 +607,6 @@ -class BatchReportOutputs { - /** - * Cloud storage URL to download this report. This URL is valid for 30 - * minutes. - */ - core.String downloadUrl; - /** Format of the output. */ - core.String format; - /** Type of the output. */ - core.String type; - - BatchReportOutputs(); - - BatchReportOutputs.fromJson(core.Map _json) { - if (_json.containsKey("downloadUrl")) { - downloadUrl = _json["downloadUrl"]; - } - if (_json.containsKey("format")) { - format = _json["format"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (downloadUrl != null) { - _json["downloadUrl"] = downloadUrl; - } - if (format != null) { - _json["format"] = format; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * Period included in the report. For reports containing all entities endTime is - * not set. Both startTime and endTime are inclusive. - */ -class BatchReportTimeSpan { - /** - * End of the period included in the report. Inclusive. For reports containing - * all entities endTime is not set. - */ - core.DateTime endTime; - /** Start of the period included in the report. Inclusive. */ - core.DateTime startTime; - - BatchReportTimeSpan(); - - BatchReportTimeSpan.fromJson(core.Map _json) { - if (_json.containsKey("endTime")) { - endTime = core.DateTime.parse(_json["endTime"]); - } - if (_json.containsKey("startTime")) { - startTime = core.DateTime.parse(_json["startTime"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (endTime != null) { - _json["endTime"] = (endTime).toIso8601String(); - } - if (startTime != null) { - _json["startTime"] = (startTime).toIso8601String(); - } - return _json; - } -} - -/** Contains single batchReport resource. */ -class BatchReport { - /** The ID that YouTube assigns and uses to uniquely identify the report. */ - core.String id; - /** - * This value specifies the type of data of this item. For batch report the - * kind property value is youtubeAnalytics#batchReport. - */ - core.String kind; - /** Report outputs. */ - core.List<BatchReportOutputs> outputs; - /** The ID of the the report definition. */ - core.String reportId; - /** - * Period included in the report. For reports containing all entities endTime - * is not set. Both startTime and endTime are inclusive. - */ - BatchReportTimeSpan timeSpan; - /** The time when the report was updated. */ - core.DateTime timeUpdated; - - BatchReport(); - - BatchReport.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("outputs")) { - outputs = _json["outputs"].map((value) => new BatchReportOutputs.fromJson(value)).toList(); - } - if (_json.containsKey("reportId")) { - reportId = _json["reportId"]; - } - if (_json.containsKey("timeSpan")) { - timeSpan = new BatchReportTimeSpan.fromJson(_json["timeSpan"]); - } - if (_json.containsKey("timeUpdated")) { - timeUpdated = core.DateTime.parse(_json["timeUpdated"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (outputs != null) { - _json["outputs"] = outputs.map((value) => (value).toJson()).toList(); - } - if (reportId != null) { - _json["reportId"] = reportId; - } - if (timeSpan != null) { - _json["timeSpan"] = (timeSpan).toJson(); - } - if (timeUpdated != null) { - _json["timeUpdated"] = (timeUpdated).toIso8601String(); - } - return _json; - } -} - -/** Contains single batchReportDefinition resource. */ -class BatchReportDefinition { - /** - * The ID that YouTube assigns and uses to uniquely identify the report - * definition. - */ - core.String id; - /** - * This value specifies the type of data of this item. For batch report - * definition the kind property value is - * youtubeAnalytics#batchReportDefinition. - */ - core.String kind; - /** Name of the report definition. */ - core.String name; - /** Status of the report definition. */ - core.String status; - /** Type of the report definition. */ - core.String type; - - BatchReportDefinition(); - - BatchReportDefinition.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("status")) { - status = _json["status"]; - } - if (_json.containsKey("type")) { - type = _json["type"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (kind != null) { - _json["kind"] = kind; - } - if (name != null) { - _json["name"] = name; - } - if (status != null) { - _json["status"] = status; - } - if (type != null) { - _json["type"] = type; - } - return _json; - } -} - -/** - * A paginated list of batchReportDefinition resources returned in response to a - * youtubeAnalytics.batchReportDefinitions.list request. - */ -class BatchReportDefinitionList { - /** - * A list of batchReportDefinition resources that match the request criteria. - */ - core.List<BatchReportDefinition> items; - /** - * This value specifies the type of data included in the API response. For the - * list method, the kind property value is - * youtubeAnalytics#batchReportDefinitionList. - */ - core.String kind; - - BatchReportDefinitionList(); - - BatchReportDefinitionList.fromJson(core.Map _json) { - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new BatchReportDefinition.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - -/** - * A paginated list of batchReport resources returned in response to a - * youtubeAnalytics.batchReport.list request. - */ -class BatchReportList { - /** A list of batchReport resources that match the request criteria. */ - core.List<BatchReport> items; - /** - * This value specifies the type of data included in the API response. For the - * list method, the kind property value is youtubeAnalytics#batchReportList. - */ - core.String kind; - - BatchReportList(); - - BatchReportList.fromJson(core.Map _json) { - if (_json.containsKey("items")) { - items = _json["items"].map((value) => new BatchReport.fromJson(value)).toList(); - } - if (_json.containsKey("kind")) { - kind = _json["kind"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (items != null) { - _json["items"] = items.map((value) => (value).toJson()).toList(); - } - if (kind != null) { - _json["kind"] = kind; - } - return _json; - } -} - class GroupContentDetails { core.String itemCount; core.String itemType;
diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index eba8b35..ae1140b 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis -version: 0.32.0 +version: 0.33.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androidenterprise:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudresourcemanager:v1, cloudtrace:v1, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.4, dfareporting:v2.5, dfareporting:v2.6, dfareporting:v2.7, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, servicecontrol:v1, servicemanagement:v1, sheets:v4, siteVerification:v1, storage:v1, storagetransfer:v1, surveys:v2, tagmanager:v1, tasks:v1, translate:v2, urlshortener:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" +description: "Auto-generated client libraries for accessing the following APIs:acceleratedmobilepageurl:v1, adexchangebuyer:v1.3, adexchangebuyer:v1.4, adexchangeseller:v1.1, adexchangeseller:v2.0, admin:datatransfer_v1, admin:directory_v1, admin:reports_v1, adsense:v1.4, adsensehost:v4.1, analytics:v3, analyticsreporting:v4, androidenterprise:v1, androidpublisher:v2, appengine:v1, appsactivity:v1, appstate:v1, bigquery:v2, blogger:v3, books:v1, calendar:v3, civicinfo:v2, classroom:v1, cloudbilling:v1, cloudbuild:v1, clouddebugger:v2, cloudresourcemanager:v1, cloudtrace:v1, compute:v1, consumersurveys:v2, container:v1, content:v2, content:v2sandbox, customsearch:v1, dataproc:v1, datastore:v1, deploymentmanager:v2, dfareporting:v2.5, dfareporting:v2.6, dfareporting:v2.7, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebasedynamiclinks:v1, firebaserules:v1, fitness:v1, fusiontables:v1, fusiontables:v2, games:v1, gamesConfiguration:v1configuration, gamesManagement:v1management, genomics:v1, gmail:v1, groupsmigration:v1, groupssettings:v1, iam:v1, identitytoolkit:v3, kgsearch:v1, language:v1, licensing:v1, logging:v2, manufacturers:v1, mirror:v1, monitoring:v3, oauth2:v2, pagespeedonline:v1, pagespeedonline:v2, partners:v2, people:v1, playmoviespartner:v1, plus:v1, plusDomains:v1, prediction:v1.6, pubsub:v1, qpxExpress:v1, reseller:v1, runtimeconfig:v1, safebrowsing:v4, script:v1, servicecontrol:v1, servicemanagement:v1, sheets:v4, siteVerification:v1, slides:v1, storage:v1, storagetransfer:v1, surveys:v2, tagmanager:v1, tasks:v1, translate:v2, urlshortener:v1, vision:v1, webfonts:v1, webmasters:v3, youtube:v3, youtubeAnalytics:v1, youtubereporting:v1" homepage: http://www.dartlang.org/googleapis/ environment: sdk: '>=1.14.0 <2.0.0'
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index a1ee4aa..6d76f1d 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterAmpUrlError--; } -buildUnnamed1347() { +buildUnnamed1100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1347(core.List<core.String> o) { +checkUnnamed1100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -116,7 +116,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed1347(); + o.urls = buildUnnamed1100(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -126,32 +126,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed1347(o.urls); + checkUnnamed1100(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed1348() { +buildUnnamed1101() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed1348(core.List<api.AmpUrl> o) { +checkUnnamed1101(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed1349() { +buildUnnamed1102() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed1349(core.List<api.AmpUrlError> o) { +checkUnnamed1102(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -162,8 +162,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed1348(); - o.urlErrors = buildUnnamed1349(); + o.ampUrls = buildUnnamed1101(); + o.urlErrors = buildUnnamed1102(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -172,8 +172,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed1348(o.ampUrls); - checkUnnamed1349(o.urlErrors); + checkUnnamed1101(o.ampUrls); + checkUnnamed1102(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart index afe03d3..fc51784 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
@@ -74,14 +74,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed1064() { +buildUnnamed815() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed1064(core.List<api.AccountBidderLocation> o) { +checkUnnamed815(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -92,7 +92,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed1064(); + o.bidderLocation = buildUnnamed815(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -108,7 +108,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1064(o.bidderLocation); + checkUnnamed815(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -120,14 +120,14 @@ buildCounterAccount--; } -buildUnnamed1065() { +buildUnnamed816() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1065(core.List<api.Account> o) { +checkUnnamed816(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -138,7 +138,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed1065(); + o.items = buildUnnamed816(); o.kind = "foo"; } buildCounterAccountsList--; @@ -148,20 +148,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed1065(o.items); + checkUnnamed816(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed1066() { +buildUnnamed817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1066(core.List<core.String> o) { +checkUnnamed817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -174,7 +174,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed1066(); + o.billingId = buildUnnamed817(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -186,20 +186,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed1066(o.billingId); + checkUnnamed817(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed1067() { +buildUnnamed818() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed1067(core.List<api.BillingInfo> o) { +checkUnnamed818(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -210,7 +210,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed1067(); + o.items = buildUnnamed818(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -220,7 +220,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed1067(o.items); + checkUnnamed818(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -255,53 +255,53 @@ buildCounterBudget--; } -buildUnnamed1068() { +buildUnnamed819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1068(core.List<core.String> o) { +checkUnnamed819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1069() { +buildUnnamed820() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1069(core.List<core.int> o) { +checkUnnamed820(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1070() { +buildUnnamed821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1070(core.List<core.String> o) { +checkUnnamed821(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1071() { +buildUnnamed822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1071(core.List<core.String> o) { +checkUnnamed822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -312,7 +312,7 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.details = buildUnnamed1071(); + o.details = buildUnnamed822(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -322,33 +322,33 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed1071(o.details); + checkUnnamed822(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed1072() { +buildUnnamed823() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed1072(core.List<api.CreativeCorrections> o) { +checkUnnamed823(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed1073() { +buildUnnamed824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1073(core.List<core.String> o) { +checkUnnamed824(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,7 +359,7 @@ var o = new api.CreativeDisapprovalReasons(); buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - o.details = buildUnnamed1073(); + o.details = buildUnnamed824(); o.reason = "foo"; } buildCounterCreativeDisapprovalReasons--; @@ -369,20 +369,20 @@ checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - checkUnnamed1073(o.details); + checkUnnamed824(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeDisapprovalReasons--; } -buildUnnamed1074() { +buildUnnamed825() { var o = new core.List<api.CreativeDisapprovalReasons>(); o.add(buildCreativeDisapprovalReasons()); o.add(buildCreativeDisapprovalReasons()); return o; } -checkUnnamed1074(core.List<api.CreativeDisapprovalReasons> o) { +checkUnnamed825(core.List<api.CreativeDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDisapprovalReasons(o[0]); checkCreativeDisapprovalReasons(o[1]); @@ -409,14 +409,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed1075() { +buildUnnamed826() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed1075(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed826(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -428,7 +428,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed1075(); + o.reasons = buildUnnamed826(); } buildCounterCreativeFilteringReasons--; return o; @@ -438,19 +438,19 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed1075(o.reasons); + checkUnnamed826(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed1076() { +buildUnnamed827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1076(core.List<core.String> o) { +checkUnnamed827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -502,14 +502,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed1077() { +buildUnnamed828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1077(core.List<core.String> o) { +checkUnnamed828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -550,7 +550,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed1077(); + o.impressionTrackingUrl = buildUnnamed828(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -570,7 +570,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed1077(o.impressionTrackingUrl); + checkUnnamed828(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -579,53 +579,53 @@ buildCounterCreativeNativeAd--; } -buildUnnamed1078() { +buildUnnamed829() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1078(core.List<core.int> o) { +checkUnnamed829(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1079() { +buildUnnamed830() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1079(core.List<core.int> o) { +checkUnnamed830(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1080() { +buildUnnamed831() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1080(core.List<core.int> o) { +checkUnnamed831(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1081() { +buildUnnamed832() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1081(core.List<core.int> o) { +checkUnnamed832(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -638,25 +638,25 @@ if (buildCounterCreative < 3) { o.HTMLSnippet = "foo"; o.accountId = 42; - o.advertiserId = buildUnnamed1068(); + o.advertiserId = buildUnnamed819(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed1069(); + o.attribute = buildUnnamed820(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed1070(); - o.corrections = buildUnnamed1072(); - o.disapprovalReasons = buildUnnamed1074(); + o.clickThroughUrl = buildUnnamed821(); + o.corrections = buildUnnamed823(); + o.disapprovalReasons = buildUnnamed825(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed1076(); + o.impressionTrackingUrl = buildUnnamed827(); o.kind = "foo"; o.nativeAd = buildCreativeNativeAd(); - o.productCategories = buildUnnamed1078(); - o.restrictedCategories = buildUnnamed1079(); - o.sensitiveCategories = buildUnnamed1080(); + o.productCategories = buildUnnamed829(); + o.restrictedCategories = buildUnnamed830(); + o.sensitiveCategories = buildUnnamed831(); o.status = "foo"; - o.vendorType = buildUnnamed1081(); + o.vendorType = buildUnnamed832(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -670,25 +670,25 @@ if (buildCounterCreative < 3) { unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); - checkUnnamed1068(o.advertiserId); + checkUnnamed819(o.advertiserId); unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUploadTimestamp, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1069(o.attribute); + checkUnnamed820(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed1070(o.clickThroughUrl); - checkUnnamed1072(o.corrections); - checkUnnamed1074(o.disapprovalReasons); + checkUnnamed821(o.clickThroughUrl); + checkUnnamed823(o.corrections); + checkUnnamed825(o.disapprovalReasons); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed1076(o.impressionTrackingUrl); + checkUnnamed827(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); checkCreativeNativeAd(o.nativeAd); - checkUnnamed1078(o.productCategories); - checkUnnamed1079(o.restrictedCategories); - checkUnnamed1080(o.sensitiveCategories); + checkUnnamed829(o.productCategories); + checkUnnamed830(o.restrictedCategories); + checkUnnamed831(o.sensitiveCategories); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1081(o.vendorType); + checkUnnamed832(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -696,14 +696,14 @@ buildCounterCreative--; } -buildUnnamed1082() { +buildUnnamed833() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1082(core.List<api.Creative> o) { +checkUnnamed833(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -714,7 +714,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed1082(); + o.items = buildUnnamed833(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -725,7 +725,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed1082(o.items); + checkUnnamed833(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -779,14 +779,14 @@ buildCounterDirectDeal--; } -buildUnnamed1083() { +buildUnnamed834() { var o = new core.List<api.DirectDeal>(); o.add(buildDirectDeal()); o.add(buildDirectDeal()); return o; } -checkUnnamed1083(core.List<api.DirectDeal> o) { +checkUnnamed834(core.List<api.DirectDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectDeal(o[0]); checkDirectDeal(o[1]); @@ -797,7 +797,7 @@ var o = new api.DirectDealsList(); buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - o.directDeals = buildUnnamed1083(); + o.directDeals = buildUnnamed834(); o.kind = "foo"; } buildCounterDirectDealsList--; @@ -807,59 +807,59 @@ checkDirectDealsList(api.DirectDealsList o) { buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - checkUnnamed1083(o.directDeals); + checkUnnamed834(o.directDeals); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectDealsList--; } -buildUnnamed1084() { +buildUnnamed835() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1084(core.List<core.Object> o) { +checkUnnamed835(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1085() { +buildUnnamed836() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1085(core.List<core.Object> o) { +checkUnnamed836(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1086() { +buildUnnamed837() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1086(core.List<core.Object> o) { +checkUnnamed837(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1087() { +buildUnnamed838() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1087(core.List<core.Object> o) { +checkUnnamed838(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -872,11 +872,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed1084(); - o.cookieMatcherStatusRate = buildUnnamed1085(); - o.creativeStatusRate = buildUnnamed1086(); + o.calloutStatusRate = buildUnnamed835(); + o.cookieMatcherStatusRate = buildUnnamed836(); + o.creativeStatusRate = buildUnnamed837(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed1087(); + o.hostedMatchStatusRate = buildUnnamed838(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -902,11 +902,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed1084(o.calloutStatusRate); - checkUnnamed1085(o.cookieMatcherStatusRate); - checkUnnamed1086(o.creativeStatusRate); + checkUnnamed835(o.calloutStatusRate); + checkUnnamed836(o.cookieMatcherStatusRate); + checkUnnamed837(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed1087(o.hostedMatchStatusRate); + checkUnnamed838(o.hostedMatchStatusRate); unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); @@ -926,14 +926,14 @@ buildCounterPerformanceReport--; } -buildUnnamed1088() { +buildUnnamed839() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed1088(core.List<api.PerformanceReport> o) { +checkUnnamed839(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -945,7 +945,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed1088(); + o.performanceReport = buildUnnamed839(); } buildCounterPerformanceReportList--; return o; @@ -955,19 +955,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1088(o.performanceReport); + checkUnnamed839(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed1089() { +buildUnnamed840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1089(core.List<core.String> o) { +checkUnnamed840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -994,40 +994,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed1090() { +buildUnnamed841() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed1090(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed841(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed1091() { +buildUnnamed842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1091(core.List<core.String> o) { +checkUnnamed842(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1092() { +buildUnnamed843() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1092(core.List<core.String> o) { +checkUnnamed843(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1054,105 +1054,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed1093() { +buildUnnamed844() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed1093(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed844(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed1094() { +buildUnnamed845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1094(core.List<core.String> o) { +checkUnnamed845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1095() { +buildUnnamed846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1095(core.List<core.String> o) { +checkUnnamed846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1096() { +buildUnnamed847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1096(core.List<core.String> o) { +checkUnnamed847(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1097() { +buildUnnamed848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1097(core.List<core.String> o) { +checkUnnamed848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1098() { +buildUnnamed849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1098(core.List<core.String> o) { +checkUnnamed849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1099() { +buildUnnamed850() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1099(core.List<core.String> o) { +checkUnnamed850(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1100() { +buildUnnamed851() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1100(core.List<core.String> o) { +checkUnnamed851(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1179,79 +1179,79 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed1101() { +buildUnnamed852() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed1101(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed852(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed1102() { +buildUnnamed853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1102(core.List<core.String> o) { +checkUnnamed853(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1103() { +buildUnnamed854() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1103(core.List<core.String> o) { +checkUnnamed854(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1104() { +buildUnnamed855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1104(core.List<core.String> o) { +checkUnnamed855(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1105() { +buildUnnamed856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1105(core.List<core.String> o) { +checkUnnamed856(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1106() { +buildUnnamed857() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1106(core.List<core.String> o) { +checkUnnamed857(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1265,26 +1265,26 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed1089(); - o.dimensions = buildUnnamed1090(); - o.excludedContentLabels = buildUnnamed1091(); - o.excludedGeoCriteriaIds = buildUnnamed1092(); - o.excludedPlacements = buildUnnamed1093(); - o.excludedUserLists = buildUnnamed1094(); - o.excludedVerticals = buildUnnamed1095(); - o.geoCriteriaIds = buildUnnamed1096(); + o.creativeType = buildUnnamed840(); + o.dimensions = buildUnnamed841(); + o.excludedContentLabels = buildUnnamed842(); + o.excludedGeoCriteriaIds = buildUnnamed843(); + o.excludedPlacements = buildUnnamed844(); + o.excludedUserLists = buildUnnamed845(); + o.excludedVerticals = buildUnnamed846(); + o.geoCriteriaIds = buildUnnamed847(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed1097(); - o.mobileCarriers = buildUnnamed1098(); - o.mobileDevices = buildUnnamed1099(); - o.mobileOperatingSystemVersions = buildUnnamed1100(); - o.placements = buildUnnamed1101(); - o.platforms = buildUnnamed1102(); - o.supportedCreativeAttributes = buildUnnamed1103(); - o.userLists = buildUnnamed1104(); - o.vendorTypes = buildUnnamed1105(); - o.verticals = buildUnnamed1106(); + o.languages = buildUnnamed848(); + o.mobileCarriers = buildUnnamed849(); + o.mobileDevices = buildUnnamed850(); + o.mobileOperatingSystemVersions = buildUnnamed851(); + o.placements = buildUnnamed852(); + o.platforms = buildUnnamed853(); + o.supportedCreativeAttributes = buildUnnamed854(); + o.userLists = buildUnnamed855(); + o.vendorTypes = buildUnnamed856(); + o.verticals = buildUnnamed857(); } buildCounterPretargetingConfig--; return o; @@ -1296,38 +1296,38 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed1089(o.creativeType); - checkUnnamed1090(o.dimensions); - checkUnnamed1091(o.excludedContentLabels); - checkUnnamed1092(o.excludedGeoCriteriaIds); - checkUnnamed1093(o.excludedPlacements); - checkUnnamed1094(o.excludedUserLists); - checkUnnamed1095(o.excludedVerticals); - checkUnnamed1096(o.geoCriteriaIds); + checkUnnamed840(o.creativeType); + checkUnnamed841(o.dimensions); + checkUnnamed842(o.excludedContentLabels); + checkUnnamed843(o.excludedGeoCriteriaIds); + checkUnnamed844(o.excludedPlacements); + checkUnnamed845(o.excludedUserLists); + checkUnnamed846(o.excludedVerticals); + checkUnnamed847(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1097(o.languages); - checkUnnamed1098(o.mobileCarriers); - checkUnnamed1099(o.mobileDevices); - checkUnnamed1100(o.mobileOperatingSystemVersions); - checkUnnamed1101(o.placements); - checkUnnamed1102(o.platforms); - checkUnnamed1103(o.supportedCreativeAttributes); - checkUnnamed1104(o.userLists); - checkUnnamed1105(o.vendorTypes); - checkUnnamed1106(o.verticals); + checkUnnamed848(o.languages); + checkUnnamed849(o.mobileCarriers); + checkUnnamed850(o.mobileDevices); + checkUnnamed851(o.mobileOperatingSystemVersions); + checkUnnamed852(o.placements); + checkUnnamed853(o.platforms); + checkUnnamed854(o.supportedCreativeAttributes); + checkUnnamed855(o.userLists); + checkUnnamed856(o.vendorTypes); + checkUnnamed857(o.verticals); } buildCounterPretargetingConfig--; } -buildUnnamed1107() { +buildUnnamed858() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed1107(core.List<api.PretargetingConfig> o) { +checkUnnamed858(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -1338,7 +1338,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed1107(); + o.items = buildUnnamed858(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -1348,33 +1348,33 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed1107(o.items); + checkUnnamed858(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; } -buildUnnamed1108() { +buildUnnamed859() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1108(core.List<core.int> o) { +checkUnnamed859(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed1109() { +buildUnnamed860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1109(core.List<core.String> o) { +checkUnnamed860(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2203,8 +2203,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed1108(); - var arg_buyerCreativeId = buildUnnamed1109(); + var arg_accountId = buildUnnamed859(); + var arg_buyerCreativeId = buildUnnamed860(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_statusFilter = "foo";
diff --git a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart index 9a11b01..d7e07d4 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
@@ -76,14 +76,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed2038() { +buildUnnamed1809() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed2038(core.List<api.AccountBidderLocation> o) { +checkUnnamed1809(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -94,7 +94,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed2038(); + o.bidderLocation = buildUnnamed1809(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -110,7 +110,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2038(o.bidderLocation); + checkUnnamed1809(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -122,14 +122,14 @@ buildCounterAccount--; } -buildUnnamed2039() { +buildUnnamed1810() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2039(core.List<api.Account> o) { +checkUnnamed1810(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -140,7 +140,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed2039(); + o.items = buildUnnamed1810(); o.kind = "foo"; } buildCounterAccountsList--; @@ -150,20 +150,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed2039(o.items); + checkUnnamed1810(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed2040() { +buildUnnamed1811() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2040(core.List<api.MarketplaceDeal> o) { +checkUnnamed1811(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -174,7 +174,7 @@ var o = new api.AddOrderDealsRequest(); buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - o.deals = buildUnnamed2040(); + o.deals = buildUnnamed1811(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -185,21 +185,21 @@ checkAddOrderDealsRequest(api.AddOrderDealsRequest o) { buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - checkUnnamed2040(o.deals); + checkUnnamed1811(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterAddOrderDealsRequest--; } -buildUnnamed2041() { +buildUnnamed1812() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2041(core.List<api.MarketplaceDeal> o) { +checkUnnamed1812(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -210,7 +210,7 @@ var o = new api.AddOrderDealsResponse(); buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - o.deals = buildUnnamed2041(); + o.deals = buildUnnamed1812(); o.proposalRevisionNumber = "foo"; } buildCounterAddOrderDealsResponse--; @@ -220,20 +220,20 @@ checkAddOrderDealsResponse(api.AddOrderDealsResponse o) { buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - checkUnnamed2041(o.deals); + checkUnnamed1812(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterAddOrderDealsResponse--; } -buildUnnamed2042() { +buildUnnamed1813() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2042(core.List<api.MarketplaceNote> o) { +checkUnnamed1813(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -244,7 +244,7 @@ var o = new api.AddOrderNotesRequest(); buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - o.notes = buildUnnamed2042(); + o.notes = buildUnnamed1813(); } buildCounterAddOrderNotesRequest--; return o; @@ -253,19 +253,19 @@ checkAddOrderNotesRequest(api.AddOrderNotesRequest o) { buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - checkUnnamed2042(o.notes); + checkUnnamed1813(o.notes); } buildCounterAddOrderNotesRequest--; } -buildUnnamed2043() { +buildUnnamed1814() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2043(core.List<api.MarketplaceNote> o) { +checkUnnamed1814(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -276,7 +276,7 @@ var o = new api.AddOrderNotesResponse(); buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - o.notes = buildUnnamed2043(); + o.notes = buildUnnamed1814(); } buildCounterAddOrderNotesResponse--; return o; @@ -285,19 +285,19 @@ checkAddOrderNotesResponse(api.AddOrderNotesResponse o) { buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - checkUnnamed2043(o.notes); + checkUnnamed1814(o.notes); } buildCounterAddOrderNotesResponse--; } -buildUnnamed2044() { +buildUnnamed1815() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2044(core.List<core.String> o) { +checkUnnamed1815(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -310,7 +310,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed2044(); + o.billingId = buildUnnamed1815(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -322,20 +322,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed2044(o.billingId); + checkUnnamed1815(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed2045() { +buildUnnamed1816() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed2045(core.List<api.BillingInfo> o) { +checkUnnamed1816(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -346,7 +346,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed2045(); + o.items = buildUnnamed1816(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -356,7 +356,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed2045(o.items); + checkUnnamed1816(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -431,14 +431,14 @@ buildCounterContactInformation--; } -buildUnnamed2046() { +buildUnnamed1817() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2046(core.List<api.Proposal> o) { +checkUnnamed1817(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -449,7 +449,7 @@ var o = new api.CreateOrdersRequest(); buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - o.proposals = buildUnnamed2046(); + o.proposals = buildUnnamed1817(); o.webPropertyCode = "foo"; } buildCounterCreateOrdersRequest--; @@ -459,20 +459,20 @@ checkCreateOrdersRequest(api.CreateOrdersRequest o) { buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - checkUnnamed2046(o.proposals); + checkUnnamed1817(o.proposals); unittest.expect(o.webPropertyCode, unittest.equals('foo')); } buildCounterCreateOrdersRequest--; } -buildUnnamed2047() { +buildUnnamed1818() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2047(core.List<api.Proposal> o) { +checkUnnamed1818(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -483,7 +483,7 @@ var o = new api.CreateOrdersResponse(); buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - o.proposals = buildUnnamed2047(); + o.proposals = buildUnnamed1818(); } buildCounterCreateOrdersResponse--; return o; @@ -492,84 +492,84 @@ checkCreateOrdersResponse(api.CreateOrdersResponse o) { buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - checkUnnamed2047(o.proposals); + checkUnnamed1818(o.proposals); } buildCounterCreateOrdersResponse--; } -buildUnnamed2048() { +buildUnnamed1819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2048(core.List<core.String> o) { +checkUnnamed1819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2049() { +buildUnnamed1820() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2049(core.List<core.int> o) { +checkUnnamed1820(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2050() { +buildUnnamed1821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2050(core.List<core.String> o) { +checkUnnamed1821(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2051() { +buildUnnamed1822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2051(core.List<core.String> o) { +checkUnnamed1822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2052() { +buildUnnamed1823() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2052(core.List<core.int> o) { +checkUnnamed1823(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2053() { +buildUnnamed1824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2053(core.List<core.String> o) { +checkUnnamed1824(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -580,10 +580,10 @@ var o = new api.CreativeCorrectionsContexts(); buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - o.auctionType = buildUnnamed2051(); + o.auctionType = buildUnnamed1822(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2052(); - o.platform = buildUnnamed2053(); + o.geoCriteriaId = buildUnnamed1823(); + o.platform = buildUnnamed1824(); } buildCounterCreativeCorrectionsContexts--; return o; @@ -592,35 +592,35 @@ checkCreativeCorrectionsContexts(api.CreativeCorrectionsContexts o) { buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - checkUnnamed2051(o.auctionType); + checkUnnamed1822(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2052(o.geoCriteriaId); - checkUnnamed2053(o.platform); + checkUnnamed1823(o.geoCriteriaId); + checkUnnamed1824(o.platform); } buildCounterCreativeCorrectionsContexts--; } -buildUnnamed2054() { +buildUnnamed1825() { var o = new core.List<api.CreativeCorrectionsContexts>(); o.add(buildCreativeCorrectionsContexts()); o.add(buildCreativeCorrectionsContexts()); return o; } -checkUnnamed2054(core.List<api.CreativeCorrectionsContexts> o) { +checkUnnamed1825(core.List<api.CreativeCorrectionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrectionsContexts(o[0]); checkCreativeCorrectionsContexts(o[1]); } -buildUnnamed2055() { +buildUnnamed1826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2055(core.List<core.String> o) { +checkUnnamed1826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -631,8 +631,8 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.contexts = buildUnnamed2054(); - o.details = buildUnnamed2055(); + o.contexts = buildUnnamed1825(); + o.details = buildUnnamed1826(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -642,34 +642,34 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed2054(o.contexts); - checkUnnamed2055(o.details); + checkUnnamed1825(o.contexts); + checkUnnamed1826(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed2056() { +buildUnnamed1827() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed2056(core.List<api.CreativeCorrections> o) { +checkUnnamed1827(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed2057() { +buildUnnamed1828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2057(core.List<core.String> o) { +checkUnnamed1828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -696,14 +696,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed2058() { +buildUnnamed1829() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed2058(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed1829(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -715,7 +715,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed2058(); + o.reasons = buildUnnamed1829(); } buildCounterCreativeFilteringReasons--; return o; @@ -725,32 +725,32 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed2058(o.reasons); + checkUnnamed1829(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed2059() { +buildUnnamed1830() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2059(core.List<core.String> o) { +checkUnnamed1830(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2060() { +buildUnnamed1831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2060(core.List<core.String> o) { +checkUnnamed1831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -802,14 +802,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed2061() { +buildUnnamed1832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2061(core.List<core.String> o) { +checkUnnamed1832(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -851,7 +851,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed2061(); + o.impressionTrackingUrl = buildUnnamed1832(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -873,7 +873,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed2061(o.impressionTrackingUrl); + checkUnnamed1832(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -883,79 +883,79 @@ buildCounterCreativeNativeAd--; } -buildUnnamed2062() { +buildUnnamed1833() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2062(core.List<core.int> o) { +checkUnnamed1833(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2063() { +buildUnnamed1834() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2063(core.List<core.int> o) { +checkUnnamed1834(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2064() { +buildUnnamed1835() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2064(core.List<core.int> o) { +checkUnnamed1835(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2065() { +buildUnnamed1836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2065(core.List<core.String> o) { +checkUnnamed1836(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2066() { +buildUnnamed1837() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2066(core.List<core.int> o) { +checkUnnamed1837(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2067() { +buildUnnamed1838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2067(core.List<core.String> o) { +checkUnnamed1838(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -966,10 +966,10 @@ var o = new api.CreativeServingRestrictionsContexts(); buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - o.auctionType = buildUnnamed2065(); + o.auctionType = buildUnnamed1836(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2066(); - o.platform = buildUnnamed2067(); + o.geoCriteriaId = buildUnnamed1837(); + o.platform = buildUnnamed1838(); } buildCounterCreativeServingRestrictionsContexts--; return o; @@ -978,35 +978,35 @@ checkCreativeServingRestrictionsContexts(api.CreativeServingRestrictionsContexts o) { buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - checkUnnamed2065(o.auctionType); + checkUnnamed1836(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2066(o.geoCriteriaId); - checkUnnamed2067(o.platform); + checkUnnamed1837(o.geoCriteriaId); + checkUnnamed1838(o.platform); } buildCounterCreativeServingRestrictionsContexts--; } -buildUnnamed2068() { +buildUnnamed1839() { var o = new core.List<api.CreativeServingRestrictionsContexts>(); o.add(buildCreativeServingRestrictionsContexts()); o.add(buildCreativeServingRestrictionsContexts()); return o; } -checkUnnamed2068(core.List<api.CreativeServingRestrictionsContexts> o) { +checkUnnamed1839(core.List<api.CreativeServingRestrictionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsContexts(o[0]); checkCreativeServingRestrictionsContexts(o[1]); } -buildUnnamed2069() { +buildUnnamed1840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(core.List<core.String> o) { +checkUnnamed1840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1017,7 +1017,7 @@ var o = new api.CreativeServingRestrictionsDisapprovalReasons(); buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - o.details = buildUnnamed2069(); + o.details = buildUnnamed1840(); o.reason = "foo"; } buildCounterCreativeServingRestrictionsDisapprovalReasons--; @@ -1027,20 +1027,20 @@ checkCreativeServingRestrictionsDisapprovalReasons(api.CreativeServingRestrictionsDisapprovalReasons o) { buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - checkUnnamed2069(o.details); + checkUnnamed1840(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictionsDisapprovalReasons--; } -buildUnnamed2070() { +buildUnnamed1841() { var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); return o; } -checkUnnamed2070(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { +checkUnnamed1841(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsDisapprovalReasons(o[0]); checkCreativeServingRestrictionsDisapprovalReasons(o[1]); @@ -1051,8 +1051,8 @@ var o = new api.CreativeServingRestrictions(); buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - o.contexts = buildUnnamed2068(); - o.disapprovalReasons = buildUnnamed2070(); + o.contexts = buildUnnamed1839(); + o.disapprovalReasons = buildUnnamed1841(); o.reason = "foo"; } buildCounterCreativeServingRestrictions--; @@ -1062,34 +1062,34 @@ checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - checkUnnamed2068(o.contexts); - checkUnnamed2070(o.disapprovalReasons); + checkUnnamed1839(o.contexts); + checkUnnamed1841(o.disapprovalReasons); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictions--; } -buildUnnamed2071() { +buildUnnamed1842() { var o = new core.List<api.CreativeServingRestrictions>(); o.add(buildCreativeServingRestrictions()); o.add(buildCreativeServingRestrictions()); return o; } -checkUnnamed2071(core.List<api.CreativeServingRestrictions> o) { +checkUnnamed1842(core.List<api.CreativeServingRestrictions> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictions(o[0]); checkCreativeServingRestrictions(o[1]); } -buildUnnamed2072() { +buildUnnamed1843() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2072(core.List<core.int> o) { +checkUnnamed1843(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1103,28 +1103,28 @@ o.HTMLSnippet = "foo"; o.accountId = 42; o.adChoicesDestinationUrl = "foo"; - o.advertiserId = buildUnnamed2048(); + o.advertiserId = buildUnnamed1819(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed2049(); + o.attribute = buildUnnamed1820(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed2050(); - o.corrections = buildUnnamed2056(); + o.clickThroughUrl = buildUnnamed1821(); + o.corrections = buildUnnamed1827(); o.dealsStatus = "foo"; - o.detectedDomains = buildUnnamed2057(); + o.detectedDomains = buildUnnamed1828(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed2059(); + o.impressionTrackingUrl = buildUnnamed1830(); o.kind = "foo"; - o.languages = buildUnnamed2060(); + o.languages = buildUnnamed1831(); o.nativeAd = buildCreativeNativeAd(); o.openAuctionStatus = "foo"; - o.productCategories = buildUnnamed2062(); - o.restrictedCategories = buildUnnamed2063(); - o.sensitiveCategories = buildUnnamed2064(); - o.servingRestrictions = buildUnnamed2071(); - o.vendorType = buildUnnamed2072(); + o.productCategories = buildUnnamed1833(); + o.restrictedCategories = buildUnnamed1834(); + o.sensitiveCategories = buildUnnamed1835(); + o.servingRestrictions = buildUnnamed1842(); + o.vendorType = buildUnnamed1843(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -1139,28 +1139,28 @@ unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); - checkUnnamed2048(o.advertiserId); + checkUnnamed1819(o.advertiserId); unittest.expect(o.advertiserName, unittest.equals('foo')); unittest.expect(o.agencyId, unittest.equals('foo')); unittest.expect(o.apiUploadTimestamp, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2049(o.attribute); + checkUnnamed1820(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed2050(o.clickThroughUrl); - checkUnnamed2056(o.corrections); + checkUnnamed1821(o.clickThroughUrl); + checkUnnamed1827(o.corrections); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed2057(o.detectedDomains); + checkUnnamed1828(o.detectedDomains); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed2059(o.impressionTrackingUrl); + checkUnnamed1830(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2060(o.languages); + checkUnnamed1831(o.languages); checkCreativeNativeAd(o.nativeAd); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed2062(o.productCategories); - checkUnnamed2063(o.restrictedCategories); - checkUnnamed2064(o.sensitiveCategories); - checkUnnamed2071(o.servingRestrictions); - checkUnnamed2072(o.vendorType); + checkUnnamed1833(o.productCategories); + checkUnnamed1834(o.restrictedCategories); + checkUnnamed1835(o.sensitiveCategories); + checkUnnamed1842(o.servingRestrictions); + checkUnnamed1843(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -1191,14 +1191,14 @@ buildCounterCreativeDealIdsDealStatuses--; } -buildUnnamed2073() { +buildUnnamed1844() { var o = new core.List<api.CreativeDealIdsDealStatuses>(); o.add(buildCreativeDealIdsDealStatuses()); o.add(buildCreativeDealIdsDealStatuses()); return o; } -checkUnnamed2073(core.List<api.CreativeDealIdsDealStatuses> o) { +checkUnnamed1844(core.List<api.CreativeDealIdsDealStatuses> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDealIdsDealStatuses(o[0]); checkCreativeDealIdsDealStatuses(o[1]); @@ -1209,7 +1209,7 @@ var o = new api.CreativeDealIds(); buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - o.dealStatuses = buildUnnamed2073(); + o.dealStatuses = buildUnnamed1844(); o.kind = "foo"; } buildCounterCreativeDealIds--; @@ -1219,20 +1219,20 @@ checkCreativeDealIds(api.CreativeDealIds o) { buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - checkUnnamed2073(o.dealStatuses); + checkUnnamed1844(o.dealStatuses); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCreativeDealIds--; } -buildUnnamed2074() { +buildUnnamed1845() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2074(core.List<api.Creative> o) { +checkUnnamed1845(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1243,7 +1243,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed2074(); + o.items = buildUnnamed1845(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1254,7 +1254,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed2074(o.items); + checkUnnamed1845(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1344,14 +1344,14 @@ buildCounterDealTerms--; } -buildUnnamed2075() { +buildUnnamed1846() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2075(core.List<api.PricePerBuyer> o) { +checkUnnamed1846(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1363,7 +1363,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { o.billingInfo = buildDealTermsGuaranteedFixedPriceTermsBillingInfo(); - o.fixedPrices = buildUnnamed2075(); + o.fixedPrices = buildUnnamed1846(); o.guaranteedImpressions = "foo"; o.guaranteedLooks = "foo"; o.minimumDailyLooks = "foo"; @@ -1376,7 +1376,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { checkDealTermsGuaranteedFixedPriceTermsBillingInfo(o.billingInfo); - checkUnnamed2075(o.fixedPrices); + checkUnnamed1846(o.fixedPrices); unittest.expect(o.guaranteedImpressions, unittest.equals('foo')); unittest.expect(o.guaranteedLooks, unittest.equals('foo')); unittest.expect(o.minimumDailyLooks, unittest.equals('foo')); @@ -1409,14 +1409,14 @@ buildCounterDealTermsGuaranteedFixedPriceTermsBillingInfo--; } -buildUnnamed2076() { +buildUnnamed1847() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2076(core.List<api.PricePerBuyer> o) { +checkUnnamed1847(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1428,7 +1428,7 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { o.autoOptimizePrivateAuction = true; - o.reservePricePerBuyers = buildUnnamed2076(); + o.reservePricePerBuyers = buildUnnamed1847(); } buildCounterDealTermsNonGuaranteedAuctionTerms--; return o; @@ -1438,19 +1438,19 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { unittest.expect(o.autoOptimizePrivateAuction, unittest.isTrue); - checkUnnamed2076(o.reservePricePerBuyers); + checkUnnamed1847(o.reservePricePerBuyers); } buildCounterDealTermsNonGuaranteedAuctionTerms--; } -buildUnnamed2077() { +buildUnnamed1848() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2077(core.List<api.PricePerBuyer> o) { +checkUnnamed1848(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1461,7 +1461,7 @@ var o = new api.DealTermsNonGuaranteedFixedPriceTerms(); buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - o.fixedPrices = buildUnnamed2077(); + o.fixedPrices = buildUnnamed1848(); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; return o; @@ -1470,7 +1470,7 @@ checkDealTermsNonGuaranteedFixedPriceTerms(api.DealTermsNonGuaranteedFixedPriceTerms o) { buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - checkUnnamed2077(o.fixedPrices); + checkUnnamed1848(o.fixedPrices); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; } @@ -1496,14 +1496,14 @@ buildCounterDealTermsRubiconNonGuaranteedTerms--; } -buildUnnamed2078() { +buildUnnamed1849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2078(core.List<core.String> o) { +checkUnnamed1849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1514,7 +1514,7 @@ var o = new api.DeleteOrderDealsRequest(); buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - o.dealIds = buildUnnamed2078(); + o.dealIds = buildUnnamed1849(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -1525,21 +1525,21 @@ checkDeleteOrderDealsRequest(api.DeleteOrderDealsRequest o) { buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - checkUnnamed2078(o.dealIds); + checkUnnamed1849(o.dealIds); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterDeleteOrderDealsRequest--; } -buildUnnamed2079() { +buildUnnamed1850() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2079(core.List<api.MarketplaceDeal> o) { +checkUnnamed1850(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1550,7 +1550,7 @@ var o = new api.DeleteOrderDealsResponse(); buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - o.deals = buildUnnamed2079(); + o.deals = buildUnnamed1850(); o.proposalRevisionNumber = "foo"; } buildCounterDeleteOrderDealsResponse--; @@ -1560,20 +1560,20 @@ checkDeleteOrderDealsResponse(api.DeleteOrderDealsResponse o) { buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - checkUnnamed2079(o.deals); + checkUnnamed1850(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterDeleteOrderDealsResponse--; } -buildUnnamed2080() { +buildUnnamed1851() { var o = new core.List<api.DeliveryControlFrequencyCap>(); o.add(buildDeliveryControlFrequencyCap()); o.add(buildDeliveryControlFrequencyCap()); return o; } -checkUnnamed2080(core.List<api.DeliveryControlFrequencyCap> o) { +checkUnnamed1851(core.List<api.DeliveryControlFrequencyCap> o) { unittest.expect(o, unittest.hasLength(2)); checkDeliveryControlFrequencyCap(o[0]); checkDeliveryControlFrequencyCap(o[1]); @@ -1586,7 +1586,7 @@ if (buildCounterDeliveryControl < 3) { o.creativeBlockingLevel = "foo"; o.deliveryRateType = "foo"; - o.frequencyCaps = buildUnnamed2080(); + o.frequencyCaps = buildUnnamed1851(); } buildCounterDeliveryControl--; return o; @@ -1597,7 +1597,7 @@ if (buildCounterDeliveryControl < 3) { unittest.expect(o.creativeBlockingLevel, unittest.equals('foo')); unittest.expect(o.deliveryRateType, unittest.equals('foo')); - checkUnnamed2080(o.frequencyCaps); + checkUnnamed1851(o.frequencyCaps); } buildCounterDeliveryControl--; } @@ -1625,14 +1625,14 @@ buildCounterDeliveryControlFrequencyCap--; } -buildUnnamed2081() { +buildUnnamed1852() { var o = new core.List<api.DimensionDimensionValue>(); o.add(buildDimensionDimensionValue()); o.add(buildDimensionDimensionValue()); return o; } -checkUnnamed2081(core.List<api.DimensionDimensionValue> o) { +checkUnnamed1852(core.List<api.DimensionDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionDimensionValue(o[0]); checkDimensionDimensionValue(o[1]); @@ -1644,7 +1644,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { o.dimensionType = "foo"; - o.dimensionValues = buildUnnamed2081(); + o.dimensionValues = buildUnnamed1852(); } buildCounterDimension--; return o; @@ -1654,7 +1654,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { unittest.expect(o.dimensionType, unittest.equals('foo')); - checkUnnamed2081(o.dimensionValues); + checkUnnamed1852(o.dimensionValues); } buildCounterDimension--; } @@ -1682,14 +1682,14 @@ buildCounterDimensionDimensionValue--; } -buildUnnamed2082() { +buildUnnamed1853() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2082(core.List<api.MarketplaceDeal> o) { +checkUnnamed1853(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1700,7 +1700,7 @@ var o = new api.EditAllOrderDealsRequest(); buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - o.deals = buildUnnamed2082(); + o.deals = buildUnnamed1853(); o.proposal = buildProposal(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; @@ -1712,7 +1712,7 @@ checkEditAllOrderDealsRequest(api.EditAllOrderDealsRequest o) { buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - checkUnnamed2082(o.deals); + checkUnnamed1853(o.deals); checkProposal(o.proposal); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); @@ -1720,14 +1720,14 @@ buildCounterEditAllOrderDealsRequest--; } -buildUnnamed2083() { +buildUnnamed1854() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2083(core.List<api.MarketplaceDeal> o) { +checkUnnamed1854(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1738,7 +1738,7 @@ var o = new api.EditAllOrderDealsResponse(); buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - o.deals = buildUnnamed2083(); + o.deals = buildUnnamed1854(); o.orderRevisionNumber = "foo"; } buildCounterEditAllOrderDealsResponse--; @@ -1748,20 +1748,20 @@ checkEditAllOrderDealsResponse(api.EditAllOrderDealsResponse o) { buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - checkUnnamed2083(o.deals); + checkUnnamed1854(o.deals); unittest.expect(o.orderRevisionNumber, unittest.equals('foo')); } buildCounterEditAllOrderDealsResponse--; } -buildUnnamed2084() { +buildUnnamed1855() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2084(core.List<api.Product> o) { +checkUnnamed1855(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1772,7 +1772,7 @@ var o = new api.GetOffersResponse(); buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - o.products = buildUnnamed2084(); + o.products = buildUnnamed1855(); } buildCounterGetOffersResponse--; return o; @@ -1781,19 +1781,19 @@ checkGetOffersResponse(api.GetOffersResponse o) { buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - checkUnnamed2084(o.products); + checkUnnamed1855(o.products); } buildCounterGetOffersResponse--; } -buildUnnamed2085() { +buildUnnamed1856() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2085(core.List<api.MarketplaceDeal> o) { +checkUnnamed1856(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1804,7 +1804,7 @@ var o = new api.GetOrderDealsResponse(); buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - o.deals = buildUnnamed2085(); + o.deals = buildUnnamed1856(); } buildCounterGetOrderDealsResponse--; return o; @@ -1813,19 +1813,19 @@ checkGetOrderDealsResponse(api.GetOrderDealsResponse o) { buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - checkUnnamed2085(o.deals); + checkUnnamed1856(o.deals); } buildCounterGetOrderDealsResponse--; } -buildUnnamed2086() { +buildUnnamed1857() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2086(core.List<api.MarketplaceNote> o) { +checkUnnamed1857(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -1836,7 +1836,7 @@ var o = new api.GetOrderNotesResponse(); buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - o.notes = buildUnnamed2086(); + o.notes = buildUnnamed1857(); } buildCounterGetOrderNotesResponse--; return o; @@ -1845,19 +1845,19 @@ checkGetOrderNotesResponse(api.GetOrderNotesResponse o) { buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - checkUnnamed2086(o.notes); + checkUnnamed1857(o.notes); } buildCounterGetOrderNotesResponse--; } -buildUnnamed2087() { +buildUnnamed1858() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2087(core.List<api.Proposal> o) { +checkUnnamed1858(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -1868,7 +1868,7 @@ var o = new api.GetOrdersResponse(); buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - o.proposals = buildUnnamed2087(); + o.proposals = buildUnnamed1858(); } buildCounterGetOrdersResponse--; return o; @@ -1877,19 +1877,19 @@ checkGetOrdersResponse(api.GetOrdersResponse o) { buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - checkUnnamed2087(o.proposals); + checkUnnamed1858(o.proposals); } buildCounterGetOrdersResponse--; } -buildUnnamed2088() { +buildUnnamed1859() { var o = new core.List<api.PublisherProfileApiProto>(); o.add(buildPublisherProfileApiProto()); o.add(buildPublisherProfileApiProto()); return o; } -checkUnnamed2088(core.List<api.PublisherProfileApiProto> o) { +checkUnnamed1859(core.List<api.PublisherProfileApiProto> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherProfileApiProto(o[0]); checkPublisherProfileApiProto(o[1]); @@ -1900,7 +1900,7 @@ var o = new api.GetPublisherProfilesByAccountIdResponse(); buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - o.profiles = buildUnnamed2088(); + o.profiles = buildUnnamed1859(); } buildCounterGetPublisherProfilesByAccountIdResponse--; return o; @@ -1909,32 +1909,32 @@ checkGetPublisherProfilesByAccountIdResponse(api.GetPublisherProfilesByAccountIdResponse o) { buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - checkUnnamed2088(o.profiles); + checkUnnamed1859(o.profiles); } buildCounterGetPublisherProfilesByAccountIdResponse--; } -buildUnnamed2089() { +buildUnnamed1860() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2089(core.List<api.ContactInformation> o) { +checkUnnamed1860(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2090() { +buildUnnamed1861() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2090(core.List<api.SharedTargeting> o) { +checkUnnamed1861(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -1964,8 +1964,8 @@ o.productRevisionNumber = "foo"; o.programmaticCreativeSource = "foo"; o.proposalId = "foo"; - o.sellerContacts = buildUnnamed2089(); - o.sharedTargetings = buildUnnamed2090(); + o.sellerContacts = buildUnnamed1860(); + o.sharedTargetings = buildUnnamed1861(); o.syndicationProduct = "foo"; o.terms = buildDealTerms(); o.webPropertyCode = "foo"; @@ -1996,8 +1996,8 @@ unittest.expect(o.productRevisionNumber, unittest.equals('foo')); unittest.expect(o.programmaticCreativeSource, unittest.equals('foo')); unittest.expect(o.proposalId, unittest.equals('foo')); - checkUnnamed2089(o.sellerContacts); - checkUnnamed2090(o.sharedTargetings); + checkUnnamed1860(o.sellerContacts); + checkUnnamed1861(o.sharedTargetings); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); unittest.expect(o.webPropertyCode, unittest.equals('foo')); @@ -2084,53 +2084,53 @@ buildCounterMarketplaceNote--; } -buildUnnamed2091() { +buildUnnamed1862() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2091(core.List<core.Object> o) { +checkUnnamed1862(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2092() { +buildUnnamed1863() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2092(core.List<core.Object> o) { +checkUnnamed1863(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2093() { +buildUnnamed1864() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2093(core.List<core.Object> o) { +checkUnnamed1864(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2094() { +buildUnnamed1865() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed2094(core.List<core.Object> o) { +checkUnnamed1865(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o[1]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -2143,11 +2143,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed2091(); - o.cookieMatcherStatusRate = buildUnnamed2092(); - o.creativeStatusRate = buildUnnamed2093(); + o.calloutStatusRate = buildUnnamed1862(); + o.cookieMatcherStatusRate = buildUnnamed1863(); + o.creativeStatusRate = buildUnnamed1864(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed2094(); + o.hostedMatchStatusRate = buildUnnamed1865(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -2173,11 +2173,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed2091(o.calloutStatusRate); - checkUnnamed2092(o.cookieMatcherStatusRate); - checkUnnamed2093(o.creativeStatusRate); + checkUnnamed1862(o.calloutStatusRate); + checkUnnamed1863(o.cookieMatcherStatusRate); + checkUnnamed1864(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed2094(o.hostedMatchStatusRate); + checkUnnamed1865(o.hostedMatchStatusRate); unittest.expect(o.inventoryMatchRate, unittest.equals(42.0)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.latency50thPercentile, unittest.equals(42.0)); @@ -2197,14 +2197,14 @@ buildCounterPerformanceReport--; } -buildUnnamed2095() { +buildUnnamed1866() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed2095(core.List<api.PerformanceReport> o) { +checkUnnamed1866(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -2216,7 +2216,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed2095(); + o.performanceReport = buildUnnamed1866(); } buildCounterPerformanceReportList--; return o; @@ -2226,19 +2226,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2095(o.performanceReport); + checkUnnamed1866(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed2096() { +buildUnnamed1867() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2096(core.List<core.String> o) { +checkUnnamed1867(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2265,40 +2265,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed2097() { +buildUnnamed1868() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed2097(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed1868(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed2098() { +buildUnnamed1869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2098(core.List<core.String> o) { +checkUnnamed1869(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2099() { +buildUnnamed1870() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2099(core.List<core.String> o) { +checkUnnamed1870(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2325,105 +2325,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed2100() { +buildUnnamed1871() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed2100(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed1871(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed2101() { +buildUnnamed1872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2101(core.List<core.String> o) { +checkUnnamed1872(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2102() { +buildUnnamed1873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2102(core.List<core.String> o) { +checkUnnamed1873(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2103() { +buildUnnamed1874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2103(core.List<core.String> o) { +checkUnnamed1874(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2104() { +buildUnnamed1875() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2104(core.List<core.String> o) { +checkUnnamed1875(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2105() { +buildUnnamed1876() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2105(core.List<core.String> o) { +checkUnnamed1876(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2106() { +buildUnnamed1877() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2106(core.List<core.String> o) { +checkUnnamed1877(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2107() { +buildUnnamed1878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2107(core.List<core.String> o) { +checkUnnamed1878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2450,92 +2450,92 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed2108() { +buildUnnamed1879() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed2108(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed1879(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed2109() { +buildUnnamed1880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2109(core.List<core.String> o) { +checkUnnamed1880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2110() { +buildUnnamed1881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2110(core.List<core.String> o) { +checkUnnamed1881(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2111() { +buildUnnamed1882() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed1882(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2112() { +buildUnnamed1883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2112(core.List<core.String> o) { +checkUnnamed1883(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2113() { +buildUnnamed1884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2113(core.List<core.String> o) { +checkUnnamed1884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2114() { +buildUnnamed1885() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2114(core.List<core.String> o) { +checkUnnamed1885(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2564,14 +2564,14 @@ buildCounterPretargetingConfigVideoPlayerSizes--; } -buildUnnamed2115() { +buildUnnamed1886() { var o = new core.List<api.PretargetingConfigVideoPlayerSizes>(); o.add(buildPretargetingConfigVideoPlayerSizes()); o.add(buildPretargetingConfigVideoPlayerSizes()); return o; } -checkUnnamed2115(core.List<api.PretargetingConfigVideoPlayerSizes> o) { +checkUnnamed1886(core.List<api.PretargetingConfigVideoPlayerSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigVideoPlayerSizes(o[0]); checkPretargetingConfigVideoPlayerSizes(o[1]); @@ -2585,28 +2585,28 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed2096(); - o.dimensions = buildUnnamed2097(); - o.excludedContentLabels = buildUnnamed2098(); - o.excludedGeoCriteriaIds = buildUnnamed2099(); - o.excludedPlacements = buildUnnamed2100(); - o.excludedUserLists = buildUnnamed2101(); - o.excludedVerticals = buildUnnamed2102(); - o.geoCriteriaIds = buildUnnamed2103(); + o.creativeType = buildUnnamed1867(); + o.dimensions = buildUnnamed1868(); + o.excludedContentLabels = buildUnnamed1869(); + o.excludedGeoCriteriaIds = buildUnnamed1870(); + o.excludedPlacements = buildUnnamed1871(); + o.excludedUserLists = buildUnnamed1872(); + o.excludedVerticals = buildUnnamed1873(); + o.geoCriteriaIds = buildUnnamed1874(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed2104(); - o.mobileCarriers = buildUnnamed2105(); - o.mobileDevices = buildUnnamed2106(); - o.mobileOperatingSystemVersions = buildUnnamed2107(); - o.placements = buildUnnamed2108(); - o.platforms = buildUnnamed2109(); - o.supportedCreativeAttributes = buildUnnamed2110(); - o.userIdentifierDataRequired = buildUnnamed2111(); - o.userLists = buildUnnamed2112(); - o.vendorTypes = buildUnnamed2113(); - o.verticals = buildUnnamed2114(); - o.videoPlayerSizes = buildUnnamed2115(); + o.languages = buildUnnamed1875(); + o.mobileCarriers = buildUnnamed1876(); + o.mobileDevices = buildUnnamed1877(); + o.mobileOperatingSystemVersions = buildUnnamed1878(); + o.placements = buildUnnamed1879(); + o.platforms = buildUnnamed1880(); + o.supportedCreativeAttributes = buildUnnamed1881(); + o.userIdentifierDataRequired = buildUnnamed1882(); + o.userLists = buildUnnamed1883(); + o.vendorTypes = buildUnnamed1884(); + o.verticals = buildUnnamed1885(); + o.videoPlayerSizes = buildUnnamed1886(); } buildCounterPretargetingConfig--; return o; @@ -2618,40 +2618,40 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed2096(o.creativeType); - checkUnnamed2097(o.dimensions); - checkUnnamed2098(o.excludedContentLabels); - checkUnnamed2099(o.excludedGeoCriteriaIds); - checkUnnamed2100(o.excludedPlacements); - checkUnnamed2101(o.excludedUserLists); - checkUnnamed2102(o.excludedVerticals); - checkUnnamed2103(o.geoCriteriaIds); + checkUnnamed1867(o.creativeType); + checkUnnamed1868(o.dimensions); + checkUnnamed1869(o.excludedContentLabels); + checkUnnamed1870(o.excludedGeoCriteriaIds); + checkUnnamed1871(o.excludedPlacements); + checkUnnamed1872(o.excludedUserLists); + checkUnnamed1873(o.excludedVerticals); + checkUnnamed1874(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2104(o.languages); - checkUnnamed2105(o.mobileCarriers); - checkUnnamed2106(o.mobileDevices); - checkUnnamed2107(o.mobileOperatingSystemVersions); - checkUnnamed2108(o.placements); - checkUnnamed2109(o.platforms); - checkUnnamed2110(o.supportedCreativeAttributes); - checkUnnamed2111(o.userIdentifierDataRequired); - checkUnnamed2112(o.userLists); - checkUnnamed2113(o.vendorTypes); - checkUnnamed2114(o.verticals); - checkUnnamed2115(o.videoPlayerSizes); + checkUnnamed1875(o.languages); + checkUnnamed1876(o.mobileCarriers); + checkUnnamed1877(o.mobileDevices); + checkUnnamed1878(o.mobileOperatingSystemVersions); + checkUnnamed1879(o.placements); + checkUnnamed1880(o.platforms); + checkUnnamed1881(o.supportedCreativeAttributes); + checkUnnamed1882(o.userIdentifierDataRequired); + checkUnnamed1883(o.userLists); + checkUnnamed1884(o.vendorTypes); + checkUnnamed1885(o.verticals); + checkUnnamed1886(o.videoPlayerSizes); } buildCounterPretargetingConfig--; } -buildUnnamed2116() { +buildUnnamed1887() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed2116(core.List<api.PretargetingConfig> o) { +checkUnnamed1887(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -2662,7 +2662,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed2116(); + o.items = buildUnnamed1887(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -2672,7 +2672,7 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed2116(o.items); + checkUnnamed1887(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; @@ -2747,40 +2747,40 @@ buildCounterPrivateData--; } -buildUnnamed2117() { +buildUnnamed1888() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2117(core.List<api.ContactInformation> o) { +checkUnnamed1888(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2118() { +buildUnnamed1889() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2118(core.List<api.MarketplaceLabel> o) { +checkUnnamed1889(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2119() { +buildUnnamed1890() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2119(core.List<api.SharedTargeting> o) { +checkUnnamed1890(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2792,14 +2792,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { o.creationTimeMs = "foo"; - o.creatorContacts = buildUnnamed2117(); + o.creatorContacts = buildUnnamed1888(); o.deliveryControl = buildDeliveryControl(); o.flightEndTimeMs = "foo"; o.flightStartTimeMs = "foo"; o.hasCreatorSignedOff = true; o.inventorySource = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2118(); + o.labels = buildUnnamed1889(); o.lastUpdateTimeMs = "foo"; o.legacyOfferId = "foo"; o.name = "foo"; @@ -2809,7 +2809,7 @@ o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.revisionNumber = "foo"; o.seller = buildSeller(); - o.sharedTargetings = buildUnnamed2119(); + o.sharedTargetings = buildUnnamed1890(); o.state = "foo"; o.syndicationProduct = "foo"; o.terms = buildDealTerms(); @@ -2823,14 +2823,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { unittest.expect(o.creationTimeMs, unittest.equals('foo')); - checkUnnamed2117(o.creatorContacts); + checkUnnamed1888(o.creatorContacts); checkDeliveryControl(o.deliveryControl); unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); unittest.expect(o.flightStartTimeMs, unittest.equals('foo')); unittest.expect(o.hasCreatorSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2118(o.labels); + checkUnnamed1889(o.labels); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.legacyOfferId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2840,7 +2840,7 @@ checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.revisionNumber, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2119(o.sharedTargetings); + checkUnnamed1890(o.sharedTargetings); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); @@ -2849,53 +2849,53 @@ buildCounterProduct--; } -buildUnnamed2120() { +buildUnnamed1891() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2120(core.List<api.ContactInformation> o) { +checkUnnamed1891(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2121() { +buildUnnamed1892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2121(core.List<core.String> o) { +checkUnnamed1892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2122() { +buildUnnamed1893() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2122(core.List<api.MarketplaceLabel> o) { +checkUnnamed1893(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2123() { +buildUnnamed1894() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2123(core.List<api.ContactInformation> o) { +checkUnnamed1894(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); @@ -2908,16 +2908,16 @@ if (buildCounterProposal < 3) { o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); - o.buyerContacts = buildUnnamed2120(); + o.buyerContacts = buildUnnamed1891(); o.buyerPrivateData = buildPrivateData(); - o.dbmAdvertiserIds = buildUnnamed2121(); + o.dbmAdvertiserIds = buildUnnamed1892(); o.hasBuyerSignedOff = true; o.hasSellerSignedOff = true; o.inventorySource = "foo"; o.isRenegotiating = true; o.isSetupComplete = true; o.kind = "foo"; - o.labels = buildUnnamed2122(); + o.labels = buildUnnamed1893(); o.lastUpdaterOrCommentorRole = "foo"; o.name = "foo"; o.negotiationId = "foo"; @@ -2928,7 +2928,7 @@ o.revisionNumber = "foo"; o.revisionTimeMs = "foo"; o.seller = buildSeller(); - o.sellerContacts = buildUnnamed2123(); + o.sellerContacts = buildUnnamed1894(); } buildCounterProposal--; return o; @@ -2939,16 +2939,16 @@ if (buildCounterProposal < 3) { checkBuyer(o.billedBuyer); checkBuyer(o.buyer); - checkUnnamed2120(o.buyerContacts); + checkUnnamed1891(o.buyerContacts); checkPrivateData(o.buyerPrivateData); - checkUnnamed2121(o.dbmAdvertiserIds); + checkUnnamed1892(o.dbmAdvertiserIds); unittest.expect(o.hasBuyerSignedOff, unittest.isTrue); unittest.expect(o.hasSellerSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.isRenegotiating, unittest.isTrue); unittest.expect(o.isSetupComplete, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2122(o.labels); + checkUnnamed1893(o.labels); unittest.expect(o.lastUpdaterOrCommentorRole, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.negotiationId, unittest.equals('foo')); @@ -2959,32 +2959,32 @@ unittest.expect(o.revisionNumber, unittest.equals('foo')); unittest.expect(o.revisionTimeMs, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2123(o.sellerContacts); + checkUnnamed1894(o.sellerContacts); } buildCounterProposal--; } -buildUnnamed2124() { +buildUnnamed1895() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2124(core.List<core.String> o) { +checkUnnamed1895(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2125() { +buildUnnamed1896() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2125(core.List<core.String> o) { +checkUnnamed1896(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3010,14 +3010,14 @@ o.overview = "foo"; o.profileId = 42; o.programmaticContact = "foo"; - o.publisherDomains = buildUnnamed2124(); + o.publisherDomains = buildUnnamed1895(); o.publisherProfileId = "foo"; o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.rateCardInfoLink = "foo"; o.samplePageLink = "foo"; o.seller = buildSeller(); o.state = "foo"; - o.topHeadlines = buildUnnamed2125(); + o.topHeadlines = buildUnnamed1896(); } buildCounterPublisherProfileApiProto--; return o; @@ -3041,26 +3041,26 @@ unittest.expect(o.overview, unittest.equals('foo')); unittest.expect(o.profileId, unittest.equals(42)); unittest.expect(o.programmaticContact, unittest.equals('foo')); - checkUnnamed2124(o.publisherDomains); + checkUnnamed1895(o.publisherDomains); unittest.expect(o.publisherProfileId, unittest.equals('foo')); checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.rateCardInfoLink, unittest.equals('foo')); unittest.expect(o.samplePageLink, unittest.equals('foo')); checkSeller(o.seller); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2125(o.topHeadlines); + checkUnnamed1896(o.topHeadlines); } buildCounterPublisherProfileApiProto--; } -buildUnnamed2126() { +buildUnnamed1897() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2126(core.List<api.Dimension> o) { +checkUnnamed1897(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -3071,7 +3071,7 @@ var o = new api.PublisherProvidedForecast(); buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - o.dimensions = buildUnnamed2126(); + o.dimensions = buildUnnamed1897(); o.weeklyImpressions = "foo"; o.weeklyUniques = "foo"; } @@ -3082,7 +3082,7 @@ checkPublisherProvidedForecast(api.PublisherProvidedForecast o) { buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - checkUnnamed2126(o.dimensions); + checkUnnamed1897(o.dimensions); unittest.expect(o.weeklyImpressions, unittest.equals('foo')); unittest.expect(o.weeklyUniques, unittest.equals('foo')); } @@ -3110,27 +3110,27 @@ buildCounterSeller--; } -buildUnnamed2127() { +buildUnnamed1898() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2127(core.List<api.TargetingValue> o) { +checkUnnamed1898(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); } -buildUnnamed2128() { +buildUnnamed1899() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2128(core.List<api.TargetingValue> o) { +checkUnnamed1899(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); @@ -3141,8 +3141,8 @@ var o = new api.SharedTargeting(); buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - o.exclusions = buildUnnamed2127(); - o.inclusions = buildUnnamed2128(); + o.exclusions = buildUnnamed1898(); + o.inclusions = buildUnnamed1899(); o.key = "foo"; } buildCounterSharedTargeting--; @@ -3152,8 +3152,8 @@ checkSharedTargeting(api.SharedTargeting o) { buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - checkUnnamed2127(o.exclusions); - checkUnnamed2128(o.inclusions); + checkUnnamed1898(o.exclusions); + checkUnnamed1899(o.inclusions); unittest.expect(o.key, unittest.equals('foo')); } buildCounterSharedTargeting--; @@ -3184,14 +3184,14 @@ buildCounterTargetingValue--; } -buildUnnamed2129() { +buildUnnamed1900() { var o = new core.List<api.TargetingValueSize>(); o.add(buildTargetingValueSize()); o.add(buildTargetingValueSize()); return o; } -checkUnnamed2129(core.List<api.TargetingValueSize> o) { +checkUnnamed1900(core.List<api.TargetingValueSize> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueSize(o[0]); checkTargetingValueSize(o[1]); @@ -3202,7 +3202,7 @@ var o = new api.TargetingValueCreativeSize(); buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - o.companionSizes = buildUnnamed2129(); + o.companionSizes = buildUnnamed1900(); o.creativeSizeType = "foo"; o.size = buildTargetingValueSize(); o.skippableAdType = "foo"; @@ -3214,7 +3214,7 @@ checkTargetingValueCreativeSize(api.TargetingValueCreativeSize o) { buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - checkUnnamed2129(o.companionSizes); + checkUnnamed1900(o.companionSizes); unittest.expect(o.creativeSizeType, unittest.equals('foo')); checkTargetingValueSize(o.size); unittest.expect(o.skippableAdType, unittest.equals('foo')); @@ -3222,14 +3222,14 @@ buildCounterTargetingValueCreativeSize--; } -buildUnnamed2130() { +buildUnnamed1901() { var o = new core.List<api.TargetingValueDayPartTargetingDayPart>(); o.add(buildTargetingValueDayPartTargetingDayPart()); o.add(buildTargetingValueDayPartTargetingDayPart()); return o; } -checkUnnamed2130(core.List<api.TargetingValueDayPartTargetingDayPart> o) { +checkUnnamed1901(core.List<api.TargetingValueDayPartTargetingDayPart> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueDayPartTargetingDayPart(o[0]); checkTargetingValueDayPartTargetingDayPart(o[1]); @@ -3240,7 +3240,7 @@ var o = new api.TargetingValueDayPartTargeting(); buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - o.dayParts = buildUnnamed2130(); + o.dayParts = buildUnnamed1901(); o.timeZoneType = "foo"; } buildCounterTargetingValueDayPartTargeting--; @@ -3250,7 +3250,7 @@ checkTargetingValueDayPartTargeting(api.TargetingValueDayPartTargeting o) { buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - checkUnnamed2130(o.dayParts); + checkUnnamed1901(o.dayParts); unittest.expect(o.timeZoneType, unittest.equals('foo')); } buildCounterTargetingValueDayPartTargeting--; @@ -3329,27 +3329,27 @@ buildCounterUpdatePrivateAuctionProposalRequest--; } -buildUnnamed2131() { +buildUnnamed1902() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2131(core.List<core.int> o) { +checkUnnamed1902(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2132() { +buildUnnamed1903() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2132(core.List<core.String> o) { +checkUnnamed1903(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4713,8 +4713,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed2131(); - var arg_buyerCreativeId = buildUnnamed2132(); + var arg_accountId = buildUnnamed1902(); + var arg_buyerCreativeId = buildUnnamed1903(); var arg_dealsStatusFilter = "foo"; var arg_maxResults = 42; var arg_openAuctionStatusFilter = "foo";
diff --git a/generated/googleapis/test/adexchangeseller/v1_1_test.dart b/generated/googleapis/test/adexchangeseller/v1_1_test.dart index df2631d..34ea97d 100644 --- a/generated/googleapis/test/adexchangeseller/v1_1_test.dart +++ b/generated/googleapis/test/adexchangeseller/v1_1_test.dart
@@ -101,14 +101,14 @@ buildCounterAdClient--; } -buildUnnamed459() { +buildUnnamed198() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed459(core.List<api.AdClient> o) { +checkUnnamed198(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -120,7 +120,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed459(); + o.items = buildUnnamed198(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -132,7 +132,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed459(o.items); + checkUnnamed198(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -166,14 +166,14 @@ buildCounterAdUnit--; } -buildUnnamed460() { +buildUnnamed199() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed460(core.List<api.AdUnit> o) { +checkUnnamed199(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -185,7 +185,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed460(); + o.items = buildUnnamed199(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -197,7 +197,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed460(o.items); + checkUnnamed199(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -231,14 +231,14 @@ buildCounterAlert--; } -buildUnnamed461() { +buildUnnamed200() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed461(core.List<api.Alert> o) { +checkUnnamed200(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -249,7 +249,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed461(); + o.items = buildUnnamed200(); o.kind = "foo"; } buildCounterAlerts--; @@ -259,7 +259,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed461(o.items); + checkUnnamed200(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -317,14 +317,14 @@ buildCounterCustomChannel--; } -buildUnnamed462() { +buildUnnamed201() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed462(core.List<api.CustomChannel> o) { +checkUnnamed201(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -336,7 +336,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed462(); + o.items = buildUnnamed201(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -348,21 +348,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed462(o.items); + checkUnnamed201(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed463() { +buildUnnamed202() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed463(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed202(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -373,7 +373,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed463(); + o.items = buildUnnamed202(); o.kind = "foo"; } buildCounterMetadata--; @@ -383,7 +383,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed463(o.items); + checkUnnamed202(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -422,14 +422,14 @@ buildCounterPreferredDeal--; } -buildUnnamed464() { +buildUnnamed203() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed464(core.List<api.PreferredDeal> o) { +checkUnnamed203(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -440,7 +440,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed464(); + o.items = buildUnnamed203(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -450,20 +450,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed464(o.items); + checkUnnamed203(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed465() { +buildUnnamed204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed465(core.List<core.String> o) { +checkUnnamed204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -492,66 +492,66 @@ buildCounterReportHeaders--; } -buildUnnamed466() { +buildUnnamed205() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed466(core.List<api.ReportHeaders> o) { +checkUnnamed205(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed467() { +buildUnnamed206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed467(core.List<core.String> o) { +checkUnnamed206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed468() { +buildUnnamed207() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed467()); - o.add(buildUnnamed467()); + o.add(buildUnnamed206()); + o.add(buildUnnamed206()); return o; } -checkUnnamed468(core.List<core.List<core.String>> o) { +checkUnnamed207(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed467(o[0]); - checkUnnamed467(o[1]); + checkUnnamed206(o[0]); + checkUnnamed206(o[1]); } -buildUnnamed469() { +buildUnnamed208() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed469(core.List<core.String> o) { +checkUnnamed208(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed470() { +buildUnnamed209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed470(core.List<core.String> o) { +checkUnnamed209(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -562,13 +562,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed465(); - o.headers = buildUnnamed466(); + o.averages = buildUnnamed204(); + o.headers = buildUnnamed205(); o.kind = "foo"; - o.rows = buildUnnamed468(); + o.rows = buildUnnamed207(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed469(); - o.warnings = buildUnnamed470(); + o.totals = buildUnnamed208(); + o.warnings = buildUnnamed209(); } buildCounterReport--; return o; @@ -577,77 +577,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed465(o.averages); - checkUnnamed466(o.headers); + checkUnnamed204(o.averages); + checkUnnamed205(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed468(o.rows); + checkUnnamed207(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed469(o.totals); - checkUnnamed470(o.warnings); + checkUnnamed208(o.totals); + checkUnnamed209(o.warnings); } buildCounterReport--; } -buildUnnamed471() { +buildUnnamed210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed471(core.List<core.String> o) { +checkUnnamed210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed472() { +buildUnnamed211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed472(core.List<core.String> o) { +checkUnnamed211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed473() { +buildUnnamed212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed473(core.List<core.String> o) { +checkUnnamed212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed474() { +buildUnnamed213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed474(core.List<core.String> o) { +checkUnnamed213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed475() { +buildUnnamed214() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed475(core.List<core.String> o) { +checkUnnamed214(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -658,13 +658,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed471(); - o.compatibleMetrics = buildUnnamed472(); + o.compatibleDimensions = buildUnnamed210(); + o.compatibleMetrics = buildUnnamed211(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed473(); - o.requiredMetrics = buildUnnamed474(); - o.supportedProducts = buildUnnamed475(); + o.requiredDimensions = buildUnnamed212(); + o.requiredMetrics = buildUnnamed213(); + o.supportedProducts = buildUnnamed214(); } buildCounterReportingMetadataEntry--; return o; @@ -673,13 +673,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed471(o.compatibleDimensions); - checkUnnamed472(o.compatibleMetrics); + checkUnnamed210(o.compatibleDimensions); + checkUnnamed211(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed473(o.requiredDimensions); - checkUnnamed474(o.requiredMetrics); - checkUnnamed475(o.supportedProducts); + checkUnnamed212(o.requiredDimensions); + checkUnnamed213(o.requiredMetrics); + checkUnnamed214(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -707,14 +707,14 @@ buildCounterSavedReport--; } -buildUnnamed476() { +buildUnnamed215() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed476(core.List<api.SavedReport> o) { +checkUnnamed215(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -726,7 +726,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed476(); + o.items = buildUnnamed215(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -738,7 +738,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed476(o.items); + checkUnnamed215(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -768,14 +768,14 @@ buildCounterUrlChannel--; } -buildUnnamed477() { +buildUnnamed216() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed477(core.List<api.UrlChannel> o) { +checkUnnamed216(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -787,7 +787,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed477(); + o.items = buildUnnamed216(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -799,60 +799,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed477(o.items); + checkUnnamed216(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed478() { +buildUnnamed217() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed478(core.List<core.String> o) { +checkUnnamed217(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed479() { +buildUnnamed218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed479(core.List<core.String> o) { +checkUnnamed218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed480() { +buildUnnamed219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed480(core.List<core.String> o) { +checkUnnamed219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed481() { +buildUnnamed220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed481(core.List<core.String> o) { +checkUnnamed220(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1780,12 +1780,12 @@ api.ReportsResourceApi res = new api.AdexchangesellerApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed478(); - var arg_filter = buildUnnamed479(); + var arg_dimension = buildUnnamed217(); + var arg_filter = buildUnnamed218(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed480(); - var arg_sort = buildUnnamed481(); + var arg_metric = buildUnnamed219(); + var arg_sort = buildUnnamed220(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/adexchangeseller/v2_0_test.dart b/generated/googleapis/test/adexchangeseller/v2_0_test.dart index 081c9e1..fd662eb 100644 --- a/generated/googleapis/test/adexchangeseller/v2_0_test.dart +++ b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
@@ -74,14 +74,14 @@ buildCounterAccount--; } -buildUnnamed1904() { +buildUnnamed1674() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1904(core.List<api.Account> o) { +checkUnnamed1674(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -93,7 +93,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed1904(); + o.items = buildUnnamed1674(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -105,7 +105,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1904(o.items); + checkUnnamed1674(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed1905() { +buildUnnamed1675() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed1905(core.List<api.AdClient> o) { +checkUnnamed1675(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -158,7 +158,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed1905(); + o.items = buildUnnamed1675(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1905(o.items); + checkUnnamed1675(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -204,14 +204,14 @@ buildCounterAlert--; } -buildUnnamed1906() { +buildUnnamed1676() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed1906(core.List<api.Alert> o) { +checkUnnamed1676(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -222,7 +222,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed1906(); + o.items = buildUnnamed1676(); o.kind = "foo"; } buildCounterAlerts--; @@ -232,7 +232,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed1906(o.items); + checkUnnamed1676(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -290,14 +290,14 @@ buildCounterCustomChannel--; } -buildUnnamed1907() { +buildUnnamed1677() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed1907(core.List<api.CustomChannel> o) { +checkUnnamed1677(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -309,7 +309,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1907(); + o.items = buildUnnamed1677(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -321,21 +321,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1907(o.items); + checkUnnamed1677(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed1908() { +buildUnnamed1678() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed1908(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1678(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -346,7 +346,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1908(); + o.items = buildUnnamed1678(); o.kind = "foo"; } buildCounterMetadata--; @@ -356,7 +356,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1908(o.items); + checkUnnamed1678(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -395,14 +395,14 @@ buildCounterPreferredDeal--; } -buildUnnamed1909() { +buildUnnamed1679() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed1909(core.List<api.PreferredDeal> o) { +checkUnnamed1679(core.List<api.PreferredDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkPreferredDeal(o[0]); checkPreferredDeal(o[1]); @@ -413,7 +413,7 @@ var o = new api.PreferredDeals(); buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - o.items = buildUnnamed1909(); + o.items = buildUnnamed1679(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -423,20 +423,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed1909(o.items); + checkUnnamed1679(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed1910() { +buildUnnamed1680() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1910(core.List<core.String> o) { +checkUnnamed1680(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -465,66 +465,66 @@ buildCounterReportHeaders--; } -buildUnnamed1911() { +buildUnnamed1681() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed1911(core.List<api.ReportHeaders> o) { +checkUnnamed1681(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed1912() { +buildUnnamed1682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1912(core.List<core.String> o) { +checkUnnamed1682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1913() { +buildUnnamed1683() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1912()); - o.add(buildUnnamed1912()); + o.add(buildUnnamed1682()); + o.add(buildUnnamed1682()); return o; } -checkUnnamed1913(core.List<core.List<core.String>> o) { +checkUnnamed1683(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1912(o[0]); - checkUnnamed1912(o[1]); + checkUnnamed1682(o[0]); + checkUnnamed1682(o[1]); } -buildUnnamed1914() { +buildUnnamed1684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1914(core.List<core.String> o) { +checkUnnamed1684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1915() { +buildUnnamed1685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1915(core.List<core.String> o) { +checkUnnamed1685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -535,13 +535,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed1910(); - o.headers = buildUnnamed1911(); + o.averages = buildUnnamed1680(); + o.headers = buildUnnamed1681(); o.kind = "foo"; - o.rows = buildUnnamed1913(); + o.rows = buildUnnamed1683(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed1914(); - o.warnings = buildUnnamed1915(); + o.totals = buildUnnamed1684(); + o.warnings = buildUnnamed1685(); } buildCounterReport--; return o; @@ -550,77 +550,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1910(o.averages); - checkUnnamed1911(o.headers); + checkUnnamed1680(o.averages); + checkUnnamed1681(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1913(o.rows); + checkUnnamed1683(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed1914(o.totals); - checkUnnamed1915(o.warnings); + checkUnnamed1684(o.totals); + checkUnnamed1685(o.warnings); } buildCounterReport--; } -buildUnnamed1916() { +buildUnnamed1686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1916(core.List<core.String> o) { +checkUnnamed1686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1917() { +buildUnnamed1687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1917(core.List<core.String> o) { +checkUnnamed1687(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1918() { +buildUnnamed1688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1918(core.List<core.String> o) { +checkUnnamed1688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1919() { +buildUnnamed1689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1919(core.List<core.String> o) { +checkUnnamed1689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1920() { +buildUnnamed1690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1920(core.List<core.String> o) { +checkUnnamed1690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -631,13 +631,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed1916(); - o.compatibleMetrics = buildUnnamed1917(); + o.compatibleDimensions = buildUnnamed1686(); + o.compatibleMetrics = buildUnnamed1687(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed1918(); - o.requiredMetrics = buildUnnamed1919(); - o.supportedProducts = buildUnnamed1920(); + o.requiredDimensions = buildUnnamed1688(); + o.requiredMetrics = buildUnnamed1689(); + o.supportedProducts = buildUnnamed1690(); } buildCounterReportingMetadataEntry--; return o; @@ -646,13 +646,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed1916(o.compatibleDimensions); - checkUnnamed1917(o.compatibleMetrics); + checkUnnamed1686(o.compatibleDimensions); + checkUnnamed1687(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1918(o.requiredDimensions); - checkUnnamed1919(o.requiredMetrics); - checkUnnamed1920(o.supportedProducts); + checkUnnamed1688(o.requiredDimensions); + checkUnnamed1689(o.requiredMetrics); + checkUnnamed1690(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -680,14 +680,14 @@ buildCounterSavedReport--; } -buildUnnamed1921() { +buildUnnamed1691() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed1921(core.List<api.SavedReport> o) { +checkUnnamed1691(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -699,7 +699,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed1921(); + o.items = buildUnnamed1691(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -711,7 +711,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1921(o.items); + checkUnnamed1691(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -741,14 +741,14 @@ buildCounterUrlChannel--; } -buildUnnamed1922() { +buildUnnamed1692() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed1922(core.List<api.UrlChannel> o) { +checkUnnamed1692(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -760,7 +760,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1922(); + o.items = buildUnnamed1692(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -772,60 +772,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1922(o.items); + checkUnnamed1692(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed1923() { +buildUnnamed1693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1923(core.List<core.String> o) { +checkUnnamed1693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1924() { +buildUnnamed1694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1924(core.List<core.String> o) { +checkUnnamed1694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1925() { +buildUnnamed1695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1925(core.List<core.String> o) { +checkUnnamed1695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1926() { +buildUnnamed1696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1926(core.List<core.String> o) { +checkUnnamed1696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1598,12 +1598,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed1923(); - var arg_filter = buildUnnamed1924(); + var arg_dimension = buildUnnamed1693(); + var arg_filter = buildUnnamed1694(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed1925(); - var arg_sort = buildUnnamed1926(); + var arg_metric = buildUnnamed1695(); + var arg_sort = buildUnnamed1696(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index d886494..21ddfef 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -78,14 +78,14 @@ buildCounterAlias--; } -buildUnnamed941() { +buildUnnamed681() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed941(core.List<core.Object> o) { +checkUnnamed681(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -96,7 +96,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed941(); + o.aliases = buildUnnamed681(); o.etag = "foo"; o.kind = "foo"; } @@ -107,7 +107,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed941(o.aliases); + checkUnnamed681(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -145,14 +145,14 @@ buildCounterAsp--; } -buildUnnamed942() { +buildUnnamed682() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed942(core.List<api.Asp> o) { +checkUnnamed682(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -164,7 +164,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed942(); + o.items = buildUnnamed682(); o.kind = "foo"; } buildCounterAsps--; @@ -175,7 +175,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed942(o.items); + checkUnnamed682(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; @@ -212,14 +212,14 @@ buildCounterCalendarResource--; } -buildUnnamed943() { +buildUnnamed683() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed943(core.List<api.CalendarResource> o) { +checkUnnamed683(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -231,7 +231,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed943(); + o.items = buildUnnamed683(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -243,21 +243,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed943(o.items); + checkUnnamed683(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed944() { +buildUnnamed684() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed944(core.Map<core.String, core.String> o) { +checkUnnamed684(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -272,7 +272,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed944(); + o.params = buildUnnamed684(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -290,7 +290,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed944(o.params); + checkUnnamed684(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -321,14 +321,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed945() { +buildUnnamed685() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed945(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed685(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -355,14 +355,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed946() { +buildUnnamed686() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed946(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed686(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); @@ -373,7 +373,7 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed945(); + o.activeTimeRanges = buildUnnamed685(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; @@ -393,7 +393,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed946(); + o.recentUsers = buildUnnamed686(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -406,7 +406,7 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed945(o.activeTimeRanges); + checkUnnamed685(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); @@ -426,7 +426,7 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed946(o.recentUsers); + checkUnnamed686(o.recentUsers); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportEndDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -456,14 +456,14 @@ buildCounterChromeOsDeviceAction--; } -buildUnnamed947() { +buildUnnamed687() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed947(core.List<api.ChromeOsDevice> o) { +checkUnnamed687(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -474,7 +474,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed947(); + o.chromeosdevices = buildUnnamed687(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -486,7 +486,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed947(o.chromeosdevices); + checkUnnamed687(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -593,14 +593,14 @@ buildCounterDomainAlias--; } -buildUnnamed948() { +buildUnnamed688() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed948(core.List<api.DomainAlias> o) { +checkUnnamed688(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -611,7 +611,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed948(); + o.domainAliases = buildUnnamed688(); o.etag = "foo"; o.kind = "foo"; } @@ -622,21 +622,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed948(o.domainAliases); + checkUnnamed688(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed949() { +buildUnnamed689() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed949(core.List<api.DomainAlias> o) { +checkUnnamed689(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -648,7 +648,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed949(); + o.domainAliases = buildUnnamed689(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -663,7 +663,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed949(o.domainAliases); + checkUnnamed689(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -673,14 +673,14 @@ buildCounterDomains--; } -buildUnnamed950() { +buildUnnamed690() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed950(core.List<api.Domains> o) { +checkUnnamed690(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -691,7 +691,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed950(); + o.domains = buildUnnamed690(); o.etag = "foo"; o.kind = "foo"; } @@ -702,34 +702,34 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed950(o.domains); + checkUnnamed690(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomains2--; } -buildUnnamed951() { +buildUnnamed691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed951(core.List<core.String> o) { +checkUnnamed691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed952() { +buildUnnamed692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed952(core.List<core.String> o) { +checkUnnamed692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -741,7 +741,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed951(); + o.aliases = buildUnnamed691(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -749,7 +749,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed952(); + o.nonEditableAliases = buildUnnamed692(); } buildCounterGroup--; return o; @@ -759,7 +759,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed951(o.aliases); + checkUnnamed691(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -767,19 +767,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed952(o.nonEditableAliases); + checkUnnamed692(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed953() { +buildUnnamed693() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed953(core.List<api.Group> o) { +checkUnnamed693(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -791,7 +791,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed953(); + o.groups = buildUnnamed693(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -803,7 +803,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed953(o.groups); + checkUnnamed693(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -841,14 +841,14 @@ buildCounterMember--; } -buildUnnamed954() { +buildUnnamed694() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed954(core.List<api.Member> o) { +checkUnnamed694(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -861,7 +861,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed954(); + o.members = buildUnnamed694(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -873,20 +873,20 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed954(o.members); + checkUnnamed694(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; } -buildUnnamed955() { +buildUnnamed695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed955(core.List<core.String> o) { +checkUnnamed695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -899,7 +899,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed955(); + o.permission = buildUnnamed695(); o.versionCode = 42; o.versionName = "foo"; } @@ -912,60 +912,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed955(o.permission); + checkUnnamed695(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed956() { +buildUnnamed696() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed956(core.List<api.MobileDeviceApplications> o) { +checkUnnamed696(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed957() { +buildUnnamed697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed957(core.List<core.String> o) { +checkUnnamed697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed958() { +buildUnnamed698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed958(core.List<core.String> o) { +checkUnnamed698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed959() { +buildUnnamed699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed959(core.List<core.String> o) { +checkUnnamed699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -977,7 +977,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed956(); + o.applications = buildUnnamed696(); o.basebandVersion = "foo"; o.bootloaderVersion = "foo"; o.brand = "foo"; @@ -987,7 +987,7 @@ o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; o.devicePasswordStatus = "foo"; - o.email = buildUnnamed957(); + o.email = buildUnnamed697(); o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1001,10 +1001,10 @@ o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed958(); + o.name = buildUnnamed698(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed959(); + o.otherAccountsInfo = buildUnnamed699(); o.privilege = "foo"; o.releaseVersion = "foo"; o.resourceId = "foo"; @@ -1025,7 +1025,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed956(o.applications); + checkUnnamed696(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); unittest.expect(o.bootloaderVersion, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -1035,7 +1035,7 @@ unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); - checkUnnamed957(o.email); + checkUnnamed697(o.email); unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1049,10 +1049,10 @@ unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed958(o.name); + checkUnnamed698(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed959(o.otherAccountsInfo); + checkUnnamed699(o.otherAccountsInfo); unittest.expect(o.privilege, unittest.equals('foo')); unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1087,14 +1087,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed960() { +buildUnnamed700() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed960(core.List<api.MobileDevice> o) { +checkUnnamed700(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1107,7 +1107,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed960(); + o.mobiledevices = buildUnnamed700(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1119,7 +1119,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed960(o.mobiledevices); + checkUnnamed700(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1158,14 +1158,14 @@ buildCounterNotification--; } -buildUnnamed961() { +buildUnnamed701() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed961(core.List<api.Notification> o) { +checkUnnamed701(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1177,7 +1177,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed961(); + o.items = buildUnnamed701(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1190,7 +1190,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed961(o.items); + checkUnnamed701(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1233,14 +1233,14 @@ buildCounterOrgUnit--; } -buildUnnamed962() { +buildUnnamed702() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed962(core.List<api.OrgUnit> o) { +checkUnnamed702(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1253,7 +1253,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed962(); + o.organizationUnits = buildUnnamed702(); } buildCounterOrgUnits--; return o; @@ -1264,19 +1264,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed962(o.organizationUnits); + checkUnnamed702(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed963() { +buildUnnamed703() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed963(core.List<api.Privilege> o) { +checkUnnamed703(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1287,7 +1287,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed963(); + o.childPrivileges = buildUnnamed703(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1302,7 +1302,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed963(o.childPrivileges); + checkUnnamed703(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1313,14 +1313,14 @@ buildCounterPrivilege--; } -buildUnnamed964() { +buildUnnamed704() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed964(core.List<api.Privilege> o) { +checkUnnamed704(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1332,7 +1332,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed964(); + o.items = buildUnnamed704(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1343,7 +1343,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed964(o.items); + checkUnnamed704(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1370,14 +1370,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed965() { +buildUnnamed705() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed965(core.List<api.RoleRolePrivileges> o) { +checkUnnamed705(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1395,7 +1395,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed965(); + o.rolePrivileges = buildUnnamed705(); } buildCounterRole--; return o; @@ -1411,7 +1411,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed965(o.rolePrivileges); + checkUnnamed705(o.rolePrivileges); } buildCounterRole--; } @@ -1447,14 +1447,14 @@ buildCounterRoleAssignment--; } -buildUnnamed966() { +buildUnnamed706() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed966(core.List<api.RoleAssignment> o) { +checkUnnamed706(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1466,7 +1466,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed966(); + o.items = buildUnnamed706(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1478,21 +1478,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed966(o.items); + checkUnnamed706(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed967() { +buildUnnamed707() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed967(core.List<api.Role> o) { +checkUnnamed707(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1504,7 +1504,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed967(); + o.items = buildUnnamed707(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1516,21 +1516,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed967(o.items); + checkUnnamed707(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed968() { +buildUnnamed708() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed968(core.List<api.SchemaFieldSpec> o) { +checkUnnamed708(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1542,7 +1542,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { o.etag = "foo"; - o.fields = buildUnnamed968(); + o.fields = buildUnnamed708(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1555,7 +1555,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed968(o.fields); + checkUnnamed708(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -1619,14 +1619,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed969() { +buildUnnamed709() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed969(core.List<api.Schema> o) { +checkUnnamed709(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -1639,7 +1639,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed969(); + o.schemas = buildUnnamed709(); } buildCounterSchemas--; return o; @@ -1650,19 +1650,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed969(o.schemas); + checkUnnamed709(o.schemas); } buildCounterSchemas--; } -buildUnnamed970() { +buildUnnamed710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed970(core.List<core.String> o) { +checkUnnamed710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1679,7 +1679,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed970(); + o.scopes = buildUnnamed710(); o.userKey = "foo"; } buildCounterToken--; @@ -1695,20 +1695,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed970(o.scopes); + checkUnnamed710(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed971() { +buildUnnamed711() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed971(core.List<api.Token> o) { +checkUnnamed711(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -1720,7 +1720,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed971(); + o.items = buildUnnamed711(); o.kind = "foo"; } buildCounterTokens--; @@ -1731,46 +1731,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed971(o.items); + checkUnnamed711(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed972() { +buildUnnamed712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed972(core.List<core.String> o) { +checkUnnamed712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed973() { +buildUnnamed713() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed973(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed713(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed974() { +buildUnnamed714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed974(core.List<core.String> o) { +checkUnnamed714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1783,10 +1783,10 @@ if (buildCounterUser < 3) { o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.agreedToTerms = true; - o.aliases = buildUnnamed972(); + o.aliases = buildUnnamed712(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed973(); + o.customSchemas = buildUnnamed713(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1803,7 +1803,7 @@ o.kind = "foo"; o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed974(); + o.nonEditableAliases = buildUnnamed714(); o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.orgUnitPath = "foo"; o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1826,10 +1826,10 @@ if (buildCounterUser < 3) { var casted3 = (o.addresses) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed972(o.aliases); + checkUnnamed712(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed973(o.customSchemas); + checkUnnamed713(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); var casted4 = (o.emails) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1846,7 +1846,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastLoginTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUserName(o.name); - checkUnnamed974(o.nonEditableAliases); + checkUnnamed714(o.nonEditableAliases); var casted7 = (o.notes) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); unittest.expect(o.orgUnitPath, unittest.equals('foo')); var casted8 = (o.organizations) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -2223,14 +2223,14 @@ buildCounterUserWebsite--; } -buildUnnamed975() { +buildUnnamed715() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed975(core.List<api.User> o) { +checkUnnamed715(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2245,7 +2245,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed975(); + o.users = buildUnnamed715(); } buildCounterUsers--; return o; @@ -2258,7 +2258,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed975(o.users); + checkUnnamed715(o.users); } buildCounterUsers--; } @@ -2288,14 +2288,14 @@ buildCounterVerificationCode--; } -buildUnnamed976() { +buildUnnamed716() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed976(core.List<api.VerificationCode> o) { +checkUnnamed716(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -2307,7 +2307,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed976(); + o.items = buildUnnamed716(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -2318,59 +2318,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed976(o.items); + checkUnnamed716(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed977() { +buildUnnamed717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed977(core.List<core.String> o) { +checkUnnamed717(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed978() { +buildUnnamed718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed978(core.List<core.String> o) { +checkUnnamed718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed979() { +buildUnnamed719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed979(core.List<core.String> o) { +checkUnnamed719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed980() { +buildUnnamed720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed980(core.List<core.String> o) { +checkUnnamed720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5457,7 +5457,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed977(); + var arg_orgUnitPath = buildUnnamed717(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5511,7 +5511,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed978(); + var arg_orgUnitPath = buildUnnamed718(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5682,7 +5682,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed979(); + var arg_orgUnitPath = buildUnnamed719(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5742,7 +5742,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed980(); + var arg_orgUnitPath = buildUnnamed720(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj);
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index 868b649..82c8c61 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed834() { +buildUnnamed574() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed834(core.List<api.Activity> o) { +checkUnnamed574(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -70,7 +70,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed834(); + o.items = buildUnnamed574(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -82,7 +82,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed834(o.items); + checkUnnamed574(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -114,27 +114,27 @@ buildCounterActivityActor--; } -buildUnnamed835() { +buildUnnamed575() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed835(core.List<core.String> o) { +checkUnnamed575(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed836() { +buildUnnamed576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed836(core.List<core.String> o) { +checkUnnamed576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,8 +147,8 @@ if (buildCounterActivityEventsParameters < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiIntValue = buildUnnamed835(); - o.multiValue = buildUnnamed836(); + o.multiIntValue = buildUnnamed575(); + o.multiValue = buildUnnamed576(); o.name = "foo"; o.value = "foo"; } @@ -161,22 +161,22 @@ if (buildCounterActivityEventsParameters < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed835(o.multiIntValue); - checkUnnamed836(o.multiValue); + checkUnnamed575(o.multiIntValue); + checkUnnamed576(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed837() { +buildUnnamed577() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed837(core.List<api.ActivityEventsParameters> o) { +checkUnnamed577(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -188,7 +188,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed837(); + o.parameters = buildUnnamed577(); o.type = "foo"; } buildCounterActivityEvents--; @@ -199,20 +199,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed837(o.parameters); + checkUnnamed577(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed838() { +buildUnnamed578() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed838(core.List<api.ActivityEvents> o) { +checkUnnamed578(core.List<api.ActivityEvents> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEvents(o[0]); checkActivityEvents(o[1]); @@ -250,7 +250,7 @@ if (buildCounterActivity < 3) { o.actor = buildActivityActor(); o.etag = "foo"; - o.events = buildUnnamed838(); + o.events = buildUnnamed578(); o.id = buildActivityId(); o.ipAddress = "foo"; o.kind = "foo"; @@ -265,7 +265,7 @@ if (buildCounterActivity < 3) { checkActivityActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed838(o.events); + checkUnnamed578(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed839() { +buildUnnamed579() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed839(core.Map<core.String, core.String> o) { +checkUnnamed579(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -296,7 +296,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed839(); + o.params = buildUnnamed579(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -314,7 +314,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed839(o.params); + checkUnnamed579(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -349,30 +349,30 @@ buildCounterUsageReportEntity--; } -buildUnnamed840() { +buildUnnamed580() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed840(core.Map<core.String, core.Object> o) { +checkUnnamed580(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed841() { +buildUnnamed581() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed840()); - o.add(buildUnnamed840()); + o.add(buildUnnamed580()); + o.add(buildUnnamed580()); return o; } -checkUnnamed841(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed581(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed840(o[0]); - checkUnnamed840(o[1]); + checkUnnamed580(o[0]); + checkUnnamed580(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -383,7 +383,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed841(); + o.msgValue = buildUnnamed581(); o.name = "foo"; o.stringValue = "foo"; } @@ -397,21 +397,21 @@ unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed841(o.msgValue); + checkUnnamed581(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed842() { +buildUnnamed582() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed842(core.List<api.UsageReportParameters> o) { +checkUnnamed582(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -426,7 +426,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed842(); + o.parameters = buildUnnamed582(); } buildCounterUsageReport--; return o; @@ -439,19 +439,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed842(o.parameters); + checkUnnamed582(o.parameters); } buildCounterUsageReport--; } -buildUnnamed843() { +buildUnnamed583() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed843(core.List<api.UsageReport> o) { +checkUnnamed583(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -478,14 +478,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed844() { +buildUnnamed584() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed844(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed584(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -497,7 +497,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed844(); + o.data = buildUnnamed584(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -508,20 +508,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed844(o.data); + checkUnnamed584(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed845() { +buildUnnamed585() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed845(core.List<api.UsageReportsWarnings> o) { +checkUnnamed585(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -535,8 +535,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed843(); - o.warnings = buildUnnamed845(); + o.usageReports = buildUnnamed583(); + o.warnings = buildUnnamed585(); } buildCounterUsageReports--; return o; @@ -548,8 +548,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed843(o.usageReports); - checkUnnamed845(o.warnings); + checkUnnamed583(o.usageReports); + checkUnnamed585(o.warnings); } buildCounterUsageReports--; }
diff --git a/generated/googleapis/test/adsense/v1_4_test.dart b/generated/googleapis/test/adsense/v1_4_test.dart index 8ee6071..25d60c5 100644 --- a/generated/googleapis/test/adsense/v1_4_test.dart +++ b/generated/googleapis/test/adsense/v1_4_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1967() { +buildUnnamed1738() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1967(core.List<api.Account> o) { +checkUnnamed1738(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -74,7 +74,7 @@ o.kind = "foo"; o.name = "foo"; o.premium = true; - o.subAccounts = buildUnnamed1967(); + o.subAccounts = buildUnnamed1738(); o.timezone = "foo"; } buildCounterAccount--; @@ -89,20 +89,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.premium, unittest.isTrue); - checkUnnamed1967(o.subAccounts); + checkUnnamed1738(o.subAccounts); unittest.expect(o.timezone, unittest.equals('foo')); } buildCounterAccount--; } -buildUnnamed1968() { +buildUnnamed1739() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1968(core.List<api.Account> o) { +checkUnnamed1739(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -114,7 +114,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed1968(); + o.items = buildUnnamed1739(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -126,7 +126,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1968(o.items); + checkUnnamed1739(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -160,14 +160,14 @@ buildCounterAdClient--; } -buildUnnamed1969() { +buildUnnamed1740() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed1969(core.List<api.AdClient> o) { +checkUnnamed1740(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -179,7 +179,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed1969(); + o.items = buildUnnamed1740(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -191,7 +191,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1969(o.items); + checkUnnamed1740(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -425,14 +425,14 @@ buildCounterAdUnit--; } -buildUnnamed1970() { +buildUnnamed1741() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed1970(core.List<api.AdUnit> o) { +checkUnnamed1741(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -444,7 +444,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed1970(); + o.items = buildUnnamed1741(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -456,21 +456,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1970(o.items); + checkUnnamed1741(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed1971() { +buildUnnamed1742() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1971(core.List<core.String> o) { +checkUnnamed1742(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -499,66 +499,66 @@ buildCounterAdsenseReportsGenerateResponseHeaders--; } -buildUnnamed1972() { +buildUnnamed1743() { var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); o.add(buildAdsenseReportsGenerateResponseHeaders()); o.add(buildAdsenseReportsGenerateResponseHeaders()); return o; } -checkUnnamed1972(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { +checkUnnamed1743(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkAdsenseReportsGenerateResponseHeaders(o[0]); checkAdsenseReportsGenerateResponseHeaders(o[1]); } -buildUnnamed1973() { +buildUnnamed1744() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1973(core.List<core.String> o) { +checkUnnamed1744(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1974() { +buildUnnamed1745() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1973()); - o.add(buildUnnamed1973()); + o.add(buildUnnamed1744()); + o.add(buildUnnamed1744()); return o; } -checkUnnamed1974(core.List<core.List<core.String>> o) { +checkUnnamed1745(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1973(o[0]); - checkUnnamed1973(o[1]); + checkUnnamed1744(o[0]); + checkUnnamed1744(o[1]); } -buildUnnamed1975() { +buildUnnamed1746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1975(core.List<core.String> o) { +checkUnnamed1746(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1976() { +buildUnnamed1747() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1976(core.List<core.String> o) { +checkUnnamed1747(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -569,15 +569,15 @@ var o = new api.AdsenseReportsGenerateResponse(); buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - o.averages = buildUnnamed1971(); + o.averages = buildUnnamed1742(); o.endDate = "foo"; - o.headers = buildUnnamed1972(); + o.headers = buildUnnamed1743(); o.kind = "foo"; - o.rows = buildUnnamed1974(); + o.rows = buildUnnamed1745(); o.startDate = "foo"; o.totalMatchedRows = "foo"; - o.totals = buildUnnamed1975(); - o.warnings = buildUnnamed1976(); + o.totals = buildUnnamed1746(); + o.warnings = buildUnnamed1747(); } buildCounterAdsenseReportsGenerateResponse--; return o; @@ -586,15 +586,15 @@ checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - checkUnnamed1971(o.averages); + checkUnnamed1742(o.averages); unittest.expect(o.endDate, unittest.equals('foo')); - checkUnnamed1972(o.headers); + checkUnnamed1743(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1974(o.rows); + checkUnnamed1745(o.rows); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed1975(o.totals); - checkUnnamed1976(o.warnings); + checkUnnamed1746(o.totals); + checkUnnamed1747(o.warnings); } buildCounterAdsenseReportsGenerateResponse--; } @@ -628,14 +628,14 @@ buildCounterAlert--; } -buildUnnamed1977() { +buildUnnamed1748() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed1977(core.List<api.Alert> o) { +checkUnnamed1748(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -646,7 +646,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed1977(); + o.items = buildUnnamed1748(); o.kind = "foo"; } buildCounterAlerts--; @@ -656,7 +656,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed1977(o.items); + checkUnnamed1748(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -714,14 +714,14 @@ buildCounterCustomChannel--; } -buildUnnamed1978() { +buildUnnamed1749() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed1978(core.List<api.CustomChannel> o) { +checkUnnamed1749(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -733,7 +733,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1978(); + o.items = buildUnnamed1749(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -745,21 +745,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1978(o.items); + checkUnnamed1749(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed1979() { +buildUnnamed1750() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed1979(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1750(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -770,7 +770,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1979(); + o.items = buildUnnamed1750(); o.kind = "foo"; } buildCounterMetadata--; @@ -780,7 +780,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1979(o.items); + checkUnnamed1750(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -813,14 +813,14 @@ buildCounterPayment--; } -buildUnnamed1980() { +buildUnnamed1751() { var o = new core.List<api.Payment>(); o.add(buildPayment()); o.add(buildPayment()); return o; } -checkUnnamed1980(core.List<api.Payment> o) { +checkUnnamed1751(core.List<api.Payment> o) { unittest.expect(o, unittest.hasLength(2)); checkPayment(o[0]); checkPayment(o[1]); @@ -831,7 +831,7 @@ var o = new api.Payments(); buildCounterPayments++; if (buildCounterPayments < 3) { - o.items = buildUnnamed1980(); + o.items = buildUnnamed1751(); o.kind = "foo"; } buildCounterPayments--; @@ -841,72 +841,72 @@ checkPayments(api.Payments o) { buildCounterPayments++; if (buildCounterPayments < 3) { - checkUnnamed1980(o.items); + checkUnnamed1751(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPayments--; } -buildUnnamed1981() { +buildUnnamed1752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1981(core.List<core.String> o) { +checkUnnamed1752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1982() { +buildUnnamed1753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1982(core.List<core.String> o) { +checkUnnamed1753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1983() { +buildUnnamed1754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1983(core.List<core.String> o) { +checkUnnamed1754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1984() { +buildUnnamed1755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1984(core.List<core.String> o) { +checkUnnamed1755(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1985() { +buildUnnamed1756() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1985(core.List<core.String> o) { +checkUnnamed1756(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -917,13 +917,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed1981(); - o.compatibleMetrics = buildUnnamed1982(); + o.compatibleDimensions = buildUnnamed1752(); + o.compatibleMetrics = buildUnnamed1753(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed1983(); - o.requiredMetrics = buildUnnamed1984(); - o.supportedProducts = buildUnnamed1985(); + o.requiredDimensions = buildUnnamed1754(); + o.requiredMetrics = buildUnnamed1755(); + o.supportedProducts = buildUnnamed1756(); } buildCounterReportingMetadataEntry--; return o; @@ -932,13 +932,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed1981(o.compatibleDimensions); - checkUnnamed1982(o.compatibleMetrics); + checkUnnamed1752(o.compatibleDimensions); + checkUnnamed1753(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1983(o.requiredDimensions); - checkUnnamed1984(o.requiredMetrics); - checkUnnamed1985(o.supportedProducts); + checkUnnamed1754(o.requiredDimensions); + checkUnnamed1755(o.requiredMetrics); + checkUnnamed1756(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -968,14 +968,14 @@ buildCounterSavedAdStyle--; } -buildUnnamed1986() { +buildUnnamed1757() { var o = new core.List<api.SavedAdStyle>(); o.add(buildSavedAdStyle()); o.add(buildSavedAdStyle()); return o; } -checkUnnamed1986(core.List<api.SavedAdStyle> o) { +checkUnnamed1757(core.List<api.SavedAdStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedAdStyle(o[0]); checkSavedAdStyle(o[1]); @@ -987,7 +987,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { o.etag = "foo"; - o.items = buildUnnamed1986(); + o.items = buildUnnamed1757(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -999,7 +999,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1986(o.items); + checkUnnamed1757(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1029,14 +1029,14 @@ buildCounterSavedReport--; } -buildUnnamed1987() { +buildUnnamed1758() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed1987(core.List<api.SavedReport> o) { +checkUnnamed1758(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -1048,7 +1048,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed1987(); + o.items = buildUnnamed1758(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1060,7 +1060,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1987(o.items); + checkUnnamed1758(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1090,14 +1090,14 @@ buildCounterUrlChannel--; } -buildUnnamed1988() { +buildUnnamed1759() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed1988(core.List<api.UrlChannel> o) { +checkUnnamed1759(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -1109,7 +1109,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed1988(); + o.items = buildUnnamed1759(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1121,125 +1121,125 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1988(o.items); + checkUnnamed1759(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed1989() { +buildUnnamed1760() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1989(core.List<core.String> o) { +checkUnnamed1760(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1990() { +buildUnnamed1761() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1990(core.List<core.String> o) { +checkUnnamed1761(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1991() { +buildUnnamed1762() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1991(core.List<core.String> o) { +checkUnnamed1762(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1992() { +buildUnnamed1763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1992(core.List<core.String> o) { +checkUnnamed1763(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1993() { +buildUnnamed1764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1993(core.List<core.String> o) { +checkUnnamed1764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1994() { +buildUnnamed1765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1994(core.List<core.String> o) { +checkUnnamed1765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1995() { +buildUnnamed1766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1995(core.List<core.String> o) { +checkUnnamed1766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1996() { +buildUnnamed1767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1996(core.List<core.String> o) { +checkUnnamed1767(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1997() { +buildUnnamed1768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1997(core.List<core.String> o) { +checkUnnamed1768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2368,12 +2368,12 @@ var arg_startDate = "foo"; var arg_endDate = "foo"; var arg_currency = "foo"; - var arg_dimension = buildUnnamed1989(); - var arg_filter = buildUnnamed1990(); + var arg_dimension = buildUnnamed1760(); + var arg_filter = buildUnnamed1761(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed1991(); - var arg_sort = buildUnnamed1992(); + var arg_metric = buildUnnamed1762(); + var arg_sort = buildUnnamed1763(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -3495,14 +3495,14 @@ api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_accountId = buildUnnamed1993(); + var arg_accountId = buildUnnamed1764(); var arg_currency = "foo"; - var arg_dimension = buildUnnamed1994(); - var arg_filter = buildUnnamed1995(); + var arg_dimension = buildUnnamed1765(); + var arg_filter = buildUnnamed1766(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed1996(); - var arg_sort = buildUnnamed1997(); + var arg_metric = buildUnnamed1767(); + var arg_sort = buildUnnamed1768(); var arg_startIndex = 42; var arg_useTimezoneReporting = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/adsensehost/v4_1_test.dart b/generated/googleapis/test/adsensehost/v4_1_test.dart index 1d411d5..0686df1 100644 --- a/generated/googleapis/test/adsensehost/v4_1_test.dart +++ b/generated/googleapis/test/adsensehost/v4_1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed3117() { +buildUnnamed2905() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3117(core.List<api.Account> o) { +checkUnnamed2905(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -95,7 +95,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed3117(); + o.items = buildUnnamed2905(); o.kind = "foo"; } buildCounterAccounts--; @@ -106,7 +106,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3117(o.items); + checkUnnamed2905(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounts--; @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed3118() { +buildUnnamed2906() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed3118(core.List<api.AdClient> o) { +checkUnnamed2906(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -158,7 +158,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed3118(); + o.items = buildUnnamed2906(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3118(o.items); + checkUnnamed2906(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -375,14 +375,14 @@ buildCounterAdUnit--; } -buildUnnamed3119() { +buildUnnamed2907() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed3119(core.List<api.AdUnit> o) { +checkUnnamed2907(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -394,7 +394,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed3119(); + o.items = buildUnnamed2907(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,21 +406,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3119(o.items); + checkUnnamed2907(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed3120() { +buildUnnamed2908() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3120(core.List<core.String> o) { +checkUnnamed2908(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -434,7 +434,7 @@ o.accountId = "foo"; o.id = "foo"; o.kind = "foo"; - o.productCodes = buildUnnamed3120(); + o.productCodes = buildUnnamed2908(); o.redirectUrl = "foo"; o.status = "foo"; o.userLocale = "foo"; @@ -451,7 +451,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3120(o.productCodes); + checkUnnamed2908(o.productCodes); unittest.expect(o.redirectUrl, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userLocale, unittest.equals('foo')); @@ -486,14 +486,14 @@ buildCounterCustomChannel--; } -buildUnnamed3121() { +buildUnnamed2909() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed3121(core.List<api.CustomChannel> o) { +checkUnnamed2909(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -505,7 +505,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3121(); + o.items = buildUnnamed2909(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -517,21 +517,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3121(o.items); + checkUnnamed2909(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed3122() { +buildUnnamed2910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3122(core.List<core.String> o) { +checkUnnamed2910(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -560,66 +560,66 @@ buildCounterReportHeaders--; } -buildUnnamed3123() { +buildUnnamed2911() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed3123(core.List<api.ReportHeaders> o) { +checkUnnamed2911(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed3124() { +buildUnnamed2912() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3124(core.List<core.String> o) { +checkUnnamed2912(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3125() { +buildUnnamed2913() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed3124()); - o.add(buildUnnamed3124()); + o.add(buildUnnamed2912()); + o.add(buildUnnamed2912()); return o; } -checkUnnamed3125(core.List<core.List<core.String>> o) { +checkUnnamed2913(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3124(o[0]); - checkUnnamed3124(o[1]); + checkUnnamed2912(o[0]); + checkUnnamed2912(o[1]); } -buildUnnamed3126() { +buildUnnamed2914() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3126(core.List<core.String> o) { +checkUnnamed2914(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3127() { +buildUnnamed2915() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3127(core.List<core.String> o) { +checkUnnamed2915(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -630,13 +630,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed3122(); - o.headers = buildUnnamed3123(); + o.averages = buildUnnamed2910(); + o.headers = buildUnnamed2911(); o.kind = "foo"; - o.rows = buildUnnamed3125(); + o.rows = buildUnnamed2913(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed3126(); - o.warnings = buildUnnamed3127(); + o.totals = buildUnnamed2914(); + o.warnings = buildUnnamed2915(); } buildCounterReport--; return o; @@ -645,13 +645,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed3122(o.averages); - checkUnnamed3123(o.headers); + checkUnnamed2910(o.averages); + checkUnnamed2911(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3125(o.rows); + checkUnnamed2913(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed3126(o.totals); - checkUnnamed3127(o.warnings); + checkUnnamed2914(o.totals); + checkUnnamed2915(o.warnings); } buildCounterReport--; } @@ -679,14 +679,14 @@ buildCounterUrlChannel--; } -buildUnnamed3128() { +buildUnnamed2916() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed3128(core.List<api.UrlChannel> o) { +checkUnnamed2916(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -698,7 +698,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed3128(); + o.items = buildUnnamed2916(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,151 +710,151 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3128(o.items); + checkUnnamed2916(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed3129() { +buildUnnamed2917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3129(core.List<core.String> o) { +checkUnnamed2917(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3130() { +buildUnnamed2918() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3130(core.List<core.String> o) { +checkUnnamed2918(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3131() { +buildUnnamed2919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3131(core.List<core.String> o) { +checkUnnamed2919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3132() { +buildUnnamed2920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3132(core.List<core.String> o) { +checkUnnamed2920(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3133() { +buildUnnamed2921() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3133(core.List<core.String> o) { +checkUnnamed2921(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3134() { +buildUnnamed2922() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3134(core.List<core.String> o) { +checkUnnamed2922(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3135() { +buildUnnamed2923() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3135(core.List<core.String> o) { +checkUnnamed2923(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3136() { +buildUnnamed2924() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3136(core.List<core.String> o) { +checkUnnamed2924(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3137() { +buildUnnamed2925() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3137(core.List<core.String> o) { +checkUnnamed2925(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3138() { +buildUnnamed2926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3138(core.List<core.String> o) { +checkUnnamed2926(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3139() { +buildUnnamed2927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3139(core.List<core.String> o) { +checkUnnamed2927(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1096,7 +1096,7 @@ var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; - var arg_filterAdClientId = buildUnnamed3129(); + var arg_filterAdClientId = buildUnnamed2917(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1398,7 +1398,7 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_adUnitId = "foo"; - var arg_hostCustomChannelId = buildUnnamed3130(); + var arg_hostCustomChannelId = buildUnnamed2918(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1737,12 +1737,12 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed3131(); - var arg_filter = buildUnnamed3132(); + var arg_dimension = buildUnnamed2919(); + var arg_filter = buildUnnamed2920(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3133(); - var arg_sort = buildUnnamed3134(); + var arg_metric = buildUnnamed2921(); + var arg_sort = buildUnnamed2922(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1911,7 +1911,7 @@ var mock = new HttpServerMock(); api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).associationsessions; - var arg_productCode = buildUnnamed3135(); + var arg_productCode = buildUnnamed2923(); var arg_websiteUrl = "foo"; var arg_userLocale = "foo"; var arg_websiteLocale = "foo"; @@ -2365,12 +2365,12 @@ api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed3136(); - var arg_filter = buildUnnamed3137(); + var arg_dimension = buildUnnamed2924(); + var arg_filter = buildUnnamed2925(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3138(); - var arg_sort = buildUnnamed3139(); + var arg_metric = buildUnnamed2926(); + var arg_sort = buildUnnamed2927(); var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index 39d04e7..21552b4 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -72,14 +72,14 @@ buildCounterAccountChildLink--; } -buildUnnamed1114() { +buildUnnamed865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1114(core.List<core.String> o) { +checkUnnamed865(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -90,7 +90,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed1114(); + o.effective = buildUnnamed865(); } buildCounterAccountPermissions--; return o; @@ -99,7 +99,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed1114(o.effective); + checkUnnamed865(o.effective); } buildCounterAccountPermissions--; } @@ -164,14 +164,14 @@ buildCounterAccountRef--; } -buildUnnamed1115() { +buildUnnamed866() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed1115(core.List<api.AccountSummary> o) { +checkUnnamed866(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -182,7 +182,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed1115(); + o.items = buildUnnamed866(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -198,7 +198,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed1115(o.items); + checkUnnamed866(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -210,14 +210,14 @@ buildCounterAccountSummaries--; } -buildUnnamed1116() { +buildUnnamed867() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed1116(core.List<api.WebPropertySummary> o) { +checkUnnamed867(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -232,7 +232,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed1116(); + o.webProperties = buildUnnamed867(); } buildCounterAccountSummary--; return o; @@ -245,7 +245,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed1116(o.webProperties); + checkUnnamed867(o.webProperties); } buildCounterAccountSummary--; } @@ -279,14 +279,14 @@ buildCounterAccountTicket--; } -buildUnnamed1117() { +buildUnnamed868() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1117(core.List<api.Account> o) { +checkUnnamed868(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -297,7 +297,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed1117(); + o.items = buildUnnamed868(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -313,7 +313,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed1117(o.items); + checkUnnamed868(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -348,14 +348,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed1118() { +buildUnnamed869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1118(core.List<core.String> o) { +checkUnnamed869(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -366,7 +366,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed1118(); + o.customDataImportUids = buildUnnamed869(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -375,19 +375,19 @@ checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed1118(o.customDataImportUids); + checkUnnamed869(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed1119() { +buildUnnamed870() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1119(core.Map<core.String, core.String> o) { +checkUnnamed870(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -398,7 +398,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed1119(); + o.attributes = buildUnnamed870(); o.id = "foo"; o.kind = "foo"; } @@ -409,34 +409,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed1119(o.attributes); + checkUnnamed870(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed1120() { +buildUnnamed871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1120(core.List<core.String> o) { +checkUnnamed871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1121() { +buildUnnamed872() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1121(core.List<api.Column> o) { +checkUnnamed872(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -447,9 +447,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed1120(); + o.attributeNames = buildUnnamed871(); o.etag = "foo"; - o.items = buildUnnamed1121(); + o.items = buildUnnamed872(); o.kind = "foo"; o.totalResults = 42; } @@ -460,9 +460,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed1120(o.attributeNames); + checkUnnamed871(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1121(o.items); + checkUnnamed872(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -511,14 +511,14 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed1122() { +buildUnnamed873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1122(core.List<core.String> o) { +checkUnnamed873(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -538,7 +538,7 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed1122(); + o.profilesLinked = buildUnnamed873(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -561,7 +561,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed1122(o.profilesLinked); + checkUnnamed873(o.profilesLinked); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -571,14 +571,14 @@ buildCounterCustomDataSource--; } -buildUnnamed1123() { +buildUnnamed874() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed1123(core.List<api.CustomDataSource> o) { +checkUnnamed874(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -589,7 +589,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed1123(); + o.items = buildUnnamed874(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -605,7 +605,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed1123(o.items); + checkUnnamed874(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -679,14 +679,14 @@ buildCounterCustomDimension--; } -buildUnnamed1124() { +buildUnnamed875() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1124(core.List<api.CustomDimension> o) { +checkUnnamed875(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -697,7 +697,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed1124(); + o.items = buildUnnamed875(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -713,7 +713,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed1124(o.items); + checkUnnamed875(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -793,14 +793,14 @@ buildCounterCustomMetric--; } -buildUnnamed1125() { +buildUnnamed876() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1125(core.List<api.CustomMetric> o) { +checkUnnamed876(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -811,7 +811,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed1125(); + o.items = buildUnnamed876(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -827,7 +827,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed1125(o.items); + checkUnnamed876(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -839,14 +839,14 @@ buildCounterCustomMetrics--; } -buildUnnamed1126() { +buildUnnamed877() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed1126(core.List<api.AdWordsAccount> o) { +checkUnnamed877(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -871,14 +871,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed1127() { +buildUnnamed878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1127(core.List<core.String> o) { +checkUnnamed878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -889,12 +889,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed1126(); + o.adWordsAccounts = buildUnnamed877(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed1127(); + o.profileIds = buildUnnamed878(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -904,25 +904,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed1126(o.adWordsAccounts); + checkUnnamed877(o.adWordsAccounts); checkEntityAdWordsLinkEntity(o.entity); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1127(o.profileIds); + checkUnnamed878(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed1128() { +buildUnnamed879() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed1128(core.List<api.EntityAdWordsLink> o) { +checkUnnamed879(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -933,7 +933,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed1128(); + o.items = buildUnnamed879(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -948,7 +948,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed1128(o.items); + checkUnnamed879(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -982,27 +982,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed1129() { +buildUnnamed880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1129(core.List<core.String> o) { +checkUnnamed880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1130() { +buildUnnamed881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1130(core.List<core.String> o) { +checkUnnamed881(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1013,8 +1013,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed1129(); - o.local = buildUnnamed1130(); + o.effective = buildUnnamed880(); + o.local = buildUnnamed881(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1023,8 +1023,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed1129(o.effective); - checkUnnamed1130(o.local); + checkUnnamed880(o.effective); + checkUnnamed881(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1058,14 +1058,14 @@ buildCounterEntityUserLink--; } -buildUnnamed1131() { +buildUnnamed882() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed1131(core.List<api.EntityUserLink> o) { +checkUnnamed882(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1076,7 +1076,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed1131(); + o.items = buildUnnamed882(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1091,7 +1091,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed1131(o.items); + checkUnnamed882(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1150,14 +1150,14 @@ buildCounterExperimentVariations--; } -buildUnnamed1132() { +buildUnnamed883() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed1132(core.List<api.ExperimentVariations> o) { +checkUnnamed883(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1192,7 +1192,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed1132(); + o.variations = buildUnnamed883(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1228,7 +1228,7 @@ unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1132(o.variations); + checkUnnamed883(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1236,14 +1236,14 @@ buildCounterExperiment--; } -buildUnnamed1133() { +buildUnnamed884() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed1133(core.List<api.Experiment> o) { +checkUnnamed884(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1254,7 +1254,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed1133(); + o.items = buildUnnamed884(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1270,7 +1270,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed1133(o.items); + checkUnnamed884(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1518,14 +1518,14 @@ buildCounterFilterRef--; } -buildUnnamed1134() { +buildUnnamed885() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1134(core.List<api.Filter> o) { +checkUnnamed885(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1536,7 +1536,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed1134(); + o.items = buildUnnamed885(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1552,7 +1552,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed1134(o.items); + checkUnnamed885(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1587,14 +1587,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed1135() { +buildUnnamed886() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed1135(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed886(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1623,14 +1623,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed1136() { +buildUnnamed887() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed1136(core.List<api.GaDataDataTableCols> o) { +checkUnnamed887(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1655,14 +1655,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed1137() { +buildUnnamed888() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed1137(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed888(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1673,7 +1673,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed1137(); + o.c = buildUnnamed888(); } buildCounterGaDataDataTableRows--; return o; @@ -1682,19 +1682,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed1137(o.c); + checkUnnamed888(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed1138() { +buildUnnamed889() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed1138(core.List<api.GaDataDataTableRows> o) { +checkUnnamed889(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1705,8 +1705,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed1136(); - o.rows = buildUnnamed1138(); + o.cols = buildUnnamed887(); + o.rows = buildUnnamed889(); } buildCounterGaDataDataTable--; return o; @@ -1715,8 +1715,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed1136(o.cols); - checkUnnamed1138(o.rows); + checkUnnamed887(o.cols); + checkUnnamed889(o.rows); } buildCounterGaDataDataTable--; } @@ -1750,27 +1750,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed1139() { +buildUnnamed890() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1139(core.List<core.String> o) { +checkUnnamed890(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1140() { +buildUnnamed891() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1140(core.List<core.String> o) { +checkUnnamed891(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1786,10 +1786,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1139(); + o.metrics = buildUnnamed890(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1140(); + o.sort = buildUnnamed891(); o.start_date = "foo"; o.start_index = 42; } @@ -1805,50 +1805,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1139(o.metrics); + checkUnnamed890(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1140(o.sort); + checkUnnamed891(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed1141() { +buildUnnamed892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1141(core.List<core.String> o) { +checkUnnamed892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1142() { +buildUnnamed893() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1141()); - o.add(buildUnnamed1141()); + o.add(buildUnnamed892()); + o.add(buildUnnamed892()); return o; } -checkUnnamed1142(core.List<core.List<core.String>> o) { +checkUnnamed893(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1141(o[0]); - checkUnnamed1141(o[1]); + checkUnnamed892(o[0]); + checkUnnamed892(o[1]); } -buildUnnamed1143() { +buildUnnamed894() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1143(core.Map<core.String, core.String> o) { +checkUnnamed894(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1859,7 +1859,7 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed1135(); + o.columnHeaders = buildUnnamed886(); o.containsSampledData = true; o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); @@ -1870,12 +1870,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed1142(); + o.rows = buildUnnamed893(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1143(); + o.totalsForAllResults = buildUnnamed894(); } buildCounterGaData--; return o; @@ -1884,7 +1884,7 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed1135(o.columnHeaders); + checkUnnamed886(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); @@ -1895,12 +1895,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed1142(o.rows); + checkUnnamed893(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1143(o.totalsForAllResults); + checkUnnamed894(o.totalsForAllResults); } buildCounterGaData--; } @@ -1932,14 +1932,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed1144() { +buildUnnamed895() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed1144(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed895(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -1950,7 +1950,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed1144(); + o.eventConditions = buildUnnamed895(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -1960,7 +1960,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed1144(o.eventConditions); + checkUnnamed895(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2010,14 +2010,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed1145() { +buildUnnamed896() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed1145(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed896(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2031,7 +2031,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed1145(); + o.steps = buildUnnamed896(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2044,7 +2044,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1145(o.steps); + checkUnnamed896(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2145,14 +2145,14 @@ buildCounterGoal--; } -buildUnnamed1146() { +buildUnnamed897() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed1146(core.List<api.Goal> o) { +checkUnnamed897(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2163,7 +2163,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed1146(); + o.items = buildUnnamed897(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2179,7 +2179,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed1146(o.items); + checkUnnamed897(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2278,14 +2278,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed1147() { +buildUnnamed898() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed1147(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed898(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2320,27 +2320,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed1148() { +buildUnnamed899() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1148(core.List<core.String> o) { +checkUnnamed899(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1149() { +buildUnnamed900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1149(core.List<core.String> o) { +checkUnnamed900(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2356,10 +2356,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1148(); + o.metrics = buildUnnamed899(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1149(); + o.sort = buildUnnamed900(); o.start_date = "foo"; o.start_index = 42; } @@ -2375,10 +2375,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1148(o.metrics); + checkUnnamed899(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1149(o.sort); + checkUnnamed900(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2406,14 +2406,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed1150() { +buildUnnamed901() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed1150(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed901(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2424,7 +2424,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed1150(); + o.conversionPathValue = buildUnnamed901(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2434,46 +2434,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed1150(o.conversionPathValue); + checkUnnamed901(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed1151() { +buildUnnamed902() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed1151(core.List<api.McfDataRows> o) { +checkUnnamed902(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed1152() { +buildUnnamed903() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed1151()); - o.add(buildUnnamed1151()); + o.add(buildUnnamed902()); + o.add(buildUnnamed902()); return o; } -checkUnnamed1152(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed903(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1151(o[0]); - checkUnnamed1151(o[1]); + checkUnnamed902(o[0]); + checkUnnamed902(o[1]); } -buildUnnamed1153() { +buildUnnamed904() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1153(core.Map<core.String, core.String> o) { +checkUnnamed904(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2484,7 +2484,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed1147(); + o.columnHeaders = buildUnnamed898(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2493,12 +2493,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed1152(); + o.rows = buildUnnamed903(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1153(); + o.totalsForAllResults = buildUnnamed904(); } buildCounterMcfData--; return o; @@ -2507,7 +2507,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed1147(o.columnHeaders); + checkUnnamed898(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2516,12 +2516,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed1152(o.rows); + checkUnnamed903(o.rows); unittest.expect(o.sampleSize, unittest.equals('foo')); unittest.expect(o.sampleSpace, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1153(o.totalsForAllResults); + checkUnnamed904(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2568,14 +2568,14 @@ buildCounterProfileParentLink--; } -buildUnnamed1154() { +buildUnnamed905() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1154(core.List<core.String> o) { +checkUnnamed905(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2586,7 +2586,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed1154(); + o.effective = buildUnnamed905(); } buildCounterProfilePermissions--; return o; @@ -2595,7 +2595,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed1154(o.effective); + checkUnnamed905(o.effective); } buildCounterProfilePermissions--; } @@ -2698,14 +2698,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed1155() { +buildUnnamed906() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed1155(core.List<api.ProfileFilterLink> o) { +checkUnnamed906(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2716,7 +2716,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed1155(); + o.items = buildUnnamed906(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2732,7 +2732,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed1155(o.items); + checkUnnamed906(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2802,14 +2802,14 @@ buildCounterProfileSummary--; } -buildUnnamed1156() { +buildUnnamed907() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed1156(core.List<api.Profile> o) { +checkUnnamed907(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2820,7 +2820,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed1156(); + o.items = buildUnnamed907(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2836,7 +2836,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed1156(o.items); + checkUnnamed907(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2871,14 +2871,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed1157() { +buildUnnamed908() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed1157(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed908(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -2913,27 +2913,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed1158() { +buildUnnamed909() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1158(core.List<core.String> o) { +checkUnnamed909(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1159() { +buildUnnamed910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1159(core.List<core.String> o) { +checkUnnamed910(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2948,8 +2948,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1158(); - o.sort = buildUnnamed1159(); + o.metrics = buildUnnamed909(); + o.sort = buildUnnamed910(); } buildCounterRealtimeDataQuery--; return o; @@ -2962,46 +2962,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1158(o.metrics); - checkUnnamed1159(o.sort); + checkUnnamed909(o.metrics); + checkUnnamed910(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed1160() { +buildUnnamed911() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1160(core.List<core.String> o) { +checkUnnamed911(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1161() { +buildUnnamed912() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1160()); - o.add(buildUnnamed1160()); + o.add(buildUnnamed911()); + o.add(buildUnnamed911()); return o; } -checkUnnamed1161(core.List<core.List<core.String>> o) { +checkUnnamed912(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1160(o[0]); - checkUnnamed1160(o[1]); + checkUnnamed911(o[0]); + checkUnnamed911(o[1]); } -buildUnnamed1162() { +buildUnnamed913() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1162(core.Map<core.String, core.String> o) { +checkUnnamed913(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -3012,15 +3012,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed1157(); + o.columnHeaders = buildUnnamed908(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed1161(); + o.rows = buildUnnamed912(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1162(); + o.totalsForAllResults = buildUnnamed913(); } buildCounterRealtimeData--; return o; @@ -3029,15 +3029,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed1157(o.columnHeaders); + checkUnnamed908(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed1161(o.rows); + checkUnnamed912(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1162(o.totalsForAllResults); + checkUnnamed913(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3061,27 +3061,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed1163() { +buildUnnamed914() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed1163(core.List<api.LinkedForeignAccount> o) { +checkUnnamed914(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed1164() { +buildUnnamed915() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1164(core.List<core.String> o) { +checkUnnamed915(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3142,8 +3142,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed1163(); - o.linkedViews = buildUnnamed1164(); + o.linkedAdAccounts = buildUnnamed914(); + o.linkedViews = buildUnnamed915(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3164,8 +3164,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1163(o.linkedAdAccounts); - checkUnnamed1164(o.linkedViews); + checkUnnamed914(o.linkedAdAccounts); + checkUnnamed915(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition(o.stateBasedAudienceDefinition); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3174,14 +3174,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed1165() { +buildUnnamed916() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed1165(core.List<api.RemarketingAudience> o) { +checkUnnamed916(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3192,7 +3192,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed1165(); + o.items = buildUnnamed916(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3208,7 +3208,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed1165(o.items); + checkUnnamed916(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3255,14 +3255,14 @@ buildCounterSegment--; } -buildUnnamed1166() { +buildUnnamed917() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1166(core.List<api.Segment> o) { +checkUnnamed917(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3273,7 +3273,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed1166(); + o.items = buildUnnamed917(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3289,7 +3289,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed1166(o.items); + checkUnnamed917(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3396,14 +3396,14 @@ buildCounterUnsampledReport--; } -buildUnnamed1167() { +buildUnnamed918() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed1167(core.List<api.UnsampledReport> o) { +checkUnnamed918(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3414,7 +3414,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed1167(); + o.items = buildUnnamed918(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3430,7 +3430,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed1167(o.items); + checkUnnamed918(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3442,14 +3442,14 @@ buildCounterUnsampledReports--; } -buildUnnamed1168() { +buildUnnamed919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1168(core.List<core.String> o) { +checkUnnamed919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3462,7 +3462,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed1168(); + o.errors = buildUnnamed919(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3476,7 +3476,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed1168(o.errors); + checkUnnamed919(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3484,14 +3484,14 @@ buildCounterUpload--; } -buildUnnamed1169() { +buildUnnamed920() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed1169(core.List<api.Upload> o) { +checkUnnamed920(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3502,7 +3502,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed1169(); + o.items = buildUnnamed920(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3517,7 +3517,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed1169(o.items); + checkUnnamed920(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3580,14 +3580,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed1170() { +buildUnnamed921() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed1170(core.List<api.ProfileSummary> o) { +checkUnnamed921(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3603,7 +3603,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed1170(); + o.profiles = buildUnnamed921(); o.starred = true; o.websiteUrl = "foo"; } @@ -3619,21 +3619,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1170(o.profiles); + checkUnnamed921(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed1171() { +buildUnnamed922() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed1171(core.List<api.Webproperty> o) { +checkUnnamed922(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3644,7 +3644,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed1171(); + o.items = buildUnnamed922(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3660,7 +3660,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed1171(o.items); + checkUnnamed922(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3714,14 +3714,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed1172() { +buildUnnamed923() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed923(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3732,7 +3732,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed1172(); + o.effective = buildUnnamed923(); } buildCounterWebpropertyPermissions--; return o; @@ -3741,7 +3741,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed1172(o.effective); + checkUnnamed923(o.effective); } buildCounterWebpropertyPermissions--; }
diff --git a/generated/googleapis/test/analyticsreporting/v4_test.dart b/generated/googleapis/test/analyticsreporting/v4_test.dart index c713b77..529a4707 100644 --- a/generated/googleapis/test/analyticsreporting/v4_test.dart +++ b/generated/googleapis/test/analyticsreporting/v4_test.dart
@@ -74,14 +74,14 @@ buildCounterCohort--; } -buildUnnamed133() { +buildUnnamed136() { var o = new core.List<api.Cohort>(); o.add(buildCohort()); o.add(buildCohort()); return o; } -checkUnnamed133(core.List<api.Cohort> o) { +checkUnnamed136(core.List<api.Cohort> o) { unittest.expect(o, unittest.hasLength(2)); checkCohort(o[0]); checkCohort(o[1]); @@ -92,7 +92,7 @@ var o = new api.CohortGroup(); buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - o.cohorts = buildUnnamed133(); + o.cohorts = buildUnnamed136(); o.lifetimeValue = true; } buildCounterCohortGroup--; @@ -102,20 +102,20 @@ checkCohortGroup(api.CohortGroup o) { buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - checkUnnamed133(o.cohorts); + checkUnnamed136(o.cohorts); unittest.expect(o.lifetimeValue, unittest.isTrue); } buildCounterCohortGroup--; } -buildUnnamed134() { +buildUnnamed137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed134(core.List<core.String> o) { +checkUnnamed137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -126,7 +126,7 @@ var o = new api.ColumnHeader(); buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - o.dimensions = buildUnnamed134(); + o.dimensions = buildUnnamed137(); o.metricHeader = buildMetricHeader(); } buildCounterColumnHeader--; @@ -136,7 +136,7 @@ checkColumnHeader(api.ColumnHeader o) { buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - checkUnnamed134(o.dimensions); + checkUnnamed137(o.dimensions); checkMetricHeader(o.metricHeader); } buildCounterColumnHeader--; @@ -163,27 +163,27 @@ buildCounterDateRange--; } -buildUnnamed135() { +buildUnnamed138() { var o = new core.List<api.PivotValueRegion>(); o.add(buildPivotValueRegion()); o.add(buildPivotValueRegion()); return o; } -checkUnnamed135(core.List<api.PivotValueRegion> o) { +checkUnnamed138(core.List<api.PivotValueRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValueRegion(o[0]); checkPivotValueRegion(o[1]); } -buildUnnamed136() { +buildUnnamed139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed136(core.List<core.String> o) { +checkUnnamed139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -194,8 +194,8 @@ var o = new api.DateRangeValues(); buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - o.pivotValueRegions = buildUnnamed135(); - o.values = buildUnnamed136(); + o.pivotValueRegions = buildUnnamed138(); + o.values = buildUnnamed139(); } buildCounterDateRangeValues--; return o; @@ -204,20 +204,20 @@ checkDateRangeValues(api.DateRangeValues o) { buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - checkUnnamed135(o.pivotValueRegions); - checkUnnamed136(o.values); + checkUnnamed138(o.pivotValueRegions); + checkUnnamed139(o.values); } buildCounterDateRangeValues--; } -buildUnnamed137() { +buildUnnamed140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed137(core.List<core.String> o) { +checkUnnamed140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -228,7 +228,7 @@ var o = new api.Dimension(); buildCounterDimension++; if (buildCounterDimension < 3) { - o.histogramBuckets = buildUnnamed137(); + o.histogramBuckets = buildUnnamed140(); o.name = "foo"; } buildCounterDimension--; @@ -238,20 +238,20 @@ checkDimension(api.Dimension o) { buildCounterDimension++; if (buildCounterDimension < 3) { - checkUnnamed137(o.histogramBuckets); + checkUnnamed140(o.histogramBuckets); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDimension--; } -buildUnnamed138() { +buildUnnamed141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed138(core.List<core.String> o) { +checkUnnamed141(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -264,7 +264,7 @@ if (buildCounterDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed138(); + o.expressions = buildUnnamed141(); o.not = true; o.operator = "foo"; } @@ -277,21 +277,21 @@ if (buildCounterDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed138(o.expressions); + checkUnnamed141(o.expressions); unittest.expect(o.not, unittest.isTrue); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilter--; } -buildUnnamed139() { +buildUnnamed142() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed139(core.List<api.DimensionFilter> o) { +checkUnnamed142(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -302,7 +302,7 @@ var o = new api.DimensionFilterClause(); buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - o.filters = buildUnnamed139(); + o.filters = buildUnnamed142(); o.operator = "foo"; } buildCounterDimensionFilterClause--; @@ -312,7 +312,7 @@ checkDimensionFilterClause(api.DimensionFilterClause o) { buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - checkUnnamed139(o.filters); + checkUnnamed142(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilterClause--; @@ -341,14 +341,14 @@ buildCounterDynamicSegment--; } -buildUnnamed140() { +buildUnnamed143() { var o = new core.List<api.ReportRequest>(); o.add(buildReportRequest()); o.add(buildReportRequest()); return o; } -checkUnnamed140(core.List<api.ReportRequest> o) { +checkUnnamed143(core.List<api.ReportRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequest(o[0]); checkReportRequest(o[1]); @@ -359,7 +359,7 @@ var o = new api.GetReportsRequest(); buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - o.reportRequests = buildUnnamed140(); + o.reportRequests = buildUnnamed143(); } buildCounterGetReportsRequest--; return o; @@ -368,19 +368,19 @@ checkGetReportsRequest(api.GetReportsRequest o) { buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - checkUnnamed140(o.reportRequests); + checkUnnamed143(o.reportRequests); } buildCounterGetReportsRequest--; } -buildUnnamed141() { +buildUnnamed144() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed141(core.List<api.Report> o) { +checkUnnamed144(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -391,7 +391,7 @@ var o = new api.GetReportsResponse(); buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - o.reports = buildUnnamed141(); + o.reports = buildUnnamed144(); } buildCounterGetReportsResponse--; return o; @@ -400,7 +400,7 @@ checkGetReportsResponse(api.GetReportsResponse o) { buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { - checkUnnamed141(o.reports); + checkUnnamed144(o.reports); } buildCounterGetReportsResponse--; } @@ -453,14 +453,14 @@ buildCounterMetricFilter--; } -buildUnnamed142() { +buildUnnamed145() { var o = new core.List<api.MetricFilter>(); o.add(buildMetricFilter()); o.add(buildMetricFilter()); return o; } -checkUnnamed142(core.List<api.MetricFilter> o) { +checkUnnamed145(core.List<api.MetricFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilter(o[0]); checkMetricFilter(o[1]); @@ -471,7 +471,7 @@ var o = new api.MetricFilterClause(); buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - o.filters = buildUnnamed142(); + o.filters = buildUnnamed145(); o.operator = "foo"; } buildCounterMetricFilterClause--; @@ -481,33 +481,33 @@ checkMetricFilterClause(api.MetricFilterClause o) { buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - checkUnnamed142(o.filters); + checkUnnamed145(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterMetricFilterClause--; } -buildUnnamed143() { +buildUnnamed146() { var o = new core.List<api.MetricHeaderEntry>(); o.add(buildMetricHeaderEntry()); o.add(buildMetricHeaderEntry()); return o; } -checkUnnamed143(core.List<api.MetricHeaderEntry> o) { +checkUnnamed146(core.List<api.MetricHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricHeaderEntry(o[0]); checkMetricHeaderEntry(o[1]); } -buildUnnamed144() { +buildUnnamed147() { var o = new core.List<api.PivotHeader>(); o.add(buildPivotHeader()); o.add(buildPivotHeader()); return o; } -checkUnnamed144(core.List<api.PivotHeader> o) { +checkUnnamed147(core.List<api.PivotHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeader(o[0]); checkPivotHeader(o[1]); @@ -518,8 +518,8 @@ var o = new api.MetricHeader(); buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - o.metricHeaderEntries = buildUnnamed143(); - o.pivotHeaders = buildUnnamed144(); + o.metricHeaderEntries = buildUnnamed146(); + o.pivotHeaders = buildUnnamed147(); } buildCounterMetricHeader--; return o; @@ -528,8 +528,8 @@ checkMetricHeader(api.MetricHeader o) { buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - checkUnnamed143(o.metricHeaderEntries); - checkUnnamed144(o.pivotHeaders); + checkUnnamed146(o.metricHeaderEntries); + checkUnnamed147(o.pivotHeaders); } buildCounterMetricHeader--; } @@ -555,14 +555,14 @@ buildCounterMetricHeaderEntry--; } -buildUnnamed145() { +buildUnnamed148() { var o = new core.List<api.SegmentFilterClause>(); o.add(buildSegmentFilterClause()); o.add(buildSegmentFilterClause()); return o; } -checkUnnamed145(core.List<api.SegmentFilterClause> o) { +checkUnnamed148(core.List<api.SegmentFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilterClause(o[0]); checkSegmentFilterClause(o[1]); @@ -573,7 +573,7 @@ var o = new api.OrFiltersForSegment(); buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - o.segmentFilterClauses = buildUnnamed145(); + o.segmentFilterClauses = buildUnnamed148(); } buildCounterOrFiltersForSegment--; return o; @@ -582,7 +582,7 @@ checkOrFiltersForSegment(api.OrFiltersForSegment o) { buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - checkUnnamed145(o.segmentFilterClauses); + checkUnnamed148(o.segmentFilterClauses); } buildCounterOrFiltersForSegment--; } @@ -610,40 +610,40 @@ buildCounterOrderBy--; } -buildUnnamed146() { +buildUnnamed149() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed146(core.List<api.DimensionFilterClause> o) { +checkUnnamed149(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed147() { +buildUnnamed150() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed147(core.List<api.Dimension> o) { +checkUnnamed150(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed148() { +buildUnnamed151() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed148(core.List<api.Metric> o) { +checkUnnamed151(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -654,10 +654,10 @@ var o = new api.Pivot(); buildCounterPivot++; if (buildCounterPivot < 3) { - o.dimensionFilterClauses = buildUnnamed146(); - o.dimensions = buildUnnamed147(); + o.dimensionFilterClauses = buildUnnamed149(); + o.dimensions = buildUnnamed150(); o.maxGroupCount = 42; - o.metrics = buildUnnamed148(); + o.metrics = buildUnnamed151(); o.startGroup = 42; } buildCounterPivot--; @@ -667,23 +667,23 @@ checkPivot(api.Pivot o) { buildCounterPivot++; if (buildCounterPivot < 3) { - checkUnnamed146(o.dimensionFilterClauses); - checkUnnamed147(o.dimensions); + checkUnnamed149(o.dimensionFilterClauses); + checkUnnamed150(o.dimensions); unittest.expect(o.maxGroupCount, unittest.equals(42)); - checkUnnamed148(o.metrics); + checkUnnamed151(o.metrics); unittest.expect(o.startGroup, unittest.equals(42)); } buildCounterPivot--; } -buildUnnamed149() { +buildUnnamed152() { var o = new core.List<api.PivotHeaderEntry>(); o.add(buildPivotHeaderEntry()); o.add(buildPivotHeaderEntry()); return o; } -checkUnnamed149(core.List<api.PivotHeaderEntry> o) { +checkUnnamed152(core.List<api.PivotHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeaderEntry(o[0]); checkPivotHeaderEntry(o[1]); @@ -694,7 +694,7 @@ var o = new api.PivotHeader(); buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - o.pivotHeaderEntries = buildUnnamed149(); + o.pivotHeaderEntries = buildUnnamed152(); o.totalPivotGroupsCount = 42; } buildCounterPivotHeader--; @@ -704,33 +704,33 @@ checkPivotHeader(api.PivotHeader o) { buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - checkUnnamed149(o.pivotHeaderEntries); + checkUnnamed152(o.pivotHeaderEntries); unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); } buildCounterPivotHeader--; } -buildUnnamed150() { +buildUnnamed153() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed150(core.List<core.String> o) { +checkUnnamed153(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed151() { +buildUnnamed154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed151(core.List<core.String> o) { +checkUnnamed154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -741,8 +741,8 @@ var o = new api.PivotHeaderEntry(); buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - o.dimensionNames = buildUnnamed150(); - o.dimensionValues = buildUnnamed151(); + o.dimensionNames = buildUnnamed153(); + o.dimensionValues = buildUnnamed154(); o.metric = buildMetricHeaderEntry(); } buildCounterPivotHeaderEntry--; @@ -752,21 +752,21 @@ checkPivotHeaderEntry(api.PivotHeaderEntry o) { buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - checkUnnamed150(o.dimensionNames); - checkUnnamed151(o.dimensionValues); + checkUnnamed153(o.dimensionNames); + checkUnnamed154(o.dimensionValues); checkMetricHeaderEntry(o.metric); } buildCounterPivotHeaderEntry--; } -buildUnnamed152() { +buildUnnamed155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed152(core.List<core.String> o) { +checkUnnamed155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -777,7 +777,7 @@ var o = new api.PivotValueRegion(); buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - o.values = buildUnnamed152(); + o.values = buildUnnamed155(); } buildCounterPivotValueRegion--; return o; @@ -786,7 +786,7 @@ checkPivotValueRegion(api.PivotValueRegion o) { buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - checkUnnamed152(o.values); + checkUnnamed155(o.values); } buildCounterPivotValueRegion--; } @@ -814,79 +814,79 @@ buildCounterReport--; } -buildUnnamed153() { +buildUnnamed156() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed153(core.List<api.DateRangeValues> o) { +checkUnnamed156(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed154() { +buildUnnamed157() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed154(core.List<api.DateRangeValues> o) { +checkUnnamed157(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed155() { +buildUnnamed158() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed155(core.List<api.ReportRow> o) { +checkUnnamed158(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); } -buildUnnamed156() { +buildUnnamed159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed156(core.List<core.String> o) { +checkUnnamed159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed157() { +buildUnnamed160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed157(core.List<core.String> o) { +checkUnnamed160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed158() { +buildUnnamed161() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed158(core.List<api.DateRangeValues> o) { +checkUnnamed161(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -897,14 +897,15 @@ var o = new api.ReportData(); buildCounterReportData++; if (buildCounterReportData < 3) { + o.dataLastRefreshed = "foo"; o.isDataGolden = true; - o.maximums = buildUnnamed153(); - o.minimums = buildUnnamed154(); + o.maximums = buildUnnamed156(); + o.minimums = buildUnnamed157(); o.rowCount = 42; - o.rows = buildUnnamed155(); - o.samplesReadCounts = buildUnnamed156(); - o.samplingSpaceSizes = buildUnnamed157(); - o.totals = buildUnnamed158(); + o.rows = buildUnnamed158(); + o.samplesReadCounts = buildUnnamed159(); + o.samplingSpaceSizes = buildUnnamed160(); + o.totals = buildUnnamed161(); } buildCounterReportData--; return o; @@ -913,117 +914,118 @@ checkReportData(api.ReportData o) { buildCounterReportData++; if (buildCounterReportData < 3) { + unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); unittest.expect(o.isDataGolden, unittest.isTrue); - checkUnnamed153(o.maximums); - checkUnnamed154(o.minimums); + checkUnnamed156(o.maximums); + checkUnnamed157(o.minimums); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed155(o.rows); - checkUnnamed156(o.samplesReadCounts); - checkUnnamed157(o.samplingSpaceSizes); - checkUnnamed158(o.totals); + checkUnnamed158(o.rows); + checkUnnamed159(o.samplesReadCounts); + checkUnnamed160(o.samplingSpaceSizes); + checkUnnamed161(o.totals); } buildCounterReportData--; } -buildUnnamed159() { +buildUnnamed162() { var o = new core.List<api.DateRange>(); o.add(buildDateRange()); o.add(buildDateRange()); return o; } -checkUnnamed159(core.List<api.DateRange> o) { +checkUnnamed162(core.List<api.DateRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRange(o[0]); checkDateRange(o[1]); } -buildUnnamed160() { +buildUnnamed163() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed160(core.List<api.DimensionFilterClause> o) { +checkUnnamed163(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed161() { +buildUnnamed164() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed161(core.List<api.Dimension> o) { +checkUnnamed164(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed162() { +buildUnnamed165() { var o = new core.List<api.MetricFilterClause>(); o.add(buildMetricFilterClause()); o.add(buildMetricFilterClause()); return o; } -checkUnnamed162(core.List<api.MetricFilterClause> o) { +checkUnnamed165(core.List<api.MetricFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilterClause(o[0]); checkMetricFilterClause(o[1]); } -buildUnnamed163() { +buildUnnamed166() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed163(core.List<api.Metric> o) { +checkUnnamed166(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed164() { +buildUnnamed167() { var o = new core.List<api.OrderBy>(); o.add(buildOrderBy()); o.add(buildOrderBy()); return o; } -checkUnnamed164(core.List<api.OrderBy> o) { +checkUnnamed167(core.List<api.OrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderBy(o[0]); checkOrderBy(o[1]); } -buildUnnamed165() { +buildUnnamed168() { var o = new core.List<api.Pivot>(); o.add(buildPivot()); o.add(buildPivot()); return o; } -checkUnnamed165(core.List<api.Pivot> o) { +checkUnnamed168(core.List<api.Pivot> o) { unittest.expect(o, unittest.hasLength(2)); checkPivot(o[0]); checkPivot(o[1]); } -buildUnnamed166() { +buildUnnamed169() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed166(core.List<api.Segment> o) { +checkUnnamed169(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1035,21 +1037,21 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { o.cohortGroup = buildCohortGroup(); - o.dateRanges = buildUnnamed159(); - o.dimensionFilterClauses = buildUnnamed160(); - o.dimensions = buildUnnamed161(); + o.dateRanges = buildUnnamed162(); + o.dimensionFilterClauses = buildUnnamed163(); + o.dimensions = buildUnnamed164(); o.filtersExpression = "foo"; o.hideTotals = true; o.hideValueRanges = true; o.includeEmptyRows = true; - o.metricFilterClauses = buildUnnamed162(); - o.metrics = buildUnnamed163(); - o.orderBys = buildUnnamed164(); + o.metricFilterClauses = buildUnnamed165(); + o.metrics = buildUnnamed166(); + o.orderBys = buildUnnamed167(); o.pageSize = 42; o.pageToken = "foo"; - o.pivots = buildUnnamed165(); + o.pivots = buildUnnamed168(); o.samplingLevel = "foo"; - o.segments = buildUnnamed166(); + o.segments = buildUnnamed169(); o.viewId = "foo"; } buildCounterReportRequest--; @@ -1060,47 +1062,47 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { checkCohortGroup(o.cohortGroup); - checkUnnamed159(o.dateRanges); - checkUnnamed160(o.dimensionFilterClauses); - checkUnnamed161(o.dimensions); + checkUnnamed162(o.dateRanges); + checkUnnamed163(o.dimensionFilterClauses); + checkUnnamed164(o.dimensions); unittest.expect(o.filtersExpression, unittest.equals('foo')); unittest.expect(o.hideTotals, unittest.isTrue); unittest.expect(o.hideValueRanges, unittest.isTrue); unittest.expect(o.includeEmptyRows, unittest.isTrue); - checkUnnamed162(o.metricFilterClauses); - checkUnnamed163(o.metrics); - checkUnnamed164(o.orderBys); + checkUnnamed165(o.metricFilterClauses); + checkUnnamed166(o.metrics); + checkUnnamed167(o.orderBys); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed165(o.pivots); + checkUnnamed168(o.pivots); unittest.expect(o.samplingLevel, unittest.equals('foo')); - checkUnnamed166(o.segments); + checkUnnamed169(o.segments); unittest.expect(o.viewId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed167() { +buildUnnamed170() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed167(core.List<core.String> o) { +checkUnnamed170(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed168() { +buildUnnamed171() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed168(core.List<api.DateRangeValues> o) { +checkUnnamed171(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1111,8 +1113,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensions = buildUnnamed167(); - o.metrics = buildUnnamed168(); + o.dimensions = buildUnnamed170(); + o.metrics = buildUnnamed171(); } buildCounterReportRow--; return o; @@ -1121,8 +1123,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed167(o.dimensions); - checkUnnamed168(o.metrics); + checkUnnamed170(o.dimensions); + checkUnnamed171(o.metrics); } buildCounterReportRow--; } @@ -1148,14 +1150,14 @@ buildCounterSegment--; } -buildUnnamed169() { +buildUnnamed172() { var o = new core.List<api.SegmentFilter>(); o.add(buildSegmentFilter()); o.add(buildSegmentFilter()); return o; } -checkUnnamed169(core.List<api.SegmentFilter> o) { +checkUnnamed172(core.List<api.SegmentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilter(o[0]); checkSegmentFilter(o[1]); @@ -1166,7 +1168,7 @@ var o = new api.SegmentDefinition(); buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - o.segmentFilters = buildUnnamed169(); + o.segmentFilters = buildUnnamed172(); } buildCounterSegmentDefinition--; return o; @@ -1175,19 +1177,19 @@ checkSegmentDefinition(api.SegmentDefinition o) { buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - checkUnnamed169(o.segmentFilters); + checkUnnamed172(o.segmentFilters); } buildCounterSegmentDefinition--; } -buildUnnamed170() { +buildUnnamed173() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed170(core.List<core.String> o) { +checkUnnamed173(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1200,7 +1202,7 @@ if (buildCounterSegmentDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed170(); + o.expressions = buildUnnamed173(); o.maxComparisonValue = "foo"; o.minComparisonValue = "foo"; o.operator = "foo"; @@ -1214,7 +1216,7 @@ if (buildCounterSegmentDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed170(o.expressions); + checkUnnamed173(o.expressions); unittest.expect(o.maxComparisonValue, unittest.equals('foo')); unittest.expect(o.minComparisonValue, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); @@ -1295,14 +1297,14 @@ buildCounterSegmentMetricFilter--; } -buildUnnamed171() { +buildUnnamed174() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed171(core.List<api.OrFiltersForSegment> o) { +checkUnnamed174(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1314,7 +1316,7 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { o.matchType = "foo"; - o.orFiltersForSegment = buildUnnamed171(); + o.orFiltersForSegment = buildUnnamed174(); } buildCounterSegmentSequenceStep--; return o; @@ -1324,19 +1326,19 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed171(o.orFiltersForSegment); + checkUnnamed174(o.orFiltersForSegment); } buildCounterSegmentSequenceStep--; } -buildUnnamed172() { +buildUnnamed175() { var o = new core.List<api.SegmentSequenceStep>(); o.add(buildSegmentSequenceStep()); o.add(buildSegmentSequenceStep()); return o; } -checkUnnamed172(core.List<api.SegmentSequenceStep> o) { +checkUnnamed175(core.List<api.SegmentSequenceStep> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentSequenceStep(o[0]); checkSegmentSequenceStep(o[1]); @@ -1348,7 +1350,7 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { o.firstStepShouldMatchFirstHit = true; - o.segmentSequenceSteps = buildUnnamed172(); + o.segmentSequenceSteps = buildUnnamed175(); } buildCounterSequenceSegment--; return o; @@ -1358,19 +1360,19 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); - checkUnnamed172(o.segmentSequenceSteps); + checkUnnamed175(o.segmentSequenceSteps); } buildCounterSequenceSegment--; } -buildUnnamed173() { +buildUnnamed176() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed173(core.List<api.OrFiltersForSegment> o) { +checkUnnamed176(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1381,7 +1383,7 @@ var o = new api.SimpleSegment(); buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - o.orFiltersForSegment = buildUnnamed173(); + o.orFiltersForSegment = buildUnnamed176(); } buildCounterSimpleSegment--; return o; @@ -1390,7 +1392,7 @@ checkSimpleSegment(api.SimpleSegment o) { buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - checkUnnamed173(o.orFiltersForSegment); + checkUnnamed176(o.orFiltersForSegment); } buildCounterSimpleSegment--; }
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index aa7f8ed..17b790b 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -91,14 +91,14 @@ buildCounterAdministratorWebToken--; } -buildUnnamed2134() { +buildUnnamed1905() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2134(core.List<core.String> o) { +checkUnnamed1905(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -111,7 +111,7 @@ if (buildCounterAdministratorWebTokenSpec < 3) { o.kind = "foo"; o.parent = "foo"; - o.permission = buildUnnamed2134(); + o.permission = buildUnnamed1905(); } buildCounterAdministratorWebTokenSpec--; return o; @@ -122,19 +122,19 @@ if (buildCounterAdministratorWebTokenSpec < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2134(o.permission); + checkUnnamed1905(o.permission); } buildCounterAdministratorWebTokenSpec--; } -buildUnnamed2135() { +buildUnnamed1906() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2135(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed1906(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -146,7 +146,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2135(); + o.restrictions = buildUnnamed1906(); } buildCounterAppRestrictionsSchema--; return o; @@ -156,7 +156,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2135(o.restrictions); + checkUnnamed1906(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -180,40 +180,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2136() { +buildUnnamed1907() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2136(core.List<core.String> o) { +checkUnnamed1907(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2137() { +buildUnnamed1908() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2137(core.List<core.String> o) { +checkUnnamed1908(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2138() { +buildUnnamed1909() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2138(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed1909(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -226,10 +226,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2136(); - o.entryValue = buildUnnamed2137(); + o.entry = buildUnnamed1907(); + o.entryValue = buildUnnamed1908(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2138(); + o.nestedRestriction = buildUnnamed1909(); o.restrictionType = "foo"; o.title = "foo"; } @@ -242,24 +242,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2136(o.entry); - checkUnnamed2137(o.entryValue); + checkUnnamed1907(o.entry); + checkUnnamed1908(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2138(o.nestedRestriction); + checkUnnamed1909(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2139() { +buildUnnamed1910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2139(core.List<core.String> o) { +checkUnnamed1910(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -273,7 +273,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2139(); + o.valueMultiselect = buildUnnamed1910(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -286,7 +286,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2139(o.valueMultiselect); + checkUnnamed1910(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -374,14 +374,14 @@ buildCounterAuthenticationToken--; } -buildUnnamed2140() { +buildUnnamed1911() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2140(core.List<core.String> o) { +checkUnnamed1911(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -395,7 +395,7 @@ o.collectionId = "foo"; o.kind = "foo"; o.name = "foo"; - o.productId = buildUnnamed2140(); + o.productId = buildUnnamed1911(); o.visibility = "foo"; } buildCounterCollection--; @@ -408,20 +408,20 @@ unittest.expect(o.collectionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2140(o.productId); + checkUnnamed1911(o.productId); unittest.expect(o.visibility, unittest.equals('foo')); } buildCounterCollection--; } -buildUnnamed2141() { +buildUnnamed1912() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2141(core.List<api.User> o) { +checkUnnamed1912(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -433,7 +433,7 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2141(); + o.user = buildUnnamed1912(); } buildCounterCollectionViewersListResponse--; return o; @@ -443,19 +443,19 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2141(o.user); + checkUnnamed1912(o.user); } buildCounterCollectionViewersListResponse--; } -buildUnnamed2142() { +buildUnnamed1913() { var o = new core.List<api.Collection>(); o.add(buildCollection()); o.add(buildCollection()); return o; } -checkUnnamed2142(core.List<api.Collection> o) { +checkUnnamed1913(core.List<api.Collection> o) { unittest.expect(o, unittest.hasLength(2)); checkCollection(o[0]); checkCollection(o[1]); @@ -466,7 +466,7 @@ var o = new api.CollectionsListResponse(); buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - o.collection = buildUnnamed2142(); + o.collection = buildUnnamed1913(); o.kind = "foo"; } buildCounterCollectionsListResponse--; @@ -476,7 +476,7 @@ checkCollectionsListResponse(api.CollectionsListResponse o) { buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - checkUnnamed2142(o.collection); + checkUnnamed1913(o.collection); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCollectionsListResponse--; @@ -526,14 +526,14 @@ buildCounterDeviceState--; } -buildUnnamed2143() { +buildUnnamed1914() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2143(core.List<api.Device> o) { +checkUnnamed1914(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -544,7 +544,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2143(); + o.device = buildUnnamed1914(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -554,20 +554,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2143(o.device); + checkUnnamed1914(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed2144() { +buildUnnamed1915() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2144(core.List<api.Administrator> o) { +checkUnnamed1915(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -578,7 +578,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2144(); + o.administrator = buildUnnamed1915(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -591,7 +591,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2144(o.administrator); + checkUnnamed1915(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -621,14 +621,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed2145() { +buildUnnamed1916() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2145(core.List<api.Enterprise> o) { +checkUnnamed1916(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -639,7 +639,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2145(); + o.enterprise = buildUnnamed1916(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -649,7 +649,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2145(o.enterprise); + checkUnnamed1916(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -699,14 +699,14 @@ buildCounterEntitlement--; } -buildUnnamed2146() { +buildUnnamed1917() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2146(core.List<api.Entitlement> o) { +checkUnnamed1917(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -717,7 +717,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2146(); + o.entitlement = buildUnnamed1917(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -727,7 +727,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2146(o.entitlement); + checkUnnamed1917(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -762,14 +762,14 @@ buildCounterGroupLicense--; } -buildUnnamed2147() { +buildUnnamed1918() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2147(core.List<api.User> o) { +checkUnnamed1918(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -781,7 +781,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2147(); + o.user = buildUnnamed1918(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -791,19 +791,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2147(o.user); + checkUnnamed1918(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2148() { +buildUnnamed1919() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2148(core.List<api.GroupLicense> o) { +checkUnnamed1919(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -814,7 +814,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2148(); + o.groupLicense = buildUnnamed1919(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -824,7 +824,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2148(o.groupLicense); + checkUnnamed1919(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -882,14 +882,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2149() { +buildUnnamed1920() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2149(core.List<api.Install> o) { +checkUnnamed1920(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -900,7 +900,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2149(); + o.install = buildUnnamed1920(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -910,7 +910,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2149(o.install); + checkUnnamed1920(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -937,14 +937,14 @@ buildCounterLocalizedText--; } -buildUnnamed2150() { +buildUnnamed1921() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2150(core.List<api.ManagedProperty> o) { +checkUnnamed1921(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -956,7 +956,7 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { o.kind = "foo"; - o.managedProperty = buildUnnamed2150(); + o.managedProperty = buildUnnamed1921(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -967,20 +967,20 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2150(o.managedProperty); + checkUnnamed1921(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2151() { +buildUnnamed1922() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2151(core.List<api.ManagedConfiguration> o) { +checkUnnamed1922(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -992,7 +992,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2151(); + o.managedConfigurationForDevice = buildUnnamed1922(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -1002,19 +1002,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2151(o.managedConfigurationForDevice); + checkUnnamed1922(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2152() { +buildUnnamed1923() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2152(core.List<api.ManagedConfiguration> o) { +checkUnnamed1923(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -1026,7 +1026,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2152(); + o.managedConfigurationForUser = buildUnnamed1923(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -1036,32 +1036,32 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2152(o.managedConfigurationForUser); + checkUnnamed1923(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed2153() { +buildUnnamed1924() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2153(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed1924(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2154() { +buildUnnamed1925() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2154(core.List<core.String> o) { +checkUnnamed1925(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1075,10 +1075,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2153(); + o.valueBundleArray = buildUnnamed1924(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2154(); + o.valueStringArray = buildUnnamed1925(); } buildCounterManagedProperty--; return o; @@ -1090,22 +1090,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2153(o.valueBundleArray); + checkUnnamed1924(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2154(o.valueStringArray); + checkUnnamed1925(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2155() { +buildUnnamed1926() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2155(core.List<api.ManagedProperty> o) { +checkUnnamed1926(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1116,7 +1116,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2155(); + o.managedProperty = buildUnnamed1926(); } buildCounterManagedPropertyBundle--; return o; @@ -1125,32 +1125,32 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2155(o.managedProperty); + checkUnnamed1926(o.managedProperty); } buildCounterManagedPropertyBundle--; } -buildUnnamed2156() { +buildUnnamed1927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2156(core.List<core.String> o) { +checkUnnamed1927(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2157() { +buildUnnamed1928() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2157(core.List<core.String> o) { +checkUnnamed1928(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1161,9 +1161,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2156(); + o.approvedPermissions = buildUnnamed1927(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2157(); + o.requestedPermissions = buildUnnamed1928(); } buildCounterNewPermissionsEvent--; return o; @@ -1172,9 +1172,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2156(o.approvedPermissions); + checkUnnamed1927(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2157(o.requestedPermissions); + checkUnnamed1928(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1212,14 +1212,14 @@ buildCounterNotification--; } -buildUnnamed2158() { +buildUnnamed1929() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2158(core.List<api.Notification> o) { +checkUnnamed1929(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1231,7 +1231,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed2158(); + o.notification = buildUnnamed1929(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1242,7 +1242,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2158(o.notification); + checkUnnamed1929(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1296,14 +1296,14 @@ buildCounterPermission--; } -buildUnnamed2159() { +buildUnnamed1930() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2159(core.List<api.AppVersion> o) { +checkUnnamed1930(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); @@ -1314,7 +1314,7 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed2159(); + o.appVersion = buildUnnamed1930(); o.authorName = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; @@ -1334,7 +1334,7 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2159(o.appVersion); + checkUnnamed1930(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); @@ -1413,14 +1413,14 @@ buildCounterProductPermission--; } -buildUnnamed2160() { +buildUnnamed1931() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2160(core.List<api.ProductPermission> o) { +checkUnnamed1931(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1432,7 +1432,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed2160(); + o.permission = buildUnnamed1931(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1443,20 +1443,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2160(o.permission); + checkUnnamed1931(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2161() { +buildUnnamed1932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2161(core.List<core.String> o) { +checkUnnamed1932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1468,7 +1468,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed2161(); + o.productId = buildUnnamed1932(); o.productSetBehavior = "foo"; } buildCounterProductSet--; @@ -1479,7 +1479,7 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2161(o.productId); + checkUnnamed1932(o.productId); unittest.expect(o.productSetBehavior, unittest.equals('foo')); } buildCounterProductSet--; @@ -1523,14 +1523,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2162() { +buildUnnamed1933() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2162(core.List<api.Product> o) { +checkUnnamed1933(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1543,7 +1543,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2162(); + o.product = buildUnnamed1933(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1555,7 +1555,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2162(o.product); + checkUnnamed1933(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1592,6 +1592,7 @@ o.data = "foo"; o.id = "foo"; o.kind = "foo"; + o.publicData = "foo"; o.type = "foo"; } buildCounterServiceAccountKey--; @@ -1604,19 +1605,20 @@ unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.publicData, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterServiceAccountKey--; } -buildUnnamed2163() { +buildUnnamed1934() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2163(core.List<api.ServiceAccountKey> o) { +checkUnnamed1934(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1627,7 +1629,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2163(); + o.serviceAccountKey = buildUnnamed1934(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1636,7 +1638,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2163(o.serviceAccountKey); + checkUnnamed1934(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1664,27 +1666,27 @@ buildCounterSignupInfo--; } -buildUnnamed2164() { +buildUnnamed1935() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2164(core.List<api.LocalizedText> o) { +checkUnnamed1935(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2165() { +buildUnnamed1936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2165(core.List<core.String> o) { +checkUnnamed1936(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1697,9 +1699,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed2164(); + o.name = buildUnnamed1935(); o.orderInPage = "foo"; - o.productId = buildUnnamed2165(); + o.productId = buildUnnamed1936(); } buildCounterStoreCluster--; return o; @@ -1710,9 +1712,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2164(o.name); + checkUnnamed1935(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2165(o.productId); + checkUnnamed1936(o.productId); } buildCounterStoreCluster--; } @@ -1740,14 +1742,14 @@ buildCounterStoreLayout--; } -buildUnnamed2166() { +buildUnnamed1937() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2166(core.List<api.StoreCluster> o) { +checkUnnamed1937(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -1758,7 +1760,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2166(); + o.cluster = buildUnnamed1937(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -1768,20 +1770,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2166(o.cluster); + checkUnnamed1937(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2167() { +buildUnnamed1938() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2167(core.List<api.StorePage> o) { +checkUnnamed1938(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -1793,7 +1795,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed2167(); + o.page = buildUnnamed1938(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -1803,32 +1805,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2167(o.page); + checkUnnamed1938(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2168() { +buildUnnamed1939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2168(core.List<core.String> o) { +checkUnnamed1939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2169() { +buildUnnamed1940() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2169(core.List<api.LocalizedText> o) { +checkUnnamed1940(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -1841,8 +1843,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed2168(); - o.name = buildUnnamed2169(); + o.link = buildUnnamed1939(); + o.name = buildUnnamed1940(); } buildCounterStorePage--; return o; @@ -1853,8 +1855,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2168(o.link); - checkUnnamed2169(o.name); + checkUnnamed1939(o.link); + checkUnnamed1940(o.name); } buildCounterStorePage--; } @@ -1934,14 +1936,14 @@ buildCounterUserToken--; } -buildUnnamed2170() { +buildUnnamed1941() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2170(core.List<api.User> o) { +checkUnnamed1941(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1953,7 +1955,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2170(); + o.user = buildUnnamed1941(); } buildCounterUsersListResponse--; return o; @@ -1963,7 +1965,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2170(o.user); + checkUnnamed1941(o.user); } buildCounterUsersListResponse--; }
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index a5bfbde..74d183f 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -112,14 +112,14 @@ buildCounterApkListing--; } -buildUnnamed3003() { +buildUnnamed2791() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed3003(core.List<api.ApkListing> o) { +checkUnnamed2791(core.List<api.ApkListing> o) { unittest.expect(o, unittest.hasLength(2)); checkApkListing(o[0]); checkApkListing(o[1]); @@ -131,7 +131,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed3003(); + o.listings = buildUnnamed2791(); } buildCounterApkListingsListResponse--; return o; @@ -141,7 +141,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3003(o.listings); + checkUnnamed2791(o.listings); } buildCounterApkListingsListResponse--; } @@ -184,14 +184,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed3004() { +buildUnnamed2792() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed3004(core.List<api.Apk> o) { +checkUnnamed2792(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -202,7 +202,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed3004(); + o.apks = buildUnnamed2792(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -212,7 +212,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed3004(o.apks); + checkUnnamed2792(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -369,14 +369,14 @@ buildCounterEntitlement--; } -buildUnnamed3005() { +buildUnnamed2793() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed3005(core.List<api.Entitlement> o) { +checkUnnamed2793(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -388,7 +388,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed3005(); + o.resources = buildUnnamed2793(); o.tokenPagination = buildTokenPagination(); } buildCounterEntitlementsListResponse--; @@ -399,7 +399,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed3005(o.resources); + checkUnnamed2793(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterEntitlementsListResponse--; @@ -445,53 +445,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed3006() { +buildUnnamed2794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3006(core.List<core.String> o) { +checkUnnamed2794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3007() { +buildUnnamed2795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3007(core.List<core.String> o) { +checkUnnamed2795(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3008() { +buildUnnamed2796() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3008(core.List<core.String> o) { +checkUnnamed2796(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3009() { +buildUnnamed2797() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed3009(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed2797(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -503,7 +503,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed3006(); + o.certificateBase64s = buildUnnamed2794(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -511,10 +511,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed3007(); + o.nativeCodes = buildUnnamed2795(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed3008(); - o.usesPermissions = buildUnnamed3009(); + o.usesFeatures = buildUnnamed2796(); + o.usesPermissions = buildUnnamed2797(); o.versionCode = 42; o.versionName = "foo"; } @@ -526,7 +526,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed3006(o.certificateBase64s); + checkUnnamed2794(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -534,10 +534,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed3007(o.nativeCodes); + checkUnnamed2795(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed3008(o.usesFeatures); - checkUnnamed3009(o.usesPermissions); + checkUnnamed2796(o.usesFeatures); + checkUnnamed2797(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -588,14 +588,14 @@ buildCounterImage--; } -buildUnnamed3010() { +buildUnnamed2798() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed3010(core.List<api.Image> o) { +checkUnnamed2798(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -606,7 +606,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed3010(); + o.deleted = buildUnnamed2798(); } buildCounterImagesDeleteAllResponse--; return o; @@ -615,19 +615,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed3010(o.deleted); + checkUnnamed2798(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed3011() { +buildUnnamed2799() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed3011(core.List<api.Image> o) { +checkUnnamed2799(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -638,7 +638,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed3011(); + o.images = buildUnnamed2799(); } buildCounterImagesListResponse--; return o; @@ -647,7 +647,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed3011(o.images); + checkUnnamed2799(o.images); } buildCounterImagesListResponse--; } @@ -671,27 +671,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed3012() { +buildUnnamed2800() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed3012(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed2800(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed3013() { +buildUnnamed2801() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed3013(core.Map<core.String, api.Price> o) { +checkUnnamed2801(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -704,9 +704,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed3012(); + o.listings = buildUnnamed2800(); o.packageName = "foo"; - o.prices = buildUnnamed3013(); + o.prices = buildUnnamed2801(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -723,9 +723,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed3012(o.listings); + checkUnnamed2800(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed3013(o.prices); + checkUnnamed2801(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -757,14 +757,14 @@ buildCounterInAppProductListing--; } -buildUnnamed3014() { +buildUnnamed2802() { var o = new core.List<api.InappproductsBatchRequestEntry>(); o.add(buildInappproductsBatchRequestEntry()); o.add(buildInappproductsBatchRequestEntry()); return o; } -checkUnnamed3014(core.List<api.InappproductsBatchRequestEntry> o) { +checkUnnamed2802(core.List<api.InappproductsBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchRequestEntry(o[0]); checkInappproductsBatchRequestEntry(o[1]); @@ -775,7 +775,7 @@ var o = new api.InappproductsBatchRequest(); buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - o.entrys = buildUnnamed3014(); + o.entrys = buildUnnamed2802(); } buildCounterInappproductsBatchRequest--; return o; @@ -784,7 +784,7 @@ checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - checkUnnamed3014(o.entrys); + checkUnnamed2802(o.entrys); } buildCounterInappproductsBatchRequest--; } @@ -814,14 +814,14 @@ buildCounterInappproductsBatchRequestEntry--; } -buildUnnamed3015() { +buildUnnamed2803() { var o = new core.List<api.InappproductsBatchResponseEntry>(); o.add(buildInappproductsBatchResponseEntry()); o.add(buildInappproductsBatchResponseEntry()); return o; } -checkUnnamed3015(core.List<api.InappproductsBatchResponseEntry> o) { +checkUnnamed2803(core.List<api.InappproductsBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchResponseEntry(o[0]); checkInappproductsBatchResponseEntry(o[1]); @@ -832,7 +832,7 @@ var o = new api.InappproductsBatchResponse(); buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - o.entrys = buildUnnamed3015(); + o.entrys = buildUnnamed2803(); o.kind = "foo"; } buildCounterInappproductsBatchResponse--; @@ -842,7 +842,7 @@ checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - checkUnnamed3015(o.entrys); + checkUnnamed2803(o.entrys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInappproductsBatchResponse--; @@ -909,14 +909,14 @@ buildCounterInappproductsInsertResponse--; } -buildUnnamed3016() { +buildUnnamed2804() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed3016(core.List<api.InAppProduct> o) { +checkUnnamed2804(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -927,7 +927,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed3016(); + o.inappproduct = buildUnnamed2804(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -939,7 +939,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed3016(o.inappproduct); + checkUnnamed2804(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -1012,14 +1012,14 @@ buildCounterListing--; } -buildUnnamed3017() { +buildUnnamed2805() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed3017(core.List<api.Listing> o) { +checkUnnamed2805(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -1031,7 +1031,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed3017(); + o.listings = buildUnnamed2805(); } buildCounterListingsListResponse--; return o; @@ -1041,7 +1041,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3017(o.listings); + checkUnnamed2805(o.listings); } buildCounterListingsListResponse--; } @@ -1159,14 +1159,14 @@ buildCounterProrate--; } -buildUnnamed3018() { +buildUnnamed2806() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed3018(core.List<api.Comment> o) { +checkUnnamed2806(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1178,7 +1178,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed3018(); + o.comments = buildUnnamed2806(); o.reviewId = "foo"; } buildCounterReview--; @@ -1189,7 +1189,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed3018(o.comments); + checkUnnamed2806(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1216,14 +1216,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed3019() { +buildUnnamed2807() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed3019(core.List<api.Review> o) { +checkUnnamed2807(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1235,7 +1235,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed3019(); + o.reviews = buildUnnamed2807(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1246,7 +1246,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed3019(o.reviews); + checkUnnamed2807(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1290,14 +1290,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed3020() { +buildUnnamed2808() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed3020(core.List<api.Prorate> o) { +checkUnnamed2808(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1309,7 +1309,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed3020(); + o.prorations = buildUnnamed2808(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1320,7 +1320,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed3020(o.prorations); + checkUnnamed2808(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; @@ -1422,27 +1422,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed3021() { +buildUnnamed2809() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3021(core.List<core.String> o) { +checkUnnamed2809(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3022() { +buildUnnamed2810() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3022(core.List<core.String> o) { +checkUnnamed2810(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1453,8 +1453,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed3021(); - o.googlePlusCommunities = buildUnnamed3022(); + o.googleGroups = buildUnnamed2809(); + o.googlePlusCommunities = buildUnnamed2810(); } buildCounterTesters--; return o; @@ -1463,8 +1463,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed3021(o.googleGroups); - checkUnnamed3022(o.googlePlusCommunities); + checkUnnamed2809(o.googleGroups); + checkUnnamed2810(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1511,14 +1511,14 @@ buildCounterTokenPagination--; } -buildUnnamed3023() { +buildUnnamed2811() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3023(core.List<core.int> o) { +checkUnnamed2811(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -1531,7 +1531,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed3023(); + o.versionCodes = buildUnnamed2811(); } buildCounterTrack--; return o; @@ -1542,19 +1542,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed3023(o.versionCodes); + checkUnnamed2811(o.versionCodes); } buildCounterTrack--; } -buildUnnamed3024() { +buildUnnamed2812() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed3024(core.List<api.Track> o) { +checkUnnamed2812(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1566,7 +1566,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed3024(); + o.tracks = buildUnnamed2812(); } buildCounterTracksListResponse--; return o; @@ -1576,7 +1576,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3024(o.tracks); + checkUnnamed2812(o.tracks); } buildCounterTracksListResponse--; }
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index 32cb262..c29efa3 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3160() { +buildUnnamed2948() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3160(core.List<api.UrlDispatchRule> o) { +checkUnnamed2948(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -120,7 +120,7 @@ o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3160(); + o.dispatchRules = buildUnnamed2948(); o.id = "foo"; o.locationId = "foo"; o.name = "foo"; @@ -137,7 +137,7 @@ unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3160(o.dispatchRules); + checkUnnamed2948(o.dispatchRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -266,14 +266,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3161() { +buildUnnamed2949() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3161(core.Map<core.String, api.FileInfo> o) { +checkUnnamed2949(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -285,7 +285,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3161(); + o.files = buildUnnamed2949(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -296,7 +296,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3161(o.files); + checkUnnamed2949(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -327,6 +327,27 @@ buildCounterDiskUtilization--; } +core.int buildCounterEndpointsApiService = 0; +buildEndpointsApiService() { + var o = new api.EndpointsApiService(); + buildCounterEndpointsApiService++; + if (buildCounterEndpointsApiService < 3) { + o.configId = "foo"; + o.name = "foo"; + } + buildCounterEndpointsApiService--; + return o; +} + +checkEndpointsApiService(api.EndpointsApiService o) { + buildCounterEndpointsApiService++; + if (buildCounterEndpointsApiService < 3) { + unittest.expect(o.configId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterEndpointsApiService--; +} + core.int buildCounterErrorHandler = 0; buildErrorHandler() { var o = new api.ErrorHandler(); @@ -474,14 +495,14 @@ buildCounterLibrary--; } -buildUnnamed3162() { +buildUnnamed2950() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3162(core.List<api.Instance> o) { +checkUnnamed2950(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -492,7 +513,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3162(); + o.instances = buildUnnamed2950(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -502,20 +523,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3162(o.instances); + checkUnnamed2950(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3163() { +buildUnnamed2951() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3163(core.List<api.Location> o) { +checkUnnamed2951(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -526,7 +547,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3163(); + o.locations = buildUnnamed2951(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -536,20 +557,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3163(o.locations); + checkUnnamed2951(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3164() { +buildUnnamed2952() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3164(core.List<api.Operation> o) { +checkUnnamed2952(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -561,7 +582,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3164(); + o.operations = buildUnnamed2952(); } buildCounterListOperationsResponse--; return o; @@ -571,19 +592,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3164(o.operations); + checkUnnamed2952(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3165() { +buildUnnamed2953() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3165(core.List<api.Service> o) { +checkUnnamed2953(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -595,7 +616,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3165(); + o.services = buildUnnamed2953(); } buildCounterListServicesResponse--; return o; @@ -605,19 +626,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3165(o.services); + checkUnnamed2953(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3166() { +buildUnnamed2954() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3166(core.List<api.Version> o) { +checkUnnamed2954(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -629,7 +650,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3166(); + o.versions = buildUnnamed2954(); } buildCounterListVersionsResponse--; return o; @@ -639,32 +660,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3166(o.versions); + checkUnnamed2954(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3167() { +buildUnnamed2955() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3167(core.Map<core.String, core.String> o) { +checkUnnamed2955(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3168() { +buildUnnamed2956() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3168(core.Map<core.String, core.Object> o) { +checkUnnamed2956(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -675,9 +696,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3167(); + o.labels = buildUnnamed2955(); o.locationId = "foo"; - o.metadata = buildUnnamed3168(); + o.metadata = buildUnnamed2956(); o.name = "foo"; } buildCounterLocation--; @@ -687,9 +708,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3167(o.labels); + checkUnnamed2955(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3168(o.metadata); + checkUnnamed2956(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -735,14 +756,14 @@ buildCounterManualScaling--; } -buildUnnamed3169() { +buildUnnamed2957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3169(core.List<core.String> o) { +checkUnnamed2957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -753,9 +774,10 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3169(); + o.forwardedPorts = buildUnnamed2957(); o.instanceTag = "foo"; o.name = "foo"; + o.subnetworkName = "foo"; } buildCounterNetwork--; return o; @@ -764,9 +786,10 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3169(o.forwardedPorts); + checkUnnamed2957(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.subnetworkName, unittest.equals('foo')); } buildCounterNetwork--; } @@ -796,27 +819,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3170() { +buildUnnamed2958() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3170(core.Map<core.String, core.Object> o) { +checkUnnamed2958(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3171() { +buildUnnamed2959() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3171(core.Map<core.String, core.Object> o) { +checkUnnamed2959(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -829,9 +852,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3170(); + o.metadata = buildUnnamed2958(); o.name = "foo"; - o.response = buildUnnamed3171(); + o.response = buildUnnamed2959(); } buildCounterOperation--; return o; @@ -842,9 +865,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3170(o.metadata); + checkUnnamed2958(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3171(o.response); + checkUnnamed2959(o.response); } buildCounterOperation--; } @@ -905,16 +928,31 @@ buildCounterOperationMetadataExperimental--; } +buildUnnamed2960() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2960(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterOperationMetadataV1 = 0; buildOperationMetadataV1() { var o = new api.OperationMetadataV1(); buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { o.endTime = "foo"; + o.ephemeralMessage = "foo"; o.insertTime = "foo"; o.method = "foo"; o.target = "foo"; o.user = "foo"; + o.warning = buildUnnamed2960(); } buildCounterOperationMetadataV1--; return o; @@ -924,10 +962,12 @@ buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.ephemeralMessage, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); + checkUnnamed2960(o.warning); } buildCounterOperationMetadataV1--; } @@ -997,6 +1037,19 @@ buildCounterRequestUtilization--; } +buildUnnamed2961() { + var o = new core.List<api.Volume>(); + o.add(buildVolume()); + o.add(buildVolume()); + return o; +} + +checkUnnamed2961(core.List<api.Volume> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVolume(o[0]); + checkVolume(o[1]); +} + core.int buildCounterResources = 0; buildResources() { var o = new api.Resources(); @@ -1005,6 +1058,7 @@ o.cpu = 42.0; o.diskGb = 42.0; o.memoryGb = 42.0; + o.volumes = buildUnnamed2961(); } buildCounterResources--; return o; @@ -1016,6 +1070,7 @@ unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); unittest.expect(o.memoryGb, unittest.equals(42.0)); + checkUnnamed2961(o.volumes); } buildCounterResources--; } @@ -1062,14 +1117,14 @@ buildCounterService--; } -buildUnnamed3172() { +buildUnnamed2962() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3172(core.Map<core.String, core.String> o) { +checkUnnamed2962(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1082,7 +1137,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3172(); + o.httpHeaders = buildUnnamed2962(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1097,7 +1152,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3172(o.httpHeaders); + checkUnnamed2962(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1106,30 +1161,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3173() { +buildUnnamed2963() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3173(core.Map<core.String, core.Object> o) { +checkUnnamed2963(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3174() { +buildUnnamed2964() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3173()); - o.add(buildUnnamed3173()); + o.add(buildUnnamed2963()); + o.add(buildUnnamed2963()); return o; } -checkUnnamed3174(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2964(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3173(o[0]); - checkUnnamed3173(o[1]); + checkUnnamed2963(o[0]); + checkUnnamed2963(o[1]); } core.int buildCounterStatus = 0; @@ -1138,7 +1193,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3174(); + o.details = buildUnnamed2964(); o.message = "foo"; } buildCounterStatus--; @@ -1149,20 +1204,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3174(o.details); + checkUnnamed2964(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3175() { +buildUnnamed2965() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3175(core.Map<core.String, core.double> o) { +checkUnnamed2965(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -1173,7 +1228,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3175(); + o.allocations = buildUnnamed2965(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1183,7 +1238,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3175(o.allocations); + checkUnnamed2965(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1245,79 +1300,79 @@ buildCounterUrlMap--; } -buildUnnamed3176() { +buildUnnamed2966() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3176(core.Map<core.String, core.String> o) { +checkUnnamed2966(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3177() { +buildUnnamed2967() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3177(core.Map<core.String, core.String> o) { +checkUnnamed2967(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3178() { +buildUnnamed2968() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3178(core.List<api.ErrorHandler> o) { +checkUnnamed2968(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3179() { +buildUnnamed2969() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3179(core.List<api.UrlMap> o) { +checkUnnamed2969(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3180() { +buildUnnamed2970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3180(core.List<core.String> o) { +checkUnnamed2970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3181() { +buildUnnamed2971() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3181(core.List<api.Library> o) { +checkUnnamed2971(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1331,21 +1386,22 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3176(); + o.betaSettings = buildUnnamed2966(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; o.deployment = buildDeployment(); o.diskUsageBytes = "foo"; + o.endpointsApiService = buildEndpointsApiService(); o.env = "foo"; - o.envVariables = buildUnnamed3177(); - o.errorHandlers = buildUnnamed3178(); - o.handlers = buildUnnamed3179(); + o.envVariables = buildUnnamed2967(); + o.errorHandlers = buildUnnamed2968(); + o.handlers = buildUnnamed2969(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3180(); + o.inboundServices = buildUnnamed2970(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3181(); + o.libraries = buildUnnamed2971(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1367,21 +1423,22 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3176(o.betaSettings); + checkUnnamed2966(o.betaSettings); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.diskUsageBytes, unittest.equals('foo')); + checkEndpointsApiService(o.endpointsApiService); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3177(o.envVariables); - checkUnnamed3178(o.errorHandlers); - checkUnnamed3179(o.handlers); + checkUnnamed2967(o.envVariables); + checkUnnamed2968(o.errorHandlers); + checkUnnamed2969(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3180(o.inboundServices); + checkUnnamed2970(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3181(o.libraries); + checkUnnamed2971(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -1396,6 +1453,29 @@ buildCounterVersion--; } +core.int buildCounterVolume = 0; +buildVolume() { + var o = new api.Volume(); + buildCounterVolume++; + if (buildCounterVolume < 3) { + o.name = "foo"; + o.sizeGb = 42.0; + o.volumeType = "foo"; + } + buildCounterVolume--; + return o; +} + +checkVolume(api.Volume o) { + buildCounterVolume++; + if (buildCounterVolume < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.sizeGb, unittest.equals(42.0)); + unittest.expect(o.volumeType, unittest.equals('foo')); + } + buildCounterVolume--; +} + core.int buildCounterZipInfo = 0; buildZipInfo() { var o = new api.ZipInfo(); @@ -1509,6 +1589,15 @@ }); + unittest.group("obj-schema-EndpointsApiService", () { + unittest.test("to-json--from-json", () { + var o = buildEndpointsApiService(); + var od = new api.EndpointsApiService.fromJson(o.toJson()); + checkEndpointsApiService(od); + }); + }); + + unittest.group("obj-schema-ErrorHandler", () { unittest.test("to-json--from-json", () { var o = buildErrorHandler(); @@ -1788,6 +1877,15 @@ }); + unittest.group("obj-schema-Volume", () { + unittest.test("to-json--from-json", () { + var o = buildVolume(); + var od = new api.Volume.fromJson(o.toJson()); + checkVolume(od); + }); + }); + + unittest.group("obj-schema-ZipInfo", () { unittest.test("to-json--from-json", () { var o = buildZipInfo(); @@ -3092,121 +3190,5 @@ }); - unittest.group("resource-ExperimentalAppsOperationsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock).experimental.apps.operations; - var arg_appsId = "foo"; - var arg_operationsId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("experimental/apps/")); - pathOffset += 18; - index = path.indexOf("/operations/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_appsId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/operations/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_operationsId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Operation response) { - checkOperation(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock).experimental.apps.operations; - var arg_appsId = "foo"; - var arg_filter = "foo"; - var arg_pageSize = 42; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("experimental/apps/")); - pathOffset += 18; - index = path.indexOf("/operations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_appsId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/operations")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildListOperationsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { - checkListOperationsResponse(response); - }))); - }); - - }); - - }
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart index 4a5b668..ffd50b0 100644 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ b/generated/googleapis/test/appsactivity/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1210() { +buildUnnamed961() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1210(core.List<api.Event> o) { +checkUnnamed961(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -70,7 +70,7 @@ buildCounterActivity++; if (buildCounterActivity < 3) { o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed1210(); + o.singleEvents = buildUnnamed961(); } buildCounterActivity--; return o; @@ -80,32 +80,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1210(o.singleEvents); + checkUnnamed961(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1211() { +buildUnnamed962() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1211(core.List<core.String> o) { +checkUnnamed962(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1212() { +buildUnnamed963() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1212(core.List<api.PermissionChange> o) { +checkUnnamed963(core.List<api.PermissionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionChange(o[0]); checkPermissionChange(o[1]); @@ -116,11 +116,11 @@ var o = new api.Event(); buildCounterEvent++; if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed1211(); + o.additionalEventTypes = buildUnnamed962(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1212(); + o.permissionChanges = buildUnnamed963(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -133,11 +133,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1211(o.additionalEventTypes); + checkUnnamed962(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1212(o.permissionChanges); + checkUnnamed963(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -146,14 +146,14 @@ buildCounterEvent--; } -buildUnnamed1213() { +buildUnnamed964() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1213(core.List<api.Activity> o) { +checkUnnamed964(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -164,7 +164,7 @@ var o = new api.ListActivitiesResponse(); buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed1213(); + o.activities = buildUnnamed964(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -174,33 +174,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1213(o.activities); + checkUnnamed964(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1214() { +buildUnnamed965() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1214(core.List<api.Parent> o) { +checkUnnamed965(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1215() { +buildUnnamed966() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1215(core.List<api.Parent> o) { +checkUnnamed966(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); @@ -211,8 +211,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed1214(); - o.removedParents = buildUnnamed1215(); + o.addedParents = buildUnnamed965(); + o.removedParents = buildUnnamed966(); } buildCounterMove--; return o; @@ -221,8 +221,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1214(o.addedParents); - checkUnnamed1215(o.removedParents); + checkUnnamed965(o.addedParents); + checkUnnamed966(o.removedParents); } buildCounterMove--; } @@ -279,27 +279,27 @@ buildCounterPermission--; } -buildUnnamed1216() { +buildUnnamed967() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1216(core.List<api.Permission> o) { +checkUnnamed967(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1217() { +buildUnnamed968() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1217(core.List<api.Permission> o) { +checkUnnamed968(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -310,8 +310,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed1216(); - o.removedPermissions = buildUnnamed1217(); + o.addedPermissions = buildUnnamed967(); + o.removedPermissions = buildUnnamed968(); } buildCounterPermissionChange--; return o; @@ -320,8 +320,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1216(o.addedPermissions); - checkUnnamed1217(o.removedPermissions); + checkUnnamed967(o.addedPermissions); + checkUnnamed968(o.removedPermissions); } buildCounterPermissionChange--; }
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index 4f1c5fc..ec15d5d 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterGetResponse--; } -buildUnnamed2992() { +buildUnnamed2780() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed2992(core.List<api.GetResponse> o) { +checkUnnamed2780(core.List<api.GetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGetResponse(o[0]); checkGetResponse(o[1]); @@ -94,7 +94,7 @@ var o = new api.ListResponse(); buildCounterListResponse++; if (buildCounterListResponse < 3) { - o.items = buildUnnamed2992(); + o.items = buildUnnamed2780(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -105,7 +105,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed2992(o.items); + checkUnnamed2780(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maximumKeyCount, unittest.equals(42)); }
diff --git a/generated/googleapis/test/bigquery/v2_test.dart b/generated/googleapis/test/bigquery/v2_test.dart index 1cc3d88..d814c2e 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterBigtableColumn--; } -buildUnnamed3185() { +buildUnnamed2975() { var o = new core.List<api.BigtableColumn>(); o.add(buildBigtableColumn()); o.add(buildBigtableColumn()); return o; } -checkUnnamed3185(core.List<api.BigtableColumn> o) { +checkUnnamed2975(core.List<api.BigtableColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumn(o[0]); checkBigtableColumn(o[1]); @@ -98,7 +98,7 @@ var o = new api.BigtableColumnFamily(); buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - o.columns = buildUnnamed3185(); + o.columns = buildUnnamed2975(); o.encoding = "foo"; o.familyId = "foo"; o.onlyReadLatest = true; @@ -111,7 +111,7 @@ checkBigtableColumnFamily(api.BigtableColumnFamily o) { buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - checkUnnamed3185(o.columns); + checkUnnamed2975(o.columns); unittest.expect(o.encoding, unittest.equals('foo')); unittest.expect(o.familyId, unittest.equals('foo')); unittest.expect(o.onlyReadLatest, unittest.isTrue); @@ -120,14 +120,14 @@ buildCounterBigtableColumnFamily--; } -buildUnnamed3186() { +buildUnnamed2976() { var o = new core.List<api.BigtableColumnFamily>(); o.add(buildBigtableColumnFamily()); o.add(buildBigtableColumnFamily()); return o; } -checkUnnamed3186(core.List<api.BigtableColumnFamily> o) { +checkUnnamed2976(core.List<api.BigtableColumnFamily> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumnFamily(o[0]); checkBigtableColumnFamily(o[1]); @@ -138,7 +138,7 @@ var o = new api.BigtableOptions(); buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - o.columnFamilies = buildUnnamed3186(); + o.columnFamilies = buildUnnamed2976(); o.ignoreUnspecifiedColumnFamilies = true; o.readRowkeyAsString = true; } @@ -149,7 +149,7 @@ checkBigtableOptions(api.BigtableOptions o) { buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - checkUnnamed3186(o.columnFamilies); + checkUnnamed2976(o.columnFamilies); unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); unittest.expect(o.readRowkeyAsString, unittest.isTrue); } @@ -214,27 +214,27 @@ buildCounterDatasetAccess--; } -buildUnnamed3187() { +buildUnnamed2977() { var o = new core.List<api.DatasetAccess>(); o.add(buildDatasetAccess()); o.add(buildDatasetAccess()); return o; } -checkUnnamed3187(core.List<api.DatasetAccess> o) { +checkUnnamed2977(core.List<api.DatasetAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetAccess(o[0]); checkDatasetAccess(o[1]); } -buildUnnamed3188() { +buildUnnamed2978() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3188(core.Map<core.String, core.String> o) { +checkUnnamed2978(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -245,7 +245,7 @@ var o = new api.Dataset(); buildCounterDataset++; if (buildCounterDataset < 3) { - o.access = buildUnnamed3187(); + o.access = buildUnnamed2977(); o.creationTime = "foo"; o.datasetReference = buildDatasetReference(); o.defaultTableExpirationMs = "foo"; @@ -254,7 +254,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3188(); + o.labels = buildUnnamed2978(); o.lastModifiedTime = "foo"; o.location = "foo"; o.selfLink = "foo"; @@ -266,7 +266,7 @@ checkDataset(api.Dataset o) { buildCounterDataset++; if (buildCounterDataset < 3) { - checkUnnamed3187(o.access); + checkUnnamed2977(o.access); unittest.expect(o.creationTime, unittest.equals('foo')); checkDatasetReference(o.datasetReference); unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); @@ -275,7 +275,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3188(o.labels); + checkUnnamed2978(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -283,14 +283,14 @@ buildCounterDataset--; } -buildUnnamed3189() { +buildUnnamed2979() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3189(core.Map<core.String, core.String> o) { +checkUnnamed2979(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -305,7 +305,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3189(); + o.labels = buildUnnamed2979(); } buildCounterDatasetListDatasets--; return o; @@ -318,19 +318,19 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3189(o.labels); + checkUnnamed2979(o.labels); } buildCounterDatasetListDatasets--; } -buildUnnamed3190() { +buildUnnamed2980() { var o = new core.List<api.DatasetListDatasets>(); o.add(buildDatasetListDatasets()); o.add(buildDatasetListDatasets()); return o; } -checkUnnamed3190(core.List<api.DatasetListDatasets> o) { +checkUnnamed2980(core.List<api.DatasetListDatasets> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetListDatasets(o[0]); checkDatasetListDatasets(o[1]); @@ -341,7 +341,7 @@ var o = new api.DatasetList(); buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - o.datasets = buildUnnamed3190(); + o.datasets = buildUnnamed2980(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -353,7 +353,7 @@ checkDatasetList(api.DatasetList o) { buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - checkUnnamed3190(o.datasets); + checkUnnamed2980(o.datasets); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -407,14 +407,14 @@ buildCounterErrorProto--; } -buildUnnamed3191() { +buildUnnamed2981() { var o = new core.List<api.ExplainQueryStep>(); o.add(buildExplainQueryStep()); o.add(buildExplainQueryStep()); return o; } -checkUnnamed3191(core.List<api.ExplainQueryStep> o) { +checkUnnamed2981(core.List<api.ExplainQueryStep> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStep(o[0]); checkExplainQueryStep(o[1]); @@ -433,7 +433,7 @@ o.readRatioMax = 42.0; o.recordsRead = "foo"; o.recordsWritten = "foo"; - o.steps = buildUnnamed3191(); + o.steps = buildUnnamed2981(); o.waitRatioAvg = 42.0; o.waitRatioMax = 42.0; o.writeRatioAvg = 42.0; @@ -454,7 +454,7 @@ unittest.expect(o.readRatioMax, unittest.equals(42.0)); unittest.expect(o.recordsRead, unittest.equals('foo')); unittest.expect(o.recordsWritten, unittest.equals('foo')); - checkUnnamed3191(o.steps); + checkUnnamed2981(o.steps); unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); unittest.expect(o.waitRatioMax, unittest.equals(42.0)); unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); @@ -463,14 +463,14 @@ buildCounterExplainQueryStage--; } -buildUnnamed3192() { +buildUnnamed2982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3192(core.List<core.String> o) { +checkUnnamed2982(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -482,7 +482,7 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { o.kind = "foo"; - o.substeps = buildUnnamed3192(); + o.substeps = buildUnnamed2982(); } buildCounterExplainQueryStep--; return o; @@ -492,19 +492,19 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3192(o.substeps); + checkUnnamed2982(o.substeps); } buildCounterExplainQueryStep--; } -buildUnnamed3193() { +buildUnnamed2983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3193(core.List<core.String> o) { +checkUnnamed2983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -524,7 +524,7 @@ o.maxBadRecords = 42; o.schema = buildTableSchema(); o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3193(); + o.sourceUris = buildUnnamed2983(); } buildCounterExternalDataConfiguration--; return o; @@ -542,32 +542,32 @@ unittest.expect(o.maxBadRecords, unittest.equals(42)); checkTableSchema(o.schema); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3193(o.sourceUris); + checkUnnamed2983(o.sourceUris); } buildCounterExternalDataConfiguration--; } -buildUnnamed3194() { +buildUnnamed2984() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3194(core.List<api.ErrorProto> o) { +checkUnnamed2984(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3195() { +buildUnnamed2985() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3195(core.List<api.TableRow> o) { +checkUnnamed2985(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -579,14 +579,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3194(); + o.errors = buildUnnamed2984(); o.etag = "foo"; o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3195(); + o.rows = buildUnnamed2985(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -599,14 +599,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3194(o.errors); + checkUnnamed2984(o.errors); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.jobComplete, unittest.isTrue); checkJobReference(o.jobReference); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3195(o.rows); + checkUnnamed2985(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -689,14 +689,14 @@ buildCounterJobCancelResponse--; } -buildUnnamed3196() { +buildUnnamed2986() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3196(core.Map<core.String, core.String> o) { +checkUnnamed2986(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -710,7 +710,7 @@ o.copy = buildJobConfigurationTableCopy(); o.dryRun = true; o.extract = buildJobConfigurationExtract(); - o.labels = buildUnnamed3196(); + o.labels = buildUnnamed2986(); o.load = buildJobConfigurationLoad(); o.query = buildJobConfigurationQuery(); } @@ -724,21 +724,21 @@ checkJobConfigurationTableCopy(o.copy); unittest.expect(o.dryRun, unittest.isTrue); checkJobConfigurationExtract(o.extract); - checkUnnamed3196(o.labels); + checkUnnamed2986(o.labels); checkJobConfigurationLoad(o.load); checkJobConfigurationQuery(o.query); } buildCounterJobConfiguration--; } -buildUnnamed3197() { +buildUnnamed2987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3197(core.List<core.String> o) { +checkUnnamed2987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -752,7 +752,7 @@ o.compression = "foo"; o.destinationFormat = "foo"; o.destinationUri = "foo"; - o.destinationUris = buildUnnamed3197(); + o.destinationUris = buildUnnamed2987(); o.fieldDelimiter = "foo"; o.printHeader = true; o.sourceTable = buildTableReference(); @@ -767,7 +767,7 @@ unittest.expect(o.compression, unittest.equals('foo')); unittest.expect(o.destinationFormat, unittest.equals('foo')); unittest.expect(o.destinationUri, unittest.equals('foo')); - checkUnnamed3197(o.destinationUris); + checkUnnamed2987(o.destinationUris); unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.printHeader, unittest.isTrue); checkTableReference(o.sourceTable); @@ -775,40 +775,40 @@ buildCounterJobConfigurationExtract--; } -buildUnnamed3198() { +buildUnnamed2988() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3198(core.List<core.String> o) { +checkUnnamed2988(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3199() { +buildUnnamed2989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3199(core.List<core.String> o) { +checkUnnamed2989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3200() { +buildUnnamed2990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3200(core.List<core.String> o) { +checkUnnamed2990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -828,15 +828,15 @@ o.fieldDelimiter = "foo"; o.ignoreUnknownValues = true; o.maxBadRecords = 42; - o.projectionFields = buildUnnamed3198(); + o.projectionFields = buildUnnamed2988(); o.quote = "foo"; o.schema = buildTableSchema(); o.schemaInline = "foo"; o.schemaInlineFormat = "foo"; - o.schemaUpdateOptions = buildUnnamed3199(); + o.schemaUpdateOptions = buildUnnamed2989(); o.skipLeadingRows = 42; o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3200(); + o.sourceUris = buildUnnamed2990(); o.writeDisposition = "foo"; } buildCounterJobConfigurationLoad--; @@ -855,67 +855,67 @@ unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.maxBadRecords, unittest.equals(42)); - checkUnnamed3198(o.projectionFields); + checkUnnamed2988(o.projectionFields); unittest.expect(o.quote, unittest.equals('foo')); checkTableSchema(o.schema); unittest.expect(o.schemaInline, unittest.equals('foo')); unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); - checkUnnamed3199(o.schemaUpdateOptions); + checkUnnamed2989(o.schemaUpdateOptions); unittest.expect(o.skipLeadingRows, unittest.equals(42)); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3200(o.sourceUris); + checkUnnamed2990(o.sourceUris); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationLoad--; } -buildUnnamed3201() { +buildUnnamed2991() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3201(core.List<api.QueryParameter> o) { +checkUnnamed2991(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); } -buildUnnamed3202() { +buildUnnamed2992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3202(core.List<core.String> o) { +checkUnnamed2992(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3203() { +buildUnnamed2993() { var o = new core.Map<core.String, api.ExternalDataConfiguration>(); o["x"] = buildExternalDataConfiguration(); o["y"] = buildExternalDataConfiguration(); return o; } -checkUnnamed3203(core.Map<core.String, api.ExternalDataConfiguration> o) { +checkUnnamed2993(core.Map<core.String, api.ExternalDataConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalDataConfiguration(o["x"]); checkExternalDataConfiguration(o["y"]); } -buildUnnamed3204() { +buildUnnamed2994() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3204(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed2994(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -937,12 +937,12 @@ o.preserveNulls = true; o.priority = "foo"; o.query = "foo"; - o.queryParameters = buildUnnamed3201(); - o.schemaUpdateOptions = buildUnnamed3202(); - o.tableDefinitions = buildUnnamed3203(); + o.queryParameters = buildUnnamed2991(); + o.schemaUpdateOptions = buildUnnamed2992(); + o.tableDefinitions = buildUnnamed2993(); o.useLegacySql = true; o.useQueryCache = true; - o.userDefinedFunctionResources = buildUnnamed3204(); + o.userDefinedFunctionResources = buildUnnamed2994(); o.writeDisposition = "foo"; } buildCounterJobConfigurationQuery--; @@ -963,25 +963,25 @@ unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.priority, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3201(o.queryParameters); - checkUnnamed3202(o.schemaUpdateOptions); - checkUnnamed3203(o.tableDefinitions); + checkUnnamed2991(o.queryParameters); + checkUnnamed2992(o.schemaUpdateOptions); + checkUnnamed2993(o.tableDefinitions); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); - checkUnnamed3204(o.userDefinedFunctionResources); + checkUnnamed2994(o.userDefinedFunctionResources); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationQuery--; } -buildUnnamed3205() { +buildUnnamed2995() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3205(core.List<api.TableReference> o) { +checkUnnamed2995(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -995,7 +995,7 @@ o.createDisposition = "foo"; o.destinationTable = buildTableReference(); o.sourceTable = buildTableReference(); - o.sourceTables = buildUnnamed3205(); + o.sourceTables = buildUnnamed2995(); o.writeDisposition = "foo"; } buildCounterJobConfigurationTableCopy--; @@ -1008,7 +1008,7 @@ unittest.expect(o.createDisposition, unittest.equals('foo')); checkTableReference(o.destinationTable); checkTableReference(o.sourceTable); - checkUnnamed3205(o.sourceTables); + checkUnnamed2995(o.sourceTables); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationTableCopy--; @@ -1049,14 +1049,14 @@ buildCounterJobListJobs--; } -buildUnnamed3206() { +buildUnnamed2996() { var o = new core.List<api.JobListJobs>(); o.add(buildJobListJobs()); o.add(buildJobListJobs()); return o; } -checkUnnamed3206(core.List<api.JobListJobs> o) { +checkUnnamed2996(core.List<api.JobListJobs> o) { unittest.expect(o, unittest.hasLength(2)); checkJobListJobs(o[0]); checkJobListJobs(o[1]); @@ -1068,7 +1068,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { o.etag = "foo"; - o.jobs = buildUnnamed3206(); + o.jobs = buildUnnamed2996(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1080,7 +1080,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3206(o.jobs); + checkUnnamed2996(o.jobs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1139,40 +1139,40 @@ buildCounterJobStatistics--; } -buildUnnamed3207() { +buildUnnamed2997() { var o = new core.List<api.ExplainQueryStage>(); o.add(buildExplainQueryStage()); o.add(buildExplainQueryStage()); return o; } -checkUnnamed3207(core.List<api.ExplainQueryStage> o) { +checkUnnamed2997(core.List<api.ExplainQueryStage> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStage(o[0]); checkExplainQueryStage(o[1]); } -buildUnnamed3208() { +buildUnnamed2998() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3208(core.List<api.TableReference> o) { +checkUnnamed2998(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); } -buildUnnamed3209() { +buildUnnamed2999() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3209(core.List<api.QueryParameter> o) { +checkUnnamed2999(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1186,12 +1186,12 @@ o.billingTier = 42; o.cacheHit = true; o.numDmlAffectedRows = "foo"; - o.queryPlan = buildUnnamed3207(); - o.referencedTables = buildUnnamed3208(); + o.queryPlan = buildUnnamed2997(); + o.referencedTables = buildUnnamed2998(); o.schema = buildTableSchema(); o.totalBytesBilled = "foo"; o.totalBytesProcessed = "foo"; - o.undeclaredQueryParameters = buildUnnamed3209(); + o.undeclaredQueryParameters = buildUnnamed2999(); } buildCounterJobStatistics2--; return o; @@ -1203,12 +1203,12 @@ unittest.expect(o.billingTier, unittest.equals(42)); unittest.expect(o.cacheHit, unittest.isTrue); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); - checkUnnamed3207(o.queryPlan); - checkUnnamed3208(o.referencedTables); + checkUnnamed2997(o.queryPlan); + checkUnnamed2998(o.referencedTables); checkTableSchema(o.schema); unittest.expect(o.totalBytesBilled, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); - checkUnnamed3209(o.undeclaredQueryParameters); + checkUnnamed2999(o.undeclaredQueryParameters); } buildCounterJobStatistics2--; } @@ -1238,14 +1238,14 @@ buildCounterJobStatistics3--; } -buildUnnamed3210() { +buildUnnamed3000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3210(core.List<core.String> o) { +checkUnnamed3000(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1256,7 +1256,7 @@ var o = new api.JobStatistics4(); buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - o.destinationUriFileCounts = buildUnnamed3210(); + o.destinationUriFileCounts = buildUnnamed3000(); } buildCounterJobStatistics4--; return o; @@ -1265,19 +1265,19 @@ checkJobStatistics4(api.JobStatistics4 o) { buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - checkUnnamed3210(o.destinationUriFileCounts); + checkUnnamed3000(o.destinationUriFileCounts); } buildCounterJobStatistics4--; } -buildUnnamed3211() { +buildUnnamed3001() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3211(core.List<api.ErrorProto> o) { +checkUnnamed3001(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1289,7 +1289,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { o.errorResult = buildErrorProto(); - o.errors = buildUnnamed3211(); + o.errors = buildUnnamed3001(); o.state = "foo"; } buildCounterJobStatus--; @@ -1300,7 +1300,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { checkErrorProto(o.errorResult); - checkUnnamed3211(o.errors); + checkUnnamed3001(o.errors); unittest.expect(o.state, unittest.equals('foo')); } buildCounterJobStatus--; @@ -1346,14 +1346,14 @@ buildCounterProjectListProjects--; } -buildUnnamed3212() { +buildUnnamed3002() { var o = new core.List<api.ProjectListProjects>(); o.add(buildProjectListProjects()); o.add(buildProjectListProjects()); return o; } -checkUnnamed3212(core.List<api.ProjectListProjects> o) { +checkUnnamed3002(core.List<api.ProjectListProjects> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectListProjects(o[0]); checkProjectListProjects(o[1]); @@ -1367,7 +1367,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed3212(); + o.projects = buildUnnamed3002(); o.totalItems = 42; } buildCounterProjectList--; @@ -1380,7 +1380,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3212(o.projects); + checkUnnamed3002(o.projects); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterProjectList--; @@ -1451,14 +1451,14 @@ buildCounterQueryParameterTypeStructTypes--; } -buildUnnamed3213() { +buildUnnamed3003() { var o = new core.List<api.QueryParameterTypeStructTypes>(); o.add(buildQueryParameterTypeStructTypes()); o.add(buildQueryParameterTypeStructTypes()); return o; } -checkUnnamed3213(core.List<api.QueryParameterTypeStructTypes> o) { +checkUnnamed3003(core.List<api.QueryParameterTypeStructTypes> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterTypeStructTypes(o[0]); checkQueryParameterTypeStructTypes(o[1]); @@ -1470,7 +1470,7 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { o.arrayType = buildQueryParameterType(); - o.structTypes = buildUnnamed3213(); + o.structTypes = buildUnnamed3003(); o.type = "foo"; } buildCounterQueryParameterType--; @@ -1481,33 +1481,33 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { checkQueryParameterType(o.arrayType); - checkUnnamed3213(o.structTypes); + checkUnnamed3003(o.structTypes); unittest.expect(o.type, unittest.equals('foo')); } buildCounterQueryParameterType--; } -buildUnnamed3214() { +buildUnnamed3004() { var o = new core.List<api.QueryParameterValue>(); o.add(buildQueryParameterValue()); o.add(buildQueryParameterValue()); return o; } -checkUnnamed3214(core.List<api.QueryParameterValue> o) { +checkUnnamed3004(core.List<api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o[0]); checkQueryParameterValue(o[1]); } -buildUnnamed3215() { +buildUnnamed3005() { var o = new core.Map<core.String, api.QueryParameterValue>(); o["x"] = buildQueryParameterValue(); o["y"] = buildQueryParameterValue(); return o; } -checkUnnamed3215(core.Map<core.String, api.QueryParameterValue> o) { +checkUnnamed3005(core.Map<core.String, api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o["x"]); checkQueryParameterValue(o["y"]); @@ -1518,8 +1518,8 @@ var o = new api.QueryParameterValue(); buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - o.arrayValues = buildUnnamed3214(); - o.structValues = buildUnnamed3215(); + o.arrayValues = buildUnnamed3004(); + o.structValues = buildUnnamed3005(); o.value = "foo"; } buildCounterQueryParameterValue--; @@ -1529,21 +1529,21 @@ checkQueryParameterValue(api.QueryParameterValue o) { buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - checkUnnamed3214(o.arrayValues); - checkUnnamed3215(o.structValues); + checkUnnamed3004(o.arrayValues); + checkUnnamed3005(o.structValues); unittest.expect(o.value, unittest.equals('foo')); } buildCounterQueryParameterValue--; } -buildUnnamed3216() { +buildUnnamed3006() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3216(core.List<api.QueryParameter> o) { +checkUnnamed3006(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1561,7 +1561,7 @@ o.parameterMode = "foo"; o.preserveNulls = true; o.query = "foo"; - o.queryParameters = buildUnnamed3216(); + o.queryParameters = buildUnnamed3006(); o.timeoutMs = 42; o.useLegacySql = true; o.useQueryCache = true; @@ -1580,7 +1580,7 @@ unittest.expect(o.parameterMode, unittest.equals('foo')); unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3216(o.queryParameters); + checkUnnamed3006(o.queryParameters); unittest.expect(o.timeoutMs, unittest.equals(42)); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); @@ -1588,27 +1588,27 @@ buildCounterQueryRequest--; } -buildUnnamed3217() { +buildUnnamed3007() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3217(core.List<api.ErrorProto> o) { +checkUnnamed3007(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3218() { +buildUnnamed3008() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3218(core.List<api.TableRow> o) { +checkUnnamed3008(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1620,13 +1620,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3217(); + o.errors = buildUnnamed3007(); o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3218(); + o.rows = buildUnnamed3008(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -1639,13 +1639,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3217(o.errors); + checkUnnamed3007(o.errors); unittest.expect(o.jobComplete, unittest.isTrue); checkJobReference(o.jobReference); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3218(o.rows); + checkUnnamed3008(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -1773,14 +1773,14 @@ buildCounterTableDataInsertAllRequestRows--; } -buildUnnamed3219() { +buildUnnamed3009() { var o = new core.List<api.TableDataInsertAllRequestRows>(); o.add(buildTableDataInsertAllRequestRows()); o.add(buildTableDataInsertAllRequestRows()); return o; } -checkUnnamed3219(core.List<api.TableDataInsertAllRequestRows> o) { +checkUnnamed3009(core.List<api.TableDataInsertAllRequestRows> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllRequestRows(o[0]); checkTableDataInsertAllRequestRows(o[1]); @@ -1793,7 +1793,7 @@ if (buildCounterTableDataInsertAllRequest < 3) { o.ignoreUnknownValues = true; o.kind = "foo"; - o.rows = buildUnnamed3219(); + o.rows = buildUnnamed3009(); o.skipInvalidRows = true; o.templateSuffix = "foo"; } @@ -1806,21 +1806,21 @@ if (buildCounterTableDataInsertAllRequest < 3) { unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3219(o.rows); + checkUnnamed3009(o.rows); unittest.expect(o.skipInvalidRows, unittest.isTrue); unittest.expect(o.templateSuffix, unittest.equals('foo')); } buildCounterTableDataInsertAllRequest--; } -buildUnnamed3220() { +buildUnnamed3010() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3220(core.List<api.ErrorProto> o) { +checkUnnamed3010(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1831,7 +1831,7 @@ var o = new api.TableDataInsertAllResponseInsertErrors(); buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - o.errors = buildUnnamed3220(); + o.errors = buildUnnamed3010(); o.index = 42; } buildCounterTableDataInsertAllResponseInsertErrors--; @@ -1841,20 +1841,20 @@ checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsertErrors o) { buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - checkUnnamed3220(o.errors); + checkUnnamed3010(o.errors); unittest.expect(o.index, unittest.equals(42)); } buildCounterTableDataInsertAllResponseInsertErrors--; } -buildUnnamed3221() { +buildUnnamed3011() { var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); o.add(buildTableDataInsertAllResponseInsertErrors()); o.add(buildTableDataInsertAllResponseInsertErrors()); return o; } -checkUnnamed3221(core.List<api.TableDataInsertAllResponseInsertErrors> o) { +checkUnnamed3011(core.List<api.TableDataInsertAllResponseInsertErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllResponseInsertErrors(o[0]); checkTableDataInsertAllResponseInsertErrors(o[1]); @@ -1865,7 +1865,7 @@ var o = new api.TableDataInsertAllResponse(); buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - o.insertErrors = buildUnnamed3221(); + o.insertErrors = buildUnnamed3011(); o.kind = "foo"; } buildCounterTableDataInsertAllResponse--; @@ -1875,20 +1875,20 @@ checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - checkUnnamed3221(o.insertErrors); + checkUnnamed3011(o.insertErrors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTableDataInsertAllResponse--; } -buildUnnamed3222() { +buildUnnamed3012() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3222(core.List<api.TableRow> o) { +checkUnnamed3012(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1902,7 +1902,7 @@ o.etag = "foo"; o.kind = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3222(); + o.rows = buildUnnamed3012(); o.totalRows = "foo"; } buildCounterTableDataList--; @@ -1915,20 +1915,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3222(o.rows); + checkUnnamed3012(o.rows); unittest.expect(o.totalRows, unittest.equals('foo')); } buildCounterTableDataList--; } -buildUnnamed3223() { +buildUnnamed3013() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3223(core.List<api.TableFieldSchema> o) { +checkUnnamed3013(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -1940,7 +1940,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { o.description = "foo"; - o.fields = buildUnnamed3223(); + o.fields = buildUnnamed3013(); o.mode = "foo"; o.name = "foo"; o.type = "foo"; @@ -1953,7 +1953,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3223(o.fields); + checkUnnamed3013(o.fields); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1988,14 +1988,14 @@ buildCounterTableListTables--; } -buildUnnamed3224() { +buildUnnamed3014() { var o = new core.List<api.TableListTables>(); o.add(buildTableListTables()); o.add(buildTableListTables()); return o; } -checkUnnamed3224(core.List<api.TableListTables> o) { +checkUnnamed3014(core.List<api.TableListTables> o) { unittest.expect(o, unittest.hasLength(2)); checkTableListTables(o[0]); checkTableListTables(o[1]); @@ -2009,7 +2009,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.tables = buildUnnamed3224(); + o.tables = buildUnnamed3014(); o.totalItems = 42; } buildCounterTableList--; @@ -2022,7 +2022,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3224(o.tables); + checkUnnamed3014(o.tables); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterTableList--; @@ -2051,14 +2051,14 @@ buildCounterTableReference--; } -buildUnnamed3225() { +buildUnnamed3015() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed3225(core.List<api.TableCell> o) { +checkUnnamed3015(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2069,7 +2069,7 @@ var o = new api.TableRow(); buildCounterTableRow++; if (buildCounterTableRow < 3) { - o.f = buildUnnamed3225(); + o.f = buildUnnamed3015(); } buildCounterTableRow--; return o; @@ -2078,19 +2078,19 @@ checkTableRow(api.TableRow o) { buildCounterTableRow++; if (buildCounterTableRow < 3) { - checkUnnamed3225(o.f); + checkUnnamed3015(o.f); } buildCounterTableRow--; } -buildUnnamed3226() { +buildUnnamed3016() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3226(core.List<api.TableFieldSchema> o) { +checkUnnamed3016(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -2101,7 +2101,7 @@ var o = new api.TableSchema(); buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - o.fields = buildUnnamed3226(); + o.fields = buildUnnamed3016(); } buildCounterTableSchema--; return o; @@ -2110,7 +2110,7 @@ checkTableSchema(api.TableSchema o) { buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - checkUnnamed3226(o.fields); + checkUnnamed3016(o.fields); } buildCounterTableSchema--; } @@ -2157,14 +2157,14 @@ buildCounterUserDefinedFunctionResource--; } -buildUnnamed3227() { +buildUnnamed3017() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3227(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3017(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -2177,7 +2177,7 @@ if (buildCounterViewDefinition < 3) { o.query = "foo"; o.useLegacySql = true; - o.userDefinedFunctionResources = buildUnnamed3227(); + o.userDefinedFunctionResources = buildUnnamed3017(); } buildCounterViewDefinition--; return o; @@ -2188,19 +2188,19 @@ if (buildCounterViewDefinition < 3) { unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.useLegacySql, unittest.isTrue); - checkUnnamed3227(o.userDefinedFunctionResources); + checkUnnamed3017(o.userDefinedFunctionResources); } buildCounterViewDefinition--; } -buildUnnamed3228() { +buildUnnamed3018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3228(core.List<core.String> o) { +checkUnnamed3018(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3331,7 +3331,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_projection = "foo"; - var arg_stateFilter = buildUnnamed3228(); + var arg_stateFilter = buildUnnamed3018(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/blogger/v3_test.dart b/generated/googleapis/test/blogger/v3_test.dart index 77727df..9869971 100644 --- a/generated/googleapis/test/blogger/v3_test.dart +++ b/generated/googleapis/test/blogger/v3_test.dart
@@ -95,14 +95,14 @@ buildCounterBlogPages--; } -buildUnnamed1376() { +buildUnnamed1129() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1376(core.List<api.Post> o) { +checkUnnamed1129(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -113,7 +113,7 @@ var o = new api.BlogPosts(); buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - o.items = buildUnnamed1376(); + o.items = buildUnnamed1129(); o.selfLink = "foo"; o.totalItems = 42; } @@ -124,7 +124,7 @@ checkBlogPosts(api.BlogPosts o) { buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - checkUnnamed1376(o.items); + checkUnnamed1129(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -174,27 +174,27 @@ buildCounterBlog--; } -buildUnnamed1377() { +buildUnnamed1130() { var o = new core.List<api.BlogUserInfo>(); o.add(buildBlogUserInfo()); o.add(buildBlogUserInfo()); return o; } -checkUnnamed1377(core.List<api.BlogUserInfo> o) { +checkUnnamed1130(core.List<api.BlogUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBlogUserInfo(o[0]); checkBlogUserInfo(o[1]); } -buildUnnamed1378() { +buildUnnamed1131() { var o = new core.List<api.Blog>(); o.add(buildBlog()); o.add(buildBlog()); return o; } -checkUnnamed1378(core.List<api.Blog> o) { +checkUnnamed1131(core.List<api.Blog> o) { unittest.expect(o, unittest.hasLength(2)); checkBlog(o[0]); checkBlog(o[1]); @@ -205,8 +205,8 @@ var o = new api.BlogList(); buildCounterBlogList++; if (buildCounterBlogList < 3) { - o.blogUserInfos = buildUnnamed1377(); - o.items = buildUnnamed1378(); + o.blogUserInfos = buildUnnamed1130(); + o.items = buildUnnamed1131(); o.kind = "foo"; } buildCounterBlogList--; @@ -216,8 +216,8 @@ checkBlogList(api.BlogList o) { buildCounterBlogList++; if (buildCounterBlogList < 3) { - checkUnnamed1377(o.blogUserInfos); - checkUnnamed1378(o.items); + checkUnnamed1130(o.blogUserInfos); + checkUnnamed1131(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBlogList--; @@ -415,14 +415,14 @@ buildCounterComment--; } -buildUnnamed1379() { +buildUnnamed1132() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1379(core.List<api.Comment> o) { +checkUnnamed1132(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -434,7 +434,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { o.etag = "foo"; - o.items = buildUnnamed1379(); + o.items = buildUnnamed1132(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -447,7 +447,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1379(o.items); + checkUnnamed1132(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.prevPageToken, unittest.equals('foo')); @@ -559,14 +559,14 @@ buildCounterPage--; } -buildUnnamed1380() { +buildUnnamed1133() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1380(core.List<api.Page> o) { +checkUnnamed1133(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -578,7 +578,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { o.etag = "foo"; - o.items = buildUnnamed1380(); + o.items = buildUnnamed1133(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -590,7 +590,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1380(o.items); + checkUnnamed1133(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -618,14 +618,14 @@ buildCounterPageviewsCounts--; } -buildUnnamed1381() { +buildUnnamed1134() { var o = new core.List<api.PageviewsCounts>(); o.add(buildPageviewsCounts()); o.add(buildPageviewsCounts()); return o; } -checkUnnamed1381(core.List<api.PageviewsCounts> o) { +checkUnnamed1134(core.List<api.PageviewsCounts> o) { unittest.expect(o, unittest.hasLength(2)); checkPageviewsCounts(o[0]); checkPageviewsCounts(o[1]); @@ -637,7 +637,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { o.blogId = "foo"; - o.counts = buildUnnamed1381(); + o.counts = buildUnnamed1134(); o.kind = "foo"; } buildCounterPageviews--; @@ -648,7 +648,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { unittest.expect(o.blogId, unittest.equals('foo')); - checkUnnamed1381(o.counts); + checkUnnamed1134(o.counts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPageviews--; @@ -736,27 +736,27 @@ buildCounterPostImages--; } -buildUnnamed1382() { +buildUnnamed1135() { var o = new core.List<api.PostImages>(); o.add(buildPostImages()); o.add(buildPostImages()); return o; } -checkUnnamed1382(core.List<api.PostImages> o) { +checkUnnamed1135(core.List<api.PostImages> o) { unittest.expect(o, unittest.hasLength(2)); checkPostImages(o[0]); checkPostImages(o[1]); } -buildUnnamed1383() { +buildUnnamed1136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1383(core.List<core.String> o) { +checkUnnamed1136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -787,14 +787,14 @@ buildCounterPostLocation--; } -buildUnnamed1384() { +buildUnnamed1137() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1384(core.List<api.Comment> o) { +checkUnnamed1137(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -805,7 +805,7 @@ var o = new api.PostReplies(); buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - o.items = buildUnnamed1384(); + o.items = buildUnnamed1137(); o.selfLink = "foo"; o.totalItems = "foo"; } @@ -816,7 +816,7 @@ checkPostReplies(api.PostReplies o) { buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - checkUnnamed1384(o.items); + checkUnnamed1137(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals('foo')); } @@ -834,9 +834,9 @@ o.customMetaData = "foo"; o.etag = "foo"; o.id = "foo"; - o.images = buildUnnamed1382(); + o.images = buildUnnamed1135(); o.kind = "foo"; - o.labels = buildUnnamed1383(); + o.labels = buildUnnamed1136(); o.location = buildPostLocation(); o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.readerComments = "foo"; @@ -861,9 +861,9 @@ unittest.expect(o.customMetaData, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1382(o.images); + checkUnnamed1135(o.images); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1383(o.labels); + checkUnnamed1136(o.labels); checkPostLocation(o.location); unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.readerComments, unittest.equals('foo')); @@ -878,14 +878,14 @@ buildCounterPost--; } -buildUnnamed1385() { +buildUnnamed1138() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1385(core.List<api.Post> o) { +checkUnnamed1138(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -897,7 +897,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { o.etag = "foo"; - o.items = buildUnnamed1385(); + o.items = buildUnnamed1138(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -909,7 +909,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1385(o.items); + checkUnnamed1138(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -966,14 +966,14 @@ buildCounterPostUserInfo--; } -buildUnnamed1386() { +buildUnnamed1139() { var o = new core.List<api.PostUserInfo>(); o.add(buildPostUserInfo()); o.add(buildPostUserInfo()); return o; } -checkUnnamed1386(core.List<api.PostUserInfo> o) { +checkUnnamed1139(core.List<api.PostUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPostUserInfo(o[0]); checkPostUserInfo(o[1]); @@ -984,7 +984,7 @@ var o = new api.PostUserInfosList(); buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - o.items = buildUnnamed1386(); + o.items = buildUnnamed1139(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -995,7 +995,7 @@ checkPostUserInfosList(api.PostUserInfosList o) { buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - checkUnnamed1386(o.items); + checkUnnamed1139(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1079,105 +1079,105 @@ buildCounterUser--; } -buildUnnamed1387() { +buildUnnamed1140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1387(core.List<core.String> o) { +checkUnnamed1140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1388() { +buildUnnamed1141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1388(core.List<core.String> o) { +checkUnnamed1141(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1389() { +buildUnnamed1142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1389(core.List<core.String> o) { +checkUnnamed1142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1390() { +buildUnnamed1143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1390(core.List<core.String> o) { +checkUnnamed1143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1391() { +buildUnnamed1144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1391(core.List<core.String> o) { +checkUnnamed1144(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1392() { +buildUnnamed1145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1392(core.List<core.String> o) { +checkUnnamed1145(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1393() { +buildUnnamed1146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1393(core.List<core.String> o) { +checkUnnamed1146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1394() { +buildUnnamed1147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1394(core.List<core.String> o) { +checkUnnamed1147(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1672,8 +1672,8 @@ api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; var arg_userId = "foo"; var arg_fetchUserInfo = true; - var arg_role = buildUnnamed1387(); - var arg_status = buildUnnamed1388(); + var arg_role = buildUnnamed1140(); + var arg_status = buildUnnamed1141(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1941,7 +1941,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1389(); + var arg_status = buildUnnamed1142(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2015,7 +2015,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1390(); + var arg_status = buildUnnamed1143(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2217,7 +2217,7 @@ var mock = new HttpServerMock(); api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; var arg_blogId = "foo"; - var arg_range = buildUnnamed1391(); + var arg_range = buildUnnamed1144(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2452,7 +2452,7 @@ var arg_fetchBodies = true; var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_status = buildUnnamed1392(); + var arg_status = buildUnnamed1145(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2843,7 +2843,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1393(); + var arg_status = buildUnnamed1146(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -3168,7 +3168,7 @@ var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_status = buildUnnamed1394(); + var arg_status = buildUnnamed1147(); var arg_view = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/books/v1_test.dart b/generated/googleapis/test/books/v1_test.dart index 16f53e3..d448a21 100644 --- a/generated/googleapis/test/books/v1_test.dart +++ b/generated/googleapis/test/books/v1_test.dart
@@ -128,14 +128,14 @@ buildCounterAnnotationLayerSummary--; } -buildUnnamed1014() { +buildUnnamed765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1014(core.List<core.String> o) { +checkUnnamed765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -158,7 +158,7 @@ o.kind = "foo"; o.layerId = "foo"; o.layerSummary = buildAnnotationLayerSummary(); - o.pageIds = buildUnnamed1014(); + o.pageIds = buildUnnamed765(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -183,7 +183,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); checkAnnotationLayerSummary(o.layerSummary); - checkUnnamed1014(o.pageIds); + checkUnnamed765(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -227,14 +227,14 @@ buildCounterAnnotationdata--; } -buildUnnamed1015() { +buildUnnamed766() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed1015(core.List<api.Annotation> o) { +checkUnnamed766(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -245,7 +245,7 @@ var o = new api.Annotations(); buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - o.items = buildUnnamed1015(); + o.items = buildUnnamed766(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -257,7 +257,7 @@ checkAnnotations(api.Annotations o) { buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - checkUnnamed1015(o.items); + checkUnnamed766(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -292,14 +292,14 @@ buildCounterAnnotationsSummaryLayers--; } -buildUnnamed1016() { +buildUnnamed767() { var o = new core.List<api.AnnotationsSummaryLayers>(); o.add(buildAnnotationsSummaryLayers()); o.add(buildAnnotationsSummaryLayers()); return o; } -checkUnnamed1016(core.List<api.AnnotationsSummaryLayers> o) { +checkUnnamed767(core.List<api.AnnotationsSummaryLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationsSummaryLayers(o[0]); checkAnnotationsSummaryLayers(o[1]); @@ -311,7 +311,7 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { o.kind = "foo"; - o.layers = buildUnnamed1016(); + o.layers = buildUnnamed767(); } buildCounterAnnotationsSummary--; return o; @@ -321,19 +321,19 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1016(o.layers); + checkUnnamed767(o.layers); } buildCounterAnnotationsSummary--; } -buildUnnamed1017() { +buildUnnamed768() { var o = new core.List<api.Annotationdata>(); o.add(buildAnnotationdata()); o.add(buildAnnotationdata()); return o; } -checkUnnamed1017(core.List<api.Annotationdata> o) { +checkUnnamed768(core.List<api.Annotationdata> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationdata(o[0]); checkAnnotationdata(o[1]); @@ -344,7 +344,7 @@ var o = new api.Annotationsdata(); buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - o.items = buildUnnamed1017(); + o.items = buildUnnamed768(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -356,7 +356,7 @@ checkAnnotationsdata(api.Annotationsdata o) { buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - checkUnnamed1017(o.items); + checkUnnamed768(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -470,14 +470,14 @@ buildCounterBookshelf--; } -buildUnnamed1018() { +buildUnnamed769() { var o = new core.List<api.Bookshelf>(); o.add(buildBookshelf()); o.add(buildBookshelf()); return o; } -checkUnnamed1018(core.List<api.Bookshelf> o) { +checkUnnamed769(core.List<api.Bookshelf> o) { unittest.expect(o, unittest.hasLength(2)); checkBookshelf(o[0]); checkBookshelf(o[1]); @@ -488,7 +488,7 @@ var o = new api.Bookshelves(); buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - o.items = buildUnnamed1018(); + o.items = buildUnnamed769(); o.kind = "foo"; } buildCounterBookshelves--; @@ -498,7 +498,7 @@ checkBookshelves(api.Bookshelves o) { buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - checkUnnamed1018(o.items); + checkUnnamed769(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBookshelves--; @@ -527,14 +527,14 @@ buildCounterCategoryItems--; } -buildUnnamed1019() { +buildUnnamed770() { var o = new core.List<api.CategoryItems>(); o.add(buildCategoryItems()); o.add(buildCategoryItems()); return o; } -checkUnnamed1019(core.List<api.CategoryItems> o) { +checkUnnamed770(core.List<api.CategoryItems> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryItems(o[0]); checkCategoryItems(o[1]); @@ -545,7 +545,7 @@ var o = new api.Category(); buildCounterCategory++; if (buildCounterCategory < 3) { - o.items = buildUnnamed1019(); + o.items = buildUnnamed770(); o.kind = "foo"; } buildCounterCategory--; @@ -555,7 +555,7 @@ checkCategory(api.Category o) { buildCounterCategory++; if (buildCounterCategory < 3) { - checkUnnamed1019(o.items); + checkUnnamed770(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCategory--; @@ -682,14 +682,14 @@ buildCounterDictlayerdataDictWordsDerivatives--; } -buildUnnamed1020() { +buildUnnamed771() { var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); o.add(buildDictlayerdataDictWordsDerivatives()); o.add(buildDictlayerdataDictWordsDerivatives()); return o; } -checkUnnamed1020(core.List<api.DictlayerdataDictWordsDerivatives> o) { +checkUnnamed771(core.List<api.DictlayerdataDictWordsDerivatives> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsDerivatives(o[0]); checkDictlayerdataDictWordsDerivatives(o[1]); @@ -737,14 +737,14 @@ buildCounterDictlayerdataDictWordsExamples--; } -buildUnnamed1021() { +buildUnnamed772() { var o = new core.List<api.DictlayerdataDictWordsExamples>(); o.add(buildDictlayerdataDictWordsExamples()); o.add(buildDictlayerdataDictWordsExamples()); return o; } -checkUnnamed1021(core.List<api.DictlayerdataDictWordsExamples> o) { +checkUnnamed772(core.List<api.DictlayerdataDictWordsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsExamples(o[0]); checkDictlayerdataDictWordsExamples(o[1]); @@ -771,14 +771,14 @@ buildCounterDictlayerdataDictWordsSensesConjugations--; } -buildUnnamed1022() { +buildUnnamed773() { var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); o.add(buildDictlayerdataDictWordsSensesConjugations()); o.add(buildDictlayerdataDictWordsSensesConjugations()); return o; } -checkUnnamed1022(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { +checkUnnamed773(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesConjugations(o[0]); checkDictlayerdataDictWordsSensesConjugations(o[1]); @@ -826,14 +826,14 @@ buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; } -buildUnnamed1023() { +buildUnnamed774() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); return o; } -checkUnnamed1023(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { +checkUnnamed774(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); @@ -845,7 +845,7 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { o.definition = "foo"; - o.examples = buildUnnamed1023(); + o.examples = buildUnnamed774(); } buildCounterDictlayerdataDictWordsSensesDefinitions--; return o; @@ -855,19 +855,19 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { unittest.expect(o.definition, unittest.equals('foo')); - checkUnnamed1023(o.examples); + checkUnnamed774(o.examples); } buildCounterDictlayerdataDictWordsSensesDefinitions--; } -buildUnnamed1024() { +buildUnnamed775() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); o.add(buildDictlayerdataDictWordsSensesDefinitions()); o.add(buildDictlayerdataDictWordsSensesDefinitions()); return o; } -checkUnnamed1024(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { +checkUnnamed775(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitions(o[0]); checkDictlayerdataDictWordsSensesDefinitions(o[1]); @@ -936,14 +936,14 @@ buildCounterDictlayerdataDictWordsSensesSynonyms--; } -buildUnnamed1025() { +buildUnnamed776() { var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); o.add(buildDictlayerdataDictWordsSensesSynonyms()); o.add(buildDictlayerdataDictWordsSensesSynonyms()); return o; } -checkUnnamed1025(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { +checkUnnamed776(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesSynonyms(o[0]); checkDictlayerdataDictWordsSensesSynonyms(o[1]); @@ -954,14 +954,14 @@ var o = new api.DictlayerdataDictWordsSenses(); buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - o.conjugations = buildUnnamed1022(); - o.definitions = buildUnnamed1024(); + o.conjugations = buildUnnamed773(); + o.definitions = buildUnnamed775(); o.partOfSpeech = "foo"; o.pronunciation = "foo"; o.pronunciationUrl = "foo"; o.source = buildDictlayerdataDictWordsSensesSource(); o.syllabification = "foo"; - o.synonyms = buildUnnamed1025(); + o.synonyms = buildUnnamed776(); } buildCounterDictlayerdataDictWordsSenses--; return o; @@ -970,26 +970,26 @@ checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - checkUnnamed1022(o.conjugations); - checkUnnamed1024(o.definitions); + checkUnnamed773(o.conjugations); + checkUnnamed775(o.definitions); unittest.expect(o.partOfSpeech, unittest.equals('foo')); unittest.expect(o.pronunciation, unittest.equals('foo')); unittest.expect(o.pronunciationUrl, unittest.equals('foo')); checkDictlayerdataDictWordsSensesSource(o.source); unittest.expect(o.syllabification, unittest.equals('foo')); - checkUnnamed1025(o.synonyms); + checkUnnamed776(o.synonyms); } buildCounterDictlayerdataDictWordsSenses--; } -buildUnnamed1026() { +buildUnnamed777() { var o = new core.List<api.DictlayerdataDictWordsSenses>(); o.add(buildDictlayerdataDictWordsSenses()); o.add(buildDictlayerdataDictWordsSenses()); return o; } -checkUnnamed1026(core.List<api.DictlayerdataDictWordsSenses> o) { +checkUnnamed777(core.List<api.DictlayerdataDictWordsSenses> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSenses(o[0]); checkDictlayerdataDictWordsSenses(o[1]); @@ -1021,9 +1021,9 @@ var o = new api.DictlayerdataDictWords(); buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - o.derivatives = buildUnnamed1020(); - o.examples = buildUnnamed1021(); - o.senses = buildUnnamed1026(); + o.derivatives = buildUnnamed771(); + o.examples = buildUnnamed772(); + o.senses = buildUnnamed777(); o.source = buildDictlayerdataDictWordsSource(); } buildCounterDictlayerdataDictWords--; @@ -1033,22 +1033,22 @@ checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - checkUnnamed1020(o.derivatives); - checkUnnamed1021(o.examples); - checkUnnamed1026(o.senses); + checkUnnamed771(o.derivatives); + checkUnnamed772(o.examples); + checkUnnamed777(o.senses); checkDictlayerdataDictWordsSource(o.source); } buildCounterDictlayerdataDictWords--; } -buildUnnamed1027() { +buildUnnamed778() { var o = new core.List<api.DictlayerdataDictWords>(); o.add(buildDictlayerdataDictWords()); o.add(buildDictlayerdataDictWords()); return o; } -checkUnnamed1027(core.List<api.DictlayerdataDictWords> o) { +checkUnnamed778(core.List<api.DictlayerdataDictWords> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWords(o[0]); checkDictlayerdataDictWords(o[1]); @@ -1060,7 +1060,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { o.source = buildDictlayerdataDictSource(); - o.words = buildUnnamed1027(); + o.words = buildUnnamed778(); } buildCounterDictlayerdataDict--; return o; @@ -1070,7 +1070,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { checkDictlayerdataDictSource(o.source); - checkUnnamed1027(o.words); + checkUnnamed778(o.words); } buildCounterDictlayerdataDict--; } @@ -1127,14 +1127,14 @@ buildCounterDiscoveryclustersClustersBannerWithContentContainer--; } -buildUnnamed1028() { +buildUnnamed779() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1028(core.List<api.Volume> o) { +checkUnnamed779(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1150,7 +1150,7 @@ o.title = "foo"; o.totalVolumes = 42; o.uid = "foo"; - o.volumes = buildUnnamed1028(); + o.volumes = buildUnnamed779(); } buildCounterDiscoveryclustersClusters--; return o; @@ -1164,19 +1164,19 @@ unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.totalVolumes, unittest.equals(42)); unittest.expect(o.uid, unittest.equals('foo')); - checkUnnamed1028(o.volumes); + checkUnnamed779(o.volumes); } buildCounterDiscoveryclustersClusters--; } -buildUnnamed1029() { +buildUnnamed780() { var o = new core.List<api.DiscoveryclustersClusters>(); o.add(buildDiscoveryclustersClusters()); o.add(buildDiscoveryclustersClusters()); return o; } -checkUnnamed1029(core.List<api.DiscoveryclustersClusters> o) { +checkUnnamed780(core.List<api.DiscoveryclustersClusters> o) { unittest.expect(o, unittest.hasLength(2)); checkDiscoveryclustersClusters(o[0]); checkDiscoveryclustersClusters(o[1]); @@ -1187,7 +1187,7 @@ var o = new api.Discoveryclusters(); buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - o.clusters = buildUnnamed1029(); + o.clusters = buildUnnamed780(); o.kind = "foo"; o.totalClusters = 42; } @@ -1198,7 +1198,7 @@ checkDiscoveryclusters(api.Discoveryclusters o) { buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - checkUnnamed1029(o.clusters); + checkUnnamed780(o.clusters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalClusters, unittest.equals(42)); } @@ -1246,14 +1246,14 @@ buildCounterDownloadAccessRestriction--; } -buildUnnamed1030() { +buildUnnamed781() { var o = new core.List<api.DownloadAccessRestriction>(); o.add(buildDownloadAccessRestriction()); o.add(buildDownloadAccessRestriction()); return o; } -checkUnnamed1030(core.List<api.DownloadAccessRestriction> o) { +checkUnnamed781(core.List<api.DownloadAccessRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDownloadAccessRestriction(o[0]); checkDownloadAccessRestriction(o[1]); @@ -1264,7 +1264,7 @@ var o = new api.DownloadAccesses(); buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - o.downloadAccessList = buildUnnamed1030(); + o.downloadAccessList = buildUnnamed781(); o.kind = "foo"; } buildCounterDownloadAccesses--; @@ -1274,7 +1274,7 @@ checkDownloadAccesses(api.DownloadAccesses o) { buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - checkUnnamed1030(o.downloadAccessList); + checkUnnamed781(o.downloadAccessList); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDownloadAccesses--; @@ -1328,30 +1328,30 @@ buildCounterGeolayerdataGeoBoundary--; } -buildUnnamed1031() { +buildUnnamed782() { var o = new core.List<api.GeolayerdataGeoBoundary>(); o.add(buildGeolayerdataGeoBoundary()); o.add(buildGeolayerdataGeoBoundary()); return o; } -checkUnnamed1031(core.List<api.GeolayerdataGeoBoundary> o) { +checkUnnamed782(core.List<api.GeolayerdataGeoBoundary> o) { unittest.expect(o, unittest.hasLength(2)); checkGeolayerdataGeoBoundary(o[0]); checkGeolayerdataGeoBoundary(o[1]); } -buildUnnamed1032() { +buildUnnamed783() { var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); - o.add(buildUnnamed1031()); - o.add(buildUnnamed1031()); + o.add(buildUnnamed782()); + o.add(buildUnnamed782()); return o; } -checkUnnamed1032(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { +checkUnnamed783(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1031(o[0]); - checkUnnamed1031(o[1]); + checkUnnamed782(o[0]); + checkUnnamed782(o[1]); } core.int buildCounterGeolayerdataGeoViewportHi = 0; @@ -1422,7 +1422,7 @@ var o = new api.GeolayerdataGeo(); buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - o.boundary = buildUnnamed1032(); + o.boundary = buildUnnamed783(); o.cachePolicy = "foo"; o.countryCode = "foo"; o.latitude = 42.0; @@ -1438,7 +1438,7 @@ checkGeolayerdataGeo(api.GeolayerdataGeo o) { buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - checkUnnamed1032(o.boundary); + checkUnnamed783(o.boundary); unittest.expect(o.cachePolicy, unittest.equals('foo')); unittest.expect(o.countryCode, unittest.equals('foo')); unittest.expect(o.latitude, unittest.equals(42.0)); @@ -1473,14 +1473,14 @@ buildCounterGeolayerdata--; } -buildUnnamed1033() { +buildUnnamed784() { var o = new core.List<api.Layersummary>(); o.add(buildLayersummary()); o.add(buildLayersummary()); return o; } -checkUnnamed1033(core.List<api.Layersummary> o) { +checkUnnamed784(core.List<api.Layersummary> o) { unittest.expect(o, unittest.hasLength(2)); checkLayersummary(o[0]); checkLayersummary(o[1]); @@ -1491,7 +1491,7 @@ var o = new api.Layersummaries(); buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - o.items = buildUnnamed1033(); + o.items = buildUnnamed784(); o.kind = "foo"; o.totalItems = 42; } @@ -1502,21 +1502,21 @@ checkLayersummaries(api.Layersummaries o) { buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - checkUnnamed1033(o.items); + checkUnnamed784(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterLayersummaries--; } -buildUnnamed1034() { +buildUnnamed785() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1034(core.List<core.String> o) { +checkUnnamed785(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1528,7 +1528,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { o.annotationCount = 42; - o.annotationTypes = buildUnnamed1034(); + o.annotationTypes = buildUnnamed785(); o.annotationsDataLink = "foo"; o.annotationsLink = "foo"; o.contentVersion = "foo"; @@ -1549,7 +1549,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { unittest.expect(o.annotationCount, unittest.equals(42)); - checkUnnamed1034(o.annotationTypes); + checkUnnamed785(o.annotationTypes); unittest.expect(o.annotationsDataLink, unittest.equals('foo')); unittest.expect(o.annotationsLink, unittest.equals('foo')); unittest.expect(o.contentVersion, unittest.equals('foo')); @@ -1592,14 +1592,14 @@ buildCounterMetadataItems--; } -buildUnnamed1035() { +buildUnnamed786() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed1035(core.List<api.MetadataItems> o) { +checkUnnamed786(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -1610,7 +1610,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed1035(); + o.items = buildUnnamed786(); o.kind = "foo"; } buildCounterMetadata--; @@ -1620,20 +1620,20 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1035(o.items); + checkUnnamed786(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed1036() { +buildUnnamed787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1036(core.List<core.String> o) { +checkUnnamed787(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1645,12 +1645,13 @@ buildCounterNotification++; if (buildCounterNotification < 3) { o.body = "foo"; - o.crmExperimentIds = buildUnnamed1036(); + o.crmExperimentIds = buildUnnamed787(); o.docId = "foo"; o.docType = "foo"; o.dontShowNotification = true; o.iconUrl = "foo"; o.kind = "foo"; + o.notificationGroup = "foo"; o.notificationType = "foo"; o.pcampaignId = "foo"; o.reason = "foo"; @@ -1666,12 +1667,13 @@ buildCounterNotification++; if (buildCounterNotification < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed1036(o.crmExperimentIds); + checkUnnamed787(o.crmExperimentIds); unittest.expect(o.docId, unittest.equals('foo')); unittest.expect(o.docType, unittest.equals('foo')); unittest.expect(o.dontShowNotification, unittest.isTrue); unittest.expect(o.iconUrl, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.notificationGroup, unittest.equals('foo')); unittest.expect(o.notificationType, unittest.equals('foo')); unittest.expect(o.pcampaignId, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); @@ -1711,14 +1713,14 @@ buildCounterOffersItemsItems--; } -buildUnnamed1037() { +buildUnnamed788() { var o = new core.List<api.OffersItemsItems>(); o.add(buildOffersItemsItems()); o.add(buildOffersItemsItems()); return o; } -checkUnnamed1037(core.List<api.OffersItemsItems> o) { +checkUnnamed788(core.List<api.OffersItemsItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItemsItems(o[0]); checkOffersItemsItems(o[1]); @@ -1732,7 +1734,7 @@ o.artUrl = "foo"; o.gservicesKey = "foo"; o.id = "foo"; - o.items = buildUnnamed1037(); + o.items = buildUnnamed788(); } buildCounterOffersItems--; return o; @@ -1744,19 +1746,19 @@ unittest.expect(o.artUrl, unittest.equals('foo')); unittest.expect(o.gservicesKey, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1037(o.items); + checkUnnamed788(o.items); } buildCounterOffersItems--; } -buildUnnamed1038() { +buildUnnamed789() { var o = new core.List<api.OffersItems>(); o.add(buildOffersItems()); o.add(buildOffersItems()); return o; } -checkUnnamed1038(core.List<api.OffersItems> o) { +checkUnnamed789(core.List<api.OffersItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItems(o[0]); checkOffersItems(o[1]); @@ -1767,7 +1769,7 @@ var o = new api.Offers(); buildCounterOffers++; if (buildCounterOffers < 3) { - o.items = buildUnnamed1038(); + o.items = buildUnnamed789(); o.kind = "foo"; } buildCounterOffers--; @@ -1777,7 +1779,7 @@ checkOffers(api.Offers o) { buildCounterOffers++; if (buildCounterOffers < 3) { - checkUnnamed1038(o.items); + checkUnnamed789(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOffers--; @@ -1943,14 +1945,14 @@ buildCounterSeriesSeries--; } -buildUnnamed1039() { +buildUnnamed790() { var o = new core.List<api.SeriesSeries>(); o.add(buildSeriesSeries()); o.add(buildSeriesSeries()); return o; } -checkUnnamed1039(core.List<api.SeriesSeries> o) { +checkUnnamed790(core.List<api.SeriesSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkSeriesSeries(o[0]); checkSeriesSeries(o[1]); @@ -1962,7 +1964,7 @@ buildCounterSeries++; if (buildCounterSeries < 3) { o.kind = "foo"; - o.series = buildUnnamed1039(); + o.series = buildUnnamed790(); } buildCounterSeries--; return o; @@ -1972,19 +1974,19 @@ buildCounterSeries++; if (buildCounterSeries < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1039(o.series); + checkUnnamed790(o.series); } buildCounterSeries--; } -buildUnnamed1040() { +buildUnnamed791() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1040(core.List<api.Volume> o) { +checkUnnamed791(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1996,7 +1998,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { o.kind = "foo"; - o.member = buildUnnamed1040(); + o.member = buildUnnamed791(); o.nextPageToken = "foo"; } buildCounterSeriesmembership--; @@ -2007,7 +2009,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1040(o.member); + checkUnnamed791(o.member); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSeriesmembership--; @@ -2228,14 +2230,14 @@ buildCounterVolumeLayerInfoLayers--; } -buildUnnamed1041() { +buildUnnamed792() { var o = new core.List<api.VolumeLayerInfoLayers>(); o.add(buildVolumeLayerInfoLayers()); o.add(buildVolumeLayerInfoLayers()); return o; } -checkUnnamed1041(core.List<api.VolumeLayerInfoLayers> o) { +checkUnnamed792(core.List<api.VolumeLayerInfoLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeLayerInfoLayers(o[0]); checkVolumeLayerInfoLayers(o[1]); @@ -2246,7 +2248,7 @@ var o = new api.VolumeLayerInfo(); buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - o.layers = buildUnnamed1041(); + o.layers = buildUnnamed792(); } buildCounterVolumeLayerInfo--; return o; @@ -2255,7 +2257,7 @@ checkVolumeLayerInfo(api.VolumeLayerInfo o) { buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - checkUnnamed1041(o.layers); + checkUnnamed792(o.layers); } buildCounterVolumeLayerInfo--; } @@ -2390,14 +2392,14 @@ buildCounterVolumeSaleInfoOffers--; } -buildUnnamed1042() { +buildUnnamed793() { var o = new core.List<api.VolumeSaleInfoOffers>(); o.add(buildVolumeSaleInfoOffers()); o.add(buildVolumeSaleInfoOffers()); return o; } -checkUnnamed1042(core.List<api.VolumeSaleInfoOffers> o) { +checkUnnamed793(core.List<api.VolumeSaleInfoOffers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeSaleInfoOffers(o[0]); checkVolumeSaleInfoOffers(o[1]); @@ -2433,7 +2435,7 @@ o.country = "foo"; o.isEbook = true; o.listPrice = buildVolumeSaleInfoListPrice(); - o.offers = buildUnnamed1042(); + o.offers = buildUnnamed793(); o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); o.retailPrice = buildVolumeSaleInfoRetailPrice(); o.saleability = "foo"; @@ -2449,7 +2451,7 @@ unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.isEbook, unittest.isTrue); checkVolumeSaleInfoListPrice(o.listPrice); - checkUnnamed1042(o.offers); + checkUnnamed793(o.offers); unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkVolumeSaleInfoRetailPrice(o.retailPrice); unittest.expect(o.saleability, unittest.equals('foo')); @@ -2619,27 +2621,27 @@ buildCounterVolumeUserInfo--; } -buildUnnamed1043() { +buildUnnamed794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1043(core.List<core.String> o) { +checkUnnamed794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1044() { +buildUnnamed795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1044(core.List<core.String> o) { +checkUnnamed795(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2718,14 +2720,14 @@ buildCounterVolumeVolumeInfoIndustryIdentifiers--; } -buildUnnamed1045() { +buildUnnamed796() { var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); return o; } -checkUnnamed1045(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { +checkUnnamed796(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeVolumeInfoIndustryIdentifiers(o[0]); checkVolumeVolumeInfoIndustryIdentifiers(o[1]); @@ -2762,15 +2764,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { o.allowAnonLogging = true; - o.authors = buildUnnamed1043(); + o.authors = buildUnnamed794(); o.averageRating = 42.0; o.canonicalVolumeLink = "foo"; - o.categories = buildUnnamed1044(); + o.categories = buildUnnamed795(); o.contentVersion = "foo"; o.description = "foo"; o.dimensions = buildVolumeVolumeInfoDimensions(); o.imageLinks = buildVolumeVolumeInfoImageLinks(); - o.industryIdentifiers = buildUnnamed1045(); + o.industryIdentifiers = buildUnnamed796(); o.infoLink = "foo"; o.language = "foo"; o.mainCategory = "foo"; @@ -2797,15 +2799,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { unittest.expect(o.allowAnonLogging, unittest.isTrue); - checkUnnamed1043(o.authors); + checkUnnamed794(o.authors); unittest.expect(o.averageRating, unittest.equals(42.0)); unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); - checkUnnamed1044(o.categories); + checkUnnamed795(o.categories); unittest.expect(o.contentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkVolumeVolumeInfoDimensions(o.dimensions); checkVolumeVolumeInfoImageLinks(o.imageLinks); - checkUnnamed1045(o.industryIdentifiers); + checkUnnamed796(o.industryIdentifiers); unittest.expect(o.infoLink, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mainCategory, unittest.equals('foo')); @@ -2866,14 +2868,14 @@ buildCounterVolume--; } -buildUnnamed1046() { +buildUnnamed797() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1046(core.List<api.Volume> o) { +checkUnnamed797(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -2884,7 +2886,7 @@ var o = new api.Volume2(); buildCounterVolume2++; if (buildCounterVolume2 < 3) { - o.items = buildUnnamed1046(); + o.items = buildUnnamed797(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2895,7 +2897,7 @@ checkVolume2(api.Volume2 o) { buildCounterVolume2++; if (buildCounterVolume2 < 3) { - checkUnnamed1046(o.items); + checkUnnamed797(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2927,14 +2929,14 @@ buildCounterVolumeannotationContentRanges--; } -buildUnnamed1047() { +buildUnnamed798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1047(core.List<core.String> o) { +checkUnnamed798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2954,7 +2956,7 @@ o.id = "foo"; o.kind = "foo"; o.layerId = "foo"; - o.pageIds = buildUnnamed1047(); + o.pageIds = buildUnnamed798(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2976,7 +2978,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); - checkUnnamed1047(o.pageIds); + checkUnnamed798(o.pageIds); unittest.expect(o.selectedText, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2985,14 +2987,14 @@ buildCounterVolumeannotation--; } -buildUnnamed1048() { +buildUnnamed799() { var o = new core.List<api.Volumeannotation>(); o.add(buildVolumeannotation()); o.add(buildVolumeannotation()); return o; } -checkUnnamed1048(core.List<api.Volumeannotation> o) { +checkUnnamed799(core.List<api.Volumeannotation> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeannotation(o[0]); checkVolumeannotation(o[1]); @@ -3003,7 +3005,7 @@ var o = new api.Volumeannotations(); buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - o.items = buildUnnamed1048(); + o.items = buildUnnamed799(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -3016,7 +3018,7 @@ checkVolumeannotations(api.Volumeannotations o) { buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - checkUnnamed1048(o.items); + checkUnnamed799(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -3025,14 +3027,14 @@ buildCounterVolumeannotations--; } -buildUnnamed1049() { +buildUnnamed800() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1049(core.List<api.Volume> o) { +checkUnnamed800(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3043,7 +3045,7 @@ var o = new api.Volumes(); buildCounterVolumes++; if (buildCounterVolumes < 3) { - o.items = buildUnnamed1049(); + o.items = buildUnnamed800(); o.kind = "foo"; o.totalItems = 42; } @@ -3054,7 +3056,7 @@ checkVolumes(api.Volumes o) { buildCounterVolumes++; if (buildCounterVolumes < 3) { - checkUnnamed1049(o.items); + checkUnnamed800(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -3082,14 +3084,14 @@ buildCounterVolumeseriesinfoVolumeSeriesIssue--; } -buildUnnamed1050() { +buildUnnamed801() { var o = new core.List<api.VolumeseriesinfoVolumeSeriesIssue>(); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); return o; } -checkUnnamed1050(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { +checkUnnamed801(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeriesIssue(o[0]); checkVolumeseriesinfoVolumeSeriesIssue(o[1]); @@ -3100,7 +3102,7 @@ var o = new api.VolumeseriesinfoVolumeSeries(); buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - o.issue = buildUnnamed1050(); + o.issue = buildUnnamed801(); o.orderNumber = 42; o.seriesBookType = "foo"; o.seriesId = "foo"; @@ -3112,7 +3114,7 @@ checkVolumeseriesinfoVolumeSeries(api.VolumeseriesinfoVolumeSeries o) { buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - checkUnnamed1050(o.issue); + checkUnnamed801(o.issue); unittest.expect(o.orderNumber, unittest.equals(42)); unittest.expect(o.seriesBookType, unittest.equals('foo')); unittest.expect(o.seriesId, unittest.equals('foo')); @@ -3120,14 +3122,14 @@ buildCounterVolumeseriesinfoVolumeSeries--; } -buildUnnamed1051() { +buildUnnamed802() { var o = new core.List<api.VolumeseriesinfoVolumeSeries>(); o.add(buildVolumeseriesinfoVolumeSeries()); o.add(buildVolumeseriesinfoVolumeSeries()); return o; } -checkUnnamed1051(core.List<api.VolumeseriesinfoVolumeSeries> o) { +checkUnnamed802(core.List<api.VolumeseriesinfoVolumeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeries(o[0]); checkVolumeseriesinfoVolumeSeries(o[1]); @@ -3141,7 +3143,7 @@ o.bookDisplayNumber = "foo"; o.kind = "foo"; o.shortSeriesBookTitle = "foo"; - o.volumeSeries = buildUnnamed1051(); + o.volumeSeries = buildUnnamed802(); } buildCounterVolumeseriesinfo--; return o; @@ -3153,162 +3155,162 @@ unittest.expect(o.bookDisplayNumber, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.shortSeriesBookTitle, unittest.equals('foo')); - checkUnnamed1051(o.volumeSeries); + checkUnnamed802(o.volumeSeries); } buildCounterVolumeseriesinfo--; } -buildUnnamed1052() { +buildUnnamed803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1052(core.List<core.String> o) { +checkUnnamed803(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1053() { +buildUnnamed804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1053(core.List<core.String> o) { +checkUnnamed804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1054() { +buildUnnamed805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1054(core.List<core.String> o) { +checkUnnamed805(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1055() { +buildUnnamed806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1055(core.List<core.String> o) { +checkUnnamed806(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1056() { +buildUnnamed807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1056(core.List<core.String> o) { +checkUnnamed807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1057() { +buildUnnamed808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1057(core.List<core.String> o) { +checkUnnamed808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1058() { +buildUnnamed809() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1058(core.List<core.String> o) { +checkUnnamed809(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1059() { +buildUnnamed810() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1059(core.List<core.String> o) { +checkUnnamed810(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1060() { +buildUnnamed811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1060(core.List<core.String> o) { +checkUnnamed811(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1061() { +buildUnnamed812() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1061(core.List<core.String> o) { +checkUnnamed812(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1062() { +buildUnnamed813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1062(core.List<core.String> o) { +checkUnnamed813(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1063() { +buildUnnamed814() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1063(core.List<core.String> o) { +checkUnnamed814(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4831,7 +4833,7 @@ var arg_volumeId = "foo"; var arg_layerId = "foo"; var arg_contentVersion = "foo"; - var arg_annotationDataId = buildUnnamed1052(); + var arg_annotationDataId = buildUnnamed803(); var arg_h = 42; var arg_locale = "foo"; var arg_maxResults = 42; @@ -5116,7 +5118,7 @@ var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_volumeIds = buildUnnamed1053(); + var arg_volumeIds = buildUnnamed804(); var arg_cpksver = "foo"; var arg_locale = "foo"; var arg_source = "foo"; @@ -5229,11 +5231,11 @@ var arg_source = "foo"; var arg_nonce = "foo"; var arg_cpksver = "foo"; - var arg_features = buildUnnamed1054(); + var arg_features = buildUnnamed805(); var arg_includeNonComicsSeries = true; var arg_locale = "foo"; var arg_showPreorders = true; - var arg_volumeIds = buildUnnamed1055(); + var arg_volumeIds = buildUnnamed806(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5446,7 +5448,7 @@ api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; var arg_contentVersion = "foo"; var arg_layerId = "foo"; - var arg_layerIds = buildUnnamed1056(); + var arg_layerIds = buildUnnamed807(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_showDeleted = true; @@ -5509,7 +5511,7 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_layerIds = buildUnnamed1057(); + var arg_layerIds = buildUnnamed808(); var arg_volumeId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -6236,7 +6238,7 @@ var mock = new HttpServerMock(); api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; - var arg_categoryId = buildUnnamed1058(); + var arg_categoryId = buildUnnamed809(); var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_pageSize = 42; @@ -6527,7 +6529,7 @@ var mock = new HttpServerMock(); api.SeriesResourceApi res = new api.BooksApi(mock).series; - var arg_seriesId = buildUnnamed1059(); + var arg_seriesId = buildUnnamed810(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -6836,11 +6838,11 @@ var mock = new HttpServerMock(); api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks; - var arg_acquireMethod = buildUnnamed1060(); + var arg_acquireMethod = buildUnnamed811(); var arg_country = "foo"; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1061(); + var arg_processingState = buildUnnamed812(); var arg_source = "foo"; var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -7009,10 +7011,10 @@ api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.useruploaded; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1062(); + var arg_processingState = buildUnnamed813(); var arg_source = "foo"; var arg_startIndex = 42; - var arg_volumeId = buildUnnamed1063(); + var arg_volumeId = buildUnnamed814(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/calendar/v3_test.dart b/generated/googleapis/test/calendar/v3_test.dart index e295f16..4f8400b 100644 --- a/generated/googleapis/test/calendar/v3_test.dart +++ b/generated/googleapis/test/calendar/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1218() { +buildUnnamed969() { var o = new core.List<api.AclRule>(); o.add(buildAclRule()); o.add(buildAclRule()); return o; } -checkUnnamed1218(core.List<api.AclRule> o) { +checkUnnamed969(core.List<api.AclRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAclRule(o[0]); checkAclRule(o[1]); @@ -70,7 +70,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { o.etag = "foo"; - o.items = buildUnnamed1218(); + o.items = buildUnnamed969(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -83,7 +83,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1218(o.items); + checkUnnamed969(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -170,14 +170,14 @@ buildCounterCalendar--; } -buildUnnamed1219() { +buildUnnamed970() { var o = new core.List<api.CalendarListEntry>(); o.add(buildCalendarListEntry()); o.add(buildCalendarListEntry()); return o; } -checkUnnamed1219(core.List<api.CalendarListEntry> o) { +checkUnnamed970(core.List<api.CalendarListEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarListEntry(o[0]); checkCalendarListEntry(o[1]); @@ -189,7 +189,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { o.etag = "foo"; - o.items = buildUnnamed1219(); + o.items = buildUnnamed970(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -202,7 +202,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1219(o.items); + checkUnnamed970(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -210,27 +210,27 @@ buildCounterCalendarList--; } -buildUnnamed1220() { +buildUnnamed971() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1220(core.List<api.EventReminder> o) { +checkUnnamed971(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1221() { +buildUnnamed972() { var o = new core.List<api.CalendarNotification>(); o.add(buildCalendarNotification()); o.add(buildCalendarNotification()); return o; } -checkUnnamed1221(core.List<api.CalendarNotification> o) { +checkUnnamed972(core.List<api.CalendarNotification> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarNotification(o[0]); checkCalendarNotification(o[1]); @@ -241,7 +241,7 @@ var o = new api.CalendarListEntryNotificationSettings(); buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - o.notifications = buildUnnamed1221(); + o.notifications = buildUnnamed972(); } buildCounterCalendarListEntryNotificationSettings--; return o; @@ -250,7 +250,7 @@ checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSettings o) { buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - checkUnnamed1221(o.notifications); + checkUnnamed972(o.notifications); } buildCounterCalendarListEntryNotificationSettings--; } @@ -263,7 +263,7 @@ o.accessRole = "foo"; o.backgroundColor = "foo"; o.colorId = "foo"; - o.defaultReminders = buildUnnamed1220(); + o.defaultReminders = buildUnnamed971(); o.deleted = true; o.description = "foo"; o.etag = "foo"; @@ -289,7 +289,7 @@ unittest.expect(o.accessRole, unittest.equals('foo')); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.colorId, unittest.equals('foo')); - checkUnnamed1220(o.defaultReminders); + checkUnnamed971(o.defaultReminders); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); @@ -329,14 +329,14 @@ buildCounterCalendarNotification--; } -buildUnnamed1222() { +buildUnnamed973() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1222(core.Map<core.String, core.String> o) { +checkUnnamed973(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -351,7 +351,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1222(); + o.params = buildUnnamed973(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -369,7 +369,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1222(o.params); + checkUnnamed973(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -400,27 +400,27 @@ buildCounterColorDefinition--; } -buildUnnamed1223() { +buildUnnamed974() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1223(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed974(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); } -buildUnnamed1224() { +buildUnnamed975() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1224(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed975(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); @@ -431,8 +431,8 @@ var o = new api.Colors(); buildCounterColors++; if (buildCounterColors < 3) { - o.calendar = buildUnnamed1223(); - o.event = buildUnnamed1224(); + o.calendar = buildUnnamed974(); + o.event = buildUnnamed975(); o.kind = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); } @@ -443,8 +443,8 @@ checkColors(api.Colors o) { buildCounterColors++; if (buildCounterColors < 3) { - checkUnnamed1223(o.calendar); - checkUnnamed1224(o.event); + checkUnnamed974(o.calendar); + checkUnnamed975(o.event); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } @@ -472,27 +472,27 @@ buildCounterError--; } -buildUnnamed1225() { +buildUnnamed976() { var o = new core.List<api.EventAttachment>(); o.add(buildEventAttachment()); o.add(buildEventAttachment()); return o; } -checkUnnamed1225(core.List<api.EventAttachment> o) { +checkUnnamed976(core.List<api.EventAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttachment(o[0]); checkEventAttachment(o[1]); } -buildUnnamed1226() { +buildUnnamed977() { var o = new core.List<api.EventAttendee>(); o.add(buildEventAttendee()); o.add(buildEventAttendee()); return o; } -checkUnnamed1226(core.List<api.EventAttendee> o) { +checkUnnamed977(core.List<api.EventAttendee> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttendee(o[0]); checkEventAttendee(o[1]); @@ -523,27 +523,27 @@ buildCounterEventCreator--; } -buildUnnamed1227() { +buildUnnamed978() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1227(core.Map<core.String, core.String> o) { +checkUnnamed978(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1228() { +buildUnnamed979() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1228(core.Map<core.String, core.String> o) { +checkUnnamed979(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -554,8 +554,8 @@ var o = new api.EventExtendedProperties(); buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - o.private = buildUnnamed1227(); - o.shared = buildUnnamed1228(); + o.private = buildUnnamed978(); + o.shared = buildUnnamed979(); } buildCounterEventExtendedProperties--; return o; @@ -564,20 +564,20 @@ checkEventExtendedProperties(api.EventExtendedProperties o) { buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - checkUnnamed1227(o.private); - checkUnnamed1228(o.shared); + checkUnnamed978(o.private); + checkUnnamed979(o.shared); } buildCounterEventExtendedProperties--; } -buildUnnamed1229() { +buildUnnamed980() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1229(core.Map<core.String, core.String> o) { +checkUnnamed980(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -592,7 +592,7 @@ o.height = 42; o.iconLink = "foo"; o.link = "foo"; - o.preferences = buildUnnamed1229(); + o.preferences = buildUnnamed980(); o.title = "foo"; o.type = "foo"; o.width = 42; @@ -608,7 +608,7 @@ unittest.expect(o.height, unittest.equals(42)); unittest.expect(o.iconLink, unittest.equals('foo')); unittest.expect(o.link, unittest.equals('foo')); - checkUnnamed1229(o.preferences); + checkUnnamed980(o.preferences); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -641,27 +641,27 @@ buildCounterEventOrganizer--; } -buildUnnamed1230() { +buildUnnamed981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1230(core.List<core.String> o) { +checkUnnamed981(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1231() { +buildUnnamed982() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1231(core.List<api.EventReminder> o) { +checkUnnamed982(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); @@ -672,7 +672,7 @@ var o = new api.EventReminders(); buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - o.overrides = buildUnnamed1231(); + o.overrides = buildUnnamed982(); o.useDefault = true; } buildCounterEventReminders--; @@ -682,7 +682,7 @@ checkEventReminders(api.EventReminders o) { buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - checkUnnamed1231(o.overrides); + checkUnnamed982(o.overrides); unittest.expect(o.useDefault, unittest.isTrue); } buildCounterEventReminders--; @@ -715,8 +715,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { o.anyoneCanAddSelf = true; - o.attachments = buildUnnamed1225(); - o.attendees = buildUnnamed1226(); + o.attachments = buildUnnamed976(); + o.attendees = buildUnnamed977(); o.attendeesOmitted = true; o.colorId = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -740,7 +740,7 @@ o.organizer = buildEventOrganizer(); o.originalStartTime = buildEventDateTime(); o.privateCopy = true; - o.recurrence = buildUnnamed1230(); + o.recurrence = buildUnnamed981(); o.recurringEventId = "foo"; o.reminders = buildEventReminders(); o.sequence = 42; @@ -760,8 +760,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); - checkUnnamed1225(o.attachments); - checkUnnamed1226(o.attendees); + checkUnnamed976(o.attachments); + checkUnnamed977(o.attendees); unittest.expect(o.attendeesOmitted, unittest.isTrue); unittest.expect(o.colorId, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -785,7 +785,7 @@ checkEventOrganizer(o.organizer); checkEventDateTime(o.originalStartTime); unittest.expect(o.privateCopy, unittest.isTrue); - checkUnnamed1230(o.recurrence); + checkUnnamed981(o.recurrence); unittest.expect(o.recurringEventId, unittest.equals('foo')); checkEventReminders(o.reminders); unittest.expect(o.sequence, unittest.equals(42)); @@ -908,27 +908,27 @@ buildCounterEventReminder--; } -buildUnnamed1232() { +buildUnnamed983() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1232(core.List<api.EventReminder> o) { +checkUnnamed983(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1233() { +buildUnnamed984() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1233(core.List<api.Event> o) { +checkUnnamed984(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); @@ -940,10 +940,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { o.accessRole = "foo"; - o.defaultReminders = buildUnnamed1232(); + o.defaultReminders = buildUnnamed983(); o.description = "foo"; o.etag = "foo"; - o.items = buildUnnamed1233(); + o.items = buildUnnamed984(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -959,10 +959,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { unittest.expect(o.accessRole, unittest.equals('foo')); - checkUnnamed1232(o.defaultReminders); + checkUnnamed983(o.defaultReminders); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1233(o.items); + checkUnnamed984(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -973,27 +973,27 @@ buildCounterEvents--; } -buildUnnamed1234() { +buildUnnamed985() { var o = new core.List<api.TimePeriod>(); o.add(buildTimePeriod()); o.add(buildTimePeriod()); return o; } -checkUnnamed1234(core.List<api.TimePeriod> o) { +checkUnnamed985(core.List<api.TimePeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkTimePeriod(o[0]); checkTimePeriod(o[1]); } -buildUnnamed1235() { +buildUnnamed986() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1235(core.List<api.Error> o) { +checkUnnamed986(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1004,8 +1004,8 @@ var o = new api.FreeBusyCalendar(); buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - o.busy = buildUnnamed1234(); - o.errors = buildUnnamed1235(); + o.busy = buildUnnamed985(); + o.errors = buildUnnamed986(); } buildCounterFreeBusyCalendar--; return o; @@ -1014,33 +1014,33 @@ checkFreeBusyCalendar(api.FreeBusyCalendar o) { buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - checkUnnamed1234(o.busy); - checkUnnamed1235(o.errors); + checkUnnamed985(o.busy); + checkUnnamed986(o.errors); } buildCounterFreeBusyCalendar--; } -buildUnnamed1236() { +buildUnnamed987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1236(core.List<core.String> o) { +checkUnnamed987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1237() { +buildUnnamed988() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1237(core.List<api.Error> o) { +checkUnnamed988(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -1051,8 +1051,8 @@ var o = new api.FreeBusyGroup(); buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - o.calendars = buildUnnamed1236(); - o.errors = buildUnnamed1237(); + o.calendars = buildUnnamed987(); + o.errors = buildUnnamed988(); } buildCounterFreeBusyGroup--; return o; @@ -1061,20 +1061,20 @@ checkFreeBusyGroup(api.FreeBusyGroup o) { buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - checkUnnamed1236(o.calendars); - checkUnnamed1237(o.errors); + checkUnnamed987(o.calendars); + checkUnnamed988(o.errors); } buildCounterFreeBusyGroup--; } -buildUnnamed1238() { +buildUnnamed989() { var o = new core.List<api.FreeBusyRequestItem>(); o.add(buildFreeBusyRequestItem()); o.add(buildFreeBusyRequestItem()); return o; } -checkUnnamed1238(core.List<api.FreeBusyRequestItem> o) { +checkUnnamed989(core.List<api.FreeBusyRequestItem> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyRequestItem(o[0]); checkFreeBusyRequestItem(o[1]); @@ -1087,7 +1087,7 @@ if (buildCounterFreeBusyRequest < 3) { o.calendarExpansionMax = 42; o.groupExpansionMax = 42; - o.items = buildUnnamed1238(); + o.items = buildUnnamed989(); o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); o.timeZone = "foo"; @@ -1101,7 +1101,7 @@ if (buildCounterFreeBusyRequest < 3) { unittest.expect(o.calendarExpansionMax, unittest.equals(42)); unittest.expect(o.groupExpansionMax, unittest.equals(42)); - checkUnnamed1238(o.items); + checkUnnamed989(o.items); unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeZone, unittest.equals('foo')); @@ -1128,27 +1128,27 @@ buildCounterFreeBusyRequestItem--; } -buildUnnamed1239() { +buildUnnamed990() { var o = new core.Map<core.String, api.FreeBusyCalendar>(); o["x"] = buildFreeBusyCalendar(); o["y"] = buildFreeBusyCalendar(); return o; } -checkUnnamed1239(core.Map<core.String, api.FreeBusyCalendar> o) { +checkUnnamed990(core.Map<core.String, api.FreeBusyCalendar> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyCalendar(o["x"]); checkFreeBusyCalendar(o["y"]); } -buildUnnamed1240() { +buildUnnamed991() { var o = new core.Map<core.String, api.FreeBusyGroup>(); o["x"] = buildFreeBusyGroup(); o["y"] = buildFreeBusyGroup(); return o; } -checkUnnamed1240(core.Map<core.String, api.FreeBusyGroup> o) { +checkUnnamed991(core.Map<core.String, api.FreeBusyGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyGroup(o["x"]); checkFreeBusyGroup(o["y"]); @@ -1159,8 +1159,8 @@ var o = new api.FreeBusyResponse(); buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - o.calendars = buildUnnamed1239(); - o.groups = buildUnnamed1240(); + o.calendars = buildUnnamed990(); + o.groups = buildUnnamed991(); o.kind = "foo"; o.timeMax = core.DateTime.parse("2002-02-27T14:01:02"); o.timeMin = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1172,8 +1172,8 @@ checkFreeBusyResponse(api.FreeBusyResponse o) { buildCounterFreeBusyResponse++; if (buildCounterFreeBusyResponse < 3) { - checkUnnamed1239(o.calendars); - checkUnnamed1240(o.groups); + checkUnnamed990(o.calendars); + checkUnnamed991(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.timeMax, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeMin, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -1206,14 +1206,14 @@ buildCounterSetting--; } -buildUnnamed1241() { +buildUnnamed992() { var o = new core.List<api.Setting>(); o.add(buildSetting()); o.add(buildSetting()); return o; } -checkUnnamed1241(core.List<api.Setting> o) { +checkUnnamed992(core.List<api.Setting> o) { unittest.expect(o, unittest.hasLength(2)); checkSetting(o[0]); checkSetting(o[1]); @@ -1225,7 +1225,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.etag = "foo"; - o.items = buildUnnamed1241(); + o.items = buildUnnamed992(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -1238,7 +1238,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1241(o.items); + checkUnnamed992(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); @@ -1267,53 +1267,53 @@ buildCounterTimePeriod--; } -buildUnnamed1242() { +buildUnnamed993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1242(core.List<core.String> o) { +checkUnnamed993(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1243() { +buildUnnamed994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1243(core.List<core.String> o) { +checkUnnamed994(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1244() { +buildUnnamed995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1244(core.List<core.String> o) { +checkUnnamed995(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1245() { +buildUnnamed996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1245(core.List<core.String> o) { +checkUnnamed996(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3148,9 +3148,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed1242(); + var arg_privateExtendedProperty = buildUnnamed993(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1243(); + var arg_sharedExtendedProperty = buildUnnamed994(); var arg_showDeleted = true; var arg_showHiddenInvitations = true; var arg_singleEvents = true; @@ -3496,9 +3496,9 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed1244(); + var arg_privateExtendedProperty = buildUnnamed995(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1245(); + var arg_sharedExtendedProperty = buildUnnamed996(); var arg_showDeleted = true; var arg_showHiddenInvitations = true; var arg_singleEvents = true;
diff --git a/generated/googleapis/test/civicinfo/v2_test.dart b/generated/googleapis/test/civicinfo/v2_test.dart index 5ca36d1..302b995 100644 --- a/generated/googleapis/test/civicinfo/v2_test.dart +++ b/generated/googleapis/test/civicinfo/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2675() { +buildUnnamed2463() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2675(core.List<api.Source> o) { +checkUnnamed2463(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -73,7 +73,7 @@ o.id = "foo"; o.localJurisdiction = buildAdministrationRegion(); o.name = "foo"; - o.sources = buildUnnamed2675(); + o.sources = buildUnnamed2463(); } buildCounterAdministrationRegion--; return o; @@ -86,45 +86,45 @@ unittest.expect(o.id, unittest.equals('foo')); checkAdministrationRegion(o.localJurisdiction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2675(o.sources); + checkUnnamed2463(o.sources); } buildCounterAdministrationRegion--; } -buildUnnamed2676() { +buildUnnamed2464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2676(core.List<core.String> o) { +checkUnnamed2464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2677() { +buildUnnamed2465() { var o = new core.List<api.ElectionOfficial>(); o.add(buildElectionOfficial()); o.add(buildElectionOfficial()); return o; } -checkUnnamed2677(core.List<api.ElectionOfficial> o) { +checkUnnamed2465(core.List<api.ElectionOfficial> o) { unittest.expect(o, unittest.hasLength(2)); checkElectionOfficial(o[0]); checkElectionOfficial(o[1]); } -buildUnnamed2678() { +buildUnnamed2466() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2678(core.List<core.String> o) { +checkUnnamed2466(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -136,18 +136,18 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { o.absenteeVotingInfoUrl = "foo"; - o.addressLines = buildUnnamed2676(); + o.addressLines = buildUnnamed2464(); o.ballotInfoUrl = "foo"; o.correspondenceAddress = buildSimpleAddressType(); o.electionInfoUrl = "foo"; - o.electionOfficials = buildUnnamed2677(); + o.electionOfficials = buildUnnamed2465(); o.electionRegistrationConfirmationUrl = "foo"; o.electionRegistrationUrl = "foo"; o.electionRulesUrl = "foo"; o.hoursOfOperation = "foo"; o.name = "foo"; o.physicalAddress = buildSimpleAddressType(); - o.voterServices = buildUnnamed2678(); + o.voterServices = buildUnnamed2466(); o.votingLocationFinderUrl = "foo"; } buildCounterAdministrativeBody--; @@ -158,31 +158,31 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); - checkUnnamed2676(o.addressLines); + checkUnnamed2464(o.addressLines); unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); checkSimpleAddressType(o.correspondenceAddress); unittest.expect(o.electionInfoUrl, unittest.equals('foo')); - checkUnnamed2677(o.electionOfficials); + checkUnnamed2465(o.electionOfficials); unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo')); unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); unittest.expect(o.electionRulesUrl, unittest.equals('foo')); unittest.expect(o.hoursOfOperation, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkSimpleAddressType(o.physicalAddress); - checkUnnamed2678(o.voterServices); + checkUnnamed2466(o.voterServices); unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); } buildCounterAdministrativeBody--; } -buildUnnamed2679() { +buildUnnamed2467() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2679(core.List<api.Channel> o) { +checkUnnamed2467(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -194,7 +194,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { o.candidateUrl = "foo"; - o.channels = buildUnnamed2679(); + o.channels = buildUnnamed2467(); o.email = "foo"; o.name = "foo"; o.orderOnBallot = "foo"; @@ -210,7 +210,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { unittest.expect(o.candidateUrl, unittest.equals('foo')); - checkUnnamed2679(o.channels); + checkUnnamed2467(o.channels); unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.orderOnBallot, unittest.equals('foo')); @@ -242,66 +242,66 @@ buildCounterChannel--; } -buildUnnamed2680() { +buildUnnamed2468() { var o = new core.List<api.Candidate>(); o.add(buildCandidate()); o.add(buildCandidate()); return o; } -checkUnnamed2680(core.List<api.Candidate> o) { +checkUnnamed2468(core.List<api.Candidate> o) { unittest.expect(o, unittest.hasLength(2)); checkCandidate(o[0]); checkCandidate(o[1]); } -buildUnnamed2681() { +buildUnnamed2469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2681(core.List<core.String> o) { +checkUnnamed2469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2682() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2682(core.List<core.String> o) { +checkUnnamed2470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2683() { +buildUnnamed2471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2683(core.List<core.String> o) { +checkUnnamed2471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2684() { +buildUnnamed2472() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2684(core.List<api.Source> o) { +checkUnnamed2472(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -313,16 +313,16 @@ buildCounterContest++; if (buildCounterContest < 3) { o.ballotPlacement = "foo"; - o.candidates = buildUnnamed2680(); + o.candidates = buildUnnamed2468(); o.district = buildElectoralDistrict(); o.electorateSpecifications = "foo"; o.id = "foo"; - o.level = buildUnnamed2681(); + o.level = buildUnnamed2469(); o.numberElected = "foo"; o.numberVotingFor = "foo"; o.office = "foo"; o.primaryParty = "foo"; - o.referendumBallotResponses = buildUnnamed2682(); + o.referendumBallotResponses = buildUnnamed2470(); o.referendumBrief = "foo"; o.referendumConStatement = "foo"; o.referendumEffectOfAbstain = "foo"; @@ -332,8 +332,8 @@ o.referendumText = "foo"; o.referendumTitle = "foo"; o.referendumUrl = "foo"; - o.roles = buildUnnamed2683(); - o.sources = buildUnnamed2684(); + o.roles = buildUnnamed2471(); + o.sources = buildUnnamed2472(); o.special = "foo"; o.type = "foo"; } @@ -345,16 +345,16 @@ buildCounterContest++; if (buildCounterContest < 3) { unittest.expect(o.ballotPlacement, unittest.equals('foo')); - checkUnnamed2680(o.candidates); + checkUnnamed2468(o.candidates); checkElectoralDistrict(o.district); unittest.expect(o.electorateSpecifications, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2681(o.level); + checkUnnamed2469(o.level); unittest.expect(o.numberElected, unittest.equals('foo')); unittest.expect(o.numberVotingFor, unittest.equals('foo')); unittest.expect(o.office, unittest.equals('foo')); unittest.expect(o.primaryParty, unittest.equals('foo')); - checkUnnamed2682(o.referendumBallotResponses); + checkUnnamed2470(o.referendumBallotResponses); unittest.expect(o.referendumBrief, unittest.equals('foo')); unittest.expect(o.referendumConStatement, unittest.equals('foo')); unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); @@ -364,8 +364,8 @@ unittest.expect(o.referendumText, unittest.equals('foo')); unittest.expect(o.referendumTitle, unittest.equals('foo')); unittest.expect(o.referendumUrl, unittest.equals('foo')); - checkUnnamed2683(o.roles); - checkUnnamed2684(o.sources); + checkUnnamed2471(o.roles); + checkUnnamed2472(o.sources); unittest.expect(o.special, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -429,14 +429,14 @@ buildCounterDivisionSearchRequest--; } -buildUnnamed2685() { +buildUnnamed2473() { var o = new core.List<api.DivisionSearchResult>(); o.add(buildDivisionSearchResult()); o.add(buildDivisionSearchResult()); return o; } -checkUnnamed2685(core.List<api.DivisionSearchResult> o) { +checkUnnamed2473(core.List<api.DivisionSearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkDivisionSearchResult(o[0]); checkDivisionSearchResult(o[1]); @@ -448,7 +448,7 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed2685(); + o.results = buildUnnamed2473(); } buildCounterDivisionSearchResponse--; return o; @@ -458,19 +458,19 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2685(o.results); + checkUnnamed2473(o.results); } buildCounterDivisionSearchResponse--; } -buildUnnamed2686() { +buildUnnamed2474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2686(core.List<core.String> o) { +checkUnnamed2474(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -481,7 +481,7 @@ var o = new api.DivisionSearchResult(); buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - o.aliases = buildUnnamed2686(); + o.aliases = buildUnnamed2474(); o.name = "foo"; o.ocdId = "foo"; } @@ -492,7 +492,7 @@ checkDivisionSearchResult(api.DivisionSearchResult o) { buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - checkUnnamed2686(o.aliases); + checkUnnamed2474(o.aliases); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ocdId, unittest.equals('foo')); } @@ -570,14 +570,14 @@ buildCounterElectionsQueryRequest--; } -buildUnnamed2687() { +buildUnnamed2475() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2687(core.List<api.Election> o) { +checkUnnamed2475(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); @@ -588,7 +588,7 @@ var o = new api.ElectionsQueryResponse(); buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - o.elections = buildUnnamed2687(); + o.elections = buildUnnamed2475(); o.kind = "foo"; } buildCounterElectionsQueryResponse--; @@ -598,7 +598,7 @@ checkElectionsQueryResponse(api.ElectionsQueryResponse o) { buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - checkUnnamed2687(o.elections); + checkUnnamed2475(o.elections); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterElectionsQueryResponse--; @@ -629,27 +629,27 @@ buildCounterElectoralDistrict--; } -buildUnnamed2688() { +buildUnnamed2476() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2688(core.List<core.String> o) { +checkUnnamed2476(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2689() { +buildUnnamed2477() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2689(core.List<core.int> o) { +checkUnnamed2477(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -660,9 +660,9 @@ var o = new api.GeographicDivision(); buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - o.alsoKnownAs = buildUnnamed2688(); + o.alsoKnownAs = buildUnnamed2476(); o.name = "foo"; - o.officeIndices = buildUnnamed2689(); + o.officeIndices = buildUnnamed2477(); } buildCounterGeographicDivision--; return o; @@ -671,60 +671,60 @@ checkGeographicDivision(api.GeographicDivision o) { buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - checkUnnamed2688(o.alsoKnownAs); + checkUnnamed2476(o.alsoKnownAs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2689(o.officeIndices); + checkUnnamed2477(o.officeIndices); } buildCounterGeographicDivision--; } -buildUnnamed2690() { +buildUnnamed2478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2690(core.List<core.String> o) { +checkUnnamed2478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2691() { +buildUnnamed2479() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2691(core.List<core.int> o) { +checkUnnamed2479(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed2692() { +buildUnnamed2480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2692(core.List<core.String> o) { +checkUnnamed2480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2693() { +buildUnnamed2481() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2693(core.List<api.Source> o) { +checkUnnamed2481(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -736,11 +736,11 @@ buildCounterOffice++; if (buildCounterOffice < 3) { o.divisionId = "foo"; - o.levels = buildUnnamed2690(); + o.levels = buildUnnamed2478(); o.name = "foo"; - o.officialIndices = buildUnnamed2691(); - o.roles = buildUnnamed2692(); - o.sources = buildUnnamed2693(); + o.officialIndices = buildUnnamed2479(); + o.roles = buildUnnamed2480(); + o.sources = buildUnnamed2481(); } buildCounterOffice--; return o; @@ -750,75 +750,75 @@ buildCounterOffice++; if (buildCounterOffice < 3) { unittest.expect(o.divisionId, unittest.equals('foo')); - checkUnnamed2690(o.levels); + checkUnnamed2478(o.levels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2691(o.officialIndices); - checkUnnamed2692(o.roles); - checkUnnamed2693(o.sources); + checkUnnamed2479(o.officialIndices); + checkUnnamed2480(o.roles); + checkUnnamed2481(o.sources); } buildCounterOffice--; } -buildUnnamed2694() { +buildUnnamed2482() { var o = new core.List<api.SimpleAddressType>(); o.add(buildSimpleAddressType()); o.add(buildSimpleAddressType()); return o; } -checkUnnamed2694(core.List<api.SimpleAddressType> o) { +checkUnnamed2482(core.List<api.SimpleAddressType> o) { unittest.expect(o, unittest.hasLength(2)); checkSimpleAddressType(o[0]); checkSimpleAddressType(o[1]); } -buildUnnamed2695() { +buildUnnamed2483() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2695(core.List<api.Channel> o) { +checkUnnamed2483(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); } -buildUnnamed2696() { +buildUnnamed2484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2696(core.List<core.String> o) { +checkUnnamed2484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2697() { +buildUnnamed2485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2697(core.List<core.String> o) { +checkUnnamed2485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2698() { +buildUnnamed2486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2698(core.List<core.String> o) { +checkUnnamed2486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -829,14 +829,14 @@ var o = new api.Official(); buildCounterOfficial++; if (buildCounterOfficial < 3) { - o.address = buildUnnamed2694(); - o.channels = buildUnnamed2695(); - o.emails = buildUnnamed2696(); + o.address = buildUnnamed2482(); + o.channels = buildUnnamed2483(); + o.emails = buildUnnamed2484(); o.name = "foo"; o.party = "foo"; - o.phones = buildUnnamed2697(); + o.phones = buildUnnamed2485(); o.photoUrl = "foo"; - o.urls = buildUnnamed2698(); + o.urls = buildUnnamed2486(); } buildCounterOfficial--; return o; @@ -845,26 +845,26 @@ checkOfficial(api.Official o) { buildCounterOfficial++; if (buildCounterOfficial < 3) { - checkUnnamed2694(o.address); - checkUnnamed2695(o.channels); - checkUnnamed2696(o.emails); + checkUnnamed2482(o.address); + checkUnnamed2483(o.channels); + checkUnnamed2484(o.emails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.party, unittest.equals('foo')); - checkUnnamed2697(o.phones); + checkUnnamed2485(o.phones); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2698(o.urls); + checkUnnamed2486(o.urls); } buildCounterOfficial--; } -buildUnnamed2699() { +buildUnnamed2487() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2699(core.List<api.Source> o) { +checkUnnamed2487(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -881,7 +881,7 @@ o.name = "foo"; o.notes = "foo"; o.pollingHours = "foo"; - o.sources = buildUnnamed2699(); + o.sources = buildUnnamed2487(); o.startDate = "foo"; o.voterServices = "foo"; } @@ -898,21 +898,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.pollingHours, unittest.equals('foo')); - checkUnnamed2699(o.sources); + checkUnnamed2487(o.sources); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.voterServices, unittest.equals('foo')); } buildCounterPollingLocation--; } -buildUnnamed2700() { +buildUnnamed2488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2700(core.List<core.String> o) { +checkUnnamed2488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -923,7 +923,7 @@ var o = new api.PostalAddress(); buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - o.addressLines = buildUnnamed2700(); + o.addressLines = buildUnnamed2488(); o.administrativeAreaName = "foo"; o.countryName = "foo"; o.countryNameCode = "foo"; @@ -962,7 +962,7 @@ checkPostalAddress(api.PostalAddress o) { buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - checkUnnamed2700(o.addressLines); + checkUnnamed2488(o.addressLines); unittest.expect(o.administrativeAreaName, unittest.equals('foo')); unittest.expect(o.countryName, unittest.equals('foo')); unittest.expect(o.countryNameCode, unittest.equals('foo')); @@ -997,40 +997,40 @@ buildCounterPostalAddress--; } -buildUnnamed2701() { +buildUnnamed2489() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2701(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2489(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2702() { +buildUnnamed2490() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2702(core.List<api.Office> o) { +checkUnnamed2490(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2703() { +buildUnnamed2491() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2703(core.List<api.Official> o) { +checkUnnamed2491(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1041,9 +1041,9 @@ var o = new api.RepresentativeInfoData(); buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - o.divisions = buildUnnamed2701(); - o.offices = buildUnnamed2702(); - o.officials = buildUnnamed2703(); + o.divisions = buildUnnamed2489(); + o.offices = buildUnnamed2490(); + o.officials = buildUnnamed2491(); } buildCounterRepresentativeInfoData--; return o; @@ -1052,9 +1052,9 @@ checkRepresentativeInfoData(api.RepresentativeInfoData o) { buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - checkUnnamed2701(o.divisions); - checkUnnamed2702(o.offices); - checkUnnamed2703(o.officials); + checkUnnamed2489(o.divisions); + checkUnnamed2490(o.offices); + checkUnnamed2491(o.officials); } buildCounterRepresentativeInfoData--; } @@ -1078,40 +1078,40 @@ buildCounterRepresentativeInfoRequest--; } -buildUnnamed2704() { +buildUnnamed2492() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2704(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2492(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2705() { +buildUnnamed2493() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2705(core.List<api.Office> o) { +checkUnnamed2493(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2706() { +buildUnnamed2494() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2706(core.List<api.Official> o) { +checkUnnamed2494(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1122,11 +1122,11 @@ var o = new api.RepresentativeInfoResponse(); buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - o.divisions = buildUnnamed2704(); + o.divisions = buildUnnamed2492(); o.kind = "foo"; o.normalizedInput = buildSimpleAddressType(); - o.offices = buildUnnamed2705(); - o.officials = buildUnnamed2706(); + o.offices = buildUnnamed2493(); + o.officials = buildUnnamed2494(); } buildCounterRepresentativeInfoResponse--; return o; @@ -1135,11 +1135,11 @@ checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - checkUnnamed2704(o.divisions); + checkUnnamed2492(o.divisions); unittest.expect(o.kind, unittest.equals('foo')); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2705(o.offices); - checkUnnamed2706(o.officials); + checkUnnamed2493(o.offices); + checkUnnamed2494(o.officials); } buildCounterRepresentativeInfoResponse--; } @@ -1217,79 +1217,79 @@ buildCounterVoterInfoRequest--; } -buildUnnamed2707() { +buildUnnamed2495() { var o = new core.List<api.Contest>(); o.add(buildContest()); o.add(buildContest()); return o; } -checkUnnamed2707(core.List<api.Contest> o) { +checkUnnamed2495(core.List<api.Contest> o) { unittest.expect(o, unittest.hasLength(2)); checkContest(o[0]); checkContest(o[1]); } -buildUnnamed2708() { +buildUnnamed2496() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2708(core.List<api.PollingLocation> o) { +checkUnnamed2496(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2709() { +buildUnnamed2497() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2709(core.List<api.PollingLocation> o) { +checkUnnamed2497(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2710() { +buildUnnamed2498() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2710(core.List<api.Election> o) { +checkUnnamed2498(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); } -buildUnnamed2711() { +buildUnnamed2499() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2711(core.List<api.PollingLocation> o) { +checkUnnamed2499(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2712() { +buildUnnamed2500() { var o = new core.List<api.AdministrationRegion>(); o.add(buildAdministrationRegion()); o.add(buildAdministrationRegion()); return o; } -checkUnnamed2712(core.List<api.AdministrationRegion> o) { +checkUnnamed2500(core.List<api.AdministrationRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrationRegion(o[0]); checkAdministrationRegion(o[1]); @@ -1300,17 +1300,17 @@ var o = new api.VoterInfoResponse(); buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - o.contests = buildUnnamed2707(); - o.dropOffLocations = buildUnnamed2708(); - o.earlyVoteSites = buildUnnamed2709(); + o.contests = buildUnnamed2495(); + o.dropOffLocations = buildUnnamed2496(); + o.earlyVoteSites = buildUnnamed2497(); o.election = buildElection(); o.kind = "foo"; o.mailOnly = true; o.normalizedInput = buildSimpleAddressType(); - o.otherElections = buildUnnamed2710(); - o.pollingLocations = buildUnnamed2711(); + o.otherElections = buildUnnamed2498(); + o.pollingLocations = buildUnnamed2499(); o.precinctId = "foo"; - o.state = buildUnnamed2712(); + o.state = buildUnnamed2500(); } buildCounterVoterInfoResponse--; return o; @@ -1319,17 +1319,17 @@ checkVoterInfoResponse(api.VoterInfoResponse o) { buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - checkUnnamed2707(o.contests); - checkUnnamed2708(o.dropOffLocations); - checkUnnamed2709(o.earlyVoteSites); + checkUnnamed2495(o.contests); + checkUnnamed2496(o.dropOffLocations); + checkUnnamed2497(o.earlyVoteSites); checkElection(o.election); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mailOnly, unittest.isTrue); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2710(o.otherElections); - checkUnnamed2711(o.pollingLocations); + checkUnnamed2498(o.otherElections); + checkUnnamed2499(o.pollingLocations); unittest.expect(o.precinctId, unittest.equals('foo')); - checkUnnamed2712(o.state); + checkUnnamed2500(o.state); } buildCounterVoterInfoResponse--; } @@ -1359,53 +1359,53 @@ buildCounterVoterInfoSegmentResult--; } -buildUnnamed2713() { +buildUnnamed2501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2713(core.List<core.String> o) { +checkUnnamed2501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2714() { +buildUnnamed2502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2714(core.List<core.String> o) { +checkUnnamed2502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2715() { +buildUnnamed2503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2715(core.List<core.String> o) { +checkUnnamed2503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2716() { +buildUnnamed2504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2716(core.List<core.String> o) { +checkUnnamed2504(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1838,8 +1838,8 @@ var arg_request = buildRepresentativeInfoRequest(); var arg_address = "foo"; var arg_includeOffices = true; - var arg_levels = buildUnnamed2713(); - var arg_roles = buildUnnamed2714(); + var arg_levels = buildUnnamed2501(); + var arg_roles = buildUnnamed2502(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.RepresentativeInfoRequest.fromJson(json); checkRepresentativeInfoRequest(obj); @@ -1894,9 +1894,9 @@ api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; var arg_request = buildDivisionRepresentativeInfoRequest(); var arg_ocdId = "foo"; - var arg_levels = buildUnnamed2715(); + var arg_levels = buildUnnamed2503(); var arg_recursive = true; - var arg_roles = buildUnnamed2716(); + var arg_roles = buildUnnamed2504(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json); checkDivisionRepresentativeInfoRequest(obj);
diff --git a/generated/googleapis/test/classroom/v1_test.dart b/generated/googleapis/test/classroom/v1_test.dart index f2c575b..3a0d990 100644 --- a/generated/googleapis/test/classroom/v1_test.dart +++ b/generated/googleapis/test/classroom/v1_test.dart
@@ -70,14 +70,14 @@ buildCounterAssignment--; } -buildUnnamed903() { +buildUnnamed643() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed903(core.List<api.Attachment> o) { +checkUnnamed643(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -88,7 +88,7 @@ var o = new api.AssignmentSubmission(); buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - o.attachments = buildUnnamed903(); + o.attachments = buildUnnamed643(); } buildCounterAssignmentSubmission--; return o; @@ -97,7 +97,7 @@ checkAssignmentSubmission(api.AssignmentSubmission o) { buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - checkUnnamed903(o.attachments); + checkUnnamed643(o.attachments); } buildCounterAssignmentSubmission--; } @@ -127,14 +127,14 @@ buildCounterAttachment--; } -buildUnnamed904() { +buildUnnamed644() { var o = new core.List<api.CourseMaterialSet>(); o.add(buildCourseMaterialSet()); o.add(buildCourseMaterialSet()); return o; } -checkUnnamed904(core.List<api.CourseMaterialSet> o) { +checkUnnamed644(core.List<api.CourseMaterialSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterialSet(o[0]); checkCourseMaterialSet(o[1]); @@ -147,7 +147,7 @@ if (buildCounterCourse < 3) { o.alternateLink = "foo"; o.courseGroupEmail = "foo"; - o.courseMaterialSets = buildUnnamed904(); + o.courseMaterialSets = buildUnnamed644(); o.courseState = "foo"; o.creationTime = "foo"; o.description = "foo"; @@ -172,7 +172,7 @@ if (buildCounterCourse < 3) { unittest.expect(o.alternateLink, unittest.equals('foo')); unittest.expect(o.courseGroupEmail, unittest.equals('foo')); - checkUnnamed904(o.courseMaterialSets); + checkUnnamed644(o.courseMaterialSets); unittest.expect(o.courseState, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -235,14 +235,14 @@ buildCounterCourseMaterial--; } -buildUnnamed905() { +buildUnnamed645() { var o = new core.List<api.CourseMaterial>(); o.add(buildCourseMaterial()); o.add(buildCourseMaterial()); return o; } -checkUnnamed905(core.List<api.CourseMaterial> o) { +checkUnnamed645(core.List<api.CourseMaterial> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterial(o[0]); checkCourseMaterial(o[1]); @@ -253,7 +253,7 @@ var o = new api.CourseMaterialSet(); buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - o.materials = buildUnnamed905(); + o.materials = buildUnnamed645(); o.title = "foo"; } buildCounterCourseMaterialSet--; @@ -263,20 +263,20 @@ checkCourseMaterialSet(api.CourseMaterialSet o) { buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - checkUnnamed905(o.materials); + checkUnnamed645(o.materials); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCourseMaterialSet--; } -buildUnnamed906() { +buildUnnamed646() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed906(core.List<api.Material> o) { +checkUnnamed646(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -296,7 +296,7 @@ o.dueDate = buildDate(); o.dueTime = buildTimeOfDay(); o.id = "foo"; - o.materials = buildUnnamed906(); + o.materials = buildUnnamed646(); o.maxPoints = 42.0; o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); o.state = "foo"; @@ -321,7 +321,7 @@ checkDate(o.dueDate); checkTimeOfDay(o.dueTime); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed906(o.materials); + checkUnnamed646(o.materials); unittest.expect(o.maxPoints, unittest.equals(42.0)); checkMultipleChoiceQuestion(o.multipleChoiceQuestion); unittest.expect(o.state, unittest.equals('foo')); @@ -565,14 +565,14 @@ buildCounterLink--; } -buildUnnamed907() { +buildUnnamed647() { var o = new core.List<api.CourseAlias>(); o.add(buildCourseAlias()); o.add(buildCourseAlias()); return o; } -checkUnnamed907(core.List<api.CourseAlias> o) { +checkUnnamed647(core.List<api.CourseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseAlias(o[0]); checkCourseAlias(o[1]); @@ -583,7 +583,7 @@ var o = new api.ListCourseAliasesResponse(); buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - o.aliases = buildUnnamed907(); + o.aliases = buildUnnamed647(); o.nextPageToken = "foo"; } buildCounterListCourseAliasesResponse--; @@ -593,20 +593,20 @@ checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - checkUnnamed907(o.aliases); + checkUnnamed647(o.aliases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseAliasesResponse--; } -buildUnnamed908() { +buildUnnamed648() { var o = new core.List<api.CourseWork>(); o.add(buildCourseWork()); o.add(buildCourseWork()); return o; } -checkUnnamed908(core.List<api.CourseWork> o) { +checkUnnamed648(core.List<api.CourseWork> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseWork(o[0]); checkCourseWork(o[1]); @@ -617,7 +617,7 @@ var o = new api.ListCourseWorkResponse(); buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - o.courseWork = buildUnnamed908(); + o.courseWork = buildUnnamed648(); o.nextPageToken = "foo"; } buildCounterListCourseWorkResponse--; @@ -627,20 +627,20 @@ checkListCourseWorkResponse(api.ListCourseWorkResponse o) { buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - checkUnnamed908(o.courseWork); + checkUnnamed648(o.courseWork); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseWorkResponse--; } -buildUnnamed909() { +buildUnnamed649() { var o = new core.List<api.Course>(); o.add(buildCourse()); o.add(buildCourse()); return o; } -checkUnnamed909(core.List<api.Course> o) { +checkUnnamed649(core.List<api.Course> o) { unittest.expect(o, unittest.hasLength(2)); checkCourse(o[0]); checkCourse(o[1]); @@ -651,7 +651,7 @@ var o = new api.ListCoursesResponse(); buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - o.courses = buildUnnamed909(); + o.courses = buildUnnamed649(); o.nextPageToken = "foo"; } buildCounterListCoursesResponse--; @@ -661,20 +661,20 @@ checkListCoursesResponse(api.ListCoursesResponse o) { buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - checkUnnamed909(o.courses); + checkUnnamed649(o.courses); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoursesResponse--; } -buildUnnamed910() { +buildUnnamed650() { var o = new core.List<api.GuardianInvitation>(); o.add(buildGuardianInvitation()); o.add(buildGuardianInvitation()); return o; } -checkUnnamed910(core.List<api.GuardianInvitation> o) { +checkUnnamed650(core.List<api.GuardianInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardianInvitation(o[0]); checkGuardianInvitation(o[1]); @@ -685,7 +685,7 @@ var o = new api.ListGuardianInvitationsResponse(); buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - o.guardianInvitations = buildUnnamed910(); + o.guardianInvitations = buildUnnamed650(); o.nextPageToken = "foo"; } buildCounterListGuardianInvitationsResponse--; @@ -695,20 +695,20 @@ checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - checkUnnamed910(o.guardianInvitations); + checkUnnamed650(o.guardianInvitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardianInvitationsResponse--; } -buildUnnamed911() { +buildUnnamed651() { var o = new core.List<api.Guardian>(); o.add(buildGuardian()); o.add(buildGuardian()); return o; } -checkUnnamed911(core.List<api.Guardian> o) { +checkUnnamed651(core.List<api.Guardian> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardian(o[0]); checkGuardian(o[1]); @@ -719,7 +719,7 @@ var o = new api.ListGuardiansResponse(); buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - o.guardians = buildUnnamed911(); + o.guardians = buildUnnamed651(); o.nextPageToken = "foo"; } buildCounterListGuardiansResponse--; @@ -729,20 +729,20 @@ checkListGuardiansResponse(api.ListGuardiansResponse o) { buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - checkUnnamed911(o.guardians); + checkUnnamed651(o.guardians); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardiansResponse--; } -buildUnnamed912() { +buildUnnamed652() { var o = new core.List<api.Invitation>(); o.add(buildInvitation()); o.add(buildInvitation()); return o; } -checkUnnamed912(core.List<api.Invitation> o) { +checkUnnamed652(core.List<api.Invitation> o) { unittest.expect(o, unittest.hasLength(2)); checkInvitation(o[0]); checkInvitation(o[1]); @@ -753,7 +753,7 @@ var o = new api.ListInvitationsResponse(); buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - o.invitations = buildUnnamed912(); + o.invitations = buildUnnamed652(); o.nextPageToken = "foo"; } buildCounterListInvitationsResponse--; @@ -763,20 +763,20 @@ checkListInvitationsResponse(api.ListInvitationsResponse o) { buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - checkUnnamed912(o.invitations); + checkUnnamed652(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInvitationsResponse--; } -buildUnnamed913() { +buildUnnamed653() { var o = new core.List<api.StudentSubmission>(); o.add(buildStudentSubmission()); o.add(buildStudentSubmission()); return o; } -checkUnnamed913(core.List<api.StudentSubmission> o) { +checkUnnamed653(core.List<api.StudentSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkStudentSubmission(o[0]); checkStudentSubmission(o[1]); @@ -788,7 +788,7 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { o.nextPageToken = "foo"; - o.studentSubmissions = buildUnnamed913(); + o.studentSubmissions = buildUnnamed653(); } buildCounterListStudentSubmissionsResponse--; return o; @@ -798,19 +798,19 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed913(o.studentSubmissions); + checkUnnamed653(o.studentSubmissions); } buildCounterListStudentSubmissionsResponse--; } -buildUnnamed914() { +buildUnnamed654() { var o = new core.List<api.Student>(); o.add(buildStudent()); o.add(buildStudent()); return o; } -checkUnnamed914(core.List<api.Student> o) { +checkUnnamed654(core.List<api.Student> o) { unittest.expect(o, unittest.hasLength(2)); checkStudent(o[0]); checkStudent(o[1]); @@ -822,7 +822,7 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { o.nextPageToken = "foo"; - o.students = buildUnnamed914(); + o.students = buildUnnamed654(); } buildCounterListStudentsResponse--; return o; @@ -832,19 +832,19 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed914(o.students); + checkUnnamed654(o.students); } buildCounterListStudentsResponse--; } -buildUnnamed915() { +buildUnnamed655() { var o = new core.List<api.Teacher>(); o.add(buildTeacher()); o.add(buildTeacher()); return o; } -checkUnnamed915(core.List<api.Teacher> o) { +checkUnnamed655(core.List<api.Teacher> o) { unittest.expect(o, unittest.hasLength(2)); checkTeacher(o[0]); checkTeacher(o[1]); @@ -856,7 +856,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { o.nextPageToken = "foo"; - o.teachers = buildUnnamed915(); + o.teachers = buildUnnamed655(); } buildCounterListTeachersResponse--; return o; @@ -866,7 +866,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed915(o.teachers); + checkUnnamed655(o.teachers); } buildCounterListTeachersResponse--; } @@ -896,14 +896,14 @@ buildCounterMaterial--; } -buildUnnamed916() { +buildUnnamed656() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed916(core.List<api.Attachment> o) { +checkUnnamed656(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -914,7 +914,7 @@ var o = new api.ModifyAttachmentsRequest(); buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - o.addAttachments = buildUnnamed916(); + o.addAttachments = buildUnnamed656(); } buildCounterModifyAttachmentsRequest--; return o; @@ -923,19 +923,19 @@ checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - checkUnnamed916(o.addAttachments); + checkUnnamed656(o.addAttachments); } buildCounterModifyAttachmentsRequest--; } -buildUnnamed917() { +buildUnnamed657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed917(core.List<core.String> o) { +checkUnnamed657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -946,7 +946,7 @@ var o = new api.MultipleChoiceQuestion(); buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - o.choices = buildUnnamed917(); + o.choices = buildUnnamed657(); } buildCounterMultipleChoiceQuestion--; return o; @@ -955,7 +955,7 @@ checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - checkUnnamed917(o.choices); + checkUnnamed657(o.choices); } buildCounterMultipleChoiceQuestion--; } @@ -1215,14 +1215,14 @@ buildCounterTurnInStudentSubmissionRequest--; } -buildUnnamed918() { +buildUnnamed658() { var o = new core.List<api.GlobalPermission>(); o.add(buildGlobalPermission()); o.add(buildGlobalPermission()); return o; } -checkUnnamed918(core.List<api.GlobalPermission> o) { +checkUnnamed658(core.List<api.GlobalPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkGlobalPermission(o[0]); checkGlobalPermission(o[1]); @@ -1236,7 +1236,7 @@ o.emailAddress = "foo"; o.id = "foo"; o.name = buildName(); - o.permissions = buildUnnamed918(); + o.permissions = buildUnnamed658(); o.photoUrl = "foo"; } buildCounterUserProfile--; @@ -1249,7 +1249,7 @@ unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkName(o.name); - checkUnnamed918(o.permissions); + checkUnnamed658(o.permissions); unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterUserProfile--; @@ -1280,53 +1280,53 @@ buildCounterYouTubeVideo--; } -buildUnnamed919() { +buildUnnamed659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed919(core.List<core.String> o) { +checkUnnamed659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed920() { +buildUnnamed660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed920(core.List<core.String> o) { +checkUnnamed660(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed921() { +buildUnnamed661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed921(core.List<core.String> o) { +checkUnnamed661(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed922() { +buildUnnamed662() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed922(core.List<core.String> o) { +checkUnnamed662(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1869,7 +1869,7 @@ api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; var arg_studentId = "foo"; var arg_teacherId = "foo"; - var arg_courseStates = buildUnnamed919(); + var arg_courseStates = buildUnnamed659(); var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -2308,7 +2308,7 @@ var mock = new HttpServerMock(); api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.courseWork; var arg_courseId = "foo"; - var arg_courseWorkStates = buildUnnamed920(); + var arg_courseWorkStates = buildUnnamed660(); var arg_orderBy = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -2436,7 +2436,7 @@ var arg_courseId = "foo"; var arg_courseWorkId = "foo"; var arg_userId = "foo"; - var arg_states = buildUnnamed921(); + var arg_states = buildUnnamed661(); var arg_late = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -3719,7 +3719,7 @@ api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(mock).userProfiles.guardianInvitations; var arg_studentId = "foo"; var arg_invitedEmailAddress = "foo"; - var arg_states = buildUnnamed922(); + var arg_states = buildUnnamed662(); var arg_pageToken = "foo"; var arg_pageSize = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 451831c..18f9df0 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1422() { +buildUnnamed1175() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1422(core.List<core.String> o) { +checkUnnamed1175(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1423() { +buildUnnamed1176() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed1423(core.List<api.BuildStep> o) { +checkUnnamed1176(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); @@ -86,7 +86,7 @@ o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed1422(); + o.images = buildUnnamed1175(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); @@ -97,7 +97,7 @@ o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed1423(); + o.steps = buildUnnamed1176(); o.timeout = "foo"; } buildCounterBuild--; @@ -111,7 +111,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1422(o.images); + checkUnnamed1175(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); checkBuildOptions(o.options); @@ -122,7 +122,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed1423(o.steps); + checkUnnamed1176(o.steps); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuild--; @@ -147,14 +147,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed1424() { +buildUnnamed1177() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1424(core.List<core.String> o) { +checkUnnamed1177(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -166,7 +166,7 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed1424(); + o.sourceProvenanceHash = buildUnnamed1177(); } buildCounterBuildOptions--; return o; @@ -176,45 +176,45 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed1424(o.sourceProvenanceHash); + checkUnnamed1177(o.sourceProvenanceHash); } buildCounterBuildOptions--; } -buildUnnamed1425() { +buildUnnamed1178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1425(core.List<core.String> o) { +checkUnnamed1178(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1426() { +buildUnnamed1179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1426(core.List<core.String> o) { +checkUnnamed1179(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1427() { +buildUnnamed1180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1427(core.List<core.String> o) { +checkUnnamed1180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -225,12 +225,12 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed1425(); + o.args = buildUnnamed1178(); o.dir = "foo"; - o.env = buildUnnamed1426(); + o.env = buildUnnamed1179(); o.id = "foo"; o.name = "foo"; - o.waitFor = buildUnnamed1427(); + o.waitFor = buildUnnamed1180(); } buildCounterBuildStep--; return o; @@ -239,12 +239,12 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed1425(o.args); + checkUnnamed1178(o.args); unittest.expect(o.dir, unittest.equals('foo')); - checkUnnamed1426(o.env); + checkUnnamed1179(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1427(o.waitFor); + checkUnnamed1180(o.waitFor); } buildCounterBuildStep--; } @@ -318,6 +318,23 @@ buildCounterCancelBuildRequest--; } +core.int buildCounterCancelOperationRequest = 0; +buildCancelOperationRequest() { + var o = new api.CancelOperationRequest(); + buildCounterCancelOperationRequest++; + if (buildCounterCancelOperationRequest < 3) { + } + buildCounterCancelOperationRequest--; + return o; +} + +checkCancelOperationRequest(api.CancelOperationRequest o) { + buildCounterCancelOperationRequest++; + if (buildCounterCancelOperationRequest < 3) { + } + buildCounterCancelOperationRequest--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -335,14 +352,14 @@ buildCounterEmpty--; } -buildUnnamed1428() { +buildUnnamed1181() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed1428(core.List<api.Hash> o) { +checkUnnamed1181(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -353,7 +370,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed1428(); + o.fileHash = buildUnnamed1181(); } buildCounterFileHashes--; return o; @@ -362,7 +379,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed1428(o.fileHash); + checkUnnamed1181(o.fileHash); } buildCounterFileHashes--; } @@ -388,14 +405,14 @@ buildCounterHash--; } -buildUnnamed1429() { +buildUnnamed1182() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed1429(core.List<api.BuildTrigger> o) { +checkUnnamed1182(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -406,7 +423,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed1429(); + o.triggers = buildUnnamed1182(); } buildCounterListBuildTriggersResponse--; return o; @@ -415,19 +432,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed1429(o.triggers); + checkUnnamed1182(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed1430() { +buildUnnamed1183() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed1430(core.List<api.Build> o) { +checkUnnamed1183(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -438,7 +455,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed1430(); + o.builds = buildUnnamed1183(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -448,20 +465,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed1430(o.builds); + checkUnnamed1183(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed1431() { +buildUnnamed1184() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1431(core.List<api.Operation> o) { +checkUnnamed1184(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -473,7 +490,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1431(); + o.operations = buildUnnamed1184(); } buildCounterListOperationsResponse--; return o; @@ -483,32 +500,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1431(o.operations); + checkUnnamed1184(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1432() { +buildUnnamed1185() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1432(core.Map<core.String, core.Object> o) { +checkUnnamed1185(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1433() { +buildUnnamed1186() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1433(core.Map<core.String, core.Object> o) { +checkUnnamed1186(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -521,9 +538,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1432(); + o.metadata = buildUnnamed1185(); o.name = "foo"; - o.response = buildUnnamed1433(); + o.response = buildUnnamed1186(); } buildCounterOperation--; return o; @@ -534,9 +551,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1432(o.metadata); + checkUnnamed1185(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1433(o.response); + checkUnnamed1186(o.response); } buildCounterOperation--; } @@ -568,27 +585,27 @@ buildCounterRepoSource--; } -buildUnnamed1434() { +buildUnnamed1187() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1434(core.List<core.String> o) { +checkUnnamed1187(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1435() { +buildUnnamed1188() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed1435(core.List<api.BuiltImage> o) { +checkUnnamed1188(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -599,8 +616,8 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed1434(); - o.images = buildUnnamed1435(); + o.buildStepImages = buildUnnamed1187(); + o.images = buildUnnamed1188(); } buildCounterResults--; return o; @@ -609,8 +626,8 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed1434(o.buildStepImages); - checkUnnamed1435(o.images); + checkUnnamed1187(o.buildStepImages); + checkUnnamed1188(o.images); } buildCounterResults--; } @@ -636,14 +653,14 @@ buildCounterSource--; } -buildUnnamed1436() { +buildUnnamed1189() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed1436(core.Map<core.String, api.FileHashes> o) { +checkUnnamed1189(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -654,7 +671,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed1436(); + o.fileHashes = buildUnnamed1189(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -665,37 +682,37 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed1436(o.fileHashes); + checkUnnamed1189(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed1437() { +buildUnnamed1190() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1437(core.Map<core.String, core.Object> o) { +checkUnnamed1190(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1438() { +buildUnnamed1191() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1437()); - o.add(buildUnnamed1437()); + o.add(buildUnnamed1190()); + o.add(buildUnnamed1190()); return o; } -checkUnnamed1438(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1191(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1437(o[0]); - checkUnnamed1437(o[1]); + checkUnnamed1190(o[0]); + checkUnnamed1190(o[1]); } core.int buildCounterStatus = 0; @@ -704,7 +721,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1438(); + o.details = buildUnnamed1191(); o.message = "foo"; } buildCounterStatus--; @@ -715,7 +732,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1438(o.details); + checkUnnamed1191(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -809,6 +826,15 @@ }); + unittest.group("obj-schema-CancelOperationRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCancelOperationRequest(); + var od = new api.CancelOperationRequest.fromJson(o.toJson()); + checkCancelOperationRequest(od); + }); + }); + + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -927,6 +953,55 @@ unittest.group("resource-OperationsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.CancelOperationRequest.fromJson(json); + checkCancelOperationRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index 64aa684..15af8eb 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -72,66 +72,66 @@ buildCounterAliasContext--; } -buildUnnamed998() { +buildUnnamed749() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed998(core.List<api.Variable> o) { +checkUnnamed749(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed999() { +buildUnnamed750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed999(core.List<core.String> o) { +checkUnnamed750(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1000() { +buildUnnamed751() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1000(core.Map<core.String, core.String> o) { +checkUnnamed751(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1001() { +buildUnnamed752() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed1001(core.List<api.StackFrame> o) { +checkUnnamed752(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed1002() { +buildUnnamed753() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1002(core.List<api.Variable> o) { +checkUnnamed753(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -145,19 +145,19 @@ o.action = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed998(); - o.expressions = buildUnnamed999(); + o.evaluatedExpressions = buildUnnamed749(); + o.expressions = buildUnnamed750(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed1000(); + o.labels = buildUnnamed751(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed1001(); + o.stackFrames = buildUnnamed752(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed1002(); + o.variableTable = buildUnnamed753(); } buildCounterBreakpoint--; return o; @@ -169,19 +169,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed998(o.evaluatedExpressions); - checkUnnamed999(o.expressions); + checkUnnamed749(o.evaluatedExpressions); + checkUnnamed750(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed1000(o.labels); + checkUnnamed751(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed1001(o.stackFrames); + checkUnnamed752(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed1002(o.variableTable); + checkUnnamed753(o.variableTable); } buildCounterBreakpoint--; } @@ -253,40 +253,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed1003() { +buildUnnamed754() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed1003(core.List<api.ExtendedSourceContext> o) { +checkUnnamed754(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed1004() { +buildUnnamed755() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1004(core.Map<core.String, core.String> o) { +checkUnnamed755(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1005() { +buildUnnamed756() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed1005(core.List<api.SourceContext> o) { +checkUnnamed756(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -299,13 +299,13 @@ if (buildCounterDebuggee < 3) { o.agentVersion = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed1003(); + o.extSourceContexts = buildUnnamed754(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed1004(); + o.labels = buildUnnamed755(); o.project = "foo"; - o.sourceContexts = buildUnnamed1005(); + o.sourceContexts = buildUnnamed756(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -318,13 +318,13 @@ if (buildCounterDebuggee < 3) { unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1003(o.extSourceContexts); + checkUnnamed754(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed1004(o.labels); + checkUnnamed755(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed1005(o.sourceContexts); + checkUnnamed756(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterEmpty--; } -buildUnnamed1006() { +buildUnnamed757() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1006(core.Map<core.String, core.String> o) { +checkUnnamed757(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -367,7 +367,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed1006(); + o.labels = buildUnnamed757(); } buildCounterExtendedSourceContext--; return o; @@ -377,19 +377,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed1006(o.labels); + checkUnnamed757(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed1007() { +buildUnnamed758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1007(core.List<core.String> o) { +checkUnnamed758(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -401,7 +401,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed1007(); + o.parameters = buildUnnamed758(); } buildCounterFormatMessage--; return o; @@ -411,7 +411,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed1007(o.parameters); + checkUnnamed758(o.parameters); } buildCounterFormatMessage--; } @@ -483,14 +483,14 @@ buildCounterGitSourceContext--; } -buildUnnamed1008() { +buildUnnamed759() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed1008(core.List<api.Breakpoint> o) { +checkUnnamed759(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -501,7 +501,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed1008(); + o.breakpoints = buildUnnamed759(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -512,21 +512,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed1008(o.breakpoints); + checkUnnamed759(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed1009() { +buildUnnamed760() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed1009(core.List<api.Breakpoint> o) { +checkUnnamed760(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -537,7 +537,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed1009(); + o.breakpoints = buildUnnamed760(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -547,20 +547,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed1009(o.breakpoints); + checkUnnamed760(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed1010() { +buildUnnamed761() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed1010(core.List<api.Debuggee> o) { +checkUnnamed761(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -571,7 +571,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed1010(); + o.debuggees = buildUnnamed761(); } buildCounterListDebuggeesResponse--; return o; @@ -580,7 +580,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed1010(o.debuggees); + checkUnnamed761(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -730,27 +730,27 @@ buildCounterSourceLocation--; } -buildUnnamed1011() { +buildUnnamed762() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1011(core.List<api.Variable> o) { +checkUnnamed762(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed1012() { +buildUnnamed763() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1012(core.List<api.Variable> o) { +checkUnnamed763(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -761,9 +761,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed1011(); + o.arguments = buildUnnamed762(); o.function = "foo"; - o.locals = buildUnnamed1012(); + o.locals = buildUnnamed763(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -773,9 +773,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed1011(o.arguments); + checkUnnamed762(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed1012(o.locals); + checkUnnamed763(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -840,14 +840,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed1013() { +buildUnnamed764() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1013(core.List<api.Variable> o) { +checkUnnamed764(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -858,7 +858,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed1013(); + o.members = buildUnnamed764(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -872,7 +872,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed1013(o.members); + checkUnnamed764(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo'));
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 641c65f..e17534e 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -51,14 +51,33 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1927() { +core.int buildCounterAncestor = 0; +buildAncestor() { + var o = new api.Ancestor(); + buildCounterAncestor++; + if (buildCounterAncestor < 3) { + o.resourceId = buildResourceId(); + } + buildCounterAncestor--; + return o; +} + +checkAncestor(api.Ancestor o) { + buildCounterAncestor++; + if (buildCounterAncestor < 3) { + checkResourceId(o.resourceId); + } + buildCounterAncestor--; +} + +buildUnnamed1697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1927(core.List<core.String> o) { +checkUnnamed1697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +88,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1927(); + o.members = buildUnnamed1697(); o.role = "foo"; } buildCounterBinding--; @@ -79,7 +98,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1927(o.members); + checkUnnamed1697(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -146,6 +165,55 @@ buildCounterFolderOperationError--; } +core.int buildCounterGetAncestryRequest = 0; +buildGetAncestryRequest() { + var o = new api.GetAncestryRequest(); + buildCounterGetAncestryRequest++; + if (buildCounterGetAncestryRequest < 3) { + } + buildCounterGetAncestryRequest--; + return o; +} + +checkGetAncestryRequest(api.GetAncestryRequest o) { + buildCounterGetAncestryRequest++; + if (buildCounterGetAncestryRequest < 3) { + } + buildCounterGetAncestryRequest--; +} + +buildUnnamed1698() { + var o = new core.List<api.Ancestor>(); + o.add(buildAncestor()); + o.add(buildAncestor()); + return o; +} + +checkUnnamed1698(core.List<api.Ancestor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAncestor(o[0]); + checkAncestor(o[1]); +} + +core.int buildCounterGetAncestryResponse = 0; +buildGetAncestryResponse() { + var o = new api.GetAncestryResponse(); + buildCounterGetAncestryResponse++; + if (buildCounterGetAncestryResponse < 3) { + o.ancestor = buildUnnamed1698(); + } + buildCounterGetAncestryResponse--; + return o; +} + +checkGetAncestryResponse(api.GetAncestryResponse o) { + buildCounterGetAncestryResponse++; + if (buildCounterGetAncestryResponse < 3) { + checkUnnamed1698(o.ancestor); + } + buildCounterGetAncestryResponse--; +} + core.int buildCounterGetIamPolicyRequest = 0; buildGetIamPolicyRequest() { var o = new api.GetIamPolicyRequest(); @@ -163,14 +231,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1928() { +buildUnnamed1699() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1928(core.List<api.Project> o) { +checkUnnamed1699(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -182,7 +250,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed1928(); + o.projects = buildUnnamed1699(); } buildCounterListProjectsResponse--; return o; @@ -192,32 +260,32 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1928(o.projects); + checkUnnamed1699(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed1929() { +buildUnnamed1700() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1929(core.Map<core.String, core.Object> o) { +checkUnnamed1700(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1930() { +buildUnnamed1701() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1930(core.Map<core.String, core.Object> o) { +checkUnnamed1701(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -230,9 +298,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1929(); + o.metadata = buildUnnamed1700(); o.name = "foo"; - o.response = buildUnnamed1930(); + o.response = buildUnnamed1701(); } buildCounterOperation--; return o; @@ -243,9 +311,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1929(o.metadata); + checkUnnamed1700(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1930(o.response); + checkUnnamed1701(o.response); } buildCounterOperation--; } @@ -296,14 +364,14 @@ buildCounterOrganizationOwner--; } -buildUnnamed1931() { +buildUnnamed1702() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1931(core.List<api.Binding> o) { +checkUnnamed1702(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -314,7 +382,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1931(); + o.bindings = buildUnnamed1702(); o.etag = "foo"; o.version = 42; } @@ -325,21 +393,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1931(o.bindings); + checkUnnamed1702(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1932() { +buildUnnamed1703() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1932(core.Map<core.String, core.String> o) { +checkUnnamed1703(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -351,7 +419,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed1932(); + o.labels = buildUnnamed1703(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -366,7 +434,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1932(o.labels); + checkUnnamed1703(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -443,14 +511,14 @@ buildCounterSearchOrganizationsRequest--; } -buildUnnamed1933() { +buildUnnamed1704() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1933(core.List<api.Organization> o) { +checkUnnamed1704(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -462,7 +530,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed1933(); + o.organizations = buildUnnamed1704(); } buildCounterSearchOrganizationsResponse--; return o; @@ -472,7 +540,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1933(o.organizations); + checkUnnamed1704(o.organizations); } buildCounterSearchOrganizationsResponse--; } @@ -496,30 +564,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1934() { +buildUnnamed1705() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1934(core.Map<core.String, core.Object> o) { +checkUnnamed1705(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1935() { +buildUnnamed1706() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1934()); - o.add(buildUnnamed1934()); + o.add(buildUnnamed1705()); + o.add(buildUnnamed1705()); return o; } -checkUnnamed1935(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1706(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1934(o[0]); - checkUnnamed1934(o[1]); + checkUnnamed1705(o[0]); + checkUnnamed1705(o[1]); } core.int buildCounterStatus = 0; @@ -528,7 +596,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1935(); + o.details = buildUnnamed1706(); o.message = "foo"; } buildCounterStatus--; @@ -539,20 +607,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1935(o.details); + checkUnnamed1706(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1936() { +buildUnnamed1707() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1936(core.List<core.String> o) { +checkUnnamed1707(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -563,7 +631,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1936(); + o.permissions = buildUnnamed1707(); } buildCounterTestIamPermissionsRequest--; return o; @@ -572,19 +640,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1936(o.permissions); + checkUnnamed1707(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1937() { +buildUnnamed1708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1937(core.List<core.String> o) { +checkUnnamed1708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -595,7 +663,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1937(); + o.permissions = buildUnnamed1708(); } buildCounterTestIamPermissionsResponse--; return o; @@ -604,7 +672,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1937(o.permissions); + checkUnnamed1708(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -628,6 +696,15 @@ main() { + unittest.group("obj-schema-Ancestor", () { + unittest.test("to-json--from-json", () { + var o = buildAncestor(); + var od = new api.Ancestor.fromJson(o.toJson()); + checkAncestor(od); + }); + }); + + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -664,6 +741,24 @@ }); + unittest.group("obj-schema-GetAncestryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGetAncestryRequest(); + var od = new api.GetAncestryRequest.fromJson(o.toJson()); + checkGetAncestryRequest(od); + }); + }); + + + unittest.group("obj-schema-GetAncestryResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGetAncestryResponse(); + var od = new api.GetAncestryResponse.fromJson(o.toJson()); + checkGetAncestryResponse(od); + }); + }); + + unittest.group("obj-schema-GetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildGetIamPolicyRequest(); @@ -1242,6 +1337,61 @@ }))); }); + unittest.test("method--getAncestry", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; + var arg_request = buildGetAncestryRequest(); + var arg_projectId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GetAncestryRequest.fromJson(json); + checkGetAncestryRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/projects/")); + pathOffset += 12; + index = path.indexOf(":getAncestry", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_projectId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals(":getAncestry")); + pathOffset += 12; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildGetAncestryResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getAncestry(arg_request, arg_projectId).then(unittest.expectAsync(((api.GetAncestryResponse response) { + checkGetAncestryResponse(response); + }))); + }); + unittest.test("method--getIamPolicy", () { var mock = new HttpServerMock(); @@ -1301,9 +1451,9 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1330,9 +1480,9 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1341,7 +1491,7 @@ var resp = convert.JSON.encode(buildListProjectsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListProjectsResponse response) { + res.list(pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProjectsResponse response) { checkListProjectsResponse(response); }))); });
diff --git a/generated/googleapis/test/cloudtrace/v1_test.dart b/generated/googleapis/test/cloudtrace/v1_test.dart index b9694e8..1edefa3 100644 --- a/generated/googleapis/test/cloudtrace/v1_test.dart +++ b/generated/googleapis/test/cloudtrace/v1_test.dart
@@ -68,14 +68,14 @@ buildCounterEmpty--; } -buildUnnamed129() { +buildUnnamed132() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed129(core.List<api.Trace> o) { +checkUnnamed132(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -87,7 +87,7 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { o.nextPageToken = "foo"; - o.traces = buildUnnamed129(); + o.traces = buildUnnamed132(); } buildCounterListTracesResponse--; return o; @@ -97,19 +97,19 @@ buildCounterListTracesResponse++; if (buildCounterListTracesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed129(o.traces); + checkUnnamed132(o.traces); } buildCounterListTracesResponse--; } -buildUnnamed130() { +buildUnnamed133() { var o = new core.List<api.TraceSpan>(); o.add(buildTraceSpan()); o.add(buildTraceSpan()); return o; } -checkUnnamed130(core.List<api.TraceSpan> o) { +checkUnnamed133(core.List<api.TraceSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTraceSpan(o[0]); checkTraceSpan(o[1]); @@ -121,7 +121,7 @@ buildCounterTrace++; if (buildCounterTrace < 3) { o.projectId = "foo"; - o.spans = buildUnnamed130(); + o.spans = buildUnnamed133(); o.traceId = "foo"; } buildCounterTrace--; @@ -132,20 +132,20 @@ buildCounterTrace++; if (buildCounterTrace < 3) { unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed130(o.spans); + checkUnnamed133(o.spans); unittest.expect(o.traceId, unittest.equals('foo')); } buildCounterTrace--; } -buildUnnamed131() { +buildUnnamed134() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed131(core.Map<core.String, core.String> o) { +checkUnnamed134(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -158,7 +158,7 @@ if (buildCounterTraceSpan < 3) { o.endTime = "foo"; o.kind = "foo"; - o.labels = buildUnnamed131(); + o.labels = buildUnnamed134(); o.name = "foo"; o.parentSpanId = "foo"; o.spanId = "foo"; @@ -173,7 +173,7 @@ if (buildCounterTraceSpan < 3) { unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed131(o.labels); + checkUnnamed134(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentSpanId, unittest.equals('foo')); unittest.expect(o.spanId, unittest.equals('foo')); @@ -182,14 +182,14 @@ buildCounterTraceSpan--; } -buildUnnamed132() { +buildUnnamed135() { var o = new core.List<api.Trace>(); o.add(buildTrace()); o.add(buildTrace()); return o; } -checkUnnamed132(core.List<api.Trace> o) { +checkUnnamed135(core.List<api.Trace> o) { unittest.expect(o, unittest.hasLength(2)); checkTrace(o[0]); checkTrace(o[1]); @@ -200,7 +200,7 @@ var o = new api.Traces(); buildCounterTraces++; if (buildCounterTraces < 3) { - o.traces = buildUnnamed132(); + o.traces = buildUnnamed135(); } buildCounterTraces--; return o; @@ -209,7 +209,7 @@ checkTraces(api.Traces o) { buildCounterTraces++; if (buildCounterTraces < 3) { - checkUnnamed132(o.traces); + checkUnnamed135(o.traces); } buildCounterTraces--; }
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index 7379eec..af53739 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccessConfig--; } -buildUnnamed2215() { +buildUnnamed1988() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2215(core.List<core.String> o) { +checkUnnamed1988(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.users = buildUnnamed2215(); + o.users = buildUnnamed1988(); } buildCounterAddress--; return o; @@ -121,19 +121,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2215(o.users); + checkUnnamed1988(o.users); } buildCounterAddress--; } -buildUnnamed2216() { +buildUnnamed1989() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2216(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed1989(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); @@ -145,7 +145,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2216(); + o.items = buildUnnamed1989(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -158,7 +158,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2216(o.items); + checkUnnamed1989(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -166,14 +166,14 @@ buildCounterAddressAggregatedList--; } -buildUnnamed2217() { +buildUnnamed1990() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2217(core.List<api.Address> o) { +checkUnnamed1990(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -185,7 +185,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed2217(); + o.items = buildUnnamed1990(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -198,7 +198,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2217(o.items); + checkUnnamed1990(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -206,14 +206,14 @@ buildCounterAddressList--; } -buildUnnamed2218() { +buildUnnamed1991() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2218(core.List<api.Address> o) { +checkUnnamed1991(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -240,14 +240,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2219() { +buildUnnamed1992() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2219(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed1992(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -259,7 +259,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2219(); + o.data = buildUnnamed1992(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -270,7 +270,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2219(o.data); + checkUnnamed1992(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -281,7 +281,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed2218(); + o.addresses = buildUnnamed1991(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -291,20 +291,20 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2218(o.addresses); + checkUnnamed1991(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; } -buildUnnamed2220() { +buildUnnamed1993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2220(core.List<core.String> o) { +checkUnnamed1993(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -323,7 +323,7 @@ o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2220(); + o.licenses = buildUnnamed1993(); o.mode = "foo"; o.source = "foo"; o.type = "foo"; @@ -343,7 +343,7 @@ checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2220(o.licenses); + checkUnnamed1993(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -415,14 +415,14 @@ buildCounterAutoscaler--; } -buildUnnamed2221() { +buildUnnamed1994() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2221(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed1994(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -434,7 +434,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2221(); + o.items = buildUnnamed1994(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -447,7 +447,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2221(o.items); + checkUnnamed1994(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -455,14 +455,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2222() { +buildUnnamed1995() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2222(core.List<api.Autoscaler> o) { +checkUnnamed1995(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -474,7 +474,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2222(); + o.items = buildUnnamed1995(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -487,7 +487,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2222(o.items); + checkUnnamed1995(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -495,14 +495,14 @@ buildCounterAutoscalerList--; } -buildUnnamed2223() { +buildUnnamed1996() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2223(core.List<api.Autoscaler> o) { +checkUnnamed1996(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -529,14 +529,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2224() { +buildUnnamed1997() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2224(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed1997(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -548,7 +548,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2224(); + o.data = buildUnnamed1997(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -559,7 +559,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2224(o.data); + checkUnnamed1997(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -570,7 +570,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2223(); + o.autoscalers = buildUnnamed1996(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -580,20 +580,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2223(o.autoscalers); + checkUnnamed1996(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2225() { +buildUnnamed1998() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2225(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed1998(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -606,7 +606,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2225(); + o.customMetricUtilizations = buildUnnamed1998(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; @@ -620,7 +620,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2225(o.customMetricUtilizations); + checkUnnamed1998(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -724,27 +724,27 @@ buildCounterBackend--; } -buildUnnamed2226() { +buildUnnamed1999() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2226(core.List<api.Backend> o) { +checkUnnamed1999(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2227() { +buildUnnamed2000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2227(core.List<core.String> o) { +checkUnnamed2000(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -756,15 +756,16 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2226(); + o.backends = buildUnnamed1999(); o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2227(); + o.healthChecks = buildUnnamed2000(); o.id = "foo"; o.kind = "foo"; + o.loadBalancingScheme = "foo"; o.name = "foo"; o.port = 42; o.portName = "foo"; @@ -782,15 +783,16 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2226(o.backends); + checkUnnamed1999(o.backends); checkConnectionDraining(o.connectionDraining); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.enableCDN, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2227(o.healthChecks); + checkUnnamed2000(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); unittest.expect(o.portName, unittest.equals('foo')); @@ -803,14 +805,54 @@ buildCounterBackendService--; } -buildUnnamed2228() { +buildUnnamed2001() { + var o = new core.Map<core.String, api.BackendServicesScopedList>(); + o["x"] = buildBackendServicesScopedList(); + o["y"] = buildBackendServicesScopedList(); + return o; +} + +checkUnnamed2001(core.Map<core.String, api.BackendServicesScopedList> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBackendServicesScopedList(o["x"]); + checkBackendServicesScopedList(o["y"]); +} + +core.int buildCounterBackendServiceAggregatedList = 0; +buildBackendServiceAggregatedList() { + var o = new api.BackendServiceAggregatedList(); + buildCounterBackendServiceAggregatedList++; + if (buildCounterBackendServiceAggregatedList < 3) { + o.id = "foo"; + o.items = buildUnnamed2001(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterBackendServiceAggregatedList--; + return o; +} + +checkBackendServiceAggregatedList(api.BackendServiceAggregatedList o) { + buildCounterBackendServiceAggregatedList++; + if (buildCounterBackendServiceAggregatedList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2001(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterBackendServiceAggregatedList--; +} + +buildUnnamed2002() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2228(core.List<api.HealthStatus> o) { +checkUnnamed2002(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -821,7 +863,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2228(); + o.healthStatus = buildUnnamed2002(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -831,20 +873,20 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2228(o.healthStatus); + checkUnnamed2002(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; } -buildUnnamed2229() { +buildUnnamed2003() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2229(core.List<api.BackendService> o) { +checkUnnamed2003(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -856,7 +898,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2229(); + o.items = buildUnnamed2003(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -869,7 +911,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2229(o.items); + checkUnnamed2003(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -877,6 +919,97 @@ buildCounterBackendServiceList--; } +buildUnnamed2004() { + var o = new core.List<api.BackendService>(); + o.add(buildBackendService()); + o.add(buildBackendService()); + return o; +} + +checkUnnamed2004(core.List<api.BackendService> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBackendService(o[0]); + checkBackendService(o[1]); +} + +core.int buildCounterBackendServicesScopedListWarningData = 0; +buildBackendServicesScopedListWarningData() { + var o = new api.BackendServicesScopedListWarningData(); + buildCounterBackendServicesScopedListWarningData++; + if (buildCounterBackendServicesScopedListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterBackendServicesScopedListWarningData--; + return o; +} + +checkBackendServicesScopedListWarningData(api.BackendServicesScopedListWarningData o) { + buildCounterBackendServicesScopedListWarningData++; + if (buildCounterBackendServicesScopedListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterBackendServicesScopedListWarningData--; +} + +buildUnnamed2005() { + var o = new core.List<api.BackendServicesScopedListWarningData>(); + o.add(buildBackendServicesScopedListWarningData()); + o.add(buildBackendServicesScopedListWarningData()); + return o; +} + +checkUnnamed2005(core.List<api.BackendServicesScopedListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBackendServicesScopedListWarningData(o[0]); + checkBackendServicesScopedListWarningData(o[1]); +} + +core.int buildCounterBackendServicesScopedListWarning = 0; +buildBackendServicesScopedListWarning() { + var o = new api.BackendServicesScopedListWarning(); + buildCounterBackendServicesScopedListWarning++; + if (buildCounterBackendServicesScopedListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed2005(); + o.message = "foo"; + } + buildCounterBackendServicesScopedListWarning--; + return o; +} + +checkBackendServicesScopedListWarning(api.BackendServicesScopedListWarning o) { + buildCounterBackendServicesScopedListWarning++; + if (buildCounterBackendServicesScopedListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed2005(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterBackendServicesScopedListWarning--; +} + +core.int buildCounterBackendServicesScopedList = 0; +buildBackendServicesScopedList() { + var o = new api.BackendServicesScopedList(); + buildCounterBackendServicesScopedList++; + if (buildCounterBackendServicesScopedList < 3) { + o.backendServices = buildUnnamed2004(); + o.warning = buildBackendServicesScopedListWarning(); + } + buildCounterBackendServicesScopedList--; + return o; +} + +checkBackendServicesScopedList(api.BackendServicesScopedList o) { + buildCounterBackendServicesScopedList++; + if (buildCounterBackendServicesScopedList < 3) { + checkUnnamed2004(o.backendServices); + checkBackendServicesScopedListWarning(o.warning); + } + buildCounterBackendServicesScopedList--; +} + core.int buildCounterCacheInvalidationRule = 0; buildCacheInvalidationRule() { var o = new api.CacheInvalidationRule(); @@ -984,27 +1117,27 @@ buildCounterDeprecationStatus--; } -buildUnnamed2230() { +buildUnnamed2006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2230(core.List<core.String> o) { +checkUnnamed2006(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2231() { +buildUnnamed2007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2231(core.List<core.String> o) { +checkUnnamed2007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1022,7 +1155,7 @@ o.kind = "foo"; o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2230(); + o.licenses = buildUnnamed2006(); o.name = "foo"; o.options = "foo"; o.selfLink = "foo"; @@ -1035,7 +1168,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2231(); + o.users = buildUnnamed2007(); o.zone = "foo"; } buildCounterDisk--; @@ -1052,7 +1185,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2230(o.licenses); + checkUnnamed2006(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1065,20 +1198,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2231(o.users); + checkUnnamed2007(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2232() { +buildUnnamed2008() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2232(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed2008(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -1090,7 +1223,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2232(); + o.items = buildUnnamed2008(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1103,7 +1236,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2232(o.items); + checkUnnamed2008(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1111,14 +1244,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2233() { +buildUnnamed2009() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2233(core.List<api.Disk> o) { +checkUnnamed2009(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1130,7 +1263,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2233(); + o.items = buildUnnamed2009(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1143,7 +1276,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2233(o.items); + checkUnnamed2009(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1209,14 +1342,14 @@ buildCounterDiskType--; } -buildUnnamed2234() { +buildUnnamed2010() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2234(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed2010(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -1228,7 +1361,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2234(); + o.items = buildUnnamed2010(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1241,7 +1374,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2234(o.items); + checkUnnamed2010(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1249,14 +1382,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2235() { +buildUnnamed2011() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2235(core.List<api.DiskType> o) { +checkUnnamed2011(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1268,7 +1401,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2235(); + o.items = buildUnnamed2011(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1281,7 +1414,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2235(o.items); + checkUnnamed2011(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1289,14 +1422,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2236() { +buildUnnamed2012() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2236(core.List<api.DiskType> o) { +checkUnnamed2012(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1323,14 +1456,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2237() { +buildUnnamed2013() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2237(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed2013(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -1342,7 +1475,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2237(); + o.data = buildUnnamed2013(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -1353,7 +1486,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2237(o.data); + checkUnnamed2013(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -1364,7 +1497,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2236(); + o.diskTypes = buildUnnamed2012(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -1374,7 +1507,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2236(o.diskTypes); + checkUnnamed2012(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -1399,14 +1532,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2238() { +buildUnnamed2014() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2238(core.List<api.Disk> o) { +checkUnnamed2014(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1433,14 +1566,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2239() { +buildUnnamed2015() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2239(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed2015(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -1452,7 +1585,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2239(); + o.data = buildUnnamed2015(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -1463,7 +1596,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2239(o.data); + checkUnnamed2015(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -1474,7 +1607,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2238(); + o.disks = buildUnnamed2014(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -1484,20 +1617,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2238(o.disks); + checkUnnamed2014(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2240() { +buildUnnamed2016() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2240(core.List<core.String> o) { +checkUnnamed2016(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1509,7 +1642,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2240(); + o.ports = buildUnnamed2016(); } buildCounterFirewallAllowed--; return o; @@ -1519,58 +1652,58 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2240(o.ports); + checkUnnamed2016(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2241() { +buildUnnamed2017() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2241(core.List<api.FirewallAllowed> o) { +checkUnnamed2017(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2242() { +buildUnnamed2018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2242(core.List<core.String> o) { +checkUnnamed2018(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2243() { +buildUnnamed2019() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2243(core.List<core.String> o) { +checkUnnamed2019(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2244() { +buildUnnamed2020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2244(core.List<core.String> o) { +checkUnnamed2020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1581,7 +1714,7 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2241(); + o.allowed = buildUnnamed2017(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; @@ -1589,9 +1722,9 @@ o.name = "foo"; o.network = "foo"; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2242(); - o.sourceTags = buildUnnamed2243(); - o.targetTags = buildUnnamed2244(); + o.sourceRanges = buildUnnamed2018(); + o.sourceTags = buildUnnamed2019(); + o.targetTags = buildUnnamed2020(); } buildCounterFirewall--; return o; @@ -1600,7 +1733,7 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2241(o.allowed); + checkUnnamed2017(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1608,21 +1741,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2242(o.sourceRanges); - checkUnnamed2243(o.sourceTags); - checkUnnamed2244(o.targetTags); + checkUnnamed2018(o.sourceRanges); + checkUnnamed2019(o.sourceTags); + checkUnnamed2020(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2245() { +buildUnnamed2021() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2245(core.List<api.Firewall> o) { +checkUnnamed2021(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -1634,7 +1767,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2245(); + o.items = buildUnnamed2021(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1647,7 +1780,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2245(o.items); + checkUnnamed2021(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1655,6 +1788,19 @@ buildCounterFirewallList--; } +buildUnnamed2022() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2022(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterForwardingRule = 0; buildForwardingRule() { var o = new api.ForwardingRule(); @@ -1662,14 +1808,19 @@ if (buildCounterForwardingRule < 3) { o.IPAddress = "foo"; o.IPProtocol = "foo"; + o.backendService = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; o.kind = "foo"; + o.loadBalancingScheme = "foo"; o.name = "foo"; + o.network = "foo"; o.portRange = "foo"; + o.ports = buildUnnamed2022(); o.region = "foo"; o.selfLink = "foo"; + o.subnetwork = "foo"; o.target = "foo"; } buildCounterForwardingRule--; @@ -1681,27 +1832,32 @@ if (buildCounterForwardingRule < 3) { unittest.expect(o.IPAddress, unittest.equals('foo')); unittest.expect(o.IPProtocol, unittest.equals('foo')); + unittest.expect(o.backendService, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.portRange, unittest.equals('foo')); + checkUnnamed2022(o.ports); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.subnetwork, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterForwardingRule--; } -buildUnnamed2246() { +buildUnnamed2023() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2246(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed2023(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -1713,7 +1869,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2246(); + o.items = buildUnnamed2023(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1726,7 +1882,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2246(o.items); + checkUnnamed2023(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1734,14 +1890,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2247() { +buildUnnamed2024() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2247(core.List<api.ForwardingRule> o) { +checkUnnamed2024(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1753,7 +1909,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2247(); + o.items = buildUnnamed2024(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1766,7 +1922,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2247(o.items); + checkUnnamed2024(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1774,14 +1930,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2248() { +buildUnnamed2025() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2248(core.List<api.ForwardingRule> o) { +checkUnnamed2025(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1808,14 +1964,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2249() { +buildUnnamed2026() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2249(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed2026(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -1827,7 +1983,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2249(); + o.data = buildUnnamed2026(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -1838,7 +1994,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2249(o.data); + checkUnnamed2026(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -1849,7 +2005,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2248(); + o.forwardingRules = buildUnnamed2025(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -1859,37 +2015,29 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2248(o.forwardingRules); + checkUnnamed2025(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } -core.int buildCounterHTTP2HealthCheck = 0; -buildHTTP2HealthCheck() { - var o = new api.HTTP2HealthCheck(); - buildCounterHTTP2HealthCheck++; - if (buildCounterHTTP2HealthCheck < 3) { - o.host = "foo"; - o.port = 42; - o.portName = "foo"; - o.proxyHeader = "foo"; - o.requestPath = "foo"; +core.int buildCounterGuestOsFeature = 0; +buildGuestOsFeature() { + var o = new api.GuestOsFeature(); + buildCounterGuestOsFeature++; + if (buildCounterGuestOsFeature < 3) { + o.type = "foo"; } - buildCounterHTTP2HealthCheck--; + buildCounterGuestOsFeature--; return o; } -checkHTTP2HealthCheck(api.HTTP2HealthCheck o) { - buildCounterHTTP2HealthCheck++; - if (buildCounterHTTP2HealthCheck < 3) { - unittest.expect(o.host, unittest.equals('foo')); - unittest.expect(o.port, unittest.equals(42)); - unittest.expect(o.portName, unittest.equals('foo')); - unittest.expect(o.proxyHeader, unittest.equals('foo')); - unittest.expect(o.requestPath, unittest.equals('foo')); +checkGuestOsFeature(api.GuestOsFeature o) { + buildCounterGuestOsFeature++; + if (buildCounterGuestOsFeature < 3) { + unittest.expect(o.type, unittest.equals('foo')); } - buildCounterHTTP2HealthCheck--; + buildCounterGuestOsFeature--; } core.int buildCounterHTTPHealthCheck = 0; @@ -1955,7 +2103,6 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.healthyThreshold = 42; - o.http2HealthCheck = buildHTTP2HealthCheck(); o.httpHealthCheck = buildHTTPHealthCheck(); o.httpsHealthCheck = buildHTTPSHealthCheck(); o.id = "foo"; @@ -1979,7 +2126,6 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.healthyThreshold, unittest.equals(42)); - checkHTTP2HealthCheck(o.http2HealthCheck); checkHTTPHealthCheck(o.httpHealthCheck); checkHTTPSHealthCheck(o.httpsHealthCheck); unittest.expect(o.id, unittest.equals('foo')); @@ -1995,14 +2141,14 @@ buildCounterHealthCheck--; } -buildUnnamed2250() { +buildUnnamed2027() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed2250(core.List<api.HealthCheck> o) { +checkUnnamed2027(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -2014,7 +2160,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2250(); + o.items = buildUnnamed2027(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2027,7 +2173,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2250(o.items); + checkUnnamed2027(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2079,14 +2225,14 @@ buildCounterHealthStatus--; } -buildUnnamed2251() { +buildUnnamed2028() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2251(core.List<core.String> o) { +checkUnnamed2028(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2098,7 +2244,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2251(); + o.hosts = buildUnnamed2028(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -2109,7 +2255,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2251(o.hosts); + checkUnnamed2028(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -2158,14 +2304,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2252() { +buildUnnamed2029() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2252(core.List<api.HttpHealthCheck> o) { +checkUnnamed2029(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -2177,7 +2323,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2252(); + o.items = buildUnnamed2029(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2190,7 +2336,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2252(o.items); + checkUnnamed2029(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2241,14 +2387,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2253() { +buildUnnamed2030() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2253(core.List<api.HttpsHealthCheck> o) { +checkUnnamed2030(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -2260,7 +2406,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2253(); + o.items = buildUnnamed2030(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2273,7 +2419,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2253(o.items); + checkUnnamed2030(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2281,14 +2427,27 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2254() { +buildUnnamed2031() { + var o = new core.List<api.GuestOsFeature>(); + o.add(buildGuestOsFeature()); + o.add(buildGuestOsFeature()); + return o; +} + +checkUnnamed2031(core.List<api.GuestOsFeature> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGuestOsFeature(o[0]); + checkGuestOsFeature(o[1]); +} + +buildUnnamed2032() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2254(core.List<core.String> o) { +checkUnnamed2032(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2328,10 +2487,11 @@ o.description = "foo"; o.diskSizeGb = "foo"; o.family = "foo"; + o.guestOsFeatures = buildUnnamed2031(); o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; - o.licenses = buildUnnamed2254(); + o.licenses = buildUnnamed2032(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -2354,10 +2514,11 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); + checkUnnamed2031(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2254(o.licenses); + checkUnnamed2032(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2370,14 +2531,14 @@ buildCounterImage--; } -buildUnnamed2255() { +buildUnnamed2033() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2255(core.List<api.Image> o) { +checkUnnamed2033(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -2389,7 +2550,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2255(); + o.items = buildUnnamed2033(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2402,7 +2563,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2255(o.items); + checkUnnamed2033(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2410,40 +2571,40 @@ buildCounterImageList--; } -buildUnnamed2256() { +buildUnnamed2034() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2256(core.List<api.AttachedDisk> o) { +checkUnnamed2034(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2257() { +buildUnnamed2035() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2257(core.List<api.NetworkInterface> o) { +checkUnnamed2035(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2258() { +buildUnnamed2036() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2258(core.List<api.ServiceAccount> o) { +checkUnnamed2036(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -2458,16 +2619,16 @@ o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; - o.disks = buildUnnamed2256(); + o.disks = buildUnnamed2034(); o.id = "foo"; o.kind = "foo"; o.machineType = "foo"; o.metadata = buildMetadata(); o.name = "foo"; - o.networkInterfaces = buildUnnamed2257(); + o.networkInterfaces = buildUnnamed2035(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2258(); + o.serviceAccounts = buildUnnamed2036(); o.status = "foo"; o.statusMessage = "foo"; o.tags = buildTags(); @@ -2484,16 +2645,16 @@ unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2256(o.disks); + checkUnnamed2034(o.disks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2257(o.networkInterfaces); + checkUnnamed2035(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2258(o.serviceAccounts); + checkUnnamed2036(o.serviceAccounts); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); checkTags(o.tags); @@ -2502,14 +2663,14 @@ buildCounterInstance--; } -buildUnnamed2259() { +buildUnnamed2037() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2259(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed2037(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -2521,7 +2682,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2259(); + o.items = buildUnnamed2037(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2534,7 +2695,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2259(o.items); + checkUnnamed2037(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2542,14 +2703,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2260() { +buildUnnamed2038() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2260(core.List<api.NamedPort> o) { +checkUnnamed2038(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -2566,7 +2727,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2260(); + o.namedPorts = buildUnnamed2038(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -2587,7 +2748,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2260(o.namedPorts); + checkUnnamed2038(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2598,14 +2759,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2261() { +buildUnnamed2039() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2261(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed2039(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -2617,7 +2778,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2261(); + o.items = buildUnnamed2039(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2630,7 +2791,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2261(o.items); + checkUnnamed2039(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2638,14 +2799,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2262() { +buildUnnamed2040() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2262(core.List<api.InstanceGroup> o) { +checkUnnamed2040(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -2657,7 +2818,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2262(); + o.items = buildUnnamed2040(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2670,7 +2831,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2262(o.items); + checkUnnamed2040(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2678,27 +2839,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2263() { +buildUnnamed2041() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2263(core.List<api.NamedPort> o) { +checkUnnamed2041(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2264() { +buildUnnamed2042() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2264(core.List<core.String> o) { +checkUnnamed2042(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2719,10 +2880,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2263(); + o.namedPorts = buildUnnamed2041(); o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2264(); + o.targetPools = buildUnnamed2042(); o.targetSize = 42; o.zone = "foo"; } @@ -2743,10 +2904,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2263(o.namedPorts); + checkUnnamed2041(o.namedPorts); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2264(o.targetPools); + checkUnnamed2042(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -2786,14 +2947,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2265() { +buildUnnamed2043() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2265(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed2043(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -2805,7 +2966,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2265(); + o.items = buildUnnamed2043(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2818,7 +2979,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2265(o.items); + checkUnnamed2043(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2826,14 +2987,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2266() { +buildUnnamed2044() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2266(core.List<api.InstanceGroupManager> o) { +checkUnnamed2044(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -2845,7 +3006,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2266(); + o.items = buildUnnamed2044(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2858,7 +3019,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2266(o.items); + checkUnnamed2044(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2866,14 +3027,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2267() { +buildUnnamed2045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2267(core.List<core.String> o) { +checkUnnamed2045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2884,7 +3045,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2267(); + o.instances = buildUnnamed2045(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -2893,19 +3054,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2267(o.instances); + checkUnnamed2045(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2268() { +buildUnnamed2046() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2268(core.List<core.String> o) { +checkUnnamed2046(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2916,7 +3077,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2268(); + o.instances = buildUnnamed2046(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -2925,19 +3086,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2268(o.instances); + checkUnnamed2046(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2269() { +buildUnnamed2047() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2269(core.List<api.ManagedInstance> o) { +checkUnnamed2047(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -2948,7 +3109,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2269(); + o.managedInstances = buildUnnamed2047(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -2957,19 +3118,19 @@ checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2269(o.managedInstances); + checkUnnamed2047(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2270() { +buildUnnamed2048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2270(core.List<core.String> o) { +checkUnnamed2048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2980,7 +3141,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2270(); + o.instances = buildUnnamed2048(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -2989,19 +3150,19 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2270(o.instances); + checkUnnamed2048(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2271() { +buildUnnamed2049() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2271(core.List<api.InstanceGroupManager> o) { +checkUnnamed2049(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -3028,14 +3189,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2272() { +buildUnnamed2050() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2272(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed2050(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -3047,7 +3208,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2272(); + o.data = buildUnnamed2050(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -3058,7 +3219,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2272(o.data); + checkUnnamed2050(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -3069,7 +3230,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2271(); + o.instanceGroupManagers = buildUnnamed2049(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -3079,7 +3240,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2271(o.instanceGroupManagers); + checkUnnamed2049(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -3104,14 +3265,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2273() { +buildUnnamed2051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2273(core.List<core.String> o) { +checkUnnamed2051(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3123,7 +3284,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2273(); + o.targetPools = buildUnnamed2051(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -3133,19 +3294,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2273(o.targetPools); + checkUnnamed2051(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2274() { +buildUnnamed2052() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2274(core.List<api.InstanceReference> o) { +checkUnnamed2052(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3156,7 +3317,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2274(); + o.instances = buildUnnamed2052(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -3165,19 +3326,19 @@ checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2274(o.instances); + checkUnnamed2052(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2275() { +buildUnnamed2053() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2275(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2053(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -3189,7 +3350,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2275(); + o.items = buildUnnamed2053(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3202,7 +3363,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2275(o.items); + checkUnnamed2053(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3229,14 +3390,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2276() { +buildUnnamed2054() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2276(core.List<api.InstanceReference> o) { +checkUnnamed2054(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3247,7 +3408,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2276(); + o.instances = buildUnnamed2054(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -3256,19 +3417,19 @@ checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2276(o.instances); + checkUnnamed2054(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2277() { +buildUnnamed2055() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2277(core.List<api.InstanceGroup> o) { +checkUnnamed2055(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -3295,14 +3456,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2278() { +buildUnnamed2056() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2278(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed2056(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -3314,7 +3475,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2278(); + o.data = buildUnnamed2056(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -3325,7 +3486,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2278(o.data); + checkUnnamed2056(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -3336,7 +3497,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2277(); + o.instanceGroups = buildUnnamed2055(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -3346,20 +3507,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2277(o.instanceGroups); + checkUnnamed2055(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2279() { +buildUnnamed2057() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2279(core.List<api.NamedPort> o) { +checkUnnamed2057(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3371,7 +3532,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2279(); + o.namedPorts = buildUnnamed2057(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -3381,19 +3542,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2279(o.namedPorts); + checkUnnamed2057(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2280() { +buildUnnamed2058() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2280(core.List<api.Instance> o) { +checkUnnamed2058(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3405,7 +3566,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2280(); + o.items = buildUnnamed2058(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3418,7 +3579,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2280(o.items); + checkUnnamed2058(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3447,40 +3608,40 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2281() { +buildUnnamed2059() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2281(core.List<api.AttachedDisk> o) { +checkUnnamed2059(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2282() { +buildUnnamed2060() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2282(core.List<api.NetworkInterface> o) { +checkUnnamed2060(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2283() { +buildUnnamed2061() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2283(core.List<api.ServiceAccount> o) { +checkUnnamed2061(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -3493,12 +3654,12 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2281(); + o.disks = buildUnnamed2059(); o.machineType = "foo"; o.metadata = buildMetadata(); - o.networkInterfaces = buildUnnamed2282(); + o.networkInterfaces = buildUnnamed2060(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2283(); + o.serviceAccounts = buildUnnamed2061(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -3510,12 +3671,12 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2281(o.disks); + checkUnnamed2059(o.disks); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); - checkUnnamed2282(o.networkInterfaces); + checkUnnamed2060(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2283(o.serviceAccounts); + checkUnnamed2061(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -3571,14 +3732,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2284() { +buildUnnamed2062() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2284(core.List<api.InstanceTemplate> o) { +checkUnnamed2062(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -3590,7 +3751,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2284(); + o.items = buildUnnamed2062(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3603,7 +3764,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2284(o.items); + checkUnnamed2062(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3611,14 +3772,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2285() { +buildUnnamed2063() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2285(core.List<api.NamedPort> o) { +checkUnnamed2063(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3630,7 +3791,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2285(); + o.namedPorts = buildUnnamed2063(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -3641,20 +3802,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2285(o.namedPorts); + checkUnnamed2063(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2286() { +buildUnnamed2064() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2286(core.List<api.Instance> o) { +checkUnnamed2064(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3681,14 +3842,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2287() { +buildUnnamed2065() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2287(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed2065(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -3700,7 +3861,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2287(); + o.data = buildUnnamed2065(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -3711,7 +3872,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2287(o.data); + checkUnnamed2065(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -3722,7 +3883,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2286(); + o.instances = buildUnnamed2064(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -3732,7 +3893,7 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2286(o.instances); + checkUnnamed2064(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; @@ -3757,14 +3918,14 @@ buildCounterInstancesSetMachineTypeRequest--; } -buildUnnamed2288() { +buildUnnamed2066() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed2066(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -3775,7 +3936,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2288(); + o.disks = buildUnnamed2066(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -3784,7 +3945,7 @@ checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2288(o.disks); + checkUnnamed2066(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -3833,14 +3994,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2289() { +buildUnnamed2067() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed2067(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -3863,7 +4024,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2289(); + o.scratchDisks = buildUnnamed2067(); o.selfLink = "foo"; o.zone = "foo"; } @@ -3886,21 +4047,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2289(o.scratchDisks); + checkUnnamed2067(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2290() { +buildUnnamed2068() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed2068(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -3912,7 +4073,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2290(); + o.items = buildUnnamed2068(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3925,7 +4086,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2290(o.items); + checkUnnamed2068(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3933,14 +4094,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2291() { +buildUnnamed2069() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2291(core.List<api.MachineType> o) { +checkUnnamed2069(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -3952,7 +4113,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2291(); + o.items = buildUnnamed2069(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3965,7 +4126,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2291(o.items); + checkUnnamed2069(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3973,14 +4134,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2292() { +buildUnnamed2070() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2292(core.List<api.MachineType> o) { +checkUnnamed2070(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -4007,14 +4168,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2293() { +buildUnnamed2071() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed2071(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -4026,7 +4187,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2293(); + o.data = buildUnnamed2071(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -4037,7 +4198,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2293(o.data); + checkUnnamed2071(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -4048,7 +4209,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2292(); + o.machineTypes = buildUnnamed2070(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -4058,7 +4219,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2292(o.machineTypes); + checkUnnamed2070(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -4114,14 +4275,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2294() { +buildUnnamed2072() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed2072(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -4132,7 +4293,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2294(); + o.errors = buildUnnamed2072(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -4141,7 +4302,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2294(o.errors); + checkUnnamed2072(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -4186,14 +4347,14 @@ buildCounterMetadataItems--; } -buildUnnamed2295() { +buildUnnamed2073() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2295(core.List<api.MetadataItems> o) { +checkUnnamed2073(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -4205,7 +4366,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2295(); + o.items = buildUnnamed2073(); o.kind = "foo"; } buildCounterMetadata--; @@ -4216,7 +4377,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2295(o.items); + checkUnnamed2073(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -4243,14 +4404,14 @@ buildCounterNamedPort--; } -buildUnnamed2296() { +buildUnnamed2074() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2296(core.List<core.String> o) { +checkUnnamed2074(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4270,7 +4431,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.subnetworks = buildUnnamed2296(); + o.subnetworks = buildUnnamed2074(); } buildCounterNetwork--; return o; @@ -4288,19 +4449,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2296(o.subnetworks); + checkUnnamed2074(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2297() { +buildUnnamed2075() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2297(core.List<api.AccessConfig> o) { +checkUnnamed2075(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -4311,7 +4472,7 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2297(); + o.accessConfigs = buildUnnamed2075(); o.name = "foo"; o.network = "foo"; o.networkIP = "foo"; @@ -4324,7 +4485,7 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2297(o.accessConfigs); + checkUnnamed2075(o.accessConfigs); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.networkIP, unittest.equals('foo')); @@ -4333,14 +4494,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2298() { +buildUnnamed2076() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2298(core.List<api.Network> o) { +checkUnnamed2076(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -4352,7 +4513,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2298(); + o.items = buildUnnamed2076(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4365,7 +4526,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2298(o.items); + checkUnnamed2076(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4396,14 +4557,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2299() { +buildUnnamed2077() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2299(core.List<api.OperationErrorErrors> o) { +checkUnnamed2077(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -4414,7 +4575,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2299(); + o.errors = buildUnnamed2077(); } buildCounterOperationError--; return o; @@ -4423,7 +4584,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2299(o.errors); + checkUnnamed2077(o.errors); } buildCounterOperationError--; } @@ -4449,14 +4610,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2300() { +buildUnnamed2078() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2300(core.List<api.OperationWarningsData> o) { +checkUnnamed2078(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -4468,7 +4629,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2300(); + o.data = buildUnnamed2078(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -4479,20 +4640,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2300(o.data); + checkUnnamed2078(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2301() { +buildUnnamed2079() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2301(core.List<api.OperationWarnings> o) { +checkUnnamed2079(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -4524,7 +4685,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2301(); + o.warnings = buildUnnamed2079(); o.zone = "foo"; } buildCounterOperation--; @@ -4555,20 +4716,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2301(o.warnings); + checkUnnamed2079(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2302() { +buildUnnamed2080() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2302(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2080(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -4580,7 +4741,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2302(); + o.items = buildUnnamed2080(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4593,7 +4754,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2302(o.items); + checkUnnamed2080(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4601,14 +4762,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2303() { +buildUnnamed2081() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2303(core.List<api.Operation> o) { +checkUnnamed2081(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4620,7 +4781,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2303(); + o.items = buildUnnamed2081(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4633,7 +4794,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2303(o.items); + checkUnnamed2081(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4641,14 +4802,14 @@ buildCounterOperationList--; } -buildUnnamed2304() { +buildUnnamed2082() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2304(core.List<api.Operation> o) { +checkUnnamed2082(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4675,14 +4836,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2305() { +buildUnnamed2083() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2305(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2083(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -4694,7 +4855,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2305(); + o.data = buildUnnamed2083(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -4705,7 +4866,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2305(o.data); + checkUnnamed2083(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -4716,7 +4877,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2304(); + o.operations = buildUnnamed2082(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -4726,20 +4887,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2304(o.operations); + checkUnnamed2082(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2306() { +buildUnnamed2084() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2306(core.List<api.PathRule> o) { +checkUnnamed2084(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -4753,7 +4914,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2306(); + o.pathRules = buildUnnamed2084(); } buildCounterPathMatcher--; return o; @@ -4765,19 +4926,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2306(o.pathRules); + checkUnnamed2084(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2307() { +buildUnnamed2085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2307(core.List<core.String> o) { +checkUnnamed2085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4788,7 +4949,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2307(); + o.paths = buildUnnamed2085(); o.service = "foo"; } buildCounterPathRule--; @@ -4798,33 +4959,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2307(o.paths); + checkUnnamed2085(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2308() { +buildUnnamed2086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2308(core.List<core.String> o) { +checkUnnamed2086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2309() { +buildUnnamed2087() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2309(core.List<api.Quota> o) { +checkUnnamed2087(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -4839,11 +5000,11 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2308(); + o.enabledFeatures = buildUnnamed2086(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2309(); + o.quotas = buildUnnamed2087(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); } @@ -4858,11 +5019,11 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2308(o.enabledFeatures); + checkUnnamed2086(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2309(o.quotas); + checkUnnamed2087(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); } @@ -4892,27 +5053,27 @@ buildCounterQuota--; } -buildUnnamed2310() { +buildUnnamed2088() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2310(core.List<api.Quota> o) { +checkUnnamed2088(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2311() { +buildUnnamed2089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2311(core.List<core.String> o) { +checkUnnamed2089(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4929,10 +5090,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2310(); + o.quotas = buildUnnamed2088(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2311(); + o.zones = buildUnnamed2089(); } buildCounterRegion--; return o; @@ -4947,22 +5108,418 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2310(o.quotas); + checkUnnamed2088(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2311(o.zones); + checkUnnamed2089(o.zones); } buildCounterRegion--; } -buildUnnamed2312() { +buildUnnamed2090() { + var o = new core.List<api.Autoscaler>(); + o.add(buildAutoscaler()); + o.add(buildAutoscaler()); + return o; +} + +checkUnnamed2090(core.List<api.Autoscaler> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAutoscaler(o[0]); + checkAutoscaler(o[1]); +} + +core.int buildCounterRegionAutoscalerList = 0; +buildRegionAutoscalerList() { + var o = new api.RegionAutoscalerList(); + buildCounterRegionAutoscalerList++; + if (buildCounterRegionAutoscalerList < 3) { + o.id = "foo"; + o.items = buildUnnamed2090(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterRegionAutoscalerList--; + return o; +} + +checkRegionAutoscalerList(api.RegionAutoscalerList o) { + buildCounterRegionAutoscalerList++; + if (buildCounterRegionAutoscalerList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2090(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterRegionAutoscalerList--; +} + +buildUnnamed2091() { + var o = new core.List<api.InstanceGroup>(); + o.add(buildInstanceGroup()); + o.add(buildInstanceGroup()); + return o; +} + +checkUnnamed2091(core.List<api.InstanceGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceGroup(o[0]); + checkInstanceGroup(o[1]); +} + +core.int buildCounterRegionInstanceGroupList = 0; +buildRegionInstanceGroupList() { + var o = new api.RegionInstanceGroupList(); + buildCounterRegionInstanceGroupList++; + if (buildCounterRegionInstanceGroupList < 3) { + o.id = "foo"; + o.items = buildUnnamed2091(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterRegionInstanceGroupList--; + return o; +} + +checkRegionInstanceGroupList(api.RegionInstanceGroupList o) { + buildCounterRegionInstanceGroupList++; + if (buildCounterRegionInstanceGroupList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2091(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupList--; +} + +buildUnnamed2092() { + var o = new core.List<api.InstanceGroupManager>(); + o.add(buildInstanceGroupManager()); + o.add(buildInstanceGroupManager()); + return o; +} + +checkUnnamed2092(core.List<api.InstanceGroupManager> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceGroupManager(o[0]); + checkInstanceGroupManager(o[1]); +} + +core.int buildCounterRegionInstanceGroupManagerList = 0; +buildRegionInstanceGroupManagerList() { + var o = new api.RegionInstanceGroupManagerList(); + buildCounterRegionInstanceGroupManagerList++; + if (buildCounterRegionInstanceGroupManagerList < 3) { + o.id = "foo"; + o.items = buildUnnamed2092(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterRegionInstanceGroupManagerList--; + return o; +} + +checkRegionInstanceGroupManagerList(api.RegionInstanceGroupManagerList o) { + buildCounterRegionInstanceGroupManagerList++; + if (buildCounterRegionInstanceGroupManagerList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2092(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupManagerList--; +} + +buildUnnamed2093() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2093(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRegionInstanceGroupManagersAbandonInstancesRequest = 0; +buildRegionInstanceGroupManagersAbandonInstancesRequest() { + var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; + if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { + o.instances = buildUnnamed2093(); + } + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; + return o; +} + +checkRegionInstanceGroupManagersAbandonInstancesRequest(api.RegionInstanceGroupManagersAbandonInstancesRequest o) { + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; + if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { + checkUnnamed2093(o.instances); + } + buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; +} + +buildUnnamed2094() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2094(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRegionInstanceGroupManagersDeleteInstancesRequest = 0; +buildRegionInstanceGroupManagersDeleteInstancesRequest() { + var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; + if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { + o.instances = buildUnnamed2094(); + } + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; + return o; +} + +checkRegionInstanceGroupManagersDeleteInstancesRequest(api.RegionInstanceGroupManagersDeleteInstancesRequest o) { + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; + if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { + checkUnnamed2094(o.instances); + } + buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; +} + +buildUnnamed2095() { + var o = new core.List<api.ManagedInstance>(); + o.add(buildManagedInstance()); + o.add(buildManagedInstance()); + return o; +} + +checkUnnamed2095(core.List<api.ManagedInstance> o) { + unittest.expect(o, unittest.hasLength(2)); + checkManagedInstance(o[0]); + checkManagedInstance(o[1]); +} + +core.int buildCounterRegionInstanceGroupManagersListInstancesResponse = 0; +buildRegionInstanceGroupManagersListInstancesResponse() { + var o = new api.RegionInstanceGroupManagersListInstancesResponse(); + buildCounterRegionInstanceGroupManagersListInstancesResponse++; + if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { + o.managedInstances = buildUnnamed2095(); + } + buildCounterRegionInstanceGroupManagersListInstancesResponse--; + return o; +} + +checkRegionInstanceGroupManagersListInstancesResponse(api.RegionInstanceGroupManagersListInstancesResponse o) { + buildCounterRegionInstanceGroupManagersListInstancesResponse++; + if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { + checkUnnamed2095(o.managedInstances); + } + buildCounterRegionInstanceGroupManagersListInstancesResponse--; +} + +buildUnnamed2096() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2096(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRegionInstanceGroupManagersRecreateRequest = 0; +buildRegionInstanceGroupManagersRecreateRequest() { + var o = new api.RegionInstanceGroupManagersRecreateRequest(); + buildCounterRegionInstanceGroupManagersRecreateRequest++; + if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { + o.instances = buildUnnamed2096(); + } + buildCounterRegionInstanceGroupManagersRecreateRequest--; + return o; +} + +checkRegionInstanceGroupManagersRecreateRequest(api.RegionInstanceGroupManagersRecreateRequest o) { + buildCounterRegionInstanceGroupManagersRecreateRequest++; + if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { + checkUnnamed2096(o.instances); + } + buildCounterRegionInstanceGroupManagersRecreateRequest--; +} + +buildUnnamed2097() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2097(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest = 0; +buildRegionInstanceGroupManagersSetTargetPoolsRequest() { + var o = new api.RegionInstanceGroupManagersSetTargetPoolsRequest(); + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; + if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { + o.fingerprint = "foo"; + o.targetPools = buildUnnamed2097(); + } + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; + return o; +} + +checkRegionInstanceGroupManagersSetTargetPoolsRequest(api.RegionInstanceGroupManagersSetTargetPoolsRequest o) { + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; + if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { + unittest.expect(o.fingerprint, unittest.equals('foo')); + checkUnnamed2097(o.targetPools); + } + buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; +} + +core.int buildCounterRegionInstanceGroupManagersSetTemplateRequest = 0; +buildRegionInstanceGroupManagersSetTemplateRequest() { + var o = new api.RegionInstanceGroupManagersSetTemplateRequest(); + buildCounterRegionInstanceGroupManagersSetTemplateRequest++; + if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { + o.instanceTemplate = "foo"; + } + buildCounterRegionInstanceGroupManagersSetTemplateRequest--; + return o; +} + +checkRegionInstanceGroupManagersSetTemplateRequest(api.RegionInstanceGroupManagersSetTemplateRequest o) { + buildCounterRegionInstanceGroupManagersSetTemplateRequest++; + if (buildCounterRegionInstanceGroupManagersSetTemplateRequest < 3) { + unittest.expect(o.instanceTemplate, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupManagersSetTemplateRequest--; +} + +buildUnnamed2098() { + var o = new core.List<api.InstanceWithNamedPorts>(); + o.add(buildInstanceWithNamedPorts()); + o.add(buildInstanceWithNamedPorts()); + return o; +} + +checkUnnamed2098(core.List<api.InstanceWithNamedPorts> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceWithNamedPorts(o[0]); + checkInstanceWithNamedPorts(o[1]); +} + +core.int buildCounterRegionInstanceGroupsListInstances = 0; +buildRegionInstanceGroupsListInstances() { + var o = new api.RegionInstanceGroupsListInstances(); + buildCounterRegionInstanceGroupsListInstances++; + if (buildCounterRegionInstanceGroupsListInstances < 3) { + o.id = "foo"; + o.items = buildUnnamed2098(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterRegionInstanceGroupsListInstances--; + return o; +} + +checkRegionInstanceGroupsListInstances(api.RegionInstanceGroupsListInstances o) { + buildCounterRegionInstanceGroupsListInstances++; + if (buildCounterRegionInstanceGroupsListInstances < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2098(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupsListInstances--; +} + +core.int buildCounterRegionInstanceGroupsListInstancesRequest = 0; +buildRegionInstanceGroupsListInstancesRequest() { + var o = new api.RegionInstanceGroupsListInstancesRequest(); + buildCounterRegionInstanceGroupsListInstancesRequest++; + if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { + o.instanceState = "foo"; + o.portName = "foo"; + } + buildCounterRegionInstanceGroupsListInstancesRequest--; + return o; +} + +checkRegionInstanceGroupsListInstancesRequest(api.RegionInstanceGroupsListInstancesRequest o) { + buildCounterRegionInstanceGroupsListInstancesRequest++; + if (buildCounterRegionInstanceGroupsListInstancesRequest < 3) { + unittest.expect(o.instanceState, unittest.equals('foo')); + unittest.expect(o.portName, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupsListInstancesRequest--; +} + +buildUnnamed2099() { + var o = new core.List<api.NamedPort>(); + o.add(buildNamedPort()); + o.add(buildNamedPort()); + return o; +} + +checkUnnamed2099(core.List<api.NamedPort> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNamedPort(o[0]); + checkNamedPort(o[1]); +} + +core.int buildCounterRegionInstanceGroupsSetNamedPortsRequest = 0; +buildRegionInstanceGroupsSetNamedPortsRequest() { + var o = new api.RegionInstanceGroupsSetNamedPortsRequest(); + buildCounterRegionInstanceGroupsSetNamedPortsRequest++; + if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { + o.fingerprint = "foo"; + o.namedPorts = buildUnnamed2099(); + } + buildCounterRegionInstanceGroupsSetNamedPortsRequest--; + return o; +} + +checkRegionInstanceGroupsSetNamedPortsRequest(api.RegionInstanceGroupsSetNamedPortsRequest o) { + buildCounterRegionInstanceGroupsSetNamedPortsRequest++; + if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { + unittest.expect(o.fingerprint, unittest.equals('foo')); + checkUnnamed2099(o.namedPorts); + } + buildCounterRegionInstanceGroupsSetNamedPortsRequest--; +} + +buildUnnamed2100() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2312(core.List<api.Region> o) { +checkUnnamed2100(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4974,7 +5531,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2312(); + o.items = buildUnnamed2100(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4987,7 +5544,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2312(o.items); + checkUnnamed2100(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5014,14 +5571,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2313() { +buildUnnamed2101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2313(core.List<core.String> o) { +checkUnnamed2101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5048,14 +5605,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2314() { +buildUnnamed2102() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2314(core.List<api.RouteWarningsData> o) { +checkUnnamed2102(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -5067,7 +5624,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2314(); + o.data = buildUnnamed2102(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -5078,20 +5635,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2314(o.data); + checkUnnamed2102(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2315() { +buildUnnamed2103() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2315(core.List<api.RouteWarnings> o) { +checkUnnamed2103(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -5116,8 +5673,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2313(); - o.warnings = buildUnnamed2315(); + o.tags = buildUnnamed2101(); + o.warnings = buildUnnamed2103(); } buildCounterRoute--; return o; @@ -5140,20 +5697,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2313(o.tags); - checkUnnamed2315(o.warnings); + checkUnnamed2101(o.tags); + checkUnnamed2103(o.warnings); } buildCounterRoute--; } -buildUnnamed2316() { +buildUnnamed2104() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2316(core.List<api.Route> o) { +checkUnnamed2104(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -5165,7 +5722,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2316(); + o.items = buildUnnamed2104(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5178,7 +5735,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2316(o.items); + checkUnnamed2104(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5186,27 +5743,27 @@ buildCounterRouteList--; } -buildUnnamed2317() { +buildUnnamed2105() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2317(core.List<api.RouterBgpPeer> o) { +checkUnnamed2105(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2318() { +buildUnnamed2106() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2318(core.List<api.RouterInterface> o) { +checkUnnamed2106(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -5218,11 +5775,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2317(); + o.bgpPeers = buildUnnamed2105(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2318(); + o.interfaces = buildUnnamed2106(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -5237,11 +5794,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2317(o.bgpPeers); + checkUnnamed2105(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2318(o.interfaces); + checkUnnamed2106(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -5251,14 +5808,14 @@ buildCounterRouter--; } -buildUnnamed2319() { +buildUnnamed2107() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2319(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2107(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -5270,7 +5827,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2319(); + o.items = buildUnnamed2107(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5283,7 +5840,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2319(o.items); + checkUnnamed2107(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5362,14 +5919,14 @@ buildCounterRouterInterface--; } -buildUnnamed2320() { +buildUnnamed2108() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2320(core.List<api.Router> o) { +checkUnnamed2108(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5381,7 +5938,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2320(); + o.items = buildUnnamed2108(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5394,7 +5951,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2320(o.items); + checkUnnamed2108(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5402,27 +5959,27 @@ buildCounterRouterList--; } -buildUnnamed2321() { +buildUnnamed2109() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2321(core.List<api.Route> o) { +checkUnnamed2109(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2322() { +buildUnnamed2110() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2322(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2110(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -5433,8 +5990,8 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2321(); - o.bgpPeerStatus = buildUnnamed2322(); + o.bestRoutes = buildUnnamed2109(); + o.bgpPeerStatus = buildUnnamed2110(); o.network = "foo"; } buildCounterRouterStatus--; @@ -5444,21 +6001,21 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2321(o.bestRoutes); - checkUnnamed2322(o.bgpPeerStatus); + checkUnnamed2109(o.bestRoutes); + checkUnnamed2110(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2323() { +buildUnnamed2111() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2323(core.List<api.Route> o) { +checkUnnamed2111(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -5469,7 +6026,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2323(); + o.advertisedRoutes = buildUnnamed2111(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -5487,7 +6044,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2323(o.advertisedRoutes); + checkUnnamed2111(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -5541,14 +6098,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2324() { +buildUnnamed2112() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2324(core.List<api.Router> o) { +checkUnnamed2112(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5575,14 +6132,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2325() { +buildUnnamed2113() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2325(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2113(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -5594,7 +6151,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2325(); + o.data = buildUnnamed2113(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -5605,7 +6162,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2325(o.data); + checkUnnamed2113(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -5616,7 +6173,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2324(); + o.routers = buildUnnamed2112(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -5626,7 +6183,7 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2324(o.routers); + checkUnnamed2112(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; @@ -5689,7 +6246,9 @@ if (buildCounterSerialPortOutput < 3) { o.contents = "foo"; o.kind = "foo"; + o.next = "foo"; o.selfLink = "foo"; + o.start = "foo"; } buildCounterSerialPortOutput--; return o; @@ -5700,19 +6259,21 @@ if (buildCounterSerialPortOutput < 3) { unittest.expect(o.contents, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.next, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.start, unittest.equals('foo')); } buildCounterSerialPortOutput--; } -buildUnnamed2326() { +buildUnnamed2114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2326(core.List<core.String> o) { +checkUnnamed2114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5724,7 +6285,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2326(); + o.scopes = buildUnnamed2114(); } buildCounterServiceAccount--; return o; @@ -5734,19 +6295,19 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2326(o.scopes); + checkUnnamed2114(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2327() { +buildUnnamed2115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2327(core.List<core.String> o) { +checkUnnamed2115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5762,7 +6323,7 @@ o.diskSizeGb = "foo"; o.id = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2327(); + o.licenses = buildUnnamed2115(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -5785,7 +6346,7 @@ unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2327(o.licenses); + checkUnnamed2115(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -5799,14 +6360,14 @@ buildCounterSnapshot--; } -buildUnnamed2328() { +buildUnnamed2116() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2328(core.List<api.Snapshot> o) { +checkUnnamed2116(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -5818,7 +6379,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2328(); + o.items = buildUnnamed2116(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5831,7 +6392,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2328(o.items); + checkUnnamed2116(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5872,14 +6433,14 @@ buildCounterSslCertificate--; } -buildUnnamed2329() { +buildUnnamed2117() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2329(core.List<api.SslCertificate> o) { +checkUnnamed2117(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -5891,7 +6452,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2329(); + o.items = buildUnnamed2117(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5904,7 +6465,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2329(o.items); + checkUnnamed2117(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5949,14 +6510,14 @@ buildCounterSubnetwork--; } -buildUnnamed2330() { +buildUnnamed2118() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2330(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2118(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -5968,7 +6529,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2330(); + o.items = buildUnnamed2118(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5981,7 +6542,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2330(o.items); + checkUnnamed2118(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5989,14 +6550,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2331() { +buildUnnamed2119() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2331(core.List<api.Subnetwork> o) { +checkUnnamed2119(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -6008,7 +6569,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2331(); + o.items = buildUnnamed2119(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6021,7 +6582,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2331(o.items); + checkUnnamed2119(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6048,14 +6609,14 @@ buildCounterSubnetworksExpandIpCidrRangeRequest--; } -buildUnnamed2332() { +buildUnnamed2120() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2332(core.List<api.Subnetwork> o) { +checkUnnamed2120(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -6082,14 +6643,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2333() { +buildUnnamed2121() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2333(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2121(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -6101,7 +6662,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2333(); + o.data = buildUnnamed2121(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -6112,7 +6673,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2333(o.data); + checkUnnamed2121(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -6123,7 +6684,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2332(); + o.subnetworks = buildUnnamed2120(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -6133,7 +6694,7 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2332(o.subnetworks); + checkUnnamed2120(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; @@ -6166,14 +6727,14 @@ buildCounterTCPHealthCheck--; } -buildUnnamed2334() { +buildUnnamed2122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2334(core.List<core.String> o) { +checkUnnamed2122(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6185,7 +6746,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2334(); + o.items = buildUnnamed2122(); } buildCounterTags--; return o; @@ -6195,7 +6756,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2334(o.items); + checkUnnamed2122(o.items); } buildCounterTags--; } @@ -6231,14 +6792,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2335() { +buildUnnamed2123() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2335(core.List<api.TargetHttpProxy> o) { +checkUnnamed2123(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -6250,7 +6811,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2335(); + o.items = buildUnnamed2123(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6263,7 +6824,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2335(o.items); + checkUnnamed2123(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6271,14 +6832,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2336() { +buildUnnamed2124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2336(core.List<core.String> o) { +checkUnnamed2124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6289,7 +6850,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2336(); + o.sslCertificates = buildUnnamed2124(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -6298,19 +6859,19 @@ checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2336(o.sslCertificates); + checkUnnamed2124(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2337() { +buildUnnamed2125() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2337(core.List<core.String> o) { +checkUnnamed2125(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6327,7 +6888,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2337(); + o.sslCertificates = buildUnnamed2125(); o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -6343,20 +6904,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2337(o.sslCertificates); + checkUnnamed2125(o.sslCertificates); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2338() { +buildUnnamed2126() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2338(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2126(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -6368,7 +6929,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2338(); + o.items = buildUnnamed2126(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6381,7 +6942,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2338(o.items); + checkUnnamed2126(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6424,14 +6985,14 @@ buildCounterTargetInstance--; } -buildUnnamed2339() { +buildUnnamed2127() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2339(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2127(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -6443,7 +7004,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2339(); + o.items = buildUnnamed2127(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6456,7 +7017,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2339(o.items); + checkUnnamed2127(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6464,14 +7025,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2340() { +buildUnnamed2128() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2340(core.List<api.TargetInstance> o) { +checkUnnamed2128(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6483,7 +7044,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2340(); + o.items = buildUnnamed2128(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6496,7 +7057,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2340(o.items); + checkUnnamed2128(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6504,14 +7065,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2341() { +buildUnnamed2129() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2341(core.List<api.TargetInstance> o) { +checkUnnamed2129(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6538,14 +7099,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2342() { +buildUnnamed2130() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2342(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2130(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -6557,7 +7118,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2342(); + o.data = buildUnnamed2130(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -6568,7 +7129,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2342(o.data); + checkUnnamed2130(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -6579,7 +7140,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2341(); + o.targetInstances = buildUnnamed2129(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -6589,33 +7150,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2341(o.targetInstances); + checkUnnamed2129(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2343() { +buildUnnamed2131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2343(core.List<core.String> o) { +checkUnnamed2131(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2344() { +buildUnnamed2132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2344(core.List<core.String> o) { +checkUnnamed2132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6630,9 +7191,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2343(); + o.healthChecks = buildUnnamed2131(); o.id = "foo"; - o.instances = buildUnnamed2344(); + o.instances = buildUnnamed2132(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -6650,9 +7211,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2343(o.healthChecks); + checkUnnamed2131(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2344(o.instances); + checkUnnamed2132(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -6662,14 +7223,14 @@ buildCounterTargetPool--; } -buildUnnamed2345() { +buildUnnamed2133() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2345(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2133(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -6681,7 +7242,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2345(); + o.items = buildUnnamed2133(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6694,7 +7255,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2345(o.items); + checkUnnamed2133(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6702,14 +7263,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2346() { +buildUnnamed2134() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2346(core.List<api.HealthStatus> o) { +checkUnnamed2134(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -6720,7 +7281,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2346(); + o.healthStatus = buildUnnamed2134(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -6730,20 +7291,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2346(o.healthStatus); + checkUnnamed2134(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2347() { +buildUnnamed2135() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2347(core.List<api.TargetPool> o) { +checkUnnamed2135(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6755,7 +7316,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2347(); + o.items = buildUnnamed2135(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6768,7 +7329,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2347(o.items); + checkUnnamed2135(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6776,14 +7337,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2348() { +buildUnnamed2136() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2348(core.List<api.HealthCheckReference> o) { +checkUnnamed2136(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6794,7 +7355,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2348(); + o.healthChecks = buildUnnamed2136(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -6803,19 +7364,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2348(o.healthChecks); + checkUnnamed2136(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2349() { +buildUnnamed2137() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2349(core.List<api.InstanceReference> o) { +checkUnnamed2137(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6826,7 +7387,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2349(); + o.instances = buildUnnamed2137(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -6835,19 +7396,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2349(o.instances); + checkUnnamed2137(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2350() { +buildUnnamed2138() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2350(core.List<api.HealthCheckReference> o) { +checkUnnamed2138(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6858,7 +7419,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2350(); + o.healthChecks = buildUnnamed2138(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -6867,19 +7428,19 @@ checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2350(o.healthChecks); + checkUnnamed2138(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2351() { +buildUnnamed2139() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2351(core.List<api.InstanceReference> o) { +checkUnnamed2139(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6890,7 +7451,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2351(); + o.instances = buildUnnamed2139(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -6899,19 +7460,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2351(o.instances); + checkUnnamed2139(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2352() { +buildUnnamed2140() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2352(core.List<api.TargetPool> o) { +checkUnnamed2140(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6938,14 +7499,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2353() { +buildUnnamed2141() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2353(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2141(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -6957,7 +7518,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2353(); + o.data = buildUnnamed2141(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -6968,7 +7529,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2353(o.data); + checkUnnamed2141(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -6979,7 +7540,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2352(); + o.targetPools = buildUnnamed2140(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -6989,7 +7550,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2352(o.targetPools); + checkUnnamed2140(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -7052,14 +7613,14 @@ buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -buildUnnamed2354() { +buildUnnamed2142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2354(core.List<core.String> o) { +checkUnnamed2142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7070,7 +7631,7 @@ var o = new api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2354(); + o.sslCertificates = buildUnnamed2142(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -7079,19 +7640,19 @@ checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2354(o.sslCertificates); + checkUnnamed2142(o.sslCertificates); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -buildUnnamed2355() { +buildUnnamed2143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2355(core.List<core.String> o) { +checkUnnamed2143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7110,7 +7671,7 @@ o.proxyHeader = "foo"; o.selfLink = "foo"; o.service = "foo"; - o.sslCertificates = buildUnnamed2355(); + o.sslCertificates = buildUnnamed2143(); } buildCounterTargetSslProxy--; return o; @@ -7127,19 +7688,19 @@ unittest.expect(o.proxyHeader, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed2355(o.sslCertificates); + checkUnnamed2143(o.sslCertificates); } buildCounterTargetSslProxy--; } -buildUnnamed2356() { +buildUnnamed2144() { var o = new core.List<api.TargetSslProxy>(); o.add(buildTargetSslProxy()); o.add(buildTargetSslProxy()); return o; } -checkUnnamed2356(core.List<api.TargetSslProxy> o) { +checkUnnamed2144(core.List<api.TargetSslProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -7151,7 +7712,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2356(); + o.items = buildUnnamed2144(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7164,7 +7725,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2356(o.items); + checkUnnamed2144(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7172,27 +7733,27 @@ buildCounterTargetSslProxyList--; } -buildUnnamed2357() { +buildUnnamed2145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2357(core.List<core.String> o) { +checkUnnamed2145(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2358() { +buildUnnamed2146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2358(core.List<core.String> o) { +checkUnnamed2146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7205,7 +7766,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2357(); + o.forwardingRules = buildUnnamed2145(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7213,7 +7774,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2358(); + o.tunnels = buildUnnamed2146(); } buildCounterTargetVpnGateway--; return o; @@ -7224,7 +7785,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2357(o.forwardingRules); + checkUnnamed2145(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7232,19 +7793,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2358(o.tunnels); + checkUnnamed2146(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2359() { +buildUnnamed2147() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2359(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2147(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -7256,7 +7817,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2359(); + o.items = buildUnnamed2147(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7269,7 +7830,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2359(o.items); + checkUnnamed2147(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7277,14 +7838,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2360() { +buildUnnamed2148() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2360(core.List<api.TargetVpnGateway> o) { +checkUnnamed2148(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -7296,7 +7857,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2360(); + o.items = buildUnnamed2148(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7309,7 +7870,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2360(o.items); + checkUnnamed2148(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7317,14 +7878,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2361() { +buildUnnamed2149() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2361(core.List<api.TargetVpnGateway> o) { +checkUnnamed2149(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -7351,14 +7912,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2362() { +buildUnnamed2150() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2362(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2150(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -7370,7 +7931,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2362(); + o.data = buildUnnamed2150(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -7381,7 +7942,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2362(o.data); + checkUnnamed2150(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -7392,7 +7953,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2361(); + o.targetVpnGateways = buildUnnamed2149(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -7402,7 +7963,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2361(o.targetVpnGateways); + checkUnnamed2149(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -7433,40 +7994,40 @@ buildCounterTestFailure--; } -buildUnnamed2363() { +buildUnnamed2151() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2363(core.List<api.HostRule> o) { +checkUnnamed2151(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2364() { +buildUnnamed2152() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2364(core.List<api.PathMatcher> o) { +checkUnnamed2152(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2365() { +buildUnnamed2153() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2365(core.List<api.UrlMapTest> o) { +checkUnnamed2153(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -7481,13 +8042,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2363(); + o.hostRules = buildUnnamed2151(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2364(); + o.pathMatchers = buildUnnamed2152(); o.selfLink = "foo"; - o.tests = buildUnnamed2365(); + o.tests = buildUnnamed2153(); } buildCounterUrlMap--; return o; @@ -7500,25 +8061,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2363(o.hostRules); + checkUnnamed2151(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2364(o.pathMatchers); + checkUnnamed2152(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2365(o.tests); + checkUnnamed2153(o.tests); } buildCounterUrlMap--; } -buildUnnamed2366() { +buildUnnamed2154() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2366(core.List<api.UrlMap> o) { +checkUnnamed2154(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -7530,7 +8091,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2366(); + o.items = buildUnnamed2154(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7543,7 +8104,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2366(o.items); + checkUnnamed2154(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7595,27 +8156,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2367() { +buildUnnamed2155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2367(core.List<core.String> o) { +checkUnnamed2155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2368() { +buildUnnamed2156() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2368(core.List<api.TestFailure> o) { +checkUnnamed2156(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -7626,9 +8187,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2367(); + o.loadErrors = buildUnnamed2155(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2368(); + o.testFailures = buildUnnamed2156(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -7638,9 +8199,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2367(o.loadErrors); + checkUnnamed2155(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2368(o.testFailures); + checkUnnamed2156(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -7705,27 +8266,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2369() { +buildUnnamed2157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2369(core.List<core.String> o) { +checkUnnamed2157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2370() { +buildUnnamed2158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2370(core.List<core.String> o) { +checkUnnamed2158(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7742,11 +8303,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2369(); + o.localTrafficSelector = buildUnnamed2157(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2370(); + o.remoteTrafficSelector = buildUnnamed2158(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -7767,11 +8328,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2369(o.localTrafficSelector); + checkUnnamed2157(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2370(o.remoteTrafficSelector); + checkUnnamed2158(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -7782,14 +8343,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2371() { +buildUnnamed2159() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2371(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2159(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -7801,7 +8362,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2371(); + o.items = buildUnnamed2159(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7814,7 +8375,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2371(o.items); + checkUnnamed2159(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7822,14 +8383,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2372() { +buildUnnamed2160() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2372(core.List<api.VpnTunnel> o) { +checkUnnamed2160(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7841,7 +8402,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2372(); + o.items = buildUnnamed2160(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7854,7 +8415,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2372(o.items); + checkUnnamed2160(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7862,14 +8423,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2373() { +buildUnnamed2161() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2373(core.List<api.VpnTunnel> o) { +checkUnnamed2161(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7896,14 +8457,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2374() { +buildUnnamed2162() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2374(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2162(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -7915,7 +8476,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2374(); + o.data = buildUnnamed2162(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -7926,7 +8487,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2374(o.data); + checkUnnamed2162(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -7937,7 +8498,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2373(); + o.vpnTunnels = buildUnnamed2161(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -7947,7 +8508,7 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2373(o.vpnTunnels); + checkUnnamed2161(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; @@ -7988,14 +8549,14 @@ buildCounterZone--; } -buildUnnamed2375() { +buildUnnamed2163() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2375(core.List<api.Zone> o) { +checkUnnamed2163(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -8007,7 +8568,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2375(); + o.items = buildUnnamed2163(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8020,7 +8581,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2375(o.items); + checkUnnamed2163(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8219,6 +8780,15 @@ }); + unittest.group("obj-schema-BackendServiceAggregatedList", () { + unittest.test("to-json--from-json", () { + var o = buildBackendServiceAggregatedList(); + var od = new api.BackendServiceAggregatedList.fromJson(o.toJson()); + checkBackendServiceAggregatedList(od); + }); + }); + + unittest.group("obj-schema-BackendServiceGroupHealth", () { unittest.test("to-json--from-json", () { var o = buildBackendServiceGroupHealth(); @@ -8237,6 +8807,33 @@ }); + unittest.group("obj-schema-BackendServicesScopedListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildBackendServicesScopedListWarningData(); + var od = new api.BackendServicesScopedListWarningData.fromJson(o.toJson()); + checkBackendServicesScopedListWarningData(od); + }); + }); + + + unittest.group("obj-schema-BackendServicesScopedListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildBackendServicesScopedListWarning(); + var od = new api.BackendServicesScopedListWarning.fromJson(o.toJson()); + checkBackendServicesScopedListWarning(od); + }); + }); + + + unittest.group("obj-schema-BackendServicesScopedList", () { + unittest.test("to-json--from-json", () { + var o = buildBackendServicesScopedList(); + var od = new api.BackendServicesScopedList.fromJson(o.toJson()); + checkBackendServicesScopedList(od); + }); + }); + + unittest.group("obj-schema-CacheInvalidationRule", () { unittest.test("to-json--from-json", () { var o = buildCacheInvalidationRule(); @@ -8489,11 +9086,11 @@ }); - unittest.group("obj-schema-HTTP2HealthCheck", () { + unittest.group("obj-schema-GuestOsFeature", () { unittest.test("to-json--from-json", () { - var o = buildHTTP2HealthCheck(); - var od = new api.HTTP2HealthCheck.fromJson(o.toJson()); - checkHTTP2HealthCheck(od); + var o = buildGuestOsFeature(); + var od = new api.GuestOsFeature.fromJson(o.toJson()); + checkGuestOsFeature(od); }); }); @@ -9263,6 +9860,114 @@ }); + unittest.group("obj-schema-RegionAutoscalerList", () { + unittest.test("to-json--from-json", () { + var o = buildRegionAutoscalerList(); + var od = new api.RegionAutoscalerList.fromJson(o.toJson()); + checkRegionAutoscalerList(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupList", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupList(); + var od = new api.RegionInstanceGroupList.fromJson(o.toJson()); + checkRegionInstanceGroupList(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagerList", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagerList(); + var od = new api.RegionInstanceGroupManagerList.fromJson(o.toJson()); + checkRegionInstanceGroupManagerList(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersAbandonInstancesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersAbandonInstancesRequest(); + var od = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(o.toJson()); + checkRegionInstanceGroupManagersAbandonInstancesRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersDeleteInstancesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersDeleteInstancesRequest(); + var od = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(o.toJson()); + checkRegionInstanceGroupManagersDeleteInstancesRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersListInstancesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersListInstancesResponse(); + var od = new api.RegionInstanceGroupManagersListInstancesResponse.fromJson(o.toJson()); + checkRegionInstanceGroupManagersListInstancesResponse(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersRecreateRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersRecreateRequest(); + var od = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(o.toJson()); + checkRegionInstanceGroupManagersRecreateRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersSetTargetPoolsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); + var od = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(o.toJson()); + checkRegionInstanceGroupManagersSetTargetPoolsRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupManagersSetTemplateRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersSetTemplateRequest(); + var od = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(o.toJson()); + checkRegionInstanceGroupManagersSetTemplateRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupsListInstances", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupsListInstances(); + var od = new api.RegionInstanceGroupsListInstances.fromJson(o.toJson()); + checkRegionInstanceGroupsListInstances(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupsListInstancesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupsListInstancesRequest(); + var od = new api.RegionInstanceGroupsListInstancesRequest.fromJson(o.toJson()); + checkRegionInstanceGroupsListInstancesRequest(od); + }); + }); + + + unittest.group("obj-schema-RegionInstanceGroupsSetNamedPortsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupsSetNamedPortsRequest(); + var od = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(o.toJson()); + checkRegionInstanceGroupsSetNamedPortsRequest(od); + }); + }); + + unittest.group("obj-schema-RegionList", () { unittest.test("to-json--from-json", () { var o = buildRegionList(); @@ -10625,6 +11330,56 @@ unittest.group("resource-BackendServicesResourceApi", () { + unittest.test("method--aggregatedList", () { + + var mock = new HttpServerMock(); + api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServices; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBackendServiceAggregatedList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceAggregatedList response) { + checkBackendServiceAggregatedList(response); + }))); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -14069,9 +14824,6 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_instanceGroupManager = "foo"; - var arg_filter = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14096,9 +14848,6 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -14107,7 +14856,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagersListManagedInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { + res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { checkInstanceGroupManagersListManagedInstancesResponse(response); }))); }); @@ -15270,6 +16019,7 @@ var arg_zone = "foo"; var arg_instance = "foo"; var arg_port = 42; + var arg_start_1 = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -15295,6 +16045,7 @@ } } unittest.expect(core.int.parse(queryMap["port"].first), unittest.equals(arg_port)); + unittest.expect(queryMap["start"].first, unittest.equals(arg_start_1)); var h = { @@ -15303,7 +16054,7 @@ var resp = convert.JSON.encode(buildSerialPortOutput()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port).then(unittest.expectAsync(((api.SerialPortOutput response) { + res.getSerialPortOutput(arg_project, arg_zone, arg_instance, port: arg_port, start_1: arg_start_1).then(unittest.expectAsync(((api.SerialPortOutput response) { checkSerialPortOutput(response); }))); }); @@ -16484,6 +17235,1351 @@ }); + unittest.group("resource-RegionAutoscalersResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_autoscaler = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_autoscaler = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAutoscaler()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Autoscaler response) { + checkAutoscaler(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_request = buildAutoscaler(); + var arg_project = "foo"; + var arg_region = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Autoscaler.fromJson(json); + checkAutoscaler(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildRegionAutoscalerList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionAutoscalerList response) { + checkRegionAutoscalerList(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_request = buildAutoscaler(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_autoscaler = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Autoscaler.fromJson(json); + checkAutoscaler(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_project, arg_region, arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.RegionAutoscalersResourceApi res = new api.ComputeApi(mock).regionAutoscalers; + var arg_request = buildAutoscaler(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_autoscaler = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Autoscaler.fromJson(json); + checkAutoscaler(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["autoscaler"].first, unittest.equals(arg_autoscaler)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_project, arg_region, autoscaler: arg_autoscaler).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-RegionBackendServicesResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_backendService = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_backendService = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBackendService()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendService response) { + checkBackendService(response); + }))); + }); + + unittest.test("method--getHealth", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_request = buildResourceGroupReference(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_backendService = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ResourceGroupReference.fromJson(json); + checkResourceGroupReference(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getHealth(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.BackendServiceGroupHealth response) { + checkBackendServiceGroupHealth(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_request = buildBackendService(); + var arg_project = "foo"; + var arg_region = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BackendService.fromJson(json); + checkBackendService(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBackendServiceList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { + checkBackendServiceList(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_request = buildBackendService(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_backendService = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BackendService.fromJson(json); + checkBackendService(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.RegionBackendServicesResourceApi res = new api.ComputeApi(mock).regionBackendServices; + var arg_request = buildBackendService(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_backendService = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BackendService.fromJson(json); + checkBackendService(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_project, arg_region, arg_backendService).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-RegionInstanceGroupManagersResourceApi", () { + unittest.test("method--abandonInstances", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagersAbandonInstancesRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupManagersAbandonInstancesRequest.fromJson(json); + checkRegionInstanceGroupManagersAbandonInstancesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.abandonInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--deleteInstances", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagersDeleteInstancesRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupManagersDeleteInstancesRequest.fromJson(json); + checkRegionInstanceGroupManagersDeleteInstancesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.deleteInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildInstanceGroupManager()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManager response) { + checkInstanceGroupManager(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildInstanceGroupManager(); + var arg_project = "foo"; + var arg_region = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.InstanceGroupManager.fromJson(json); + checkInstanceGroupManager(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildRegionInstanceGroupManagerList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupManagerList response) { + checkRegionInstanceGroupManagerList(response); + }))); + }); + + unittest.test("method--listManagedInstances", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildRegionInstanceGroupManagersListInstancesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.listManagedInstances(arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.RegionInstanceGroupManagersListInstancesResponse response) { + checkRegionInstanceGroupManagersListInstancesResponse(response); + }))); + }); + + unittest.test("method--recreateInstances", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagersRecreateRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupManagersRecreateRequest.fromJson(json); + checkRegionInstanceGroupManagersRecreateRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.recreateInstances(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--resize", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_size = 42; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["size"].first), unittest.equals(arg_size)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.resize(arg_project, arg_region, arg_instanceGroupManager, arg_size).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setInstanceTemplate", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagersSetTemplateRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupManagersSetTemplateRequest.fromJson(json); + checkRegionInstanceGroupManagersSetTemplateRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setInstanceTemplate(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setTargetPools", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagersSetTargetPoolsRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupManagersSetTargetPoolsRequest.fromJson(json); + checkRegionInstanceGroupManagersSetTargetPoolsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setTargetPools(arg_request, arg_project, arg_region, arg_instanceGroupManager).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-RegionInstanceGroupsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroup = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildInstanceGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.InstanceGroup response) { + checkInstanceGroup(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildRegionInstanceGroupList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupList response) { + checkRegionInstanceGroupList(response); + }))); + }); + + unittest.test("method--listInstances", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups; + var arg_request = buildRegionInstanceGroupsListInstancesRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroup = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupsListInstancesRequest.fromJson(json); + checkRegionInstanceGroupsListInstancesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildRegionInstanceGroupsListInstances()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.listInstances(arg_request, arg_project, arg_region, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionInstanceGroupsListInstances response) { + checkRegionInstanceGroupsListInstances(response); + }))); + }); + + unittest.test("method--setNamedPorts", () { + + var mock = new HttpServerMock(); + api.RegionInstanceGroupsResourceApi res = new api.ComputeApi(mock).regionInstanceGroups; + var arg_request = buildRegionInstanceGroupsSetNamedPortsRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroup = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RegionInstanceGroupsSetNamedPortsRequest.fromJson(json); + checkRegionInstanceGroupsSetNamedPortsRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setNamedPorts(arg_request, arg_project, arg_region, arg_instanceGroup).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + unittest.group("resource-RegionOperationsResourceApi", () { unittest.test("method--delete", () {
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index c0f58de..2981e3c 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -72,40 +72,40 @@ buildCounterAddonsConfig--; } -buildUnnamed1938() { +buildUnnamed1709() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1938(core.List<core.String> o) { +checkUnnamed1709(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1939() { +buildUnnamed1710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1939(core.List<core.String> o) { +checkUnnamed1710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1940() { +buildUnnamed1711() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1940(core.List<api.NodePool> o) { +checkUnnamed1711(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -126,8 +126,8 @@ o.endpoint = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1938(); - o.locations = buildUnnamed1939(); + o.instanceGroupUrls = buildUnnamed1709(); + o.locations = buildUnnamed1710(); o.loggingService = "foo"; o.masterAuth = buildMasterAuth(); o.monitoringService = "foo"; @@ -135,7 +135,7 @@ o.network = "foo"; o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed1940(); + o.nodePools = buildUnnamed1711(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; o.status = "foo"; @@ -160,8 +160,8 @@ unittest.expect(o.endpoint, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1938(o.instanceGroupUrls); - checkUnnamed1939(o.locations); + checkUnnamed1709(o.instanceGroupUrls); + checkUnnamed1710(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMasterAuth(o.masterAuth); unittest.expect(o.monitoringService, unittest.equals('foo')); @@ -169,7 +169,7 @@ unittest.expect(o.network, unittest.equals('foo')); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed1940(o.nodePools); + checkUnnamed1711(o.nodePools); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -283,27 +283,27 @@ buildCounterHttpLoadBalancing--; } -buildUnnamed1941() { +buildUnnamed1712() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed1941(core.List<api.Cluster> o) { +checkUnnamed1712(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed1942() { +buildUnnamed1713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1942(core.List<core.String> o) { +checkUnnamed1713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -314,8 +314,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed1941(); - o.missingZones = buildUnnamed1942(); + o.clusters = buildUnnamed1712(); + o.missingZones = buildUnnamed1713(); } buildCounterListClustersResponse--; return o; @@ -324,20 +324,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed1941(o.clusters); - checkUnnamed1942(o.missingZones); + checkUnnamed1712(o.clusters); + checkUnnamed1713(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed1943() { +buildUnnamed1714() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed1943(core.List<api.NodePool> o) { +checkUnnamed1714(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -348,7 +348,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed1943(); + o.nodePools = buildUnnamed1714(); } buildCounterListNodePoolsResponse--; return o; @@ -357,32 +357,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed1943(o.nodePools); + checkUnnamed1714(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed1944() { +buildUnnamed1715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1944(core.List<core.String> o) { +checkUnnamed1715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1945() { +buildUnnamed1716() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1945(core.List<api.Operation> o) { +checkUnnamed1716(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -393,8 +393,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed1944(); - o.operations = buildUnnamed1945(); + o.missingZones = buildUnnamed1715(); + o.operations = buildUnnamed1716(); } buildCounterListOperationsResponse--; return o; @@ -403,8 +403,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed1944(o.missingZones); - checkUnnamed1945(o.operations); + checkUnnamed1715(o.missingZones); + checkUnnamed1716(o.operations); } buildCounterListOperationsResponse--; } @@ -436,27 +436,27 @@ buildCounterMasterAuth--; } -buildUnnamed1946() { +buildUnnamed1717() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1946(core.Map<core.String, core.String> o) { +checkUnnamed1717(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1947() { +buildUnnamed1718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1947(core.List<core.String> o) { +checkUnnamed1718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -469,8 +469,8 @@ if (buildCounterNodeConfig < 3) { o.diskSizeGb = 42; o.machineType = "foo"; - o.metadata = buildUnnamed1946(); - o.oauthScopes = buildUnnamed1947(); + o.metadata = buildUnnamed1717(); + o.oauthScopes = buildUnnamed1718(); } buildCounterNodeConfig--; return o; @@ -481,20 +481,20 @@ if (buildCounterNodeConfig < 3) { unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed1946(o.metadata); - checkUnnamed1947(o.oauthScopes); + checkUnnamed1717(o.metadata); + checkUnnamed1718(o.oauthScopes); } buildCounterNodeConfig--; } -buildUnnamed1948() { +buildUnnamed1719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1948(core.List<core.String> o) { +checkUnnamed1719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -507,7 +507,7 @@ if (buildCounterNodePool < 3) { o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed1948(); + o.instanceGroupUrls = buildUnnamed1719(); o.name = "foo"; o.selfLink = "foo"; o.status = "foo"; @@ -523,7 +523,7 @@ if (buildCounterNodePool < 3) { checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed1948(o.instanceGroupUrls); + checkUnnamed1719(o.instanceGroupUrls); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -566,27 +566,27 @@ buildCounterOperation--; } -buildUnnamed1949() { +buildUnnamed1720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1949(core.List<core.String> o) { +checkUnnamed1720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1950() { +buildUnnamed1721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1950(core.List<core.String> o) { +checkUnnamed1721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -599,8 +599,8 @@ if (buildCounterServerConfig < 3) { o.defaultClusterVersion = "foo"; o.defaultImageFamily = "foo"; - o.validImageFamilies = buildUnnamed1949(); - o.validNodeVersions = buildUnnamed1950(); + o.validImageFamilies = buildUnnamed1720(); + o.validNodeVersions = buildUnnamed1721(); } buildCounterServerConfig--; return o; @@ -611,8 +611,8 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageFamily, unittest.equals('foo')); - checkUnnamed1949(o.validImageFamilies); - checkUnnamed1950(o.validNodeVersions); + checkUnnamed1720(o.validImageFamilies); + checkUnnamed1721(o.validNodeVersions); } buildCounterServerConfig--; }
diff --git a/generated/googleapis/test/content/v2_test.dart b/generated/googleapis/test/content/v2_test.dart index 3cf821d..4b592e2 100644 --- a/generated/googleapis/test/content/v2_test.dart +++ b/generated/googleapis/test/content/v2_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed513() { +buildUnnamed252() { var o = new core.List<api.AccountAdwordsLink>(); o.add(buildAccountAdwordsLink()); o.add(buildAccountAdwordsLink()); return o; } -checkUnnamed513(core.List<api.AccountAdwordsLink> o) { +checkUnnamed252(core.List<api.AccountAdwordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountAdwordsLink(o[0]); checkAccountAdwordsLink(o[1]); } -buildUnnamed514() { +buildUnnamed253() { var o = new core.List<api.AccountUser>(); o.add(buildAccountUser()); o.add(buildAccountUser()); return o; } -checkUnnamed514(core.List<api.AccountUser> o) { +checkUnnamed253(core.List<api.AccountUser> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUser(o[0]); checkAccountUser(o[1]); @@ -83,13 +83,13 @@ buildCounterAccount++; if (buildCounterAccount < 3) { o.adultContent = true; - o.adwordsLinks = buildUnnamed513(); + o.adwordsLinks = buildUnnamed252(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.reviewsUrl = "foo"; o.sellerId = "foo"; - o.users = buildUnnamed514(); + o.users = buildUnnamed253(); o.websiteUrl = "foo"; } buildCounterAccount--; @@ -100,13 +100,13 @@ buildCounterAccount++; if (buildCounterAccount < 3) { unittest.expect(o.adultContent, unittest.isTrue); - checkUnnamed513(o.adwordsLinks); + checkUnnamed252(o.adwordsLinks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.reviewsUrl, unittest.equals('foo')); unittest.expect(o.sellerId, unittest.equals('foo')); - checkUnnamed514(o.users); + checkUnnamed253(o.users); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterAccount--; @@ -154,53 +154,53 @@ buildCounterAccountIdentifier--; } -buildUnnamed515() { +buildUnnamed254() { var o = new core.List<api.AccountShippingCarrierRate>(); o.add(buildAccountShippingCarrierRate()); o.add(buildAccountShippingCarrierRate()); return o; } -checkUnnamed515(core.List<api.AccountShippingCarrierRate> o) { +checkUnnamed254(core.List<api.AccountShippingCarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingCarrierRate(o[0]); checkAccountShippingCarrierRate(o[1]); } -buildUnnamed516() { +buildUnnamed255() { var o = new core.List<api.AccountShippingLocationGroup>(); o.add(buildAccountShippingLocationGroup()); o.add(buildAccountShippingLocationGroup()); return o; } -checkUnnamed516(core.List<api.AccountShippingLocationGroup> o) { +checkUnnamed255(core.List<api.AccountShippingLocationGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingLocationGroup(o[0]); checkAccountShippingLocationGroup(o[1]); } -buildUnnamed517() { +buildUnnamed256() { var o = new core.List<api.AccountShippingRateTable>(); o.add(buildAccountShippingRateTable()); o.add(buildAccountShippingRateTable()); return o; } -checkUnnamed517(core.List<api.AccountShippingRateTable> o) { +checkUnnamed256(core.List<api.AccountShippingRateTable> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingRateTable(o[0]); checkAccountShippingRateTable(o[1]); } -buildUnnamed518() { +buildUnnamed257() { var o = new core.List<api.AccountShippingShippingService>(); o.add(buildAccountShippingShippingService()); o.add(buildAccountShippingShippingService()); return o; } -checkUnnamed518(core.List<api.AccountShippingShippingService> o) { +checkUnnamed257(core.List<api.AccountShippingShippingService> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingShippingService(o[0]); checkAccountShippingShippingService(o[1]); @@ -212,11 +212,11 @@ buildCounterAccountShipping++; if (buildCounterAccountShipping < 3) { o.accountId = "foo"; - o.carrierRates = buildUnnamed515(); + o.carrierRates = buildUnnamed254(); o.kind = "foo"; - o.locationGroups = buildUnnamed516(); - o.rateTables = buildUnnamed517(); - o.services = buildUnnamed518(); + o.locationGroups = buildUnnamed255(); + o.rateTables = buildUnnamed256(); + o.services = buildUnnamed257(); } buildCounterAccountShipping--; return o; @@ -226,11 +226,11 @@ buildCounterAccountShipping++; if (buildCounterAccountShipping < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed515(o.carrierRates); + checkUnnamed254(o.carrierRates); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed516(o.locationGroups); - checkUnnamed517(o.rateTables); - checkUnnamed518(o.services); + checkUnnamed255(o.locationGroups); + checkUnnamed256(o.rateTables); + checkUnnamed257(o.services); } buildCounterAccountShipping--; } @@ -297,40 +297,40 @@ buildCounterAccountShippingCondition--; } -buildUnnamed519() { +buildUnnamed258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed519(core.List<core.String> o) { +checkUnnamed258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed520() { +buildUnnamed259() { var o = new core.List<api.AccountShippingPostalCodeRange>(); o.add(buildAccountShippingPostalCodeRange()); o.add(buildAccountShippingPostalCodeRange()); return o; } -checkUnnamed520(core.List<api.AccountShippingPostalCodeRange> o) { +checkUnnamed259(core.List<api.AccountShippingPostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingPostalCodeRange(o[0]); checkAccountShippingPostalCodeRange(o[1]); } -buildUnnamed521() { +buildUnnamed260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed521(core.List<core.String> o) { +checkUnnamed260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -342,10 +342,10 @@ buildCounterAccountShippingLocationGroup++; if (buildCounterAccountShippingLocationGroup < 3) { o.country = "foo"; - o.locationIds = buildUnnamed519(); + o.locationIds = buildUnnamed258(); o.name = "foo"; - o.postalCodeRanges = buildUnnamed520(); - o.postalCodes = buildUnnamed521(); + o.postalCodeRanges = buildUnnamed259(); + o.postalCodes = buildUnnamed260(); } buildCounterAccountShippingLocationGroup--; return o; @@ -355,10 +355,10 @@ buildCounterAccountShippingLocationGroup++; if (buildCounterAccountShippingLocationGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed519(o.locationIds); + checkUnnamed258(o.locationIds); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed520(o.postalCodeRanges); - checkUnnamed521(o.postalCodes); + checkUnnamed259(o.postalCodeRanges); + checkUnnamed260(o.postalCodes); } buildCounterAccountShippingLocationGroup--; } @@ -384,14 +384,14 @@ buildCounterAccountShippingPostalCodeRange--; } -buildUnnamed522() { +buildUnnamed261() { var o = new core.List<api.AccountShippingRateTableCell>(); o.add(buildAccountShippingRateTableCell()); o.add(buildAccountShippingRateTableCell()); return o; } -checkUnnamed522(core.List<api.AccountShippingRateTableCell> o) { +checkUnnamed261(core.List<api.AccountShippingRateTableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingRateTableCell(o[0]); checkAccountShippingRateTableCell(o[1]); @@ -402,7 +402,7 @@ var o = new api.AccountShippingRateTable(); buildCounterAccountShippingRateTable++; if (buildCounterAccountShippingRateTable < 3) { - o.content = buildUnnamed522(); + o.content = buildUnnamed261(); o.name = "foo"; o.saleCountry = "foo"; } @@ -413,7 +413,7 @@ checkAccountShippingRateTable(api.AccountShippingRateTable o) { buildCounterAccountShippingRateTable++; if (buildCounterAccountShippingRateTable < 3) { - checkUnnamed522(o.content); + checkUnnamed261(o.content); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.saleCountry, unittest.equals('foo')); } @@ -499,14 +499,14 @@ buildCounterAccountShippingShippingServiceCalculationMethod--; } -buildUnnamed523() { +buildUnnamed262() { var o = new core.List<api.AccountShippingShippingServiceCostRule>(); o.add(buildAccountShippingShippingServiceCostRule()); o.add(buildAccountShippingShippingServiceCostRule()); return o; } -checkUnnamed523(core.List<api.AccountShippingShippingServiceCostRule> o) { +checkUnnamed262(core.List<api.AccountShippingShippingServiceCostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingShippingServiceCostRule(o[0]); checkAccountShippingShippingServiceCostRule(o[1]); @@ -518,7 +518,7 @@ buildCounterAccountShippingShippingServiceCostRule++; if (buildCounterAccountShippingShippingServiceCostRule < 3) { o.calculationMethod = buildAccountShippingShippingServiceCalculationMethod(); - o.children = buildUnnamed523(); + o.children = buildUnnamed262(); o.condition = buildAccountShippingCondition(); } buildCounterAccountShippingShippingServiceCostRule--; @@ -529,20 +529,20 @@ buildCounterAccountShippingShippingServiceCostRule++; if (buildCounterAccountShippingShippingServiceCostRule < 3) { checkAccountShippingShippingServiceCalculationMethod(o.calculationMethod); - checkUnnamed523(o.children); + checkUnnamed262(o.children); checkAccountShippingCondition(o.condition); } buildCounterAccountShippingShippingServiceCostRule--; } -buildUnnamed524() { +buildUnnamed263() { var o = new core.List<api.AccountStatusDataQualityIssue>(); o.add(buildAccountStatusDataQualityIssue()); o.add(buildAccountStatusDataQualityIssue()); return o; } -checkUnnamed524(core.List<api.AccountStatusDataQualityIssue> o) { +checkUnnamed263(core.List<api.AccountStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusDataQualityIssue(o[0]); checkAccountStatusDataQualityIssue(o[1]); @@ -554,7 +554,7 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { o.accountId = "foo"; - o.dataQualityIssues = buildUnnamed524(); + o.dataQualityIssues = buildUnnamed263(); o.kind = "foo"; } buildCounterAccountStatus--; @@ -565,20 +565,20 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed524(o.dataQualityIssues); + checkUnnamed263(o.dataQualityIssues); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountStatus--; } -buildUnnamed525() { +buildUnnamed264() { var o = new core.List<api.AccountStatusExampleItem>(); o.add(buildAccountStatusExampleItem()); o.add(buildAccountStatusExampleItem()); return o; } -checkUnnamed525(core.List<api.AccountStatusExampleItem> o) { +checkUnnamed264(core.List<api.AccountStatusExampleItem> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusExampleItem(o[0]); checkAccountStatusExampleItem(o[1]); @@ -591,7 +591,7 @@ if (buildCounterAccountStatusDataQualityIssue < 3) { o.country = "foo"; o.displayedValue = "foo"; - o.exampleItems = buildUnnamed525(); + o.exampleItems = buildUnnamed264(); o.id = "foo"; o.lastChecked = "foo"; o.numItems = 42; @@ -607,7 +607,7 @@ if (buildCounterAccountStatusDataQualityIssue < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.displayedValue, unittest.equals('foo')); - checkUnnamed525(o.exampleItems); + checkUnnamed264(o.exampleItems); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.lastChecked, unittest.equals('foo')); unittest.expect(o.numItems, unittest.equals(42)); @@ -644,14 +644,14 @@ buildCounterAccountStatusExampleItem--; } -buildUnnamed526() { +buildUnnamed265() { var o = new core.List<api.AccountTaxTaxRule>(); o.add(buildAccountTaxTaxRule()); o.add(buildAccountTaxTaxRule()); return o; } -checkUnnamed526(core.List<api.AccountTaxTaxRule> o) { +checkUnnamed265(core.List<api.AccountTaxTaxRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTaxTaxRule(o[0]); checkAccountTaxTaxRule(o[1]); @@ -664,7 +664,7 @@ if (buildCounterAccountTax < 3) { o.accountId = "foo"; o.kind = "foo"; - o.rules = buildUnnamed526(); + o.rules = buildUnnamed265(); } buildCounterAccountTax--; return o; @@ -675,7 +675,7 @@ if (buildCounterAccountTax < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed526(o.rules); + checkUnnamed265(o.rules); } buildCounterAccountTax--; } @@ -728,14 +728,14 @@ buildCounterAccountUser--; } -buildUnnamed527() { +buildUnnamed266() { var o = new core.List<api.AccountIdentifier>(); o.add(buildAccountIdentifier()); o.add(buildAccountIdentifier()); return o; } -checkUnnamed527(core.List<api.AccountIdentifier> o) { +checkUnnamed266(core.List<api.AccountIdentifier> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountIdentifier(o[0]); checkAccountIdentifier(o[1]); @@ -746,7 +746,7 @@ var o = new api.AccountsAuthInfoResponse(); buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - o.accountIdentifiers = buildUnnamed527(); + o.accountIdentifiers = buildUnnamed266(); o.kind = "foo"; } buildCounterAccountsAuthInfoResponse--; @@ -756,20 +756,20 @@ checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - checkUnnamed527(o.accountIdentifiers); + checkUnnamed266(o.accountIdentifiers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsAuthInfoResponse--; } -buildUnnamed528() { +buildUnnamed267() { var o = new core.List<api.AccountsCustomBatchRequestEntry>(); o.add(buildAccountsCustomBatchRequestEntry()); o.add(buildAccountsCustomBatchRequestEntry()); return o; } -checkUnnamed528(core.List<api.AccountsCustomBatchRequestEntry> o) { +checkUnnamed267(core.List<api.AccountsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchRequestEntry(o[0]); checkAccountsCustomBatchRequestEntry(o[1]); @@ -780,7 +780,7 @@ var o = new api.AccountsCustomBatchRequest(); buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - o.entries = buildUnnamed528(); + o.entries = buildUnnamed267(); } buildCounterAccountsCustomBatchRequest--; return o; @@ -789,7 +789,7 @@ checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - checkUnnamed528(o.entries); + checkUnnamed267(o.entries); } buildCounterAccountsCustomBatchRequest--; } @@ -821,14 +821,14 @@ buildCounterAccountsCustomBatchRequestEntry--; } -buildUnnamed529() { +buildUnnamed268() { var o = new core.List<api.AccountsCustomBatchResponseEntry>(); o.add(buildAccountsCustomBatchResponseEntry()); o.add(buildAccountsCustomBatchResponseEntry()); return o; } -checkUnnamed529(core.List<api.AccountsCustomBatchResponseEntry> o) { +checkUnnamed268(core.List<api.AccountsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchResponseEntry(o[0]); checkAccountsCustomBatchResponseEntry(o[1]); @@ -839,7 +839,7 @@ var o = new api.AccountsCustomBatchResponse(); buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - o.entries = buildUnnamed529(); + o.entries = buildUnnamed268(); o.kind = "foo"; } buildCounterAccountsCustomBatchResponse--; @@ -849,7 +849,7 @@ checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - checkUnnamed529(o.entries); + checkUnnamed268(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsCustomBatchResponse--; @@ -880,14 +880,14 @@ buildCounterAccountsCustomBatchResponseEntry--; } -buildUnnamed530() { +buildUnnamed269() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed530(core.List<api.Account> o) { +checkUnnamed269(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -900,7 +900,7 @@ if (buildCounterAccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed530(); + o.resources = buildUnnamed269(); } buildCounterAccountsListResponse--; return o; @@ -911,19 +911,19 @@ if (buildCounterAccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed530(o.resources); + checkUnnamed269(o.resources); } buildCounterAccountsListResponse--; } -buildUnnamed531() { +buildUnnamed270() { var o = new core.List<api.AccountshippingCustomBatchRequestEntry>(); o.add(buildAccountshippingCustomBatchRequestEntry()); o.add(buildAccountshippingCustomBatchRequestEntry()); return o; } -checkUnnamed531(core.List<api.AccountshippingCustomBatchRequestEntry> o) { +checkUnnamed270(core.List<api.AccountshippingCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountshippingCustomBatchRequestEntry(o[0]); checkAccountshippingCustomBatchRequestEntry(o[1]); @@ -934,7 +934,7 @@ var o = new api.AccountshippingCustomBatchRequest(); buildCounterAccountshippingCustomBatchRequest++; if (buildCounterAccountshippingCustomBatchRequest < 3) { - o.entries = buildUnnamed531(); + o.entries = buildUnnamed270(); } buildCounterAccountshippingCustomBatchRequest--; return o; @@ -943,7 +943,7 @@ checkAccountshippingCustomBatchRequest(api.AccountshippingCustomBatchRequest o) { buildCounterAccountshippingCustomBatchRequest++; if (buildCounterAccountshippingCustomBatchRequest < 3) { - checkUnnamed531(o.entries); + checkUnnamed270(o.entries); } buildCounterAccountshippingCustomBatchRequest--; } @@ -975,14 +975,14 @@ buildCounterAccountshippingCustomBatchRequestEntry--; } -buildUnnamed532() { +buildUnnamed271() { var o = new core.List<api.AccountshippingCustomBatchResponseEntry>(); o.add(buildAccountshippingCustomBatchResponseEntry()); o.add(buildAccountshippingCustomBatchResponseEntry()); return o; } -checkUnnamed532(core.List<api.AccountshippingCustomBatchResponseEntry> o) { +checkUnnamed271(core.List<api.AccountshippingCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountshippingCustomBatchResponseEntry(o[0]); checkAccountshippingCustomBatchResponseEntry(o[1]); @@ -993,7 +993,7 @@ var o = new api.AccountshippingCustomBatchResponse(); buildCounterAccountshippingCustomBatchResponse++; if (buildCounterAccountshippingCustomBatchResponse < 3) { - o.entries = buildUnnamed532(); + o.entries = buildUnnamed271(); o.kind = "foo"; } buildCounterAccountshippingCustomBatchResponse--; @@ -1003,7 +1003,7 @@ checkAccountshippingCustomBatchResponse(api.AccountshippingCustomBatchResponse o) { buildCounterAccountshippingCustomBatchResponse++; if (buildCounterAccountshippingCustomBatchResponse < 3) { - checkUnnamed532(o.entries); + checkUnnamed271(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountshippingCustomBatchResponse--; @@ -1034,14 +1034,14 @@ buildCounterAccountshippingCustomBatchResponseEntry--; } -buildUnnamed533() { +buildUnnamed272() { var o = new core.List<api.AccountShipping>(); o.add(buildAccountShipping()); o.add(buildAccountShipping()); return o; } -checkUnnamed533(core.List<api.AccountShipping> o) { +checkUnnamed272(core.List<api.AccountShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShipping(o[0]); checkAccountShipping(o[1]); @@ -1054,7 +1054,7 @@ if (buildCounterAccountshippingListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed533(); + o.resources = buildUnnamed272(); } buildCounterAccountshippingListResponse--; return o; @@ -1065,19 +1065,19 @@ if (buildCounterAccountshippingListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed533(o.resources); + checkUnnamed272(o.resources); } buildCounterAccountshippingListResponse--; } -buildUnnamed534() { +buildUnnamed273() { var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); o.add(buildAccountstatusesCustomBatchRequestEntry()); o.add(buildAccountstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed534(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { +checkUnnamed273(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchRequestEntry(o[0]); checkAccountstatusesCustomBatchRequestEntry(o[1]); @@ -1088,7 +1088,7 @@ var o = new api.AccountstatusesCustomBatchRequest(); buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed534(); + o.entries = buildUnnamed273(); } buildCounterAccountstatusesCustomBatchRequest--; return o; @@ -1097,7 +1097,7 @@ checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o) { buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - checkUnnamed534(o.entries); + checkUnnamed273(o.entries); } buildCounterAccountstatusesCustomBatchRequest--; } @@ -1127,14 +1127,14 @@ buildCounterAccountstatusesCustomBatchRequestEntry--; } -buildUnnamed535() { +buildUnnamed274() { var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); o.add(buildAccountstatusesCustomBatchResponseEntry()); o.add(buildAccountstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed535(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { +checkUnnamed274(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchResponseEntry(o[0]); checkAccountstatusesCustomBatchResponseEntry(o[1]); @@ -1145,7 +1145,7 @@ var o = new api.AccountstatusesCustomBatchResponse(); buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed535(); + o.entries = buildUnnamed274(); o.kind = "foo"; } buildCounterAccountstatusesCustomBatchResponse--; @@ -1155,7 +1155,7 @@ checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o) { buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - checkUnnamed535(o.entries); + checkUnnamed274(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchResponse--; @@ -1184,14 +1184,14 @@ buildCounterAccountstatusesCustomBatchResponseEntry--; } -buildUnnamed536() { +buildUnnamed275() { var o = new core.List<api.AccountStatus>(); o.add(buildAccountStatus()); o.add(buildAccountStatus()); return o; } -checkUnnamed536(core.List<api.AccountStatus> o) { +checkUnnamed275(core.List<api.AccountStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatus(o[0]); checkAccountStatus(o[1]); @@ -1204,7 +1204,7 @@ if (buildCounterAccountstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed536(); + o.resources = buildUnnamed275(); } buildCounterAccountstatusesListResponse--; return o; @@ -1215,19 +1215,19 @@ if (buildCounterAccountstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed536(o.resources); + checkUnnamed275(o.resources); } buildCounterAccountstatusesListResponse--; } -buildUnnamed537() { +buildUnnamed276() { var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); o.add(buildAccounttaxCustomBatchRequestEntry()); o.add(buildAccounttaxCustomBatchRequestEntry()); return o; } -checkUnnamed537(core.List<api.AccounttaxCustomBatchRequestEntry> o) { +checkUnnamed276(core.List<api.AccounttaxCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchRequestEntry(o[0]); checkAccounttaxCustomBatchRequestEntry(o[1]); @@ -1238,7 +1238,7 @@ var o = new api.AccounttaxCustomBatchRequest(); buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - o.entries = buildUnnamed537(); + o.entries = buildUnnamed276(); } buildCounterAccounttaxCustomBatchRequest--; return o; @@ -1247,7 +1247,7 @@ checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - checkUnnamed537(o.entries); + checkUnnamed276(o.entries); } buildCounterAccounttaxCustomBatchRequest--; } @@ -1279,14 +1279,14 @@ buildCounterAccounttaxCustomBatchRequestEntry--; } -buildUnnamed538() { +buildUnnamed277() { var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); o.add(buildAccounttaxCustomBatchResponseEntry()); o.add(buildAccounttaxCustomBatchResponseEntry()); return o; } -checkUnnamed538(core.List<api.AccounttaxCustomBatchResponseEntry> o) { +checkUnnamed277(core.List<api.AccounttaxCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchResponseEntry(o[0]); checkAccounttaxCustomBatchResponseEntry(o[1]); @@ -1297,7 +1297,7 @@ var o = new api.AccounttaxCustomBatchResponse(); buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - o.entries = buildUnnamed538(); + o.entries = buildUnnamed277(); o.kind = "foo"; } buildCounterAccounttaxCustomBatchResponse--; @@ -1307,7 +1307,7 @@ checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - checkUnnamed538(o.entries); + checkUnnamed277(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounttaxCustomBatchResponse--; @@ -1338,14 +1338,14 @@ buildCounterAccounttaxCustomBatchResponseEntry--; } -buildUnnamed539() { +buildUnnamed278() { var o = new core.List<api.AccountTax>(); o.add(buildAccountTax()); o.add(buildAccountTax()); return o; } -checkUnnamed539(core.List<api.AccountTax> o) { +checkUnnamed278(core.List<api.AccountTax> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTax(o[0]); checkAccountTax(o[1]); @@ -1358,7 +1358,7 @@ if (buildCounterAccounttaxListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed539(); + o.resources = buildUnnamed278(); } buildCounterAccounttaxListResponse--; return o; @@ -1369,7 +1369,7 @@ if (buildCounterAccounttaxListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed539(o.resources); + checkUnnamed278(o.resources); } buildCounterAccounttaxListResponse--; } @@ -1403,14 +1403,14 @@ buildCounterCarrierRate--; } -buildUnnamed540() { +buildUnnamed279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed540(core.List<core.String> o) { +checkUnnamed279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1423,7 +1423,7 @@ if (buildCounterCarriersCarrier < 3) { o.country = "foo"; o.name = "foo"; - o.services = buildUnnamed540(); + o.services = buildUnnamed279(); } buildCounterCarriersCarrier--; return o; @@ -1434,19 +1434,19 @@ if (buildCounterCarriersCarrier < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed540(o.services); + checkUnnamed279(o.services); } buildCounterCarriersCarrier--; } -buildUnnamed541() { +buildUnnamed280() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed541(core.List<core.String> o) { +checkUnnamed280(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1464,7 +1464,7 @@ o.fileName = "foo"; o.format = buildDatafeedFormat(); o.id = "foo"; - o.intendedDestinations = buildUnnamed541(); + o.intendedDestinations = buildUnnamed280(); o.kind = "foo"; o.name = "foo"; o.targetCountry = "foo"; @@ -1483,7 +1483,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); checkDatafeedFormat(o.format); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed541(o.intendedDestinations); + checkUnnamed280(o.intendedDestinations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); @@ -1547,27 +1547,27 @@ buildCounterDatafeedFormat--; } -buildUnnamed542() { +buildUnnamed281() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed542(core.List<api.DatafeedStatusError> o) { +checkUnnamed281(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); } -buildUnnamed543() { +buildUnnamed282() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed543(core.List<api.DatafeedStatusError> o) { +checkUnnamed282(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); @@ -1579,13 +1579,13 @@ buildCounterDatafeedStatus++; if (buildCounterDatafeedStatus < 3) { o.datafeedId = "foo"; - o.errors = buildUnnamed542(); + o.errors = buildUnnamed281(); o.itemsTotal = "foo"; o.itemsValid = "foo"; o.kind = "foo"; o.lastUploadDate = "foo"; o.processingStatus = "foo"; - o.warnings = buildUnnamed543(); + o.warnings = buildUnnamed282(); } buildCounterDatafeedStatus--; return o; @@ -1595,25 +1595,25 @@ buildCounterDatafeedStatus++; if (buildCounterDatafeedStatus < 3) { unittest.expect(o.datafeedId, unittest.equals('foo')); - checkUnnamed542(o.errors); + checkUnnamed281(o.errors); unittest.expect(o.itemsTotal, unittest.equals('foo')); unittest.expect(o.itemsValid, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUploadDate, unittest.equals('foo')); unittest.expect(o.processingStatus, unittest.equals('foo')); - checkUnnamed543(o.warnings); + checkUnnamed282(o.warnings); } buildCounterDatafeedStatus--; } -buildUnnamed544() { +buildUnnamed283() { var o = new core.List<api.DatafeedStatusExample>(); o.add(buildDatafeedStatusExample()); o.add(buildDatafeedStatusExample()); return o; } -checkUnnamed544(core.List<api.DatafeedStatusExample> o) { +checkUnnamed283(core.List<api.DatafeedStatusExample> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusExample(o[0]); checkDatafeedStatusExample(o[1]); @@ -1626,7 +1626,7 @@ if (buildCounterDatafeedStatusError < 3) { o.code = "foo"; o.count = "foo"; - o.examples = buildUnnamed544(); + o.examples = buildUnnamed283(); o.message = "foo"; } buildCounterDatafeedStatusError--; @@ -1638,7 +1638,7 @@ if (buildCounterDatafeedStatusError < 3) { unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed544(o.examples); + checkUnnamed283(o.examples); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDatafeedStatusError--; @@ -1667,14 +1667,14 @@ buildCounterDatafeedStatusExample--; } -buildUnnamed545() { +buildUnnamed284() { var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); o.add(buildDatafeedsCustomBatchRequestEntry()); o.add(buildDatafeedsCustomBatchRequestEntry()); return o; } -checkUnnamed545(core.List<api.DatafeedsCustomBatchRequestEntry> o) { +checkUnnamed284(core.List<api.DatafeedsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchRequestEntry(o[0]); checkDatafeedsCustomBatchRequestEntry(o[1]); @@ -1685,7 +1685,7 @@ var o = new api.DatafeedsCustomBatchRequest(); buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - o.entries = buildUnnamed545(); + o.entries = buildUnnamed284(); } buildCounterDatafeedsCustomBatchRequest--; return o; @@ -1694,7 +1694,7 @@ checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - checkUnnamed545(o.entries); + checkUnnamed284(o.entries); } buildCounterDatafeedsCustomBatchRequest--; } @@ -1726,14 +1726,14 @@ buildCounterDatafeedsCustomBatchRequestEntry--; } -buildUnnamed546() { +buildUnnamed285() { var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); o.add(buildDatafeedsCustomBatchResponseEntry()); o.add(buildDatafeedsCustomBatchResponseEntry()); return o; } -checkUnnamed546(core.List<api.DatafeedsCustomBatchResponseEntry> o) { +checkUnnamed285(core.List<api.DatafeedsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchResponseEntry(o[0]); checkDatafeedsCustomBatchResponseEntry(o[1]); @@ -1744,7 +1744,7 @@ var o = new api.DatafeedsCustomBatchResponse(); buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - o.entries = buildUnnamed546(); + o.entries = buildUnnamed285(); o.kind = "foo"; } buildCounterDatafeedsCustomBatchResponse--; @@ -1754,7 +1754,7 @@ checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - checkUnnamed546(o.entries); + checkUnnamed285(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedsCustomBatchResponse--; @@ -1783,14 +1783,14 @@ buildCounterDatafeedsCustomBatchResponseEntry--; } -buildUnnamed547() { +buildUnnamed286() { var o = new core.List<api.Datafeed>(); o.add(buildDatafeed()); o.add(buildDatafeed()); return o; } -checkUnnamed547(core.List<api.Datafeed> o) { +checkUnnamed286(core.List<api.Datafeed> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeed(o[0]); checkDatafeed(o[1]); @@ -1803,7 +1803,7 @@ if (buildCounterDatafeedsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed547(); + o.resources = buildUnnamed286(); } buildCounterDatafeedsListResponse--; return o; @@ -1814,19 +1814,19 @@ if (buildCounterDatafeedsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed547(o.resources); + checkUnnamed286(o.resources); } buildCounterDatafeedsListResponse--; } -buildUnnamed548() { +buildUnnamed287() { var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed548(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { +checkUnnamed287(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchRequestEntry(o[0]); checkDatafeedstatusesCustomBatchRequestEntry(o[1]); @@ -1837,7 +1837,7 @@ var o = new api.DatafeedstatusesCustomBatchRequest(); buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed548(); + o.entries = buildUnnamed287(); } buildCounterDatafeedstatusesCustomBatchRequest--; return o; @@ -1846,7 +1846,7 @@ checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o) { buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - checkUnnamed548(o.entries); + checkUnnamed287(o.entries); } buildCounterDatafeedstatusesCustomBatchRequest--; } @@ -1876,14 +1876,14 @@ buildCounterDatafeedstatusesCustomBatchRequestEntry--; } -buildUnnamed549() { +buildUnnamed288() { var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed549(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { +checkUnnamed288(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchResponseEntry(o[0]); checkDatafeedstatusesCustomBatchResponseEntry(o[1]); @@ -1894,7 +1894,7 @@ var o = new api.DatafeedstatusesCustomBatchResponse(); buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed549(); + o.entries = buildUnnamed288(); o.kind = "foo"; } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1904,7 +1904,7 @@ checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse o) { buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - checkUnnamed549(o.entries); + checkUnnamed288(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1933,14 +1933,14 @@ buildCounterDatafeedstatusesCustomBatchResponseEntry--; } -buildUnnamed550() { +buildUnnamed289() { var o = new core.List<api.DatafeedStatus>(); o.add(buildDatafeedStatus()); o.add(buildDatafeedStatus()); return o; } -checkUnnamed550(core.List<api.DatafeedStatus> o) { +checkUnnamed289(core.List<api.DatafeedStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatus(o[0]); checkDatafeedStatus(o[1]); @@ -1953,7 +1953,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed550(); + o.resources = buildUnnamed289(); } buildCounterDatafeedstatusesListResponse--; return o; @@ -1964,7 +1964,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed550(o.resources); + checkUnnamed289(o.resources); } buildCounterDatafeedstatusesListResponse--; } @@ -2013,14 +2013,14 @@ buildCounterError--; } -buildUnnamed551() { +buildUnnamed290() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed551(core.List<api.Error> o) { +checkUnnamed290(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -2032,7 +2032,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed551(); + o.errors = buildUnnamed290(); o.message = "foo"; } buildCounterErrors--; @@ -2043,72 +2043,72 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed551(o.errors); + checkUnnamed290(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed552() { +buildUnnamed291() { var o = new core.List<api.LocationIdSet>(); o.add(buildLocationIdSet()); o.add(buildLocationIdSet()); return o; } -checkUnnamed552(core.List<api.LocationIdSet> o) { +checkUnnamed291(core.List<api.LocationIdSet> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationIdSet(o[0]); checkLocationIdSet(o[1]); } -buildUnnamed553() { +buildUnnamed292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed553(core.List<core.String> o) { +checkUnnamed292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed554() { +buildUnnamed293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed554(core.List<core.String> o) { +checkUnnamed293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed555() { +buildUnnamed294() { var o = new core.List<api.Price>(); o.add(buildPrice()); o.add(buildPrice()); return o; } -checkUnnamed555(core.List<api.Price> o) { +checkUnnamed294(core.List<api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o[0]); checkPrice(o[1]); } -buildUnnamed556() { +buildUnnamed295() { var o = new core.List<api.Weight>(); o.add(buildWeight()); o.add(buildWeight()); return o; } -checkUnnamed556(core.List<api.Weight> o) { +checkUnnamed295(core.List<api.Weight> o) { unittest.expect(o, unittest.hasLength(2)); checkWeight(o[0]); checkWeight(o[1]); @@ -2119,11 +2119,11 @@ var o = new api.Headers(); buildCounterHeaders++; if (buildCounterHeaders < 3) { - o.locations = buildUnnamed552(); - o.numberOfItems = buildUnnamed553(); - o.postalCodeGroupNames = buildUnnamed554(); - o.prices = buildUnnamed555(); - o.weights = buildUnnamed556(); + o.locations = buildUnnamed291(); + o.numberOfItems = buildUnnamed292(); + o.postalCodeGroupNames = buildUnnamed293(); + o.prices = buildUnnamed294(); + o.weights = buildUnnamed295(); } buildCounterHeaders--; return o; @@ -2132,11 +2132,11 @@ checkHeaders(api.Headers o) { buildCounterHeaders++; if (buildCounterHeaders < 3) { - checkUnnamed552(o.locations); - checkUnnamed553(o.numberOfItems); - checkUnnamed554(o.postalCodeGroupNames); - checkUnnamed555(o.prices); - checkUnnamed556(o.weights); + checkUnnamed291(o.locations); + checkUnnamed292(o.numberOfItems); + checkUnnamed293(o.postalCodeGroupNames); + checkUnnamed294(o.prices); + checkUnnamed295(o.weights); } buildCounterHeaders--; } @@ -2199,14 +2199,14 @@ buildCounterInventory--; } -buildUnnamed557() { +buildUnnamed296() { var o = new core.List<api.InventoryCustomBatchRequestEntry>(); o.add(buildInventoryCustomBatchRequestEntry()); o.add(buildInventoryCustomBatchRequestEntry()); return o; } -checkUnnamed557(core.List<api.InventoryCustomBatchRequestEntry> o) { +checkUnnamed296(core.List<api.InventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchRequestEntry(o[0]); checkInventoryCustomBatchRequestEntry(o[1]); @@ -2217,7 +2217,7 @@ var o = new api.InventoryCustomBatchRequest(); buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed557(); + o.entries = buildUnnamed296(); } buildCounterInventoryCustomBatchRequest--; return o; @@ -2226,7 +2226,7 @@ checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - checkUnnamed557(o.entries); + checkUnnamed296(o.entries); } buildCounterInventoryCustomBatchRequest--; } @@ -2258,14 +2258,14 @@ buildCounterInventoryCustomBatchRequestEntry--; } -buildUnnamed558() { +buildUnnamed297() { var o = new core.List<api.InventoryCustomBatchResponseEntry>(); o.add(buildInventoryCustomBatchResponseEntry()); o.add(buildInventoryCustomBatchResponseEntry()); return o; } -checkUnnamed558(core.List<api.InventoryCustomBatchResponseEntry> o) { +checkUnnamed297(core.List<api.InventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchResponseEntry(o[0]); checkInventoryCustomBatchResponseEntry(o[1]); @@ -2276,7 +2276,7 @@ var o = new api.InventoryCustomBatchResponse(); buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed558(); + o.entries = buildUnnamed297(); o.kind = "foo"; } buildCounterInventoryCustomBatchResponse--; @@ -2286,7 +2286,7 @@ checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - checkUnnamed558(o.entries); + checkUnnamed297(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInventoryCustomBatchResponse--; @@ -2390,14 +2390,14 @@ buildCounterInventorySetResponse--; } -buildUnnamed559() { +buildUnnamed298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed559(core.List<core.String> o) { +checkUnnamed298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2408,7 +2408,7 @@ var o = new api.LocationIdSet(); buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - o.locationIds = buildUnnamed559(); + o.locationIds = buildUnnamed298(); } buildCounterLocationIdSet--; return o; @@ -2417,7 +2417,7 @@ checkLocationIdSet(api.LocationIdSet o) { buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - checkUnnamed559(o.locationIds); + checkUnnamed298(o.locationIds); } buildCounterLocationIdSet--; } @@ -2445,53 +2445,53 @@ buildCounterLoyaltyPoints--; } -buildUnnamed560() { +buildUnnamed299() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed560(core.List<api.OrderLineItem> o) { +checkUnnamed299(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed561() { +buildUnnamed300() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed561(core.List<api.OrderPromotion> o) { +checkUnnamed300(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed562() { +buildUnnamed301() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed562(core.List<api.OrderRefund> o) { +checkUnnamed301(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed563() { +buildUnnamed302() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed563(core.List<api.OrderShipment> o) { +checkUnnamed302(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -2508,16 +2508,16 @@ o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed560(); + o.lineItems = buildUnnamed299(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed561(); - o.refunds = buildUnnamed562(); - o.shipments = buildUnnamed563(); + o.promotions = buildUnnamed300(); + o.refunds = buildUnnamed301(); + o.shipments = buildUnnamed302(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -2536,16 +2536,16 @@ checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed560(o.lineItems); + checkUnnamed299(o.lineItems); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); checkPrice(o.netAmount); checkOrderPaymentMethod(o.paymentMethod); unittest.expect(o.paymentStatus, unittest.equals('foo')); unittest.expect(o.placedDate, unittest.equals('foo')); - checkUnnamed561(o.promotions); - checkUnnamed562(o.refunds); - checkUnnamed563(o.shipments); + checkUnnamed300(o.promotions); + checkUnnamed301(o.refunds); + checkUnnamed302(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -2554,27 +2554,27 @@ buildCounterOrder--; } -buildUnnamed564() { +buildUnnamed303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed564(core.List<core.String> o) { +checkUnnamed303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed565() { +buildUnnamed304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed565(core.List<core.String> o) { +checkUnnamed304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2586,13 +2586,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed564(); + o.fullAddress = buildUnnamed303(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed565(); + o.streetAddress = buildUnnamed304(); } buildCounterOrderAddress--; return o; @@ -2602,13 +2602,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed564(o.fullAddress); + checkUnnamed303(o.fullAddress); unittest.expect(o.isPostOfficeBox, unittest.isTrue); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); unittest.expect(o.recipientName, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed565(o.streetAddress); + checkUnnamed304(o.streetAddress); } buildCounterOrderAddress--; } @@ -2684,27 +2684,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed566() { +buildUnnamed305() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed566(core.List<api.OrderCancellation> o) { +checkUnnamed305(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed567() { +buildUnnamed306() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed567(core.List<api.OrderReturn> o) { +checkUnnamed306(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -2715,7 +2715,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed566(); + o.cancellations = buildUnnamed305(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -2726,7 +2726,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed567(); + o.returns = buildUnnamed306(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -2737,7 +2737,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed566(o.cancellations); + checkUnnamed305(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -2748,21 +2748,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed567(o.returns); + checkUnnamed306(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed568() { +buildUnnamed307() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed568(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed307(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -2787,7 +2787,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed568(); + o.variantAttributes = buildUnnamed307(); } buildCounterOrderLineItemProduct--; return o; @@ -2810,7 +2810,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed568(o.variantAttributes); + checkUnnamed307(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -2936,14 +2936,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed569() { +buildUnnamed308() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed569(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed308(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -2954,7 +2954,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed569(); + o.benefits = buildUnnamed308(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -2969,7 +2969,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed569(o.benefits); + checkUnnamed308(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -2980,14 +2980,14 @@ buildCounterOrderPromotion--; } -buildUnnamed570() { +buildUnnamed309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed570(core.List<core.String> o) { +checkUnnamed309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2999,7 +2999,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed570(); + o.offerIds = buildUnnamed309(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -3012,7 +3012,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed570(o.offerIds); + checkUnnamed309(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -3074,14 +3074,14 @@ buildCounterOrderReturn--; } -buildUnnamed571() { +buildUnnamed310() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed571(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed310(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3096,7 +3096,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed571(); + o.lineItems = buildUnnamed310(); o.status = "foo"; o.trackingId = "foo"; } @@ -3111,7 +3111,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed571(o.lineItems); + checkUnnamed310(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3334,14 +3334,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed572() { +buildUnnamed311() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed572(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed311(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -3352,7 +3352,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed572(); + o.entries = buildUnnamed311(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -3361,7 +3361,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed572(o.entries); + checkUnnamed311(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -3503,14 +3503,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed573() { +buildUnnamed312() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed573(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed312(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3522,7 +3522,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed573(); + o.lineItems = buildUnnamed312(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -3534,7 +3534,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed573(o.lineItems); + checkUnnamed312(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3566,14 +3566,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed574() { +buildUnnamed313() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed574(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed313(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -3584,7 +3584,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed574(); + o.entries = buildUnnamed313(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -3594,7 +3594,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed574(o.entries); + checkUnnamed313(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -3669,14 +3669,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed575() { +buildUnnamed314() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed575(core.List<api.Order> o) { +checkUnnamed314(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -3689,7 +3689,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed575(); + o.resources = buildUnnamed314(); } buildCounterOrdersListResponse--; return o; @@ -3700,7 +3700,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed575(o.resources); + checkUnnamed314(o.resources); } buildCounterOrdersListResponse--; } @@ -3799,14 +3799,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed576() { +buildUnnamed315() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed576(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed315(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3818,7 +3818,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed576(); + o.lineItems = buildUnnamed315(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -3831,7 +3831,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed576(o.lineItems); + checkUnnamed315(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -3950,14 +3950,14 @@ buildCounterOrdersUpdateShipmentResponse--; } -buildUnnamed577() { +buildUnnamed316() { var o = new core.List<api.PostalCodeRange>(); o.add(buildPostalCodeRange()); o.add(buildPostalCodeRange()); return o; } -checkUnnamed577(core.List<api.PostalCodeRange> o) { +checkUnnamed316(core.List<api.PostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeRange(o[0]); checkPostalCodeRange(o[1]); @@ -3970,7 +3970,7 @@ if (buildCounterPostalCodeGroup < 3) { o.country = "foo"; o.name = "foo"; - o.postalCodeRanges = buildUnnamed577(); + o.postalCodeRanges = buildUnnamed316(); } buildCounterPostalCodeGroup--; return o; @@ -3981,7 +3981,7 @@ if (buildCounterPostalCodeGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed577(o.postalCodeRanges); + checkUnnamed316(o.postalCodeRanges); } buildCounterPostalCodeGroup--; } @@ -4028,183 +4028,183 @@ buildCounterPrice--; } -buildUnnamed578() { +buildUnnamed317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed578(core.List<core.String> o) { +checkUnnamed317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed579() { +buildUnnamed318() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed579(core.List<core.String> o) { +checkUnnamed318(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed580() { +buildUnnamed319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed580(core.List<core.String> o) { +checkUnnamed319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed581() { +buildUnnamed320() { var o = new core.List<api.ProductAspect>(); o.add(buildProductAspect()); o.add(buildProductAspect()); return o; } -checkUnnamed581(core.List<api.ProductAspect> o) { +checkUnnamed320(core.List<api.ProductAspect> o) { unittest.expect(o, unittest.hasLength(2)); checkProductAspect(o[0]); checkProductAspect(o[1]); } -buildUnnamed582() { +buildUnnamed321() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed582(core.List<api.ProductCustomAttribute> o) { +checkUnnamed321(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); } -buildUnnamed583() { +buildUnnamed322() { var o = new core.List<api.ProductCustomGroup>(); o.add(buildProductCustomGroup()); o.add(buildProductCustomGroup()); return o; } -checkUnnamed583(core.List<api.ProductCustomGroup> o) { +checkUnnamed322(core.List<api.ProductCustomGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomGroup(o[0]); checkProductCustomGroup(o[1]); } -buildUnnamed584() { +buildUnnamed323() { var o = new core.List<api.ProductDestination>(); o.add(buildProductDestination()); o.add(buildProductDestination()); return o; } -checkUnnamed584(core.List<api.ProductDestination> o) { +checkUnnamed323(core.List<api.ProductDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDestination(o[0]); checkProductDestination(o[1]); } -buildUnnamed585() { +buildUnnamed324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed585(core.List<core.String> o) { +checkUnnamed324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed586() { +buildUnnamed325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed586(core.List<core.String> o) { +checkUnnamed325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed587() { +buildUnnamed326() { var o = new core.List<api.ProductShipping>(); o.add(buildProductShipping()); o.add(buildProductShipping()); return o; } -checkUnnamed587(core.List<api.ProductShipping> o) { +checkUnnamed326(core.List<api.ProductShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkProductShipping(o[0]); checkProductShipping(o[1]); } -buildUnnamed588() { +buildUnnamed327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed588(core.List<core.String> o) { +checkUnnamed327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed589() { +buildUnnamed328() { var o = new core.List<api.ProductTax>(); o.add(buildProductTax()); o.add(buildProductTax()); return o; } -checkUnnamed589(core.List<api.ProductTax> o) { +checkUnnamed328(core.List<api.ProductTax> o) { unittest.expect(o, unittest.hasLength(2)); checkProductTax(o[0]); checkProductTax(o[1]); } -buildUnnamed590() { +buildUnnamed329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed590(core.List<core.String> o) { +checkUnnamed329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed591() { +buildUnnamed330() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed591(core.List<api.Error> o) { +checkUnnamed330(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -4215,14 +4215,14 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.additionalImageLinks = buildUnnamed578(); - o.additionalProductTypes = buildUnnamed579(); + o.additionalImageLinks = buildUnnamed317(); + o.additionalProductTypes = buildUnnamed318(); o.adult = true; o.adwordsGrouping = "foo"; - o.adwordsLabels = buildUnnamed580(); + o.adwordsLabels = buildUnnamed319(); o.adwordsRedirect = "foo"; o.ageGroup = "foo"; - o.aspects = buildUnnamed581(); + o.aspects = buildUnnamed320(); o.availability = "foo"; o.availabilityDate = "foo"; o.brand = "foo"; @@ -4230,18 +4230,18 @@ o.color = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.customAttributes = buildUnnamed582(); - o.customGroups = buildUnnamed583(); + o.customAttributes = buildUnnamed321(); + o.customGroups = buildUnnamed322(); o.customLabel0 = "foo"; o.customLabel1 = "foo"; o.customLabel2 = "foo"; o.customLabel3 = "foo"; o.customLabel4 = "foo"; o.description = "foo"; - o.destinations = buildUnnamed584(); + o.destinations = buildUnnamed323(); o.displayAdsId = "foo"; o.displayAdsLink = "foo"; - o.displayAdsSimilarIds = buildUnnamed585(); + o.displayAdsSimilarIds = buildUnnamed324(); o.displayAdsTitle = "foo"; o.displayAdsValue = 42.0; o.energyEfficiencyClass = "foo"; @@ -4267,11 +4267,11 @@ o.pattern = "foo"; o.price = buildPrice(); o.productType = "foo"; - o.promotionIds = buildUnnamed586(); + o.promotionIds = buildUnnamed325(); o.salePrice = buildPrice(); o.salePriceEffectiveDate = "foo"; o.sellOnGoogleQuantity = "foo"; - o.shipping = buildUnnamed587(); + o.shipping = buildUnnamed326(); o.shippingHeight = buildProductShippingDimension(); o.shippingLabel = "foo"; o.shippingLength = buildProductShippingDimension(); @@ -4279,14 +4279,14 @@ o.shippingWidth = buildProductShippingDimension(); o.sizeSystem = "foo"; o.sizeType = "foo"; - o.sizes = buildUnnamed588(); + o.sizes = buildUnnamed327(); o.targetCountry = "foo"; - o.taxes = buildUnnamed589(); + o.taxes = buildUnnamed328(); o.title = "foo"; o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); o.unitPricingMeasure = buildProductUnitPricingMeasure(); - o.validatedDestinations = buildUnnamed590(); - o.warnings = buildUnnamed591(); + o.validatedDestinations = buildUnnamed329(); + o.warnings = buildUnnamed330(); } buildCounterProduct--; return o; @@ -4295,14 +4295,14 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed578(o.additionalImageLinks); - checkUnnamed579(o.additionalProductTypes); + checkUnnamed317(o.additionalImageLinks); + checkUnnamed318(o.additionalProductTypes); unittest.expect(o.adult, unittest.isTrue); unittest.expect(o.adwordsGrouping, unittest.equals('foo')); - checkUnnamed580(o.adwordsLabels); + checkUnnamed319(o.adwordsLabels); unittest.expect(o.adwordsRedirect, unittest.equals('foo')); unittest.expect(o.ageGroup, unittest.equals('foo')); - checkUnnamed581(o.aspects); + checkUnnamed320(o.aspects); unittest.expect(o.availability, unittest.equals('foo')); unittest.expect(o.availabilityDate, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -4310,18 +4310,18 @@ unittest.expect(o.color, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed582(o.customAttributes); - checkUnnamed583(o.customGroups); + checkUnnamed321(o.customAttributes); + checkUnnamed322(o.customGroups); unittest.expect(o.customLabel0, unittest.equals('foo')); unittest.expect(o.customLabel1, unittest.equals('foo')); unittest.expect(o.customLabel2, unittest.equals('foo')); unittest.expect(o.customLabel3, unittest.equals('foo')); unittest.expect(o.customLabel4, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed584(o.destinations); + checkUnnamed323(o.destinations); unittest.expect(o.displayAdsId, unittest.equals('foo')); unittest.expect(o.displayAdsLink, unittest.equals('foo')); - checkUnnamed585(o.displayAdsSimilarIds); + checkUnnamed324(o.displayAdsSimilarIds); unittest.expect(o.displayAdsTitle, unittest.equals('foo')); unittest.expect(o.displayAdsValue, unittest.equals(42.0)); unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); @@ -4347,11 +4347,11 @@ unittest.expect(o.pattern, unittest.equals('foo')); checkPrice(o.price); unittest.expect(o.productType, unittest.equals('foo')); - checkUnnamed586(o.promotionIds); + checkUnnamed325(o.promotionIds); checkPrice(o.salePrice); unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); unittest.expect(o.sellOnGoogleQuantity, unittest.equals('foo')); - checkUnnamed587(o.shipping); + checkUnnamed326(o.shipping); checkProductShippingDimension(o.shippingHeight); unittest.expect(o.shippingLabel, unittest.equals('foo')); checkProductShippingDimension(o.shippingLength); @@ -4359,14 +4359,14 @@ checkProductShippingDimension(o.shippingWidth); unittest.expect(o.sizeSystem, unittest.equals('foo')); unittest.expect(o.sizeType, unittest.equals('foo')); - checkUnnamed588(o.sizes); + checkUnnamed327(o.sizes); unittest.expect(o.targetCountry, unittest.equals('foo')); - checkUnnamed589(o.taxes); + checkUnnamed328(o.taxes); unittest.expect(o.title, unittest.equals('foo')); checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); checkProductUnitPricingMeasure(o.unitPricingMeasure); - checkUnnamed590(o.validatedDestinations); - checkUnnamed591(o.warnings); + checkUnnamed329(o.validatedDestinations); + checkUnnamed330(o.warnings); } buildCounterProduct--; } @@ -4419,14 +4419,14 @@ buildCounterProductCustomAttribute--; } -buildUnnamed592() { +buildUnnamed331() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed592(core.List<api.ProductCustomAttribute> o) { +checkUnnamed331(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); @@ -4437,7 +4437,7 @@ var o = new api.ProductCustomGroup(); buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - o.attributes = buildUnnamed592(); + o.attributes = buildUnnamed331(); o.name = "foo"; } buildCounterProductCustomGroup--; @@ -4447,7 +4447,7 @@ checkProductCustomGroup(api.ProductCustomGroup o) { buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - checkUnnamed592(o.attributes); + checkUnnamed331(o.attributes); unittest.expect(o.name, unittest.equals('foo')); } buildCounterProductCustomGroup--; @@ -4547,27 +4547,27 @@ buildCounterProductShippingWeight--; } -buildUnnamed593() { +buildUnnamed332() { var o = new core.List<api.ProductStatusDataQualityIssue>(); o.add(buildProductStatusDataQualityIssue()); o.add(buildProductStatusDataQualityIssue()); return o; } -checkUnnamed593(core.List<api.ProductStatusDataQualityIssue> o) { +checkUnnamed332(core.List<api.ProductStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDataQualityIssue(o[0]); checkProductStatusDataQualityIssue(o[1]); } -buildUnnamed594() { +buildUnnamed333() { var o = new core.List<api.ProductStatusDestinationStatus>(); o.add(buildProductStatusDestinationStatus()); o.add(buildProductStatusDestinationStatus()); return o; } -checkUnnamed594(core.List<api.ProductStatusDestinationStatus> o) { +checkUnnamed333(core.List<api.ProductStatusDestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDestinationStatus(o[0]); checkProductStatusDestinationStatus(o[1]); @@ -4579,8 +4579,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { o.creationDate = "foo"; - o.dataQualityIssues = buildUnnamed593(); - o.destinationStatuses = buildUnnamed594(); + o.dataQualityIssues = buildUnnamed332(); + o.destinationStatuses = buildUnnamed333(); o.googleExpirationDate = "foo"; o.kind = "foo"; o.lastUpdateDate = "foo"; @@ -4596,8 +4596,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { unittest.expect(o.creationDate, unittest.equals('foo')); - checkUnnamed593(o.dataQualityIssues); - checkUnnamed594(o.destinationStatuses); + checkUnnamed332(o.dataQualityIssues); + checkUnnamed333(o.destinationStatuses); unittest.expect(o.googleExpirationDate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateDate, unittest.equals('foo')); @@ -4735,14 +4735,14 @@ buildCounterProductUnitPricingMeasure--; } -buildUnnamed595() { +buildUnnamed334() { var o = new core.List<api.ProductsCustomBatchRequestEntry>(); o.add(buildProductsCustomBatchRequestEntry()); o.add(buildProductsCustomBatchRequestEntry()); return o; } -checkUnnamed595(core.List<api.ProductsCustomBatchRequestEntry> o) { +checkUnnamed334(core.List<api.ProductsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchRequestEntry(o[0]); checkProductsCustomBatchRequestEntry(o[1]); @@ -4753,7 +4753,7 @@ var o = new api.ProductsCustomBatchRequest(); buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - o.entries = buildUnnamed595(); + o.entries = buildUnnamed334(); } buildCounterProductsCustomBatchRequest--; return o; @@ -4762,7 +4762,7 @@ checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - checkUnnamed595(o.entries); + checkUnnamed334(o.entries); } buildCounterProductsCustomBatchRequest--; } @@ -4794,14 +4794,14 @@ buildCounterProductsCustomBatchRequestEntry--; } -buildUnnamed596() { +buildUnnamed335() { var o = new core.List<api.ProductsCustomBatchResponseEntry>(); o.add(buildProductsCustomBatchResponseEntry()); o.add(buildProductsCustomBatchResponseEntry()); return o; } -checkUnnamed596(core.List<api.ProductsCustomBatchResponseEntry> o) { +checkUnnamed335(core.List<api.ProductsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchResponseEntry(o[0]); checkProductsCustomBatchResponseEntry(o[1]); @@ -4812,7 +4812,7 @@ var o = new api.ProductsCustomBatchResponse(); buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - o.entries = buildUnnamed596(); + o.entries = buildUnnamed335(); o.kind = "foo"; } buildCounterProductsCustomBatchResponse--; @@ -4822,7 +4822,7 @@ checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - checkUnnamed596(o.entries); + checkUnnamed335(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductsCustomBatchResponse--; @@ -4853,14 +4853,14 @@ buildCounterProductsCustomBatchResponseEntry--; } -buildUnnamed597() { +buildUnnamed336() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed597(core.List<api.Product> o) { +checkUnnamed336(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -4873,7 +4873,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed597(); + o.resources = buildUnnamed336(); } buildCounterProductsListResponse--; return o; @@ -4884,19 +4884,19 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed597(o.resources); + checkUnnamed336(o.resources); } buildCounterProductsListResponse--; } -buildUnnamed598() { +buildUnnamed337() { var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); o.add(buildProductstatusesCustomBatchRequestEntry()); o.add(buildProductstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed598(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { +checkUnnamed337(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchRequestEntry(o[0]); checkProductstatusesCustomBatchRequestEntry(o[1]); @@ -4907,7 +4907,7 @@ var o = new api.ProductstatusesCustomBatchRequest(); buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed598(); + o.entries = buildUnnamed337(); } buildCounterProductstatusesCustomBatchRequest--; return o; @@ -4916,7 +4916,7 @@ checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o) { buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - checkUnnamed598(o.entries); + checkUnnamed337(o.entries); } buildCounterProductstatusesCustomBatchRequest--; } @@ -4946,14 +4946,14 @@ buildCounterProductstatusesCustomBatchRequestEntry--; } -buildUnnamed599() { +buildUnnamed338() { var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); o.add(buildProductstatusesCustomBatchResponseEntry()); o.add(buildProductstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed599(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { +checkUnnamed338(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchResponseEntry(o[0]); checkProductstatusesCustomBatchResponseEntry(o[1]); @@ -4964,7 +4964,7 @@ var o = new api.ProductstatusesCustomBatchResponse(); buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed599(); + o.entries = buildUnnamed338(); o.kind = "foo"; } buildCounterProductstatusesCustomBatchResponse--; @@ -4974,7 +4974,7 @@ checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o) { buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - checkUnnamed599(o.entries); + checkUnnamed338(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductstatusesCustomBatchResponse--; @@ -5005,14 +5005,14 @@ buildCounterProductstatusesCustomBatchResponseEntry--; } -buildUnnamed600() { +buildUnnamed339() { var o = new core.List<api.ProductStatus>(); o.add(buildProductStatus()); o.add(buildProductStatus()); return o; } -checkUnnamed600(core.List<api.ProductStatus> o) { +checkUnnamed339(core.List<api.ProductStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatus(o[0]); checkProductStatus(o[1]); @@ -5025,7 +5025,7 @@ if (buildCounterProductstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed600(); + o.resources = buildUnnamed339(); } buildCounterProductstatusesListResponse--; return o; @@ -5036,45 +5036,45 @@ if (buildCounterProductstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed600(o.resources); + checkUnnamed339(o.resources); } buildCounterProductstatusesListResponse--; } -buildUnnamed601() { +buildUnnamed340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed601(core.List<core.String> o) { +checkUnnamed340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed602() { +buildUnnamed341() { var o = new core.List<api.CarrierRate>(); o.add(buildCarrierRate()); o.add(buildCarrierRate()); return o; } -checkUnnamed602(core.List<api.CarrierRate> o) { +checkUnnamed341(core.List<api.CarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierRate(o[0]); checkCarrierRate(o[1]); } -buildUnnamed603() { +buildUnnamed342() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed603(core.List<api.Table> o) { +checkUnnamed342(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -5085,11 +5085,11 @@ var o = new api.RateGroup(); buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - o.applicableShippingLabels = buildUnnamed601(); - o.carrierRates = buildUnnamed602(); + o.applicableShippingLabels = buildUnnamed340(); + o.carrierRates = buildUnnamed341(); o.mainTable = buildTable(); o.singleValue = buildValue(); - o.subtables = buildUnnamed603(); + o.subtables = buildUnnamed342(); } buildCounterRateGroup--; return o; @@ -5098,23 +5098,23 @@ checkRateGroup(api.RateGroup o) { buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - checkUnnamed601(o.applicableShippingLabels); - checkUnnamed602(o.carrierRates); + checkUnnamed340(o.applicableShippingLabels); + checkUnnamed341(o.carrierRates); checkTable(o.mainTable); checkValue(o.singleValue); - checkUnnamed603(o.subtables); + checkUnnamed342(o.subtables); } buildCounterRateGroup--; } -buildUnnamed604() { +buildUnnamed343() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed604(core.List<api.Value> o) { +checkUnnamed343(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -5125,7 +5125,7 @@ var o = new api.Row(); buildCounterRow++; if (buildCounterRow < 3) { - o.cells = buildUnnamed604(); + o.cells = buildUnnamed343(); } buildCounterRow--; return o; @@ -5134,19 +5134,19 @@ checkRow(api.Row o) { buildCounterRow++; if (buildCounterRow < 3) { - checkUnnamed604(o.cells); + checkUnnamed343(o.cells); } buildCounterRow--; } -buildUnnamed605() { +buildUnnamed344() { var o = new core.List<api.RateGroup>(); o.add(buildRateGroup()); o.add(buildRateGroup()); return o; } -checkUnnamed605(core.List<api.RateGroup> o) { +checkUnnamed344(core.List<api.RateGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkRateGroup(o[0]); checkRateGroup(o[1]); @@ -5162,7 +5162,7 @@ o.deliveryCountry = "foo"; o.deliveryTime = buildDeliveryTime(); o.name = "foo"; - o.rateGroups = buildUnnamed605(); + o.rateGroups = buildUnnamed344(); } buildCounterService--; return o; @@ -5176,32 +5176,32 @@ unittest.expect(o.deliveryCountry, unittest.equals('foo')); checkDeliveryTime(o.deliveryTime); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed605(o.rateGroups); + checkUnnamed344(o.rateGroups); } buildCounterService--; } -buildUnnamed606() { +buildUnnamed345() { var o = new core.List<api.PostalCodeGroup>(); o.add(buildPostalCodeGroup()); o.add(buildPostalCodeGroup()); return o; } -checkUnnamed606(core.List<api.PostalCodeGroup> o) { +checkUnnamed345(core.List<api.PostalCodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeGroup(o[0]); checkPostalCodeGroup(o[1]); } -buildUnnamed607() { +buildUnnamed346() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed607(core.List<api.Service> o) { +checkUnnamed346(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -5213,8 +5213,8 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { o.accountId = "foo"; - o.postalCodeGroups = buildUnnamed606(); - o.services = buildUnnamed607(); + o.postalCodeGroups = buildUnnamed345(); + o.services = buildUnnamed346(); } buildCounterShippingSettings--; return o; @@ -5224,20 +5224,20 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed606(o.postalCodeGroups); - checkUnnamed607(o.services); + checkUnnamed345(o.postalCodeGroups); + checkUnnamed346(o.services); } buildCounterShippingSettings--; } -buildUnnamed608() { +buildUnnamed347() { var o = new core.List<api.ShippingsettingsCustomBatchRequestEntry>(); o.add(buildShippingsettingsCustomBatchRequestEntry()); o.add(buildShippingsettingsCustomBatchRequestEntry()); return o; } -checkUnnamed608(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { +checkUnnamed347(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchRequestEntry(o[0]); checkShippingsettingsCustomBatchRequestEntry(o[1]); @@ -5248,7 +5248,7 @@ var o = new api.ShippingsettingsCustomBatchRequest(); buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed608(); + o.entries = buildUnnamed347(); } buildCounterShippingsettingsCustomBatchRequest--; return o; @@ -5257,7 +5257,7 @@ checkShippingsettingsCustomBatchRequest(api.ShippingsettingsCustomBatchRequest o) { buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - checkUnnamed608(o.entries); + checkUnnamed347(o.entries); } buildCounterShippingsettingsCustomBatchRequest--; } @@ -5289,14 +5289,14 @@ buildCounterShippingsettingsCustomBatchRequestEntry--; } -buildUnnamed609() { +buildUnnamed348() { var o = new core.List<api.ShippingsettingsCustomBatchResponseEntry>(); o.add(buildShippingsettingsCustomBatchResponseEntry()); o.add(buildShippingsettingsCustomBatchResponseEntry()); return o; } -checkUnnamed609(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { +checkUnnamed348(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchResponseEntry(o[0]); checkShippingsettingsCustomBatchResponseEntry(o[1]); @@ -5307,7 +5307,7 @@ var o = new api.ShippingsettingsCustomBatchResponse(); buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed609(); + o.entries = buildUnnamed348(); o.kind = "foo"; } buildCounterShippingsettingsCustomBatchResponse--; @@ -5317,7 +5317,7 @@ checkShippingsettingsCustomBatchResponse(api.ShippingsettingsCustomBatchResponse o) { buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - checkUnnamed609(o.entries); + checkUnnamed348(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsCustomBatchResponse--; @@ -5348,14 +5348,14 @@ buildCounterShippingsettingsCustomBatchResponseEntry--; } -buildUnnamed610() { +buildUnnamed349() { var o = new core.List<api.CarriersCarrier>(); o.add(buildCarriersCarrier()); o.add(buildCarriersCarrier()); return o; } -checkUnnamed610(core.List<api.CarriersCarrier> o) { +checkUnnamed349(core.List<api.CarriersCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkCarriersCarrier(o[0]); checkCarriersCarrier(o[1]); @@ -5366,7 +5366,7 @@ var o = new api.ShippingsettingsGetSupportedCarriersResponse(); buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - o.carriers = buildUnnamed610(); + o.carriers = buildUnnamed349(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedCarriersResponse--; @@ -5376,20 +5376,20 @@ checkShippingsettingsGetSupportedCarriersResponse(api.ShippingsettingsGetSupportedCarriersResponse o) { buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - checkUnnamed610(o.carriers); + checkUnnamed349(o.carriers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedCarriersResponse--; } -buildUnnamed611() { +buildUnnamed350() { var o = new core.List<api.ShippingSettings>(); o.add(buildShippingSettings()); o.add(buildShippingSettings()); return o; } -checkUnnamed611(core.List<api.ShippingSettings> o) { +checkUnnamed350(core.List<api.ShippingSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingSettings(o[0]); checkShippingSettings(o[1]); @@ -5402,7 +5402,7 @@ if (buildCounterShippingsettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed611(); + o.resources = buildUnnamed350(); } buildCounterShippingsettingsListResponse--; return o; @@ -5413,19 +5413,19 @@ if (buildCounterShippingsettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed611(o.resources); + checkUnnamed350(o.resources); } buildCounterShippingsettingsListResponse--; } -buildUnnamed612() { +buildUnnamed351() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed612(core.List<api.Row> o) { +checkUnnamed351(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -5439,7 +5439,7 @@ o.columnHeaders = buildHeaders(); o.name = "foo"; o.rowHeaders = buildHeaders(); - o.rows = buildUnnamed612(); + o.rows = buildUnnamed351(); } buildCounterTable--; return o; @@ -5451,32 +5451,32 @@ checkHeaders(o.columnHeaders); unittest.expect(o.name, unittest.equals('foo')); checkHeaders(o.rowHeaders); - checkUnnamed612(o.rows); + checkUnnamed351(o.rows); } buildCounterTable--; } -buildUnnamed613() { +buildUnnamed352() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed613(core.List<api.TestOrderLineItem> o) { +checkUnnamed352(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed614() { +buildUnnamed353() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed614(core.List<api.OrderPromotion> o) { +checkUnnamed353(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -5489,10 +5489,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed613(); + o.lineItems = buildUnnamed352(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed614(); + o.promotions = buildUnnamed353(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -5506,10 +5506,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed613(o.lineItems); + checkUnnamed352(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed614(o.promotions); + checkUnnamed353(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -5567,14 +5567,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed615() { +buildUnnamed354() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed615(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed354(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -5597,7 +5597,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed615(); + o.variantAttributes = buildUnnamed354(); } buildCounterTestOrderLineItemProduct--; return o; @@ -5618,7 +5618,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed615(o.variantAttributes); + checkUnnamed354(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -5698,14 +5698,14 @@ buildCounterWeight--; } -buildUnnamed616() { +buildUnnamed355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed616(core.List<core.String> o) { +checkUnnamed355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9229,7 +9229,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed616(); + var arg_statuses = buildUnnamed355(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/content/v2sandbox_test.dart b/generated/googleapis/test/content/v2sandbox_test.dart index 39eba4b..df03d64 100644 --- a/generated/googleapis/test/content/v2sandbox_test.dart +++ b/generated/googleapis/test/content/v2sandbox_test.dart
@@ -74,14 +74,14 @@ buildCounterError--; } -buildUnnamed1499() { +buildUnnamed1252() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1499(core.List<api.Error> o) { +checkUnnamed1252(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -93,7 +93,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed1499(); + o.errors = buildUnnamed1252(); o.message = "foo"; } buildCounterErrors--; @@ -104,59 +104,59 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1499(o.errors); + checkUnnamed1252(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed1500() { +buildUnnamed1253() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed1500(core.List<api.OrderLineItem> o) { +checkUnnamed1253(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed1501() { +buildUnnamed1254() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1501(core.List<api.OrderPromotion> o) { +checkUnnamed1254(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed1502() { +buildUnnamed1255() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed1502(core.List<api.OrderRefund> o) { +checkUnnamed1255(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed1503() { +buildUnnamed1256() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed1503(core.List<api.OrderShipment> o) { +checkUnnamed1256(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -173,16 +173,16 @@ o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed1500(); + o.lineItems = buildUnnamed1253(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed1501(); - o.refunds = buildUnnamed1502(); - o.shipments = buildUnnamed1503(); + o.promotions = buildUnnamed1254(); + o.refunds = buildUnnamed1255(); + o.shipments = buildUnnamed1256(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -201,16 +201,16 @@ checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1500(o.lineItems); + checkUnnamed1253(o.lineItems); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); checkPrice(o.netAmount); checkOrderPaymentMethod(o.paymentMethod); unittest.expect(o.paymentStatus, unittest.equals('foo')); unittest.expect(o.placedDate, unittest.equals('foo')); - checkUnnamed1501(o.promotions); - checkUnnamed1502(o.refunds); - checkUnnamed1503(o.shipments); + checkUnnamed1254(o.promotions); + checkUnnamed1255(o.refunds); + checkUnnamed1256(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -219,27 +219,27 @@ buildCounterOrder--; } -buildUnnamed1504() { +buildUnnamed1257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1504(core.List<core.String> o) { +checkUnnamed1257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1505() { +buildUnnamed1258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1505(core.List<core.String> o) { +checkUnnamed1258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -251,13 +251,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed1504(); + o.fullAddress = buildUnnamed1257(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed1505(); + o.streetAddress = buildUnnamed1258(); } buildCounterOrderAddress--; return o; @@ -267,13 +267,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1504(o.fullAddress); + checkUnnamed1257(o.fullAddress); unittest.expect(o.isPostOfficeBox, unittest.isTrue); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); unittest.expect(o.recipientName, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1505(o.streetAddress); + checkUnnamed1258(o.streetAddress); } buildCounterOrderAddress--; } @@ -349,27 +349,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed1506() { +buildUnnamed1259() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed1506(core.List<api.OrderCancellation> o) { +checkUnnamed1259(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed1507() { +buildUnnamed1260() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed1507(core.List<api.OrderReturn> o) { +checkUnnamed1260(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -380,7 +380,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed1506(); + o.cancellations = buildUnnamed1259(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -391,7 +391,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed1507(); + o.returns = buildUnnamed1260(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -402,7 +402,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed1506(o.cancellations); + checkUnnamed1259(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -413,21 +413,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed1507(o.returns); + checkUnnamed1260(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed1508() { +buildUnnamed1261() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1508(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1261(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -452,7 +452,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1508(); + o.variantAttributes = buildUnnamed1261(); } buildCounterOrderLineItemProduct--; return o; @@ -475,7 +475,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1508(o.variantAttributes); + checkUnnamed1261(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -601,14 +601,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed1509() { +buildUnnamed1262() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed1509(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed1262(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -619,7 +619,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed1509(); + o.benefits = buildUnnamed1262(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -634,7 +634,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed1509(o.benefits); + checkUnnamed1262(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -645,14 +645,14 @@ buildCounterOrderPromotion--; } -buildUnnamed1510() { +buildUnnamed1263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1510(core.List<core.String> o) { +checkUnnamed1263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -664,7 +664,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed1510(); + o.offerIds = buildUnnamed1263(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -677,7 +677,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed1510(o.offerIds); + checkUnnamed1263(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -739,14 +739,14 @@ buildCounterOrderReturn--; } -buildUnnamed1511() { +buildUnnamed1264() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1511(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1264(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -761,7 +761,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed1511(); + o.lineItems = buildUnnamed1264(); o.status = "foo"; o.trackingId = "foo"; } @@ -776,7 +776,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1511(o.lineItems); + checkUnnamed1264(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -999,14 +999,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed1512() { +buildUnnamed1265() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed1512(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed1265(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -1017,7 +1017,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed1512(); + o.entries = buildUnnamed1265(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -1026,7 +1026,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed1512(o.entries); + checkUnnamed1265(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -1168,14 +1168,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed1513() { +buildUnnamed1266() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1513(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1266(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1187,7 +1187,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1513(); + o.lineItems = buildUnnamed1266(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -1199,7 +1199,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1513(o.lineItems); + checkUnnamed1266(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -1231,14 +1231,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed1514() { +buildUnnamed1267() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed1514(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed1267(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -1249,7 +1249,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed1514(); + o.entries = buildUnnamed1267(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -1259,7 +1259,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed1514(o.entries); + checkUnnamed1267(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -1334,14 +1334,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed1515() { +buildUnnamed1268() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1515(core.List<api.Order> o) { +checkUnnamed1268(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -1354,7 +1354,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1515(); + o.resources = buildUnnamed1268(); } buildCounterOrdersListResponse--; return o; @@ -1365,7 +1365,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1515(o.resources); + checkUnnamed1268(o.resources); } buildCounterOrdersListResponse--; } @@ -1464,14 +1464,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed1516() { +buildUnnamed1269() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1516(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1269(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1483,7 +1483,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1516(); + o.lineItems = buildUnnamed1269(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -1496,7 +1496,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1516(o.lineItems); + checkUnnamed1269(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -1636,27 +1636,27 @@ buildCounterPrice--; } -buildUnnamed1517() { +buildUnnamed1270() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed1517(core.List<api.TestOrderLineItem> o) { +checkUnnamed1270(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed1518() { +buildUnnamed1271() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1518(core.List<api.OrderPromotion> o) { +checkUnnamed1271(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -1669,10 +1669,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed1517(); + o.lineItems = buildUnnamed1270(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed1518(); + o.promotions = buildUnnamed1271(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -1686,10 +1686,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1517(o.lineItems); + checkUnnamed1270(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed1518(o.promotions); + checkUnnamed1271(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -1747,14 +1747,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed1519() { +buildUnnamed1272() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1519(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1272(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -1777,7 +1777,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1519(); + o.variantAttributes = buildUnnamed1272(); } buildCounterTestOrderLineItemProduct--; return o; @@ -1798,7 +1798,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1519(o.variantAttributes); + checkUnnamed1272(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -1830,14 +1830,14 @@ buildCounterTestOrderPaymentMethod--; } -buildUnnamed1520() { +buildUnnamed1273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1520(core.List<core.String> o) { +checkUnnamed1273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2787,7 +2787,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed1520(); + var arg_statuses = buildUnnamed1273(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index accc031..a793bd7 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -74,30 +74,30 @@ buildCounterContextFacets--; } -buildUnnamed482() { +buildUnnamed221() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed482(core.List<api.ContextFacets> o) { +checkUnnamed221(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed483() { +buildUnnamed222() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed482()); - o.add(buildUnnamed482()); + o.add(buildUnnamed221()); + o.add(buildUnnamed221()); return o; } -checkUnnamed483(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed222(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed482(o[0]); - checkUnnamed482(o[1]); + checkUnnamed221(o[0]); + checkUnnamed221(o[1]); } core.int buildCounterContext = 0; @@ -105,7 +105,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed483(); + o.facets = buildUnnamed222(); o.title = "foo"; } buildCounterContext--; @@ -115,7 +115,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed483(o.facets); + checkUnnamed222(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -146,14 +146,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed484() { +buildUnnamed223() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed484(core.List<api.PromotionBodyLines> o) { +checkUnnamed223(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -187,7 +187,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed484(); + o.bodyLines = buildUnnamed223(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -201,7 +201,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed484(o.bodyLines); + checkUnnamed223(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -356,56 +356,56 @@ buildCounterResultLabels--; } -buildUnnamed485() { +buildUnnamed224() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed485(core.List<api.ResultLabels> o) { +checkUnnamed224(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed486() { +buildUnnamed225() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed486(core.Map<core.String, core.Object> o) { +checkUnnamed225(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed487() { +buildUnnamed226() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed486()); - o.add(buildUnnamed486()); + o.add(buildUnnamed225()); + o.add(buildUnnamed225()); return o; } -checkUnnamed487(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed226(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed486(o[0]); - checkUnnamed486(o[1]); + checkUnnamed225(o[0]); + checkUnnamed225(o[1]); } -buildUnnamed488() { +buildUnnamed227() { var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed487(); - o["y"] = buildUnnamed487(); + o["x"] = buildUnnamed226(); + o["y"] = buildUnnamed226(); return o; } -checkUnnamed488(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { +checkUnnamed227(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed487(o["x"]); - checkUnnamed487(o["y"]); + checkUnnamed226(o["x"]); + checkUnnamed226(o["y"]); } core.int buildCounterResult = 0; @@ -422,10 +422,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed485(); + o.labels = buildUnnamed224(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed488(); + o.pagemap = buildUnnamed227(); o.snippet = "foo"; o.title = "foo"; } @@ -445,66 +445,66 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed485(o.labels); + checkUnnamed224(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed488(o.pagemap); + checkUnnamed227(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed489() { +buildUnnamed228() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed489(core.List<api.Result> o) { +checkUnnamed228(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed490() { +buildUnnamed229() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed490(core.List<api.Promotion> o) { +checkUnnamed229(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed491() { +buildUnnamed230() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed491(core.List<api.Query> o) { +checkUnnamed230(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed492() { +buildUnnamed231() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed491(); - o["y"] = buildUnnamed491(); + o["x"] = buildUnnamed230(); + o["y"] = buildUnnamed230(); return o; } -checkUnnamed492(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed231(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed491(o["x"]); - checkUnnamed491(o["y"]); + checkUnnamed230(o["x"]); + checkUnnamed230(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -580,10 +580,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed489(); + o.items = buildUnnamed228(); o.kind = "foo"; - o.promotions = buildUnnamed490(); - o.queries = buildUnnamed492(); + o.promotions = buildUnnamed229(); + o.queries = buildUnnamed231(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -596,10 +596,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed489(o.items); + checkUnnamed228(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed490(o.promotions); - checkUnnamed492(o.queries); + checkUnnamed229(o.promotions); + checkUnnamed231(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url);
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index c55d13d..1240770 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -68,27 +68,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed687() { +buildUnnamed427() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed687(core.Map<core.String, core.String> o) { +checkUnnamed427(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed688() { +buildUnnamed428() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed688(core.List<api.ClusterStatus> o) { +checkUnnamed428(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -102,11 +102,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed687(); + o.labels = buildUnnamed427(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed688(); + o.statusHistory = buildUnnamed428(); } buildCounterCluster--; return o; @@ -118,23 +118,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed687(o.labels); + checkUnnamed427(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed688(o.statusHistory); + checkUnnamed428(o.statusHistory); } buildCounterCluster--; } -buildUnnamed689() { +buildUnnamed429() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed689(core.List<api.NodeInitializationAction> o) { +checkUnnamed429(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -147,7 +147,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed689(); + o.initializationActions = buildUnnamed429(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -162,7 +162,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed689(o.initializationActions); + checkUnnamed429(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -171,27 +171,27 @@ buildCounterClusterConfig--; } -buildUnnamed690() { +buildUnnamed430() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed690(core.Map<core.String, core.String> o) { +checkUnnamed430(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed691() { +buildUnnamed431() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed691(core.Map<core.String, core.String> o) { +checkUnnamed431(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -202,8 +202,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed690(); - o.yarnMetrics = buildUnnamed691(); + o.hdfsMetrics = buildUnnamed430(); + o.yarnMetrics = buildUnnamed431(); } buildCounterClusterMetrics--; return o; @@ -212,33 +212,33 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed690(o.hdfsMetrics); - checkUnnamed691(o.yarnMetrics); + checkUnnamed430(o.hdfsMetrics); + checkUnnamed431(o.yarnMetrics); } buildCounterClusterMetrics--; } -buildUnnamed692() { +buildUnnamed432() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed692(core.Map<core.String, core.String> o) { +checkUnnamed432(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed693() { +buildUnnamed433() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed693(core.List<api.ClusterOperationStatus> o) { +checkUnnamed433(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); @@ -252,10 +252,10 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed692(); + o.labels = buildUnnamed432(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed693(); + o.statusHistory = buildUnnamed433(); } buildCounterClusterOperationMetadata--; return o; @@ -267,10 +267,10 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed692(o.labels); + checkUnnamed432(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed693(o.statusHistory); + checkUnnamed433(o.statusHistory); } buildCounterClusterOperationMetadata--; } @@ -416,40 +416,40 @@ buildCounterEmpty--; } -buildUnnamed694() { +buildUnnamed434() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed694(core.Map<core.String, core.String> o) { +checkUnnamed434(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed695() { +buildUnnamed435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed695(core.List<core.String> o) { +checkUnnamed435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed696() { +buildUnnamed436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed696(core.List<core.String> o) { +checkUnnamed436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -461,11 +461,11 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { o.internalIpOnly = true; - o.metadata = buildUnnamed694(); + o.metadata = buildUnnamed434(); o.networkUri = "foo"; - o.serviceAccountScopes = buildUnnamed695(); + o.serviceAccountScopes = buildUnnamed435(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed696(); + o.tags = buildUnnamed436(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -476,76 +476,76 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed694(o.metadata); + checkUnnamed434(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); - checkUnnamed695(o.serviceAccountScopes); + checkUnnamed435(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed696(o.tags); + checkUnnamed436(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; } -buildUnnamed697() { +buildUnnamed437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed697(core.List<core.String> o) { +checkUnnamed437(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed698() { +buildUnnamed438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed698(core.List<core.String> o) { +checkUnnamed438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed699() { +buildUnnamed439() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed699(core.List<core.String> o) { +checkUnnamed439(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed700() { +buildUnnamed440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed700(core.List<core.String> o) { +checkUnnamed440(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed701() { +buildUnnamed441() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed701(core.Map<core.String, core.String> o) { +checkUnnamed441(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -556,14 +556,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed697(); - o.args = buildUnnamed698(); - o.fileUris = buildUnnamed699(); - o.jarFileUris = buildUnnamed700(); + o.archiveUris = buildUnnamed437(); + o.args = buildUnnamed438(); + o.fileUris = buildUnnamed439(); + o.jarFileUris = buildUnnamed440(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed701(); + o.properties = buildUnnamed441(); } buildCounterHadoopJob--; return o; @@ -572,52 +572,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed697(o.archiveUris); - checkUnnamed698(o.args); - checkUnnamed699(o.fileUris); - checkUnnamed700(o.jarFileUris); + checkUnnamed437(o.archiveUris); + checkUnnamed438(o.args); + checkUnnamed439(o.fileUris); + checkUnnamed440(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed701(o.properties); + checkUnnamed441(o.properties); } buildCounterHadoopJob--; } -buildUnnamed702() { +buildUnnamed442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed702(core.List<core.String> o) { +checkUnnamed442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed703() { +buildUnnamed443() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed703(core.Map<core.String, core.String> o) { +checkUnnamed443(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed704() { +buildUnnamed444() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed704(core.Map<core.String, core.String> o) { +checkUnnamed444(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -629,11 +629,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed702(); - o.properties = buildUnnamed703(); + o.jarFileUris = buildUnnamed442(); + o.properties = buildUnnamed443(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed704(); + o.scriptVariables = buildUnnamed444(); } buildCounterHiveJob--; return o; @@ -643,23 +643,23 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed702(o.jarFileUris); - checkUnnamed703(o.properties); + checkUnnamed442(o.jarFileUris); + checkUnnamed443(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed704(o.scriptVariables); + checkUnnamed444(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed705() { +buildUnnamed445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed705(core.List<core.String> o) { +checkUnnamed445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ if (buildCounterInstanceGroupConfig < 3) { o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed705(); + o.instanceNames = buildUnnamed445(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -687,7 +687,7 @@ if (buildCounterInstanceGroupConfig < 3) { checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed705(o.instanceNames); + checkUnnamed445(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -696,40 +696,40 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed706() { +buildUnnamed446() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed706(core.Map<core.String, core.String> o) { +checkUnnamed446(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed707() { +buildUnnamed447() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed707(core.List<api.JobStatus> o) { +checkUnnamed447(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed708() { +buildUnnamed448() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed708(core.List<api.YarnApplication> o) { +checkUnnamed448(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -744,7 +744,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed706(); + o.labels = buildUnnamed446(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -752,8 +752,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed707(); - o.yarnApplications = buildUnnamed708(); + o.statusHistory = buildUnnamed447(); + o.yarnApplications = buildUnnamed448(); } buildCounterJob--; return o; @@ -766,7 +766,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); - checkUnnamed706(o.labels); + checkUnnamed446(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -774,8 +774,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed707(o.statusHistory); - checkUnnamed708(o.yarnApplications); + checkUnnamed447(o.statusHistory); + checkUnnamed448(o.yarnApplications); } buildCounterJob--; } @@ -845,14 +845,14 @@ buildCounterJobStatus--; } -buildUnnamed709() { +buildUnnamed449() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed709(core.List<api.Cluster> o) { +checkUnnamed449(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -863,7 +863,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed709(); + o.clusters = buildUnnamed449(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -873,20 +873,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed709(o.clusters); + checkUnnamed449(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed710() { +buildUnnamed450() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed710(core.List<api.Job> o) { +checkUnnamed450(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -897,7 +897,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed710(); + o.jobs = buildUnnamed450(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -907,20 +907,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed710(o.jobs); + checkUnnamed450(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed711() { +buildUnnamed451() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed711(core.List<api.Operation> o) { +checkUnnamed451(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -932,7 +932,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed711(); + o.operations = buildUnnamed451(); } buildCounterListOperationsResponse--; return o; @@ -942,19 +942,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed711(o.operations); + checkUnnamed451(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed712() { +buildUnnamed452() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed712(core.Map<core.String, core.String> o) { +checkUnnamed452(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -965,7 +965,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed712(); + o.driverLogLevels = buildUnnamed452(); } buildCounterLoggingConfig--; return o; @@ -974,7 +974,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed712(o.driverLogLevels); + checkUnnamed452(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -1021,27 +1021,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed713() { +buildUnnamed453() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed713(core.Map<core.String, core.Object> o) { +checkUnnamed453(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed714() { +buildUnnamed454() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed714(core.Map<core.String, core.Object> o) { +checkUnnamed454(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1054,9 +1054,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed713(); + o.metadata = buildUnnamed453(); o.name = "foo"; - o.response = buildUnnamed714(); + o.response = buildUnnamed454(); } buildCounterOperation--; return o; @@ -1067,21 +1067,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed713(o.metadata); + checkUnnamed453(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed714(o.response); + checkUnnamed454(o.response); } buildCounterOperation--; } -buildUnnamed715() { +buildUnnamed455() { var o = new core.List<api.OperationStatus>(); o.add(buildOperationStatus()); o.add(buildOperationStatus()); return o; } -checkUnnamed715(core.List<api.OperationStatus> o) { +checkUnnamed455(core.List<api.OperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationStatus(o[0]); checkOperationStatus(o[1]); @@ -1103,7 +1103,7 @@ o.startTime = "foo"; o.state = "foo"; o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed715(); + o.statusHistory = buildUnnamed455(); } buildCounterOperationMetadata--; return o; @@ -1123,7 +1123,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); checkOperationStatus(o.status); - checkUnnamed715(o.statusHistory); + checkUnnamed455(o.statusHistory); } buildCounterOperationMetadata--; } @@ -1153,40 +1153,40 @@ buildCounterOperationStatus--; } -buildUnnamed716() { +buildUnnamed456() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed716(core.List<core.String> o) { +checkUnnamed456(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed717() { +buildUnnamed457() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed717(core.Map<core.String, core.String> o) { +checkUnnamed457(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed718() { +buildUnnamed458() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed718(core.Map<core.String, core.String> o) { +checkUnnamed458(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1198,12 +1198,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed716(); + o.jarFileUris = buildUnnamed456(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed717(); + o.properties = buildUnnamed457(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed718(); + o.scriptVariables = buildUnnamed458(); } buildCounterPigJob--; return o; @@ -1213,89 +1213,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed716(o.jarFileUris); + checkUnnamed456(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed717(o.properties); + checkUnnamed457(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed718(o.scriptVariables); + checkUnnamed458(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed719() { +buildUnnamed459() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed719(core.List<core.String> o) { +checkUnnamed459(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed720() { +buildUnnamed460() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed720(core.List<core.String> o) { +checkUnnamed460(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed721() { +buildUnnamed461() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed721(core.List<core.String> o) { +checkUnnamed461(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed722() { +buildUnnamed462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed722(core.List<core.String> o) { +checkUnnamed462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed723() { +buildUnnamed463() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed723(core.Map<core.String, core.String> o) { +checkUnnamed463(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed724() { +buildUnnamed464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(core.List<core.String> o) { +checkUnnamed464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1306,14 +1306,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed719(); - o.args = buildUnnamed720(); - o.fileUris = buildUnnamed721(); - o.jarFileUris = buildUnnamed722(); + o.archiveUris = buildUnnamed459(); + o.args = buildUnnamed460(); + o.fileUris = buildUnnamed461(); + o.jarFileUris = buildUnnamed462(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed723(); - o.pythonFileUris = buildUnnamed724(); + o.properties = buildUnnamed463(); + o.pythonFileUris = buildUnnamed464(); } buildCounterPySparkJob--; return o; @@ -1322,26 +1322,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed719(o.archiveUris); - checkUnnamed720(o.args); - checkUnnamed721(o.fileUris); - checkUnnamed722(o.jarFileUris); + checkUnnamed459(o.archiveUris); + checkUnnamed460(o.args); + checkUnnamed461(o.fileUris); + checkUnnamed462(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed723(o.properties); - checkUnnamed724(o.pythonFileUris); + checkUnnamed463(o.properties); + checkUnnamed464(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed725() { +buildUnnamed465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed725(core.List<core.String> o) { +checkUnnamed465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1352,7 +1352,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed725(); + o.queries = buildUnnamed465(); } buildCounterQueryList--; return o; @@ -1361,19 +1361,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed725(o.queries); + checkUnnamed465(o.queries); } buildCounterQueryList--; } -buildUnnamed726() { +buildUnnamed466() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed726(core.Map<core.String, core.String> o) { +checkUnnamed466(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1385,7 +1385,7 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed726(); + o.properties = buildUnnamed466(); } buildCounterSoftwareConfig--; return o; @@ -1395,71 +1395,71 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed726(o.properties); + checkUnnamed466(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed727() { +buildUnnamed467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed728() { +buildUnnamed468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed728(core.List<core.String> o) { +checkUnnamed468(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed729() { +buildUnnamed469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed729(core.List<core.String> o) { +checkUnnamed469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed730() { +buildUnnamed470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed730(core.List<core.String> o) { +checkUnnamed470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed731() { +buildUnnamed471() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed731(core.Map<core.String, core.String> o) { +checkUnnamed471(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1470,14 +1470,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed727(); - o.args = buildUnnamed728(); - o.fileUris = buildUnnamed729(); - o.jarFileUris = buildUnnamed730(); + o.archiveUris = buildUnnamed467(); + o.args = buildUnnamed468(); + o.fileUris = buildUnnamed469(); + o.jarFileUris = buildUnnamed470(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed731(); + o.properties = buildUnnamed471(); } buildCounterSparkJob--; return o; @@ -1486,52 +1486,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed727(o.archiveUris); - checkUnnamed728(o.args); - checkUnnamed729(o.fileUris); - checkUnnamed730(o.jarFileUris); + checkUnnamed467(o.archiveUris); + checkUnnamed468(o.args); + checkUnnamed469(o.fileUris); + checkUnnamed470(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed731(o.properties); + checkUnnamed471(o.properties); } buildCounterSparkJob--; } -buildUnnamed732() { +buildUnnamed472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed732(core.List<core.String> o) { +checkUnnamed472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed733() { +buildUnnamed473() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed733(core.Map<core.String, core.String> o) { +checkUnnamed473(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed734() { +buildUnnamed474() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed734(core.Map<core.String, core.String> o) { +checkUnnamed474(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1542,12 +1542,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed732(); + o.jarFileUris = buildUnnamed472(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed733(); + o.properties = buildUnnamed473(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed734(); + o.scriptVariables = buildUnnamed474(); } buildCounterSparkSqlJob--; return o; @@ -1556,40 +1556,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed732(o.jarFileUris); + checkUnnamed472(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed733(o.properties); + checkUnnamed473(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed734(o.scriptVariables); + checkUnnamed474(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed735() { +buildUnnamed475() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed735(core.Map<core.String, core.Object> o) { +checkUnnamed475(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed736() { +buildUnnamed476() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed735()); - o.add(buildUnnamed735()); + o.add(buildUnnamed475()); + o.add(buildUnnamed475()); return o; } -checkUnnamed736(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed476(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed735(o[0]); - checkUnnamed735(o[1]); + checkUnnamed475(o[0]); + checkUnnamed475(o[1]); } core.int buildCounterStatus = 0; @@ -1598,7 +1598,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed736(); + o.details = buildUnnamed476(); o.message = "foo"; } buildCounterStatus--; @@ -1609,7 +1609,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed736(o.details); + checkUnnamed476(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index 8bd0bb2..890511d 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed802() { +buildUnnamed542() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed802(core.List<api.Key> o) { +checkUnnamed542(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -69,7 +69,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed802(); + o.keys = buildUnnamed542(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed802(o.keys); + checkUnnamed542(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed803() { +buildUnnamed543() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed803(core.List<api.Key> o) { +checkUnnamed543(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -101,7 +101,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed803(); + o.keys = buildUnnamed543(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed803(o.keys); + checkUnnamed543(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed804() { +buildUnnamed544() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed804(core.List<api.Value> o) { +checkUnnamed544(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -133,7 +133,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed804(); + o.values = buildUnnamed544(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed804(o.values); + checkUnnamed544(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed805() { +buildUnnamed545() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed805(core.List<api.Mutation> o) { +checkUnnamed545(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -202,7 +202,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed805(); + o.mutations = buildUnnamed545(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed805(o.mutations); + checkUnnamed545(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed806() { +buildUnnamed546() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed806(core.List<api.MutationResult> o) { +checkUnnamed546(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -238,7 +238,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed806(); + o.mutationResults = buildUnnamed546(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed806(o.mutationResults); + checkUnnamed546(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed807() { +buildUnnamed547() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed807(core.List<api.Filter> o) { +checkUnnamed547(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -271,7 +271,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed807(); + o.filters = buildUnnamed547(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed807(o.filters); + checkUnnamed547(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed808() { +buildUnnamed548() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed808(core.Map<core.String, api.Value> o) { +checkUnnamed548(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -306,7 +306,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed808(); + o.properties = buildUnnamed548(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed808(o.properties); + checkUnnamed548(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed809() { +buildUnnamed549() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed809(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed549(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed810() { +buildUnnamed550() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed810(core.List<api.GqlQueryParameter> o) { +checkUnnamed550(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -397,8 +397,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed809(); - o.positionalBindings = buildUnnamed810(); + o.namedBindings = buildUnnamed549(); + o.positionalBindings = buildUnnamed550(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed809(o.namedBindings); - checkUnnamed810(o.positionalBindings); + checkUnnamed549(o.namedBindings); + checkUnnamed550(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed811() { +buildUnnamed551() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed811(core.List<api.PathElement> o) { +checkUnnamed551(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -456,7 +456,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed811(); + o.path = buildUnnamed551(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed811(o.path); + checkUnnamed551(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed812() { +buildUnnamed552() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed812(core.List<api.Key> o) { +checkUnnamed552(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -529,7 +529,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed812(); + o.keys = buildUnnamed552(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed812(o.keys); + checkUnnamed552(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed813() { +buildUnnamed553() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed813(core.List<api.Key> o) { +checkUnnamed553(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed814() { +buildUnnamed554() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed814(core.List<api.EntityResult> o) { +checkUnnamed554(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed815() { +buildUnnamed555() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed815(core.List<api.EntityResult> o) { +checkUnnamed555(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -589,9 +589,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed813(); - o.found = buildUnnamed814(); - o.missing = buildUnnamed815(); + o.deferred = buildUnnamed553(); + o.found = buildUnnamed554(); + o.missing = buildUnnamed555(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed813(o.deferred); - checkUnnamed814(o.found); - checkUnnamed815(o.missing); + checkUnnamed553(o.deferred); + checkUnnamed554(o.found); + checkUnnamed555(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed816() { +buildUnnamed556() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed816(core.List<api.PropertyReference> o) { +checkUnnamed556(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed817() { +buildUnnamed557() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed817(core.List<api.KindExpression> o) { +checkUnnamed557(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed818() { +buildUnnamed558() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed818(core.List<api.PropertyOrder> o) { +checkUnnamed558(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed819() { +buildUnnamed559() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed819(core.List<api.Projection> o) { +checkUnnamed559(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -840,14 +840,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed816(); + o.distinctOn = buildUnnamed556(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed817(); + o.kind = buildUnnamed557(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed818(); - o.projection = buildUnnamed819(); + o.order = buildUnnamed558(); + o.projection = buildUnnamed559(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed816(o.distinctOn); + checkUnnamed556(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed817(o.kind); + checkUnnamed557(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed818(o.order); - checkUnnamed819(o.projection); + checkUnnamed558(o.order); + checkUnnamed559(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed820() { +buildUnnamed560() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed820(core.List<api.EntityResult> o) { +checkUnnamed560(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -890,7 +890,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed820(); + o.entityResults = buildUnnamed560(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -905,7 +905,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed820(o.entityResults); + checkUnnamed560(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42));
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index 29c261f..082e48a 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -51,14 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2172() { +buildUnnamed1943() { + var o = new core.List<api.AuditLogConfig>(); + o.add(buildAuditLogConfig()); + o.add(buildAuditLogConfig()); + return o; +} + +checkUnnamed1943(core.List<api.AuditLogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditLogConfig(o[0]); + checkAuditLogConfig(o[1]); +} + +buildUnnamed1944() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2172(core.List<core.String> o) { +checkUnnamed1944(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +82,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.exemptedMembers = buildUnnamed2172(); + o.auditLogConfigs = buildUnnamed1943(); + o.exemptedMembers = buildUnnamed1944(); o.service = "foo"; } buildCounterAuditConfig--; @@ -79,20 +93,55 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2172(o.exemptedMembers); + checkUnnamed1943(o.auditLogConfigs); + checkUnnamed1944(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2173() { +buildUnnamed1945() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2173(core.List<core.String> o) { +checkUnnamed1945(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterAuditLogConfig = 0; +buildAuditLogConfig() { + var o = new api.AuditLogConfig(); + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed1945(); + o.logType = "foo"; + } + buildCounterAuditLogConfig--; + return o; +} + +checkAuditLogConfig(api.AuditLogConfig o) { + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + checkUnnamed1945(o.exemptedMembers); + unittest.expect(o.logType, unittest.equals('foo')); + } + buildCounterAuditLogConfig--; +} + +buildUnnamed1946() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1946(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +152,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2173(); + o.members = buildUnnamed1946(); o.role = "foo"; } buildCounterBinding--; @@ -113,20 +162,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2173(o.members); + checkUnnamed1946(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2174() { +buildUnnamed1947() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2174(core.List<core.String> o) { +checkUnnamed1947(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -142,7 +191,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed2174(); + o.values = buildUnnamed1947(); } buildCounterCondition--; return o; @@ -156,7 +205,7 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed2174(o.values); + checkUnnamed1947(o.values); } buildCounterCondition--; } @@ -180,14 +229,14 @@ buildCounterConfigFile--; } -buildUnnamed2175() { +buildUnnamed1948() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed2175(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed1948(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -202,7 +251,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed2175(); + o.labels = buildUnnamed1948(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -221,7 +270,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed2175(o.labels); + checkUnnamed1948(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -253,14 +302,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed2176() { +buildUnnamed1949() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed2176(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed1949(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -271,7 +320,7 @@ var o = new api.DeploymentUpdate(); buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - o.labels = buildUnnamed2176(); + o.labels = buildUnnamed1949(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -281,7 +330,7 @@ checkDeploymentUpdate(api.DeploymentUpdate o) { buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - checkUnnamed2176(o.labels); + checkUnnamed1949(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -327,14 +376,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed2177() { +buildUnnamed1950() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed2177(core.List<api.Deployment> o) { +checkUnnamed1950(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -345,7 +394,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed2177(); + o.deployments = buildUnnamed1950(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -355,7 +404,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed2177(o.deployments); + checkUnnamed1950(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -441,14 +490,14 @@ buildCounterLogConfigCounterOptions--; } -buildUnnamed2178() { +buildUnnamed1951() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2178(core.List<api.ImportFile> o) { +checkUnnamed1951(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -462,7 +511,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed2178(); + o.imports = buildUnnamed1951(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -478,7 +527,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2178(o.imports); + checkUnnamed1951(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -487,14 +536,14 @@ buildCounterManifest--; } -buildUnnamed2179() { +buildUnnamed1952() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed2179(core.List<api.Manifest> o) { +checkUnnamed1952(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -505,7 +554,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed2179(); + o.manifests = buildUnnamed1952(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -515,7 +564,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed2179(o.manifests); + checkUnnamed1952(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -544,14 +593,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2180() { +buildUnnamed1953() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2180(core.List<api.OperationErrorErrors> o) { +checkUnnamed1953(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -562,7 +611,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2180(); + o.errors = buildUnnamed1953(); } buildCounterOperationError--; return o; @@ -571,7 +620,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2180(o.errors); + checkUnnamed1953(o.errors); } buildCounterOperationError--; } @@ -597,14 +646,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2181() { +buildUnnamed1954() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2181(core.List<api.OperationWarningsData> o) { +checkUnnamed1954(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -616,7 +665,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2181(); + o.data = buildUnnamed1954(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -627,20 +676,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2181(o.data); + checkUnnamed1954(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2182() { +buildUnnamed1955() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2182(core.List<api.OperationWarnings> o) { +checkUnnamed1955(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -672,7 +721,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2182(); + o.warnings = buildUnnamed1955(); o.zone = "foo"; } buildCounterOperation--; @@ -703,20 +752,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2182(o.warnings); + checkUnnamed1955(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2183() { +buildUnnamed1956() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2183(core.List<api.Operation> o) { +checkUnnamed1956(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -728,7 +777,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2183(); + o.operations = buildUnnamed1956(); } buildCounterOperationsListResponse--; return o; @@ -738,45 +787,45 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2183(o.operations); + checkUnnamed1956(o.operations); } buildCounterOperationsListResponse--; } -buildUnnamed2184() { +buildUnnamed1957() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2184(core.List<api.AuditConfig> o) { +checkUnnamed1957(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2185() { +buildUnnamed1958() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2185(core.List<api.Binding> o) { +checkUnnamed1958(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed2186() { +buildUnnamed1959() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2186(core.List<api.Rule> o) { +checkUnnamed1959(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -787,11 +836,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2184(); - o.bindings = buildUnnamed2185(); + o.auditConfigs = buildUnnamed1957(); + o.bindings = buildUnnamed1958(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed2186(); + o.rules = buildUnnamed1959(); o.version = 42; } buildCounterPolicy--; @@ -801,11 +850,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2184(o.auditConfigs); - checkUnnamed2185(o.bindings); + checkUnnamed1957(o.auditConfigs); + checkUnnamed1958(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed2186(o.rules); + checkUnnamed1959(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -832,14 +881,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed2187() { +buildUnnamed1960() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed2187(core.List<api.ResourceWarningsData> o) { +checkUnnamed1960(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -851,7 +900,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2187(); + o.data = buildUnnamed1960(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -862,20 +911,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2187(o.data); + checkUnnamed1960(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed2188() { +buildUnnamed1961() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed2188(core.List<api.ResourceWarnings> o) { +checkUnnamed1961(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -897,7 +946,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed2188(); + o.warnings = buildUnnamed1961(); } buildCounterResource--; return o; @@ -917,7 +966,7 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed2188(o.warnings); + checkUnnamed1961(o.warnings); } buildCounterResource--; } @@ -964,14 +1013,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed2189() { +buildUnnamed1962() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed2189(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed1962(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -982,7 +1031,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed2189(); + o.errors = buildUnnamed1962(); } buildCounterResourceUpdateError--; return o; @@ -991,7 +1040,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed2189(o.errors); + checkUnnamed1962(o.errors); } buildCounterResourceUpdateError--; } @@ -1017,14 +1066,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed2190() { +buildUnnamed1963() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed2190(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed1963(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -1036,7 +1085,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2190(); + o.data = buildUnnamed1963(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -1047,20 +1096,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2190(o.data); + checkUnnamed1963(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed2191() { +buildUnnamed1964() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed2191(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed1964(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -1078,7 +1127,7 @@ o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed2191(); + o.warnings = buildUnnamed1964(); } buildCounterResourceUpdate--; return o; @@ -1094,19 +1143,19 @@ unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2191(o.warnings); + checkUnnamed1964(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed2192() { +buildUnnamed1965() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed2192(core.List<api.Resource> o) { +checkUnnamed1965(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -1118,7 +1167,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed2192(); + o.resources = buildUnnamed1965(); } buildCounterResourcesListResponse--; return o; @@ -1128,71 +1177,71 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2192(o.resources); + checkUnnamed1965(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed2193() { +buildUnnamed1966() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2193(core.List<api.Condition> o) { +checkUnnamed1966(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2194() { +buildUnnamed1967() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2194(core.List<core.String> o) { +checkUnnamed1967(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2195() { +buildUnnamed1968() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed2195(core.List<api.LogConfig> o) { +checkUnnamed1968(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed2196() { +buildUnnamed1969() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2196(core.List<core.String> o) { +checkUnnamed1969(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2197() { +buildUnnamed1970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2197(core.List<core.String> o) { +checkUnnamed1970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1204,12 +1253,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed2193(); + o.conditions = buildUnnamed1966(); o.description = "foo"; - o.ins = buildUnnamed2194(); - o.logConfigs = buildUnnamed2195(); - o.notIns = buildUnnamed2196(); - o.permissions = buildUnnamed2197(); + o.ins = buildUnnamed1967(); + o.logConfigs = buildUnnamed1968(); + o.notIns = buildUnnamed1969(); + o.permissions = buildUnnamed1970(); } buildCounterRule--; return o; @@ -1219,24 +1268,24 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2193(o.conditions); + checkUnnamed1966(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2194(o.ins); - checkUnnamed2195(o.logConfigs); - checkUnnamed2196(o.notIns); - checkUnnamed2197(o.permissions); + checkUnnamed1967(o.ins); + checkUnnamed1968(o.logConfigs); + checkUnnamed1969(o.notIns); + checkUnnamed1970(o.permissions); } buildCounterRule--; } -buildUnnamed2198() { +buildUnnamed1971() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2198(core.List<api.ImportFile> o) { +checkUnnamed1971(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -1248,7 +1297,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed2198(); + o.imports = buildUnnamed1971(); } buildCounterTargetConfiguration--; return o; @@ -1258,19 +1307,19 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed2198(o.imports); + checkUnnamed1971(o.imports); } buildCounterTargetConfiguration--; } -buildUnnamed2199() { +buildUnnamed1972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2199(core.List<core.String> o) { +checkUnnamed1972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1281,7 +1330,7 @@ var o = new api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed2199(); + o.permissions = buildUnnamed1972(); } buildCounterTestPermissionsRequest--; return o; @@ -1290,19 +1339,19 @@ checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed2199(o.permissions); + checkUnnamed1972(o.permissions); } buildCounterTestPermissionsRequest--; } -buildUnnamed2200() { +buildUnnamed1973() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2200(core.List<core.String> o) { +checkUnnamed1973(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1313,7 +1362,7 @@ var o = new api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed2200(); + o.permissions = buildUnnamed1973(); } buildCounterTestPermissionsResponse--; return o; @@ -1322,7 +1371,7 @@ checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed2200(o.permissions); + checkUnnamed1973(o.permissions); } buildCounterTestPermissionsResponse--; } @@ -1354,14 +1403,14 @@ buildCounterType--; } -buildUnnamed2201() { +buildUnnamed1974() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2201(core.List<api.Type> o) { +checkUnnamed1974(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1373,7 +1422,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed2201(); + o.types = buildUnnamed1974(); } buildCounterTypesListResponse--; return o; @@ -1383,7 +1432,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2201(o.types); + checkUnnamed1974(o.types); } buildCounterTypesListResponse--; } @@ -1399,6 +1448,15 @@ }); + unittest.group("obj-schema-AuditLogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditLogConfig(); + var od = new api.AuditLogConfig.fromJson(o.toJson()); + checkAuditLogConfig(od); + }); + }); + + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -1795,6 +1853,7 @@ api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; var arg_project = "foo"; var arg_deployment = "foo"; + var arg_deletePolicy = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1819,6 +1878,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["deletePolicy"].first, unittest.equals(arg_deletePolicy)); var h = { @@ -1827,7 +1887,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_project, arg_deployment).then(unittest.expectAsync(((api.Operation response) { + res.delete(arg_project, arg_deployment, deletePolicy: arg_deletePolicy).then(unittest.expectAsync(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis/test/dfareporting/v2_4_test.dart b/generated/googleapis/test/dfareporting/v2_4_test.dart deleted file mode 100644 index 8a4a768..0000000 --- a/generated/googleapis/test/dfareporting/v2_4_test.dart +++ /dev/null
@@ -1,22695 +0,0 @@ -library googleapis.dfareporting.v2_4.test; - -import "dart:core" as core; -import "dart:collection" as collection; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:http/testing.dart' as http_testing; -import 'package:unittest/unittest.dart' as unittest; - -import 'package:googleapis/dfareporting/v2_4.dart' as api; - -class HttpServerMock extends http.BaseClient { - core.Function _callback; - core.bool _expectJson; - - void register(core.Function callback, core.bool expectJson) { - _callback = callback; - _expectJson = expectJson; - } - - async.Future<http.StreamedResponse> send(http.BaseRequest request) { - if (_expectJson) { - return request.finalize() - .transform(convert.UTF8.decoder) - .join('') - .then((core.String jsonString) { - if (jsonString.isEmpty) { - return _callback(request, null); - } else { - return _callback(request, convert.JSON.decode(jsonString)); - } - }); - } else { - var stream = request.finalize(); - if (stream == null) { - return _callback(request, []); - } else { - return stream.toBytes().then((data) { - return _callback(request, data); - }); - } - } - } -} - -http.StreamedResponse stringResponse( - core.int status, core.Map headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed197() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed197(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed198() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed198(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAccount = 0; -buildAccount() { - var o = new api.Account(); - buildCounterAccount++; - if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed197(); - o.accountProfile = "foo"; - o.active = true; - o.activeAdsLimitTier = "foo"; - o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed198(); - o.comscoreVceEnabled = true; - o.countryId = "foo"; - o.currencyId = "foo"; - o.defaultCreativeSizeId = "foo"; - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.locale = "foo"; - o.maximumImageSize = "foo"; - o.name = "foo"; - o.nielsenOcrEnabled = true; - o.reportsConfiguration = buildReportsConfiguration(); - o.teaserSizeLimit = "foo"; - } - buildCounterAccount--; - return o; -} - -checkAccount(api.Account o) { - buildCounterAccount++; - if (buildCounterAccount < 3) { - checkUnnamed197(o.accountPermissionIds); - unittest.expect(o.accountProfile, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed198(o.availablePermissionIds); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); - unittest.expect(o.countryId, unittest.equals('foo')); - unittest.expect(o.currencyId, unittest.equals('foo')); - unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.locale, unittest.equals('foo')); - unittest.expect(o.maximumImageSize, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); - checkReportsConfiguration(o.reportsConfiguration); - unittest.expect(o.teaserSizeLimit, unittest.equals('foo')); - } - buildCounterAccount--; -} - -core.int buildCounterAccountActiveAdSummary = 0; -buildAccountActiveAdSummary() { - var o = new api.AccountActiveAdSummary(); - buildCounterAccountActiveAdSummary++; - if (buildCounterAccountActiveAdSummary < 3) { - o.accountId = "foo"; - o.activeAds = "foo"; - o.activeAdsLimitTier = "foo"; - o.availableAds = "foo"; - o.kind = "foo"; - } - buildCounterAccountActiveAdSummary--; - return o; -} - -checkAccountActiveAdSummary(api.AccountActiveAdSummary o) { - buildCounterAccountActiveAdSummary++; - if (buildCounterAccountActiveAdSummary < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.activeAds, unittest.equals('foo')); - unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); - unittest.expect(o.availableAds, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountActiveAdSummary--; -} - -buildUnnamed199() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed199(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAccountPermission = 0; -buildAccountPermission() { - var o = new api.AccountPermission(); - buildCounterAccountPermission++; - if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed199(); - o.id = "foo"; - o.kind = "foo"; - o.level = "foo"; - o.name = "foo"; - o.permissionGroupId = "foo"; - } - buildCounterAccountPermission--; - return o; -} - -checkAccountPermission(api.AccountPermission o) { - buildCounterAccountPermission++; - if (buildCounterAccountPermission < 3) { - checkUnnamed199(o.accountProfiles); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.level, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionGroupId, unittest.equals('foo')); - } - buildCounterAccountPermission--; -} - -core.int buildCounterAccountPermissionGroup = 0; -buildAccountPermissionGroup() { - var o = new api.AccountPermissionGroup(); - buildCounterAccountPermissionGroup++; - if (buildCounterAccountPermissionGroup < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterAccountPermissionGroup--; - return o; -} - -checkAccountPermissionGroup(api.AccountPermissionGroup o) { - buildCounterAccountPermissionGroup++; - if (buildCounterAccountPermissionGroup < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAccountPermissionGroup--; -} - -buildUnnamed200() { - var o = new core.List<api.AccountPermissionGroup>(); - o.add(buildAccountPermissionGroup()); - o.add(buildAccountPermissionGroup()); - return o; -} - -checkUnnamed200(core.List<api.AccountPermissionGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountPermissionGroup(o[0]); - checkAccountPermissionGroup(o[1]); -} - -core.int buildCounterAccountPermissionGroupsListResponse = 0; -buildAccountPermissionGroupsListResponse() { - var o = new api.AccountPermissionGroupsListResponse(); - buildCounterAccountPermissionGroupsListResponse++; - if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed200(); - o.kind = "foo"; - } - buildCounterAccountPermissionGroupsListResponse--; - return o; -} - -checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { - buildCounterAccountPermissionGroupsListResponse++; - if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed200(o.accountPermissionGroups); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountPermissionGroupsListResponse--; -} - -buildUnnamed201() { - var o = new core.List<api.AccountPermission>(); - o.add(buildAccountPermission()); - o.add(buildAccountPermission()); - return o; -} - -checkUnnamed201(core.List<api.AccountPermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountPermission(o[0]); - checkAccountPermission(o[1]); -} - -core.int buildCounterAccountPermissionsListResponse = 0; -buildAccountPermissionsListResponse() { - var o = new api.AccountPermissionsListResponse(); - buildCounterAccountPermissionsListResponse++; - if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed201(); - o.kind = "foo"; - } - buildCounterAccountPermissionsListResponse--; - return o; -} - -checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { - buildCounterAccountPermissionsListResponse++; - if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed201(o.accountPermissions); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountPermissionsListResponse--; -} - -core.int buildCounterAccountUserProfile = 0; -buildAccountUserProfile() { - var o = new api.AccountUserProfile(); - buildCounterAccountUserProfile++; - if (buildCounterAccountUserProfile < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserFilter = buildObjectFilter(); - o.campaignFilter = buildObjectFilter(); - o.comments = "foo"; - o.email = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.locale = "foo"; - o.name = "foo"; - o.siteFilter = buildObjectFilter(); - o.subaccountId = "foo"; - o.traffickerType = "foo"; - o.userAccessType = "foo"; - o.userRoleFilter = buildObjectFilter(); - o.userRoleId = "foo"; - } - buildCounterAccountUserProfile--; - return o; -} - -checkAccountUserProfile(api.AccountUserProfile o) { - buildCounterAccountUserProfile++; - if (buildCounterAccountUserProfile < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - checkObjectFilter(o.advertiserFilter); - checkObjectFilter(o.campaignFilter); - unittest.expect(o.comments, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.locale, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkObjectFilter(o.siteFilter); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.traffickerType, unittest.equals('foo')); - unittest.expect(o.userAccessType, unittest.equals('foo')); - checkObjectFilter(o.userRoleFilter); - unittest.expect(o.userRoleId, unittest.equals('foo')); - } - buildCounterAccountUserProfile--; -} - -buildUnnamed202() { - var o = new core.List<api.AccountUserProfile>(); - o.add(buildAccountUserProfile()); - o.add(buildAccountUserProfile()); - return o; -} - -checkUnnamed202(core.List<api.AccountUserProfile> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccountUserProfile(o[0]); - checkAccountUserProfile(o[1]); -} - -core.int buildCounterAccountUserProfilesListResponse = 0; -buildAccountUserProfilesListResponse() { - var o = new api.AccountUserProfilesListResponse(); - buildCounterAccountUserProfilesListResponse++; - if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed202(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountUserProfilesListResponse--; - return o; -} - -checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { - buildCounterAccountUserProfilesListResponse++; - if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed202(o.accountUserProfiles); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountUserProfilesListResponse--; -} - -buildUnnamed203() { - var o = new core.List<api.Account>(); - o.add(buildAccount()); - o.add(buildAccount()); - return o; -} - -checkUnnamed203(core.List<api.Account> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAccount(o[0]); - checkAccount(o[1]); -} - -core.int buildCounterAccountsListResponse = 0; -buildAccountsListResponse() { - var o = new api.AccountsListResponse(); - buildCounterAccountsListResponse++; - if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed203(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountsListResponse--; - return o; -} - -checkAccountsListResponse(api.AccountsListResponse o) { - buildCounterAccountsListResponse++; - if (buildCounterAccountsListResponse < 3) { - checkUnnamed203(o.accounts); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountsListResponse--; -} - -buildUnnamed204() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed204(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed205() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed205(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterActivities = 0; -buildActivities() { - var o = new api.Activities(); - buildCounterActivities++; - if (buildCounterActivities < 3) { - o.filters = buildUnnamed204(); - o.kind = "foo"; - o.metricNames = buildUnnamed205(); - } - buildCounterActivities--; - return o; -} - -checkActivities(api.Activities o) { - buildCounterActivities++; - if (buildCounterActivities < 3) { - checkUnnamed204(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed205(o.metricNames); - } - buildCounterActivities--; -} - -buildUnnamed206() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed206(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed207() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed207(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed208() { - var o = new core.List<api.PlacementAssignment>(); - o.add(buildPlacementAssignment()); - o.add(buildPlacementAssignment()); - return o; -} - -checkUnnamed208(core.List<api.PlacementAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementAssignment(o[0]); - checkPlacementAssignment(o[1]); -} - -core.int buildCounterAd = 0; -buildAd() { - var o = new api.Ad(); - buildCounterAd++; - if (buildCounterAd < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.audienceSegmentId = "foo"; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.clickThroughUrl = buildClickThroughUrl(); - o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); - o.comments = "foo"; - o.compatibility = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed206(); - o.creativeRotation = buildCreativeRotation(); - o.dayPartTargeting = buildDayPartTargeting(); - o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); - o.deliverySchedule = buildDeliverySchedule(); - o.dynamicClickTracker = true; - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed207(); - o.geoTargeting = buildGeoTargeting(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.placementAssignments = buildUnnamed208(); - o.remarketingListExpression = buildListTargetingExpression(); - o.size = buildSize(); - o.sslCompliant = true; - o.sslRequired = true; - o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.subaccountId = "foo"; - o.technologyTargeting = buildTechnologyTargeting(); - o.type = "foo"; - } - buildCounterAd--; - return o; -} - -checkAd(api.Ad o) { - buildCounterAd++; - if (buildCounterAd < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.audienceSegmentId, unittest.equals('foo')); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - checkClickThroughUrl(o.clickThroughUrl); - checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); - unittest.expect(o.comments, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - checkUnnamed206(o.creativeGroupAssignments); - checkCreativeRotation(o.creativeRotation); - checkDayPartTargeting(o.dayPartTargeting); - checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); - checkDeliverySchedule(o.deliverySchedule); - unittest.expect(o.dynamicClickTracker, unittest.isTrue); - unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed207(o.eventTagOverrides); - checkGeoTargeting(o.geoTargeting); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - checkKeyValueTargetingExpression(o.keyValueTargetingExpression); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed208(o.placementAssignments); - checkListTargetingExpression(o.remarketingListExpression); - checkSize(o.size); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkTechnologyTargeting(o.technologyTargeting); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterAd--; -} - -core.int buildCounterAdSlot = 0; -buildAdSlot() { - var o = new api.AdSlot(); - buildCounterAdSlot++; - if (buildCounterAdSlot < 3) { - o.comment = "foo"; - o.compatibility = "foo"; - o.height = "foo"; - o.linkedPlacementId = "foo"; - o.name = "foo"; - o.paymentSourceType = "foo"; - o.primary = true; - o.width = "foo"; - } - buildCounterAdSlot--; - return o; -} - -checkAdSlot(api.AdSlot o) { - buildCounterAdSlot++; - if (buildCounterAdSlot < 3) { - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - unittest.expect(o.height, unittest.equals('foo')); - unittest.expect(o.linkedPlacementId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.paymentSourceType, unittest.equals('foo')); - unittest.expect(o.primary, unittest.isTrue); - unittest.expect(o.width, unittest.equals('foo')); - } - buildCounterAdSlot--; -} - -buildUnnamed209() { - var o = new core.List<api.Ad>(); - o.add(buildAd()); - o.add(buildAd()); - return o; -} - -checkUnnamed209(core.List<api.Ad> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAd(o[0]); - checkAd(o[1]); -} - -core.int buildCounterAdsListResponse = 0; -buildAdsListResponse() { - var o = new api.AdsListResponse(); - buildCounterAdsListResponse++; - if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed209(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdsListResponse--; - return o; -} - -checkAdsListResponse(api.AdsListResponse o) { - buildCounterAdsListResponse++; - if (buildCounterAdsListResponse < 3) { - checkUnnamed209(o.ads); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdsListResponse--; -} - -core.int buildCounterAdvertiser = 0; -buildAdvertiser() { - var o = new api.Advertiser(); - buildCounterAdvertiser++; - if (buildCounterAdvertiser < 3) { - o.accountId = "foo"; - o.advertiserGroupId = "foo"; - o.clickThroughUrlSuffix = "foo"; - o.defaultClickThroughEventTagId = "foo"; - o.defaultEmail = "foo"; - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.name = "foo"; - o.originalFloodlightConfigurationId = "foo"; - o.status = "foo"; - o.subaccountId = "foo"; - o.suspended = true; - } - buildCounterAdvertiser--; - return o; -} - -checkAdvertiser(api.Advertiser o) { - buildCounterAdvertiser++; - if (buildCounterAdvertiser < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserGroupId, unittest.equals('foo')); - unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); - unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); - unittest.expect(o.defaultEmail, unittest.equals('foo')); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.originalFloodlightConfigurationId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.suspended, unittest.isTrue); - } - buildCounterAdvertiser--; -} - -core.int buildCounterAdvertiserGroup = 0; -buildAdvertiserGroup() { - var o = new api.AdvertiserGroup(); - buildCounterAdvertiserGroup++; - if (buildCounterAdvertiserGroup < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterAdvertiserGroup--; - return o; -} - -checkAdvertiserGroup(api.AdvertiserGroup o) { - buildCounterAdvertiserGroup++; - if (buildCounterAdvertiserGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAdvertiserGroup--; -} - -buildUnnamed210() { - var o = new core.List<api.AdvertiserGroup>(); - o.add(buildAdvertiserGroup()); - o.add(buildAdvertiserGroup()); - return o; -} - -checkUnnamed210(core.List<api.AdvertiserGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdvertiserGroup(o[0]); - checkAdvertiserGroup(o[1]); -} - -core.int buildCounterAdvertiserGroupsListResponse = 0; -buildAdvertiserGroupsListResponse() { - var o = new api.AdvertiserGroupsListResponse(); - buildCounterAdvertiserGroupsListResponse++; - if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed210(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertiserGroupsListResponse--; - return o; -} - -checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { - buildCounterAdvertiserGroupsListResponse++; - if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed210(o.advertiserGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdvertiserGroupsListResponse--; -} - -buildUnnamed211() { - var o = new core.List<api.Advertiser>(); - o.add(buildAdvertiser()); - o.add(buildAdvertiser()); - return o; -} - -checkUnnamed211(core.List<api.Advertiser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdvertiser(o[0]); - checkAdvertiser(o[1]); -} - -core.int buildCounterAdvertisersListResponse = 0; -buildAdvertisersListResponse() { - var o = new api.AdvertisersListResponse(); - buildCounterAdvertisersListResponse++; - if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed211(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertisersListResponse--; - return o; -} - -checkAdvertisersListResponse(api.AdvertisersListResponse o) { - buildCounterAdvertisersListResponse++; - if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed211(o.advertisers); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdvertisersListResponse--; -} - -core.int buildCounterAudienceSegment = 0; -buildAudienceSegment() { - var o = new api.AudienceSegment(); - buildCounterAudienceSegment++; - if (buildCounterAudienceSegment < 3) { - o.allocation = 42; - o.id = "foo"; - o.name = "foo"; - } - buildCounterAudienceSegment--; - return o; -} - -checkAudienceSegment(api.AudienceSegment o) { - buildCounterAudienceSegment++; - if (buildCounterAudienceSegment < 3) { - unittest.expect(o.allocation, unittest.equals(42)); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAudienceSegment--; -} - -buildUnnamed212() { - var o = new core.List<api.AudienceSegment>(); - o.add(buildAudienceSegment()); - o.add(buildAudienceSegment()); - return o; -} - -checkUnnamed212(core.List<api.AudienceSegment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAudienceSegment(o[0]); - checkAudienceSegment(o[1]); -} - -core.int buildCounterAudienceSegmentGroup = 0; -buildAudienceSegmentGroup() { - var o = new api.AudienceSegmentGroup(); - buildCounterAudienceSegmentGroup++; - if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed212(); - o.id = "foo"; - o.name = "foo"; - } - buildCounterAudienceSegmentGroup--; - return o; -} - -checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { - buildCounterAudienceSegmentGroup++; - if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed212(o.audienceSegments); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterAudienceSegmentGroup--; -} - -core.int buildCounterBrowser = 0; -buildBrowser() { - var o = new api.Browser(); - buildCounterBrowser++; - if (buildCounterBrowser < 3) { - o.browserVersionId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.majorVersion = "foo"; - o.minorVersion = "foo"; - o.name = "foo"; - } - buildCounterBrowser--; - return o; -} - -checkBrowser(api.Browser o) { - buildCounterBrowser++; - if (buildCounterBrowser < 3) { - unittest.expect(o.browserVersionId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.majorVersion, unittest.equals('foo')); - unittest.expect(o.minorVersion, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterBrowser--; -} - -buildUnnamed213() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed213(core.List<api.Browser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBrowser(o[0]); - checkBrowser(o[1]); -} - -core.int buildCounterBrowsersListResponse = 0; -buildBrowsersListResponse() { - var o = new api.BrowsersListResponse(); - buildCounterBrowsersListResponse++; - if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed213(); - o.kind = "foo"; - } - buildCounterBrowsersListResponse--; - return o; -} - -checkBrowsersListResponse(api.BrowsersListResponse o) { - buildCounterBrowsersListResponse++; - if (buildCounterBrowsersListResponse < 3) { - checkUnnamed213(o.browsers); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterBrowsersListResponse--; -} - -buildUnnamed214() { - var o = new core.List<api.CreativeOptimizationConfiguration>(); - o.add(buildCreativeOptimizationConfiguration()); - o.add(buildCreativeOptimizationConfiguration()); - return o; -} - -checkUnnamed214(core.List<api.CreativeOptimizationConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeOptimizationConfiguration(o[0]); - checkCreativeOptimizationConfiguration(o[1]); -} - -buildUnnamed215() { - var o = new core.List<api.AudienceSegmentGroup>(); - o.add(buildAudienceSegmentGroup()); - o.add(buildAudienceSegmentGroup()); - return o; -} - -checkUnnamed215(core.List<api.AudienceSegmentGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAudienceSegmentGroup(o[0]); - checkAudienceSegmentGroup(o[1]); -} - -buildUnnamed216() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed216(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed217() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed217(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed218() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed218(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCampaign = 0; -buildCampaign() { - var o = new api.Campaign(); - buildCounterCampaign++; - if (buildCounterCampaign < 3) { - o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed214(); - o.advertiserGroupId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.audienceSegmentGroups = buildUnnamed215(); - o.billingInvoiceCode = "foo"; - o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); - o.comment = "foo"; - o.comscoreVceEnabled = true; - o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed216(); - o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); - o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed217(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.lookbackConfiguration = buildLookbackConfiguration(); - o.name = "foo"; - o.nielsenOcrEnabled = true; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed218(); - } - buildCounterCampaign--; - return o; -} - -checkCampaign(api.Campaign o) { - buildCounterCampaign++; - if (buildCounterCampaign < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed214(o.additionalCreativeOptimizationConfigurations); - unittest.expect(o.advertiserGroupId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - checkUnnamed215(o.audienceSegmentGroups); - unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); - checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); - checkLastModifiedInfo(o.createInfo); - checkUnnamed216(o.creativeGroupIds); - checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); - checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed217(o.eventTagOverrides); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed218(o.traffickerEmails); - } - buildCounterCampaign--; -} - -core.int buildCounterCampaignCreativeAssociation = 0; -buildCampaignCreativeAssociation() { - var o = new api.CampaignCreativeAssociation(); - buildCounterCampaignCreativeAssociation++; - if (buildCounterCampaignCreativeAssociation < 3) { - o.creativeId = "foo"; - o.kind = "foo"; - } - buildCounterCampaignCreativeAssociation--; - return o; -} - -checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { - buildCounterCampaignCreativeAssociation++; - if (buildCounterCampaignCreativeAssociation < 3) { - unittest.expect(o.creativeId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCampaignCreativeAssociation--; -} - -buildUnnamed219() { - var o = new core.List<api.CampaignCreativeAssociation>(); - o.add(buildCampaignCreativeAssociation()); - o.add(buildCampaignCreativeAssociation()); - return o; -} - -checkUnnamed219(core.List<api.CampaignCreativeAssociation> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCampaignCreativeAssociation(o[0]); - checkCampaignCreativeAssociation(o[1]); -} - -core.int buildCounterCampaignCreativeAssociationsListResponse = 0; -buildCampaignCreativeAssociationsListResponse() { - var o = new api.CampaignCreativeAssociationsListResponse(); - buildCounterCampaignCreativeAssociationsListResponse++; - if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed219(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignCreativeAssociationsListResponse--; - return o; -} - -checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { - buildCounterCampaignCreativeAssociationsListResponse++; - if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed219(o.campaignCreativeAssociations); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCampaignCreativeAssociationsListResponse--; -} - -buildUnnamed220() { - var o = new core.List<api.Campaign>(); - o.add(buildCampaign()); - o.add(buildCampaign()); - return o; -} - -checkUnnamed220(core.List<api.Campaign> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCampaign(o[0]); - checkCampaign(o[1]); -} - -core.int buildCounterCampaignsListResponse = 0; -buildCampaignsListResponse() { - var o = new api.CampaignsListResponse(); - buildCounterCampaignsListResponse++; - if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed220(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignsListResponse--; - return o; -} - -checkCampaignsListResponse(api.CampaignsListResponse o) { - buildCounterCampaignsListResponse++; - if (buildCounterCampaignsListResponse < 3) { - checkUnnamed220(o.campaigns); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCampaignsListResponse--; -} - -core.int buildCounterChangeLog = 0; -buildChangeLog() { - var o = new api.ChangeLog(); - buildCounterChangeLog++; - if (buildCounterChangeLog < 3) { - o.accountId = "foo"; - o.action = "foo"; - o.changeTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.fieldName = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.newValue = "foo"; - o.objectId = "foo"; - o.objectType = "foo"; - o.oldValue = "foo"; - o.subaccountId = "foo"; - o.transactionId = "foo"; - o.userProfileId = "foo"; - o.userProfileName = "foo"; - } - buildCounterChangeLog--; - return o; -} - -checkChangeLog(api.ChangeLog o) { - buildCounterChangeLog++; - if (buildCounterChangeLog < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.action, unittest.equals('foo')); - unittest.expect(o.changeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.fieldName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.newValue, unittest.equals('foo')); - unittest.expect(o.objectId, unittest.equals('foo')); - unittest.expect(o.objectType, unittest.equals('foo')); - unittest.expect(o.oldValue, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.transactionId, unittest.equals('foo')); - unittest.expect(o.userProfileId, unittest.equals('foo')); - unittest.expect(o.userProfileName, unittest.equals('foo')); - } - buildCounterChangeLog--; -} - -buildUnnamed221() { - var o = new core.List<api.ChangeLog>(); - o.add(buildChangeLog()); - o.add(buildChangeLog()); - return o; -} - -checkUnnamed221(core.List<api.ChangeLog> o) { - unittest.expect(o, unittest.hasLength(2)); - checkChangeLog(o[0]); - checkChangeLog(o[1]); -} - -core.int buildCounterChangeLogsListResponse = 0; -buildChangeLogsListResponse() { - var o = new api.ChangeLogsListResponse(); - buildCounterChangeLogsListResponse++; - if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed221(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterChangeLogsListResponse--; - return o; -} - -checkChangeLogsListResponse(api.ChangeLogsListResponse o) { - buildCounterChangeLogsListResponse++; - if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed221(o.changeLogs); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterChangeLogsListResponse--; -} - -buildUnnamed222() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed222(core.List<api.City> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCity(o[0]); - checkCity(o[1]); -} - -core.int buildCounterCitiesListResponse = 0; -buildCitiesListResponse() { - var o = new api.CitiesListResponse(); - buildCounterCitiesListResponse++; - if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed222(); - o.kind = "foo"; - } - buildCounterCitiesListResponse--; - return o; -} - -checkCitiesListResponse(api.CitiesListResponse o) { - buildCounterCitiesListResponse++; - if (buildCounterCitiesListResponse < 3) { - checkUnnamed222(o.cities); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCitiesListResponse--; -} - -core.int buildCounterCity = 0; -buildCity() { - var o = new api.City(); - buildCounterCity++; - if (buildCounterCity < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.metroCode = "foo"; - o.metroDmaId = "foo"; - o.name = "foo"; - o.regionCode = "foo"; - o.regionDartId = "foo"; - } - buildCounterCity--; - return o; -} - -checkCity(api.City o) { - buildCounterCity++; - if (buildCounterCity < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.metroCode, unittest.equals('foo')); - unittest.expect(o.metroDmaId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.regionCode, unittest.equals('foo')); - unittest.expect(o.regionDartId, unittest.equals('foo')); - } - buildCounterCity--; -} - -core.int buildCounterClickTag = 0; -buildClickTag() { - var o = new api.ClickTag(); - buildCounterClickTag++; - if (buildCounterClickTag < 3) { - o.eventName = "foo"; - o.name = "foo"; - o.value = "foo"; - } - buildCounterClickTag--; - return o; -} - -checkClickTag(api.ClickTag o) { - buildCounterClickTag++; - if (buildCounterClickTag < 3) { - unittest.expect(o.eventName, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterClickTag--; -} - -core.int buildCounterClickThroughUrl = 0; -buildClickThroughUrl() { - var o = new api.ClickThroughUrl(); - buildCounterClickThroughUrl++; - if (buildCounterClickThroughUrl < 3) { - o.computedClickThroughUrl = "foo"; - o.customClickThroughUrl = "foo"; - o.defaultLandingPage = true; - o.landingPageId = "foo"; - } - buildCounterClickThroughUrl--; - return o; -} - -checkClickThroughUrl(api.ClickThroughUrl o) { - buildCounterClickThroughUrl++; - if (buildCounterClickThroughUrl < 3) { - unittest.expect(o.computedClickThroughUrl, unittest.equals('foo')); - unittest.expect(o.customClickThroughUrl, unittest.equals('foo')); - unittest.expect(o.defaultLandingPage, unittest.isTrue); - unittest.expect(o.landingPageId, unittest.equals('foo')); - } - buildCounterClickThroughUrl--; -} - -core.int buildCounterClickThroughUrlSuffixProperties = 0; -buildClickThroughUrlSuffixProperties() { - var o = new api.ClickThroughUrlSuffixProperties(); - buildCounterClickThroughUrlSuffixProperties++; - if (buildCounterClickThroughUrlSuffixProperties < 3) { - o.clickThroughUrlSuffix = "foo"; - o.overrideInheritedSuffix = true; - } - buildCounterClickThroughUrlSuffixProperties--; - return o; -} - -checkClickThroughUrlSuffixProperties(api.ClickThroughUrlSuffixProperties o) { - buildCounterClickThroughUrlSuffixProperties++; - if (buildCounterClickThroughUrlSuffixProperties < 3) { - unittest.expect(o.clickThroughUrlSuffix, unittest.equals('foo')); - unittest.expect(o.overrideInheritedSuffix, unittest.isTrue); - } - buildCounterClickThroughUrlSuffixProperties--; -} - -core.int buildCounterCompanionClickThroughOverride = 0; -buildCompanionClickThroughOverride() { - var o = new api.CompanionClickThroughOverride(); - buildCounterCompanionClickThroughOverride++; - if (buildCounterCompanionClickThroughOverride < 3) { - o.clickThroughUrl = buildClickThroughUrl(); - o.creativeId = "foo"; - } - buildCounterCompanionClickThroughOverride--; - return o; -} - -checkCompanionClickThroughOverride(api.CompanionClickThroughOverride o) { - buildCounterCompanionClickThroughOverride++; - if (buildCounterCompanionClickThroughOverride < 3) { - checkClickThroughUrl(o.clickThroughUrl); - unittest.expect(o.creativeId, unittest.equals('foo')); - } - buildCounterCompanionClickThroughOverride--; -} - -core.int buildCounterCompatibleFields = 0; -buildCompatibleFields() { - var o = new api.CompatibleFields(); - buildCounterCompatibleFields++; - if (buildCounterCompatibleFields < 3) { - o.crossDimensionReachReportCompatibleFields = buildCrossDimensionReachReportCompatibleFields(); - o.floodlightReportCompatibleFields = buildFloodlightReportCompatibleFields(); - o.kind = "foo"; - o.pathToConversionReportCompatibleFields = buildPathToConversionReportCompatibleFields(); - o.reachReportCompatibleFields = buildReachReportCompatibleFields(); - o.reportCompatibleFields = buildReportCompatibleFields(); - } - buildCounterCompatibleFields--; - return o; -} - -checkCompatibleFields(api.CompatibleFields o) { - buildCounterCompatibleFields++; - if (buildCounterCompatibleFields < 3) { - checkCrossDimensionReachReportCompatibleFields(o.crossDimensionReachReportCompatibleFields); - checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); - unittest.expect(o.kind, unittest.equals('foo')); - checkPathToConversionReportCompatibleFields(o.pathToConversionReportCompatibleFields); - checkReachReportCompatibleFields(o.reachReportCompatibleFields); - checkReportCompatibleFields(o.reportCompatibleFields); - } - buildCounterCompatibleFields--; -} - -core.int buildCounterConnectionType = 0; -buildConnectionType() { - var o = new api.ConnectionType(); - buildCounterConnectionType++; - if (buildCounterConnectionType < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterConnectionType--; - return o; -} - -checkConnectionType(api.ConnectionType o) { - buildCounterConnectionType++; - if (buildCounterConnectionType < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterConnectionType--; -} - -buildUnnamed223() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed223(core.List<api.ConnectionType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkConnectionType(o[0]); - checkConnectionType(o[1]); -} - -core.int buildCounterConnectionTypesListResponse = 0; -buildConnectionTypesListResponse() { - var o = new api.ConnectionTypesListResponse(); - buildCounterConnectionTypesListResponse++; - if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed223(); - o.kind = "foo"; - } - buildCounterConnectionTypesListResponse--; - return o; -} - -checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { - buildCounterConnectionTypesListResponse++; - if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed223(o.connectionTypes); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterConnectionTypesListResponse--; -} - -buildUnnamed224() { - var o = new core.List<api.ContentCategory>(); - o.add(buildContentCategory()); - o.add(buildContentCategory()); - return o; -} - -checkUnnamed224(core.List<api.ContentCategory> o) { - unittest.expect(o, unittest.hasLength(2)); - checkContentCategory(o[0]); - checkContentCategory(o[1]); -} - -core.int buildCounterContentCategoriesListResponse = 0; -buildContentCategoriesListResponse() { - var o = new api.ContentCategoriesListResponse(); - buildCounterContentCategoriesListResponse++; - if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed224(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterContentCategoriesListResponse--; - return o; -} - -checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { - buildCounterContentCategoriesListResponse++; - if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed224(o.contentCategories); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterContentCategoriesListResponse--; -} - -core.int buildCounterContentCategory = 0; -buildContentCategory() { - var o = new api.ContentCategory(); - buildCounterContentCategory++; - if (buildCounterContentCategory < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterContentCategory--; - return o; -} - -checkContentCategory(api.ContentCategory o) { - buildCounterContentCategory++; - if (buildCounterContentCategory < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterContentCategory--; -} - -buildUnnamed225() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed225(core.List<api.Country> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCountry(o[0]); - checkCountry(o[1]); -} - -core.int buildCounterCountriesListResponse = 0; -buildCountriesListResponse() { - var o = new api.CountriesListResponse(); - buildCounterCountriesListResponse++; - if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed225(); - o.kind = "foo"; - } - buildCounterCountriesListResponse--; - return o; -} - -checkCountriesListResponse(api.CountriesListResponse o) { - buildCounterCountriesListResponse++; - if (buildCounterCountriesListResponse < 3) { - checkUnnamed225(o.countries); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCountriesListResponse--; -} - -core.int buildCounterCountry = 0; -buildCountry() { - var o = new api.Country(); - buildCounterCountry++; - if (buildCounterCountry < 3) { - o.countryCode = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.sslEnabled = true; - } - buildCounterCountry--; - return o; -} - -checkCountry(api.Country o) { - buildCounterCountry++; - if (buildCounterCountry < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.sslEnabled, unittest.isTrue); - } - buildCounterCountry--; -} - -buildUnnamed226() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed226(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed227() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed227(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed228() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed228(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed229() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed229(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed230() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed230(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed231() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed231(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed232() { - var o = new core.List<api.CreativeAsset>(); - o.add(buildCreativeAsset()); - o.add(buildCreativeAsset()); - return o; -} - -checkUnnamed232(core.List<api.CreativeAsset> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeAsset(o[0]); - checkCreativeAsset(o[1]); -} - -buildUnnamed233() { - var o = new core.List<api.CreativeFieldAssignment>(); - o.add(buildCreativeFieldAssignment()); - o.add(buildCreativeFieldAssignment()); - return o; -} - -checkUnnamed233(core.List<api.CreativeFieldAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeFieldAssignment(o[0]); - checkCreativeFieldAssignment(o[1]); -} - -buildUnnamed234() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed234(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed235() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed235(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed236() { - var o = new core.List<api.ThirdPartyTrackingUrl>(); - o.add(buildThirdPartyTrackingUrl()); - o.add(buildThirdPartyTrackingUrl()); - return o; -} - -checkUnnamed236(core.List<api.ThirdPartyTrackingUrl> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyTrackingUrl(o[0]); - checkThirdPartyTrackingUrl(o[1]); -} - -buildUnnamed237() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed237(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -core.int buildCounterCreative = 0; -buildCreative() { - var o = new api.Creative(); - buildCounterCreative++; - if (buildCounterCreative < 3) { - o.accountId = "foo"; - o.active = true; - o.adParameters = "foo"; - o.adTagKeys = buildUnnamed226(); - o.advertiserId = "foo"; - o.allowScriptAccess = true; - o.archived = true; - o.artworkType = "foo"; - o.authoringSource = "foo"; - o.authoringTool = "foo"; - o.autoAdvanceImages = true; - o.backgroundColor = "foo"; - o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed227(); - o.backupImageReportingLabel = "foo"; - o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed228(); - o.commercialId = "foo"; - o.companionCreatives = buildUnnamed229(); - o.compatibility = buildUnnamed230(); - o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed231(); - o.creativeAssets = buildUnnamed232(); - o.creativeFieldAssignments = buildUnnamed233(); - o.customKeyValues = buildUnnamed234(); - o.exitCustomEvents = buildUnnamed235(); - o.fsCommand = buildFsCommand(); - o.htmlCode = "foo"; - o.htmlCodeLocked = true; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.latestTraffickedCreativeId = "foo"; - o.name = "foo"; - o.overrideCss = "foo"; - o.redirectUrl = "foo"; - o.renderingId = "foo"; - o.renderingIdDimensionValue = buildDimensionValue(); - o.requiredFlashPluginVersion = "foo"; - o.requiredFlashVersion = 42; - o.size = buildSize(); - o.skippable = true; - o.sslCompliant = true; - o.sslOverride = true; - o.studioAdvertiserId = "foo"; - o.studioCreativeId = "foo"; - o.studioTraffickedCreativeId = "foo"; - o.subaccountId = "foo"; - o.thirdPartyBackupImageImpressionsUrl = "foo"; - o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed236(); - o.timerCustomEvents = buildUnnamed237(); - o.totalFileSize = "foo"; - o.type = "foo"; - o.version = 42; - o.videoDescription = "foo"; - o.videoDuration = 42.0; - } - buildCounterCreative--; - return o; -} - -checkCreative(api.Creative o) { - buildCounterCreative++; - if (buildCounterCreative < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed226(o.adTagKeys); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.allowScriptAccess, unittest.isTrue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.artworkType, unittest.equals('foo')); - unittest.expect(o.authoringSource, unittest.equals('foo')); - unittest.expect(o.authoringTool, unittest.equals('foo')); - unittest.expect(o.autoAdvanceImages, unittest.isTrue); - unittest.expect(o.backgroundColor, unittest.equals('foo')); - unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed227(o.backupImageFeatures); - unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); - checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed228(o.clickTags); - unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed229(o.companionCreatives); - checkUnnamed230(o.compatibility); - unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed231(o.counterCustomEvents); - checkUnnamed232(o.creativeAssets); - checkUnnamed233(o.creativeFieldAssignments); - checkUnnamed234(o.customKeyValues); - checkUnnamed235(o.exitCustomEvents); - checkFsCommand(o.fsCommand); - unittest.expect(o.htmlCode, unittest.equals('foo')); - unittest.expect(o.htmlCodeLocked, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.overrideCss, unittest.equals('foo')); - unittest.expect(o.redirectUrl, unittest.equals('foo')); - unittest.expect(o.renderingId, unittest.equals('foo')); - checkDimensionValue(o.renderingIdDimensionValue); - unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); - unittest.expect(o.requiredFlashVersion, unittest.equals(42)); - checkSize(o.size); - unittest.expect(o.skippable, unittest.isTrue); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslOverride, unittest.isTrue); - unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); - unittest.expect(o.studioCreativeId, unittest.equals('foo')); - unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); - unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed236(o.thirdPartyUrls); - checkUnnamed237(o.timerCustomEvents); - unittest.expect(o.totalFileSize, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.version, unittest.equals(42)); - unittest.expect(o.videoDescription, unittest.equals('foo')); - unittest.expect(o.videoDuration, unittest.equals(42.0)); - } - buildCounterCreative--; -} - -buildUnnamed238() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed238(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCreativeAsset = 0; -buildCreativeAsset() { - var o = new api.CreativeAsset(); - buildCounterCreativeAsset++; - if (buildCounterCreativeAsset < 3) { - o.actionScript3 = true; - o.active = true; - o.alignment = "foo"; - o.artworkType = "foo"; - o.assetIdentifier = buildCreativeAssetId(); - o.backupImageExit = buildCreativeCustomEvent(); - o.bitRate = 42; - o.childAssetType = "foo"; - o.collapsedSize = buildSize(); - o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed238(); - o.displayType = "foo"; - o.duration = 42; - o.durationType = "foo"; - o.expandedDimension = buildSize(); - o.fileSize = "foo"; - o.flashVersion = 42; - o.hideFlashObjects = true; - o.hideSelectionBoxes = true; - o.horizontallyLocked = true; - o.id = "foo"; - o.mimeType = "foo"; - o.offset = buildOffsetPosition(); - o.originalBackup = true; - o.position = buildOffsetPosition(); - o.positionLeftUnit = "foo"; - o.positionTopUnit = "foo"; - o.progressiveServingUrl = "foo"; - o.pushdown = true; - o.pushdownDuration = 42.0; - o.role = "foo"; - o.size = buildSize(); - o.sslCompliant = true; - o.startTimeType = "foo"; - o.streamingServingUrl = "foo"; - o.transparency = true; - o.verticallyLocked = true; - o.videoDuration = 42.0; - o.windowMode = "foo"; - o.zIndex = 42; - o.zipFilename = "foo"; - o.zipFilesize = "foo"; - } - buildCounterCreativeAsset--; - return o; -} - -checkCreativeAsset(api.CreativeAsset o) { - buildCounterCreativeAsset++; - if (buildCounterCreativeAsset < 3) { - unittest.expect(o.actionScript3, unittest.isTrue); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.alignment, unittest.equals('foo')); - unittest.expect(o.artworkType, unittest.equals('foo')); - checkCreativeAssetId(o.assetIdentifier); - checkCreativeCustomEvent(o.backupImageExit); - unittest.expect(o.bitRate, unittest.equals(42)); - unittest.expect(o.childAssetType, unittest.equals('foo')); - checkSize(o.collapsedSize); - unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed238(o.detectedFeatures); - unittest.expect(o.displayType, unittest.equals('foo')); - unittest.expect(o.duration, unittest.equals(42)); - unittest.expect(o.durationType, unittest.equals('foo')); - checkSize(o.expandedDimension); - unittest.expect(o.fileSize, unittest.equals('foo')); - unittest.expect(o.flashVersion, unittest.equals(42)); - unittest.expect(o.hideFlashObjects, unittest.isTrue); - unittest.expect(o.hideSelectionBoxes, unittest.isTrue); - unittest.expect(o.horizontallyLocked, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.mimeType, unittest.equals('foo')); - checkOffsetPosition(o.offset); - unittest.expect(o.originalBackup, unittest.isTrue); - checkOffsetPosition(o.position); - unittest.expect(o.positionLeftUnit, unittest.equals('foo')); - unittest.expect(o.positionTopUnit, unittest.equals('foo')); - unittest.expect(o.progressiveServingUrl, unittest.equals('foo')); - unittest.expect(o.pushdown, unittest.isTrue); - unittest.expect(o.pushdownDuration, unittest.equals(42.0)); - unittest.expect(o.role, unittest.equals('foo')); - checkSize(o.size); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.startTimeType, unittest.equals('foo')); - unittest.expect(o.streamingServingUrl, unittest.equals('foo')); - unittest.expect(o.transparency, unittest.isTrue); - unittest.expect(o.verticallyLocked, unittest.isTrue); - unittest.expect(o.videoDuration, unittest.equals(42.0)); - unittest.expect(o.windowMode, unittest.equals('foo')); - unittest.expect(o.zIndex, unittest.equals(42)); - unittest.expect(o.zipFilename, unittest.equals('foo')); - unittest.expect(o.zipFilesize, unittest.equals('foo')); - } - buildCounterCreativeAsset--; -} - -core.int buildCounterCreativeAssetId = 0; -buildCreativeAssetId() { - var o = new api.CreativeAssetId(); - buildCounterCreativeAssetId++; - if (buildCounterCreativeAssetId < 3) { - o.name = "foo"; - o.type = "foo"; - } - buildCounterCreativeAssetId--; - return o; -} - -checkCreativeAssetId(api.CreativeAssetId o) { - buildCounterCreativeAssetId++; - if (buildCounterCreativeAssetId < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterCreativeAssetId--; -} - -buildUnnamed239() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed239(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed240() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed240(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed241() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed241(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterCreativeAssetMetadata = 0; -buildCreativeAssetMetadata() { - var o = new api.CreativeAssetMetadata(); - buildCounterCreativeAssetMetadata++; - if (buildCounterCreativeAssetMetadata < 3) { - o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed239(); - o.detectedFeatures = buildUnnamed240(); - o.kind = "foo"; - o.warnedValidationRules = buildUnnamed241(); - } - buildCounterCreativeAssetMetadata--; - return o; -} - -checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { - buildCounterCreativeAssetMetadata++; - if (buildCounterCreativeAssetMetadata < 3) { - checkCreativeAssetId(o.assetIdentifier); - checkUnnamed239(o.clickTags); - checkUnnamed240(o.detectedFeatures); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed241(o.warnedValidationRules); - } - buildCounterCreativeAssetMetadata--; -} - -buildUnnamed242() { - var o = new core.List<api.CompanionClickThroughOverride>(); - o.add(buildCompanionClickThroughOverride()); - o.add(buildCompanionClickThroughOverride()); - return o; -} - -checkUnnamed242(core.List<api.CompanionClickThroughOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCompanionClickThroughOverride(o[0]); - checkCompanionClickThroughOverride(o[1]); -} - -buildUnnamed243() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed243(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed244() { - var o = new core.List<api.RichMediaExitOverride>(); - o.add(buildRichMediaExitOverride()); - o.add(buildRichMediaExitOverride()); - return o; -} - -checkUnnamed244(core.List<api.RichMediaExitOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRichMediaExitOverride(o[0]); - checkRichMediaExitOverride(o[1]); -} - -core.int buildCounterCreativeAssignment = 0; -buildCreativeAssignment() { - var o = new api.CreativeAssignment(); - buildCounterCreativeAssignment++; - if (buildCounterCreativeAssignment < 3) { - o.active = true; - o.applyEventTags = true; - o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed242(); - o.creativeGroupAssignments = buildUnnamed243(); - o.creativeId = "foo"; - o.creativeIdDimensionValue = buildDimensionValue(); - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed244(); - o.sequence = 42; - o.sslCompliant = true; - o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.weight = 42; - } - buildCounterCreativeAssignment--; - return o; -} - -checkCreativeAssignment(api.CreativeAssignment o) { - buildCounterCreativeAssignment++; - if (buildCounterCreativeAssignment < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.applyEventTags, unittest.isTrue); - checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed242(o.companionCreativeOverrides); - checkUnnamed243(o.creativeGroupAssignments); - unittest.expect(o.creativeId, unittest.equals('foo')); - checkDimensionValue(o.creativeIdDimensionValue); - unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed244(o.richMediaExitOverrides); - unittest.expect(o.sequence, unittest.equals(42)); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.weight, unittest.equals(42)); - } - buildCounterCreativeAssignment--; -} - -core.int buildCounterCreativeCustomEvent = 0; -buildCreativeCustomEvent() { - var o = new api.CreativeCustomEvent(); - buildCounterCreativeCustomEvent++; - if (buildCounterCreativeCustomEvent < 3) { - o.advertiserCustomEventId = "foo"; - o.advertiserCustomEventName = "foo"; - o.advertiserCustomEventType = "foo"; - o.artworkLabel = "foo"; - o.artworkType = "foo"; - o.exitUrl = "foo"; - o.id = "foo"; - o.popupWindowProperties = buildPopupWindowProperties(); - o.targetType = "foo"; - o.videoReportingId = "foo"; - } - buildCounterCreativeCustomEvent--; - return o; -} - -checkCreativeCustomEvent(api.CreativeCustomEvent o) { - buildCounterCreativeCustomEvent++; - if (buildCounterCreativeCustomEvent < 3) { - unittest.expect(o.advertiserCustomEventId, unittest.equals('foo')); - unittest.expect(o.advertiserCustomEventName, unittest.equals('foo')); - unittest.expect(o.advertiserCustomEventType, unittest.equals('foo')); - unittest.expect(o.artworkLabel, unittest.equals('foo')); - unittest.expect(o.artworkType, unittest.equals('foo')); - unittest.expect(o.exitUrl, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkPopupWindowProperties(o.popupWindowProperties); - unittest.expect(o.targetType, unittest.equals('foo')); - unittest.expect(o.videoReportingId, unittest.equals('foo')); - } - buildCounterCreativeCustomEvent--; -} - -core.int buildCounterCreativeField = 0; -buildCreativeField() { - var o = new api.CreativeField(); - buildCounterCreativeField++; - if (buildCounterCreativeField < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterCreativeField--; - return o; -} - -checkCreativeField(api.CreativeField o) { - buildCounterCreativeField++; - if (buildCounterCreativeField < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterCreativeField--; -} - -core.int buildCounterCreativeFieldAssignment = 0; -buildCreativeFieldAssignment() { - var o = new api.CreativeFieldAssignment(); - buildCounterCreativeFieldAssignment++; - if (buildCounterCreativeFieldAssignment < 3) { - o.creativeFieldId = "foo"; - o.creativeFieldValueId = "foo"; - } - buildCounterCreativeFieldAssignment--; - return o; -} - -checkCreativeFieldAssignment(api.CreativeFieldAssignment o) { - buildCounterCreativeFieldAssignment++; - if (buildCounterCreativeFieldAssignment < 3) { - unittest.expect(o.creativeFieldId, unittest.equals('foo')); - unittest.expect(o.creativeFieldValueId, unittest.equals('foo')); - } - buildCounterCreativeFieldAssignment--; -} - -core.int buildCounterCreativeFieldValue = 0; -buildCreativeFieldValue() { - var o = new api.CreativeFieldValue(); - buildCounterCreativeFieldValue++; - if (buildCounterCreativeFieldValue < 3) { - o.id = "foo"; - o.kind = "foo"; - o.value = "foo"; - } - buildCounterCreativeFieldValue--; - return o; -} - -checkCreativeFieldValue(api.CreativeFieldValue o) { - buildCounterCreativeFieldValue++; - if (buildCounterCreativeFieldValue < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterCreativeFieldValue--; -} - -buildUnnamed245() { - var o = new core.List<api.CreativeFieldValue>(); - o.add(buildCreativeFieldValue()); - o.add(buildCreativeFieldValue()); - return o; -} - -checkUnnamed245(core.List<api.CreativeFieldValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeFieldValue(o[0]); - checkCreativeFieldValue(o[1]); -} - -core.int buildCounterCreativeFieldValuesListResponse = 0; -buildCreativeFieldValuesListResponse() { - var o = new api.CreativeFieldValuesListResponse(); - buildCounterCreativeFieldValuesListResponse++; - if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed245(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldValuesListResponse--; - return o; -} - -checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { - buildCounterCreativeFieldValuesListResponse++; - if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed245(o.creativeFieldValues); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeFieldValuesListResponse--; -} - -buildUnnamed246() { - var o = new core.List<api.CreativeField>(); - o.add(buildCreativeField()); - o.add(buildCreativeField()); - return o; -} - -checkUnnamed246(core.List<api.CreativeField> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeField(o[0]); - checkCreativeField(o[1]); -} - -core.int buildCounterCreativeFieldsListResponse = 0; -buildCreativeFieldsListResponse() { - var o = new api.CreativeFieldsListResponse(); - buildCounterCreativeFieldsListResponse++; - if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed246(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldsListResponse--; - return o; -} - -checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { - buildCounterCreativeFieldsListResponse++; - if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed246(o.creativeFields); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeFieldsListResponse--; -} - -core.int buildCounterCreativeGroup = 0; -buildCreativeGroup() { - var o = new api.CreativeGroup(); - buildCounterCreativeGroup++; - if (buildCounterCreativeGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.groupNumber = 42; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterCreativeGroup--; - return o; -} - -checkCreativeGroup(api.CreativeGroup o) { - buildCounterCreativeGroup++; - if (buildCounterCreativeGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.groupNumber, unittest.equals(42)); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterCreativeGroup--; -} - -core.int buildCounterCreativeGroupAssignment = 0; -buildCreativeGroupAssignment() { - var o = new api.CreativeGroupAssignment(); - buildCounterCreativeGroupAssignment++; - if (buildCounterCreativeGroupAssignment < 3) { - o.creativeGroupId = "foo"; - o.creativeGroupNumber = "foo"; - } - buildCounterCreativeGroupAssignment--; - return o; -} - -checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { - buildCounterCreativeGroupAssignment++; - if (buildCounterCreativeGroupAssignment < 3) { - unittest.expect(o.creativeGroupId, unittest.equals('foo')); - unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); - } - buildCounterCreativeGroupAssignment--; -} - -buildUnnamed247() { - var o = new core.List<api.CreativeGroup>(); - o.add(buildCreativeGroup()); - o.add(buildCreativeGroup()); - return o; -} - -checkUnnamed247(core.List<api.CreativeGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroup(o[0]); - checkCreativeGroup(o[1]); -} - -core.int buildCounterCreativeGroupsListResponse = 0; -buildCreativeGroupsListResponse() { - var o = new api.CreativeGroupsListResponse(); - buildCounterCreativeGroupsListResponse++; - if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed247(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeGroupsListResponse--; - return o; -} - -checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { - buildCounterCreativeGroupsListResponse++; - if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed247(o.creativeGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeGroupsListResponse--; -} - -buildUnnamed248() { - var o = new core.List<api.OptimizationActivity>(); - o.add(buildOptimizationActivity()); - o.add(buildOptimizationActivity()); - return o; -} - -checkUnnamed248(core.List<api.OptimizationActivity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOptimizationActivity(o[0]); - checkOptimizationActivity(o[1]); -} - -core.int buildCounterCreativeOptimizationConfiguration = 0; -buildCreativeOptimizationConfiguration() { - var o = new api.CreativeOptimizationConfiguration(); - buildCounterCreativeOptimizationConfiguration++; - if (buildCounterCreativeOptimizationConfiguration < 3) { - o.id = "foo"; - o.name = "foo"; - o.optimizationActivitys = buildUnnamed248(); - o.optimizationModel = "foo"; - } - buildCounterCreativeOptimizationConfiguration--; - return o; -} - -checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o) { - buildCounterCreativeOptimizationConfiguration++; - if (buildCounterCreativeOptimizationConfiguration < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed248(o.optimizationActivitys); - unittest.expect(o.optimizationModel, unittest.equals('foo')); - } - buildCounterCreativeOptimizationConfiguration--; -} - -buildUnnamed249() { - var o = new core.List<api.CreativeAssignment>(); - o.add(buildCreativeAssignment()); - o.add(buildCreativeAssignment()); - return o; -} - -checkUnnamed249(core.List<api.CreativeAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeAssignment(o[0]); - checkCreativeAssignment(o[1]); -} - -core.int buildCounterCreativeRotation = 0; -buildCreativeRotation() { - var o = new api.CreativeRotation(); - buildCounterCreativeRotation++; - if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed249(); - o.creativeOptimizationConfigurationId = "foo"; - o.type = "foo"; - o.weightCalculationStrategy = "foo"; - } - buildCounterCreativeRotation--; - return o; -} - -checkCreativeRotation(api.CreativeRotation o) { - buildCounterCreativeRotation++; - if (buildCounterCreativeRotation < 3) { - checkUnnamed249(o.creativeAssignments); - unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); - } - buildCounterCreativeRotation--; -} - -core.int buildCounterCreativeSettings = 0; -buildCreativeSettings() { - var o = new api.CreativeSettings(); - buildCounterCreativeSettings++; - if (buildCounterCreativeSettings < 3) { - o.iFrameFooter = "foo"; - o.iFrameHeader = "foo"; - } - buildCounterCreativeSettings--; - return o; -} - -checkCreativeSettings(api.CreativeSettings o) { - buildCounterCreativeSettings++; - if (buildCounterCreativeSettings < 3) { - unittest.expect(o.iFrameFooter, unittest.equals('foo')); - unittest.expect(o.iFrameHeader, unittest.equals('foo')); - } - buildCounterCreativeSettings--; -} - -buildUnnamed250() { - var o = new core.List<api.Creative>(); - o.add(buildCreative()); - o.add(buildCreative()); - return o; -} - -checkUnnamed250(core.List<api.Creative> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreative(o[0]); - checkCreative(o[1]); -} - -core.int buildCounterCreativesListResponse = 0; -buildCreativesListResponse() { - var o = new api.CreativesListResponse(); - buildCounterCreativesListResponse++; - if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed250(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativesListResponse--; - return o; -} - -checkCreativesListResponse(api.CreativesListResponse o) { - buildCounterCreativesListResponse++; - if (buildCounterCreativesListResponse < 3) { - checkUnnamed250(o.creatives); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativesListResponse--; -} - -buildUnnamed251() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed251(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed252() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed252(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed253() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed253(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed254() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed254(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; -buildCrossDimensionReachReportCompatibleFields() { - var o = new api.CrossDimensionReachReportCompatibleFields(); - buildCounterCrossDimensionReachReportCompatibleFields++; - if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed251(); - o.dimensionFilters = buildUnnamed252(); - o.kind = "foo"; - o.metrics = buildUnnamed253(); - o.overlapMetrics = buildUnnamed254(); - } - buildCounterCrossDimensionReachReportCompatibleFields--; - return o; -} - -checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { - buildCounterCrossDimensionReachReportCompatibleFields++; - if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed251(o.breakdown); - checkUnnamed252(o.dimensionFilters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed253(o.metrics); - checkUnnamed254(o.overlapMetrics); - } - buildCounterCrossDimensionReachReportCompatibleFields--; -} - -buildUnnamed255() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed255(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -core.int buildCounterCustomRichMediaEvents = 0; -buildCustomRichMediaEvents() { - var o = new api.CustomRichMediaEvents(); - buildCounterCustomRichMediaEvents++; - if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed255(); - o.kind = "foo"; - } - buildCounterCustomRichMediaEvents--; - return o; -} - -checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { - buildCounterCustomRichMediaEvents++; - if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed255(o.filteredEventIds); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterCustomRichMediaEvents--; -} - -core.int buildCounterDateRange = 0; -buildDateRange() { - var o = new api.DateRange(); - buildCounterDateRange++; - if (buildCounterDateRange < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.kind = "foo"; - o.relativeDateRange = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterDateRange--; - return o; -} - -checkDateRange(api.DateRange o) { - buildCounterDateRange++; - if (buildCounterDateRange < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.relativeDateRange, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterDateRange--; -} - -buildUnnamed256() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed256(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed257() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed257(core.List<core.int> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals(42)); - unittest.expect(o[1], unittest.equals(42)); -} - -core.int buildCounterDayPartTargeting = 0; -buildDayPartTargeting() { - var o = new api.DayPartTargeting(); - buildCounterDayPartTargeting++; - if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed256(); - o.hoursOfDay = buildUnnamed257(); - o.userLocalTime = true; - } - buildCounterDayPartTargeting--; - return o; -} - -checkDayPartTargeting(api.DayPartTargeting o) { - buildCounterDayPartTargeting++; - if (buildCounterDayPartTargeting < 3) { - checkUnnamed256(o.daysOfWeek); - checkUnnamed257(o.hoursOfDay); - unittest.expect(o.userLocalTime, unittest.isTrue); - } - buildCounterDayPartTargeting--; -} - -core.int buildCounterDefaultClickThroughEventTagProperties = 0; -buildDefaultClickThroughEventTagProperties() { - var o = new api.DefaultClickThroughEventTagProperties(); - buildCounterDefaultClickThroughEventTagProperties++; - if (buildCounterDefaultClickThroughEventTagProperties < 3) { - o.defaultClickThroughEventTagId = "foo"; - o.overrideInheritedEventTag = true; - } - buildCounterDefaultClickThroughEventTagProperties--; - return o; -} - -checkDefaultClickThroughEventTagProperties(api.DefaultClickThroughEventTagProperties o) { - buildCounterDefaultClickThroughEventTagProperties++; - if (buildCounterDefaultClickThroughEventTagProperties < 3) { - unittest.expect(o.defaultClickThroughEventTagId, unittest.equals('foo')); - unittest.expect(o.overrideInheritedEventTag, unittest.isTrue); - } - buildCounterDefaultClickThroughEventTagProperties--; -} - -core.int buildCounterDeliverySchedule = 0; -buildDeliverySchedule() { - var o = new api.DeliverySchedule(); - buildCounterDeliverySchedule++; - if (buildCounterDeliverySchedule < 3) { - o.frequencyCap = buildFrequencyCap(); - o.hardCutoff = true; - o.impressionRatio = "foo"; - o.priority = "foo"; - } - buildCounterDeliverySchedule--; - return o; -} - -checkDeliverySchedule(api.DeliverySchedule o) { - buildCounterDeliverySchedule++; - if (buildCounterDeliverySchedule < 3) { - checkFrequencyCap(o.frequencyCap); - unittest.expect(o.hardCutoff, unittest.isTrue); - unittest.expect(o.impressionRatio, unittest.equals('foo')); - unittest.expect(o.priority, unittest.equals('foo')); - } - buildCounterDeliverySchedule--; -} - -core.int buildCounterDfpSettings = 0; -buildDfpSettings() { - var o = new api.DfpSettings(); - buildCounterDfpSettings++; - if (buildCounterDfpSettings < 3) { - o.dfpNetworkCode = "foo"; - o.dfpNetworkName = "foo"; - o.programmaticPlacementAccepted = true; - o.pubPaidPlacementAccepted = true; - o.publisherPortalOnly = true; - } - buildCounterDfpSettings--; - return o; -} - -checkDfpSettings(api.DfpSettings o) { - buildCounterDfpSettings++; - if (buildCounterDfpSettings < 3) { - unittest.expect(o.dfpNetworkCode, unittest.equals('foo')); - unittest.expect(o.dfpNetworkName, unittest.equals('foo')); - unittest.expect(o.programmaticPlacementAccepted, unittest.isTrue); - unittest.expect(o.pubPaidPlacementAccepted, unittest.isTrue); - unittest.expect(o.publisherPortalOnly, unittest.isTrue); - } - buildCounterDfpSettings--; -} - -core.int buildCounterDimension = 0; -buildDimension() { - var o = new api.Dimension(); - buildCounterDimension++; - if (buildCounterDimension < 3) { - o.kind = "foo"; - o.name = "foo"; - } - buildCounterDimension--; - return o; -} - -checkDimension(api.Dimension o) { - buildCounterDimension++; - if (buildCounterDimension < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterDimension--; -} - -core.int buildCounterDimensionFilter = 0; -buildDimensionFilter() { - var o = new api.DimensionFilter(); - buildCounterDimensionFilter++; - if (buildCounterDimensionFilter < 3) { - o.dimensionName = "foo"; - o.kind = "foo"; - o.value = "foo"; - } - buildCounterDimensionFilter--; - return o; -} - -checkDimensionFilter(api.DimensionFilter o) { - buildCounterDimensionFilter++; - if (buildCounterDimensionFilter < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterDimensionFilter--; -} - -core.int buildCounterDimensionValue = 0; -buildDimensionValue() { - var o = new api.DimensionValue(); - buildCounterDimensionValue++; - if (buildCounterDimensionValue < 3) { - o.dimensionName = "foo"; - o.etag = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.matchType = "foo"; - o.value = "foo"; - } - buildCounterDimensionValue--; - return o; -} - -checkDimensionValue(api.DimensionValue o) { - buildCounterDimensionValue++; - if (buildCounterDimensionValue < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.matchType, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterDimensionValue--; -} - -buildUnnamed258() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed258(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -core.int buildCounterDimensionValueList = 0; -buildDimensionValueList() { - var o = new api.DimensionValueList(); - buildCounterDimensionValueList++; - if (buildCounterDimensionValueList < 3) { - o.etag = "foo"; - o.items = buildUnnamed258(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDimensionValueList--; - return o; -} - -checkDimensionValueList(api.DimensionValueList o) { - buildCounterDimensionValueList++; - if (buildCounterDimensionValueList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed258(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDimensionValueList--; -} - -buildUnnamed259() { - var o = new core.List<api.DimensionFilter>(); - o.add(buildDimensionFilter()); - o.add(buildDimensionFilter()); - return o; -} - -checkUnnamed259(core.List<api.DimensionFilter> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionFilter(o[0]); - checkDimensionFilter(o[1]); -} - -core.int buildCounterDimensionValueRequest = 0; -buildDimensionValueRequest() { - var o = new api.DimensionValueRequest(); - buildCounterDimensionValueRequest++; - if (buildCounterDimensionValueRequest < 3) { - o.dimensionName = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed259(); - o.kind = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterDimensionValueRequest--; - return o; -} - -checkDimensionValueRequest(api.DimensionValueRequest o) { - buildCounterDimensionValueRequest++; - if (buildCounterDimensionValueRequest < 3) { - unittest.expect(o.dimensionName, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed259(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterDimensionValueRequest--; -} - -buildUnnamed260() { - var o = new core.List<api.DirectorySiteContactAssignment>(); - o.add(buildDirectorySiteContactAssignment()); - o.add(buildDirectorySiteContactAssignment()); - return o; -} - -checkUnnamed260(core.List<api.DirectorySiteContactAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySiteContactAssignment(o[0]); - checkDirectorySiteContactAssignment(o[1]); -} - -buildUnnamed261() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed261(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed262() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed262(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterDirectorySite = 0; -buildDirectorySite() { - var o = new api.DirectorySite(); - buildCounterDirectorySite++; - if (buildCounterDirectorySite < 3) { - o.active = true; - o.contactAssignments = buildUnnamed260(); - o.countryId = "foo"; - o.currencyId = "foo"; - o.description = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed261(); - o.interstitialTagFormats = buildUnnamed262(); - o.kind = "foo"; - o.name = "foo"; - o.parentId = "foo"; - o.settings = buildDirectorySiteSettings(); - o.url = "foo"; - } - buildCounterDirectorySite--; - return o; -} - -checkDirectorySite(api.DirectorySite o) { - buildCounterDirectorySite++; - if (buildCounterDirectorySite < 3) { - unittest.expect(o.active, unittest.isTrue); - checkUnnamed260(o.contactAssignments); - unittest.expect(o.countryId, unittest.equals('foo')); - unittest.expect(o.currencyId, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - checkUnnamed261(o.inpageTagFormats); - checkUnnamed262(o.interstitialTagFormats); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parentId, unittest.equals('foo')); - checkDirectorySiteSettings(o.settings); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterDirectorySite--; -} - -core.int buildCounterDirectorySiteContact = 0; -buildDirectorySiteContact() { - var o = new api.DirectorySiteContact(); - buildCounterDirectorySiteContact++; - if (buildCounterDirectorySiteContact < 3) { - o.address = "foo"; - o.email = "foo"; - o.firstName = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastName = "foo"; - o.phone = "foo"; - o.role = "foo"; - o.title = "foo"; - o.type = "foo"; - } - buildCounterDirectorySiteContact--; - return o; -} - -checkDirectorySiteContact(api.DirectorySiteContact o) { - buildCounterDirectorySiteContact++; - if (buildCounterDirectorySiteContact < 3) { - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.firstName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastName, unittest.equals('foo')); - unittest.expect(o.phone, unittest.equals('foo')); - unittest.expect(o.role, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterDirectorySiteContact--; -} - -core.int buildCounterDirectorySiteContactAssignment = 0; -buildDirectorySiteContactAssignment() { - var o = new api.DirectorySiteContactAssignment(); - buildCounterDirectorySiteContactAssignment++; - if (buildCounterDirectorySiteContactAssignment < 3) { - o.contactId = "foo"; - o.visibility = "foo"; - } - buildCounterDirectorySiteContactAssignment--; - return o; -} - -checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { - buildCounterDirectorySiteContactAssignment++; - if (buildCounterDirectorySiteContactAssignment < 3) { - unittest.expect(o.contactId, unittest.equals('foo')); - unittest.expect(o.visibility, unittest.equals('foo')); - } - buildCounterDirectorySiteContactAssignment--; -} - -buildUnnamed263() { - var o = new core.List<api.DirectorySiteContact>(); - o.add(buildDirectorySiteContact()); - o.add(buildDirectorySiteContact()); - return o; -} - -checkUnnamed263(core.List<api.DirectorySiteContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySiteContact(o[0]); - checkDirectorySiteContact(o[1]); -} - -core.int buildCounterDirectorySiteContactsListResponse = 0; -buildDirectorySiteContactsListResponse() { - var o = new api.DirectorySiteContactsListResponse(); - buildCounterDirectorySiteContactsListResponse++; - if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed263(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySiteContactsListResponse--; - return o; -} - -checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { - buildCounterDirectorySiteContactsListResponse++; - if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed263(o.directorySiteContacts); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDirectorySiteContactsListResponse--; -} - -core.int buildCounterDirectorySiteSettings = 0; -buildDirectorySiteSettings() { - var o = new api.DirectorySiteSettings(); - buildCounterDirectorySiteSettings++; - if (buildCounterDirectorySiteSettings < 3) { - o.activeViewOptOut = true; - o.dfpSettings = buildDfpSettings(); - o.instreamVideoPlacementAccepted = true; - o.interstitialPlacementAccepted = true; - o.nielsenOcrOptOut = true; - o.verificationTagOptOut = true; - o.videoActiveViewOptOut = true; - } - buildCounterDirectorySiteSettings--; - return o; -} - -checkDirectorySiteSettings(api.DirectorySiteSettings o) { - buildCounterDirectorySiteSettings++; - if (buildCounterDirectorySiteSettings < 3) { - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkDfpSettings(o.dfpSettings); - unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); - unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); - unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); - unittest.expect(o.verificationTagOptOut, unittest.isTrue); - unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); - } - buildCounterDirectorySiteSettings--; -} - -buildUnnamed264() { - var o = new core.List<api.DirectorySite>(); - o.add(buildDirectorySite()); - o.add(buildDirectorySite()); - return o; -} - -checkUnnamed264(core.List<api.DirectorySite> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySite(o[0]); - checkDirectorySite(o[1]); -} - -core.int buildCounterDirectorySitesListResponse = 0; -buildDirectorySitesListResponse() { - var o = new api.DirectorySitesListResponse(); - buildCounterDirectorySitesListResponse++; - if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed264(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySitesListResponse--; - return o; -} - -checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { - buildCounterDirectorySitesListResponse++; - if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed264(o.directorySites); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDirectorySitesListResponse--; -} - -buildUnnamed265() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed265(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterEventTag = 0; -buildEventTag() { - var o = new api.EventTag(); - buildCounterEventTag++; - if (buildCounterEventTag < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.enabledByDefault = true; - o.excludeFromAdxRequests = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.siteFilterType = "foo"; - o.siteIds = buildUnnamed265(); - o.sslCompliant = true; - o.status = "foo"; - o.subaccountId = "foo"; - o.type = "foo"; - o.url = "foo"; - o.urlEscapeLevels = 42; - } - buildCounterEventTag--; - return o; -} - -checkEventTag(api.EventTag o) { - buildCounterEventTag++; - if (buildCounterEventTag < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - unittest.expect(o.enabledByDefault, unittest.isTrue); - unittest.expect(o.excludeFromAdxRequests, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed265(o.siteIds); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.urlEscapeLevels, unittest.equals(42)); - } - buildCounterEventTag--; -} - -core.int buildCounterEventTagOverride = 0; -buildEventTagOverride() { - var o = new api.EventTagOverride(); - buildCounterEventTagOverride++; - if (buildCounterEventTagOverride < 3) { - o.enabled = true; - o.id = "foo"; - } - buildCounterEventTagOverride--; - return o; -} - -checkEventTagOverride(api.EventTagOverride o) { - buildCounterEventTagOverride++; - if (buildCounterEventTagOverride < 3) { - unittest.expect(o.enabled, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - } - buildCounterEventTagOverride--; -} - -buildUnnamed266() { - var o = new core.List<api.EventTag>(); - o.add(buildEventTag()); - o.add(buildEventTag()); - return o; -} - -checkUnnamed266(core.List<api.EventTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTag(o[0]); - checkEventTag(o[1]); -} - -core.int buildCounterEventTagsListResponse = 0; -buildEventTagsListResponse() { - var o = new api.EventTagsListResponse(); - buildCounterEventTagsListResponse++; - if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed266(); - o.kind = "foo"; - } - buildCounterEventTagsListResponse--; - return o; -} - -checkEventTagsListResponse(api.EventTagsListResponse o) { - buildCounterEventTagsListResponse++; - if (buildCounterEventTagsListResponse < 3) { - checkUnnamed266(o.eventTags); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterEventTagsListResponse--; -} - -core.int buildCounterFileUrls = 0; -buildFileUrls() { - var o = new api.FileUrls(); - buildCounterFileUrls++; - if (buildCounterFileUrls < 3) { - o.apiUrl = "foo"; - o.browserUrl = "foo"; - } - buildCounterFileUrls--; - return o; -} - -checkFileUrls(api.FileUrls o) { - buildCounterFileUrls++; - if (buildCounterFileUrls < 3) { - unittest.expect(o.apiUrl, unittest.equals('foo')); - unittest.expect(o.browserUrl, unittest.equals('foo')); - } - buildCounterFileUrls--; -} - -core.int buildCounterFile = 0; -buildFile() { - var o = new api.File(); - buildCounterFile++; - if (buildCounterFile < 3) { - o.dateRange = buildDateRange(); - o.etag = "foo"; - o.fileName = "foo"; - o.format = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedTime = "foo"; - o.reportId = "foo"; - o.status = "foo"; - o.urls = buildFileUrls(); - } - buildCounterFile--; - return o; -} - -checkFile(api.File o) { - buildCounterFile++; - if (buildCounterFile < 3) { - checkDateRange(o.dateRange); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.fileName, unittest.equals('foo')); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastModifiedTime, unittest.equals('foo')); - unittest.expect(o.reportId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - checkFileUrls(o.urls); - } - buildCounterFile--; -} - -buildUnnamed267() { - var o = new core.List<api.File>(); - o.add(buildFile()); - o.add(buildFile()); - return o; -} - -checkUnnamed267(core.List<api.File> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFile(o[0]); - checkFile(o[1]); -} - -core.int buildCounterFileList = 0; -buildFileList() { - var o = new api.FileList(); - buildCounterFileList++; - if (buildCounterFileList < 3) { - o.etag = "foo"; - o.items = buildUnnamed267(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFileList--; - return o; -} - -checkFileList(api.FileList o) { - buildCounterFileList++; - if (buildCounterFileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed267(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFileList--; -} - -core.int buildCounterFlight = 0; -buildFlight() { - var o = new api.Flight(); - buildCounterFlight++; - if (buildCounterFlight < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.rateOrCost = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.units = "foo"; - } - buildCounterFlight--; - return o; -} - -checkFlight(api.Flight o) { - buildCounterFlight++; - if (buildCounterFlight < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.rateOrCost, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.units, unittest.equals('foo')); - } - buildCounterFlight--; -} - -core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; -buildFloodlightActivitiesGenerateTagResponse() { - var o = new api.FloodlightActivitiesGenerateTagResponse(); - buildCounterFloodlightActivitiesGenerateTagResponse++; - if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { - o.floodlightActivityTag = "foo"; - o.kind = "foo"; - } - buildCounterFloodlightActivitiesGenerateTagResponse--; - return o; -} - -checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTagResponse o) { - buildCounterFloodlightActivitiesGenerateTagResponse++; - if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { - unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterFloodlightActivitiesGenerateTagResponse--; -} - -buildUnnamed268() { - var o = new core.List<api.FloodlightActivity>(); - o.add(buildFloodlightActivity()); - o.add(buildFloodlightActivity()); - return o; -} - -checkUnnamed268(core.List<api.FloodlightActivity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivity(o[0]); - checkFloodlightActivity(o[1]); -} - -core.int buildCounterFloodlightActivitiesListResponse = 0; -buildFloodlightActivitiesListResponse() { - var o = new api.FloodlightActivitiesListResponse(); - buildCounterFloodlightActivitiesListResponse++; - if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed268(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivitiesListResponse--; - return o; -} - -checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { - buildCounterFloodlightActivitiesListResponse++; - if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed268(o.floodlightActivities); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFloodlightActivitiesListResponse--; -} - -buildUnnamed269() { - var o = new core.List<api.FloodlightActivityDynamicTag>(); - o.add(buildFloodlightActivityDynamicTag()); - o.add(buildFloodlightActivityDynamicTag()); - return o; -} - -checkUnnamed269(core.List<api.FloodlightActivityDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityDynamicTag(o[0]); - checkFloodlightActivityDynamicTag(o[1]); -} - -buildUnnamed270() { - var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); - o.add(buildFloodlightActivityPublisherDynamicTag()); - o.add(buildFloodlightActivityPublisherDynamicTag()); - return o; -} - -checkUnnamed270(core.List<api.FloodlightActivityPublisherDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityPublisherDynamicTag(o[0]); - checkFloodlightActivityPublisherDynamicTag(o[1]); -} - -buildUnnamed271() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed271(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterFloodlightActivity = 0; -buildFloodlightActivity() { - var o = new api.FloodlightActivity(); - buildCounterFloodlightActivity++; - if (buildCounterFloodlightActivity < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.cacheBustingType = "foo"; - o.countingMethod = "foo"; - o.defaultTags = buildUnnamed269(); - o.expectedUrl = "foo"; - o.floodlightActivityGroupId = "foo"; - o.floodlightActivityGroupName = "foo"; - o.floodlightActivityGroupTagString = "foo"; - o.floodlightActivityGroupType = "foo"; - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.hidden = true; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.imageTagEnabled = true; - o.kind = "foo"; - o.name = "foo"; - o.notes = "foo"; - o.publisherTags = buildUnnamed270(); - o.secure = true; - o.sslCompliant = true; - o.sslRequired = true; - o.subaccountId = "foo"; - o.tagFormat = "foo"; - o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed271(); - } - buildCounterFloodlightActivity--; - return o; -} - -checkFloodlightActivity(api.FloodlightActivity o) { - buildCounterFloodlightActivity++; - if (buildCounterFloodlightActivity < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.cacheBustingType, unittest.equals('foo')); - unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed269(o.defaultTags); - unittest.expect(o.expectedUrl, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); - unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.hidden, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.imageTagEnabled, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed270(o.publisherTags); - unittest.expect(o.secure, unittest.isTrue); - unittest.expect(o.sslCompliant, unittest.isTrue); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.tagFormat, unittest.equals('foo')); - unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed271(o.userDefinedVariableTypes); - } - buildCounterFloodlightActivity--; -} - -core.int buildCounterFloodlightActivityDynamicTag = 0; -buildFloodlightActivityDynamicTag() { - var o = new api.FloodlightActivityDynamicTag(); - buildCounterFloodlightActivityDynamicTag++; - if (buildCounterFloodlightActivityDynamicTag < 3) { - o.id = "foo"; - o.name = "foo"; - o.tag = "foo"; - } - buildCounterFloodlightActivityDynamicTag--; - return o; -} - -checkFloodlightActivityDynamicTag(api.FloodlightActivityDynamicTag o) { - buildCounterFloodlightActivityDynamicTag++; - if (buildCounterFloodlightActivityDynamicTag < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.tag, unittest.equals('foo')); - } - buildCounterFloodlightActivityDynamicTag--; -} - -core.int buildCounterFloodlightActivityGroup = 0; -buildFloodlightActivityGroup() { - var o = new api.FloodlightActivityGroup(); - buildCounterFloodlightActivityGroup++; - if (buildCounterFloodlightActivityGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.floodlightConfigurationId = "foo"; - o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - o.tagString = "foo"; - o.type = "foo"; - } - buildCounterFloodlightActivityGroup--; - return o; -} - -checkFloodlightActivityGroup(api.FloodlightActivityGroup o) { - buildCounterFloodlightActivityGroup++; - if (buildCounterFloodlightActivityGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); - checkDimensionValue(o.floodlightConfigurationIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.tagString, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterFloodlightActivityGroup--; -} - -buildUnnamed272() { - var o = new core.List<api.FloodlightActivityGroup>(); - o.add(buildFloodlightActivityGroup()); - o.add(buildFloodlightActivityGroup()); - return o; -} - -checkUnnamed272(core.List<api.FloodlightActivityGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityGroup(o[0]); - checkFloodlightActivityGroup(o[1]); -} - -core.int buildCounterFloodlightActivityGroupsListResponse = 0; -buildFloodlightActivityGroupsListResponse() { - var o = new api.FloodlightActivityGroupsListResponse(); - buildCounterFloodlightActivityGroupsListResponse++; - if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed272(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivityGroupsListResponse--; - return o; -} - -checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { - buildCounterFloodlightActivityGroupsListResponse++; - if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed272(o.floodlightActivityGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFloodlightActivityGroupsListResponse--; -} - -core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; -buildFloodlightActivityPublisherDynamicTag() { - var o = new api.FloodlightActivityPublisherDynamicTag(); - buildCounterFloodlightActivityPublisherDynamicTag++; - if (buildCounterFloodlightActivityPublisherDynamicTag < 3) { - o.clickThrough = true; - o.directorySiteId = "foo"; - o.dynamicTag = buildFloodlightActivityDynamicTag(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.viewThrough = true; - } - buildCounterFloodlightActivityPublisherDynamicTag--; - return o; -} - -checkFloodlightActivityPublisherDynamicTag(api.FloodlightActivityPublisherDynamicTag o) { - buildCounterFloodlightActivityPublisherDynamicTag++; - if (buildCounterFloodlightActivityPublisherDynamicTag < 3) { - unittest.expect(o.clickThrough, unittest.isTrue); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkFloodlightActivityDynamicTag(o.dynamicTag); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - unittest.expect(o.viewThrough, unittest.isTrue); - } - buildCounterFloodlightActivityPublisherDynamicTag--; -} - -buildUnnamed273() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed273(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed274() { - var o = new core.List<api.ThirdPartyAuthenticationToken>(); - o.add(buildThirdPartyAuthenticationToken()); - o.add(buildThirdPartyAuthenticationToken()); - return o; -} - -checkUnnamed274(core.List<api.ThirdPartyAuthenticationToken> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyAuthenticationToken(o[0]); - checkThirdPartyAuthenticationToken(o[1]); -} - -buildUnnamed275() { - var o = new core.List<api.UserDefinedVariableConfiguration>(); - o.add(buildUserDefinedVariableConfiguration()); - o.add(buildUserDefinedVariableConfiguration()); - return o; -} - -checkUnnamed275(core.List<api.UserDefinedVariableConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserDefinedVariableConfiguration(o[0]); - checkUserDefinedVariableConfiguration(o[1]); -} - -core.int buildCounterFloodlightConfiguration = 0; -buildFloodlightConfiguration() { - var o = new api.FloodlightConfiguration(); - buildCounterFloodlightConfiguration++; - if (buildCounterFloodlightConfiguration < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.analyticsDataSharingEnabled = true; - o.exposureToConversionEnabled = true; - o.firstDayOfWeek = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.inAppAttributionTrackingEnabled = true; - o.kind = "foo"; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.naturalSearchConversionAttributionOption = "foo"; - o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed273(); - o.subaccountId = "foo"; - o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed274(); - o.userDefinedVariableConfigurations = buildUnnamed275(); - } - buildCounterFloodlightConfiguration--; - return o; -} - -checkFloodlightConfiguration(api.FloodlightConfiguration o) { - buildCounterFloodlightConfiguration++; - if (buildCounterFloodlightConfiguration < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); - unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); - unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.inAppAttributionTrackingEnabled, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); - checkOmnitureSettings(o.omnitureSettings); - checkUnnamed273(o.standardVariableTypes); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkTagSettings(o.tagSettings); - checkUnnamed274(o.thirdPartyAuthenticationTokens); - checkUnnamed275(o.userDefinedVariableConfigurations); - } - buildCounterFloodlightConfiguration--; -} - -buildUnnamed276() { - var o = new core.List<api.FloodlightConfiguration>(); - o.add(buildFloodlightConfiguration()); - o.add(buildFloodlightConfiguration()); - return o; -} - -checkUnnamed276(core.List<api.FloodlightConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightConfiguration(o[0]); - checkFloodlightConfiguration(o[1]); -} - -core.int buildCounterFloodlightConfigurationsListResponse = 0; -buildFloodlightConfigurationsListResponse() { - var o = new api.FloodlightConfigurationsListResponse(); - buildCounterFloodlightConfigurationsListResponse++; - if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed276(); - o.kind = "foo"; - } - buildCounterFloodlightConfigurationsListResponse--; - return o; -} - -checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { - buildCounterFloodlightConfigurationsListResponse++; - if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed276(o.floodlightConfigurations); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterFloodlightConfigurationsListResponse--; -} - -buildUnnamed277() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed277(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed278() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed278(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed279() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed279(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterFloodlightReportCompatibleFields = 0; -buildFloodlightReportCompatibleFields() { - var o = new api.FloodlightReportCompatibleFields(); - buildCounterFloodlightReportCompatibleFields++; - if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed277(); - o.dimensions = buildUnnamed278(); - o.kind = "foo"; - o.metrics = buildUnnamed279(); - } - buildCounterFloodlightReportCompatibleFields--; - return o; -} - -checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { - buildCounterFloodlightReportCompatibleFields++; - if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed277(o.dimensionFilters); - checkUnnamed278(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed279(o.metrics); - } - buildCounterFloodlightReportCompatibleFields--; -} - -core.int buildCounterFrequencyCap = 0; -buildFrequencyCap() { - var o = new api.FrequencyCap(); - buildCounterFrequencyCap++; - if (buildCounterFrequencyCap < 3) { - o.duration = "foo"; - o.impressions = "foo"; - } - buildCounterFrequencyCap--; - return o; -} - -checkFrequencyCap(api.FrequencyCap o) { - buildCounterFrequencyCap++; - if (buildCounterFrequencyCap < 3) { - unittest.expect(o.duration, unittest.equals('foo')); - unittest.expect(o.impressions, unittest.equals('foo')); - } - buildCounterFrequencyCap--; -} - -core.int buildCounterFsCommand = 0; -buildFsCommand() { - var o = new api.FsCommand(); - buildCounterFsCommand++; - if (buildCounterFsCommand < 3) { - o.left = 42; - o.positionOption = "foo"; - o.top = 42; - o.windowHeight = 42; - o.windowWidth = 42; - } - buildCounterFsCommand--; - return o; -} - -checkFsCommand(api.FsCommand o) { - buildCounterFsCommand++; - if (buildCounterFsCommand < 3) { - unittest.expect(o.left, unittest.equals(42)); - unittest.expect(o.positionOption, unittest.equals('foo')); - unittest.expect(o.top, unittest.equals(42)); - unittest.expect(o.windowHeight, unittest.equals(42)); - unittest.expect(o.windowWidth, unittest.equals(42)); - } - buildCounterFsCommand--; -} - -buildUnnamed280() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed280(core.List<api.City> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCity(o[0]); - checkCity(o[1]); -} - -buildUnnamed281() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed281(core.List<api.Country> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCountry(o[0]); - checkCountry(o[1]); -} - -buildUnnamed282() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed282(core.List<api.Metro> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetro(o[0]); - checkMetro(o[1]); -} - -buildUnnamed283() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed283(core.List<api.PostalCode> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPostalCode(o[0]); - checkPostalCode(o[1]); -} - -buildUnnamed284() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed284(core.List<api.Region> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRegion(o[0]); - checkRegion(o[1]); -} - -core.int buildCounterGeoTargeting = 0; -buildGeoTargeting() { - var o = new api.GeoTargeting(); - buildCounterGeoTargeting++; - if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed280(); - o.countries = buildUnnamed281(); - o.excludeCountries = true; - o.metros = buildUnnamed282(); - o.postalCodes = buildUnnamed283(); - o.regions = buildUnnamed284(); - } - buildCounterGeoTargeting--; - return o; -} - -checkGeoTargeting(api.GeoTargeting o) { - buildCounterGeoTargeting++; - if (buildCounterGeoTargeting < 3) { - checkUnnamed280(o.cities); - checkUnnamed281(o.countries); - unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed282(o.metros); - checkUnnamed283(o.postalCodes); - checkUnnamed284(o.regions); - } - buildCounterGeoTargeting--; -} - -buildUnnamed285() { - var o = new core.List<api.AdSlot>(); - o.add(buildAdSlot()); - o.add(buildAdSlot()); - return o; -} - -checkUnnamed285(core.List<api.AdSlot> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAdSlot(o[0]); - checkAdSlot(o[1]); -} - -core.int buildCounterInventoryItem = 0; -buildInventoryItem() { - var o = new api.InventoryItem(); - buildCounterInventoryItem++; - if (buildCounterInventoryItem < 3) { - o.accountId = "foo"; - o.adSlots = buildUnnamed285(); - o.advertiserId = "foo"; - o.contentCategoryId = "foo"; - o.estimatedClickThroughRate = "foo"; - o.estimatedConversionRate = "foo"; - o.id = "foo"; - o.inPlan = true; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.negotiationChannelId = "foo"; - o.orderId = "foo"; - o.placementStrategyId = "foo"; - o.pricing = buildPricing(); - o.projectId = "foo"; - o.rfpId = "foo"; - o.siteId = "foo"; - o.subaccountId = "foo"; - o.type = "foo"; - } - buildCounterInventoryItem--; - return o; -} - -checkInventoryItem(api.InventoryItem o) { - buildCounterInventoryItem++; - if (buildCounterInventoryItem < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed285(o.adSlots); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); - unittest.expect(o.estimatedConversionRate, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.inPlan, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.negotiationChannelId, unittest.equals('foo')); - unittest.expect(o.orderId, unittest.equals('foo')); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricing(o.pricing); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.rfpId, unittest.equals('foo')); - unittest.expect(o.siteId, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterInventoryItem--; -} - -buildUnnamed286() { - var o = new core.List<api.InventoryItem>(); - o.add(buildInventoryItem()); - o.add(buildInventoryItem()); - return o; -} - -checkUnnamed286(core.List<api.InventoryItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkInventoryItem(o[0]); - checkInventoryItem(o[1]); -} - -core.int buildCounterInventoryItemsListResponse = 0; -buildInventoryItemsListResponse() { - var o = new api.InventoryItemsListResponse(); - buildCounterInventoryItemsListResponse++; - if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed286(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterInventoryItemsListResponse--; - return o; -} - -checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { - buildCounterInventoryItemsListResponse++; - if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed286(o.inventoryItems); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterInventoryItemsListResponse--; -} - -core.int buildCounterKeyValueTargetingExpression = 0; -buildKeyValueTargetingExpression() { - var o = new api.KeyValueTargetingExpression(); - buildCounterKeyValueTargetingExpression++; - if (buildCounterKeyValueTargetingExpression < 3) { - o.expression = "foo"; - } - buildCounterKeyValueTargetingExpression--; - return o; -} - -checkKeyValueTargetingExpression(api.KeyValueTargetingExpression o) { - buildCounterKeyValueTargetingExpression++; - if (buildCounterKeyValueTargetingExpression < 3) { - unittest.expect(o.expression, unittest.equals('foo')); - } - buildCounterKeyValueTargetingExpression--; -} - -core.int buildCounterLandingPage = 0; -buildLandingPage() { - var o = new api.LandingPage(); - buildCounterLandingPage++; - if (buildCounterLandingPage < 3) { - o.default_ = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.url = "foo"; - } - buildCounterLandingPage--; - return o; -} - -checkLandingPage(api.LandingPage o) { - buildCounterLandingPage++; - if (buildCounterLandingPage < 3) { - unittest.expect(o.default_, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterLandingPage--; -} - -buildUnnamed287() { - var o = new core.List<api.LandingPage>(); - o.add(buildLandingPage()); - o.add(buildLandingPage()); - return o; -} - -checkUnnamed287(core.List<api.LandingPage> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLandingPage(o[0]); - checkLandingPage(o[1]); -} - -core.int buildCounterLandingPagesListResponse = 0; -buildLandingPagesListResponse() { - var o = new api.LandingPagesListResponse(); - buildCounterLandingPagesListResponse++; - if (buildCounterLandingPagesListResponse < 3) { - o.kind = "foo"; - o.landingPages = buildUnnamed287(); - } - buildCounterLandingPagesListResponse--; - return o; -} - -checkLandingPagesListResponse(api.LandingPagesListResponse o) { - buildCounterLandingPagesListResponse++; - if (buildCounterLandingPagesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed287(o.landingPages); - } - buildCounterLandingPagesListResponse--; -} - -core.int buildCounterLastModifiedInfo = 0; -buildLastModifiedInfo() { - var o = new api.LastModifiedInfo(); - buildCounterLastModifiedInfo++; - if (buildCounterLastModifiedInfo < 3) { - o.time = "foo"; - } - buildCounterLastModifiedInfo--; - return o; -} - -checkLastModifiedInfo(api.LastModifiedInfo o) { - buildCounterLastModifiedInfo++; - if (buildCounterLastModifiedInfo < 3) { - unittest.expect(o.time, unittest.equals('foo')); - } - buildCounterLastModifiedInfo--; -} - -buildUnnamed288() { - var o = new core.List<api.ListPopulationTerm>(); - o.add(buildListPopulationTerm()); - o.add(buildListPopulationTerm()); - return o; -} - -checkUnnamed288(core.List<api.ListPopulationTerm> o) { - unittest.expect(o, unittest.hasLength(2)); - checkListPopulationTerm(o[0]); - checkListPopulationTerm(o[1]); -} - -core.int buildCounterListPopulationClause = 0; -buildListPopulationClause() { - var o = new api.ListPopulationClause(); - buildCounterListPopulationClause++; - if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed288(); - } - buildCounterListPopulationClause--; - return o; -} - -checkListPopulationClause(api.ListPopulationClause o) { - buildCounterListPopulationClause++; - if (buildCounterListPopulationClause < 3) { - checkUnnamed288(o.terms); - } - buildCounterListPopulationClause--; -} - -buildUnnamed289() { - var o = new core.List<api.ListPopulationClause>(); - o.add(buildListPopulationClause()); - o.add(buildListPopulationClause()); - return o; -} - -checkUnnamed289(core.List<api.ListPopulationClause> o) { - unittest.expect(o, unittest.hasLength(2)); - checkListPopulationClause(o[0]); - checkListPopulationClause(o[1]); -} - -core.int buildCounterListPopulationRule = 0; -buildListPopulationRule() { - var o = new api.ListPopulationRule(); - buildCounterListPopulationRule++; - if (buildCounterListPopulationRule < 3) { - o.floodlightActivityId = "foo"; - o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed289(); - } - buildCounterListPopulationRule--; - return o; -} - -checkListPopulationRule(api.ListPopulationRule o) { - buildCounterListPopulationRule++; - if (buildCounterListPopulationRule < 3) { - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed289(o.listPopulationClauses); - } - buildCounterListPopulationRule--; -} - -core.int buildCounterListPopulationTerm = 0; -buildListPopulationTerm() { - var o = new api.ListPopulationTerm(); - buildCounterListPopulationTerm++; - if (buildCounterListPopulationTerm < 3) { - o.contains = true; - o.negation = true; - o.operator = "foo"; - o.remarketingListId = "foo"; - o.type = "foo"; - o.value = "foo"; - o.variableFriendlyName = "foo"; - o.variableName = "foo"; - } - buildCounterListPopulationTerm--; - return o; -} - -checkListPopulationTerm(api.ListPopulationTerm o) { - buildCounterListPopulationTerm++; - if (buildCounterListPopulationTerm < 3) { - unittest.expect(o.contains, unittest.isTrue); - unittest.expect(o.negation, unittest.isTrue); - unittest.expect(o.operator, unittest.equals('foo')); - unittest.expect(o.remarketingListId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - unittest.expect(o.variableFriendlyName, unittest.equals('foo')); - unittest.expect(o.variableName, unittest.equals('foo')); - } - buildCounterListPopulationTerm--; -} - -core.int buildCounterListTargetingExpression = 0; -buildListTargetingExpression() { - var o = new api.ListTargetingExpression(); - buildCounterListTargetingExpression++; - if (buildCounterListTargetingExpression < 3) { - o.expression = "foo"; - } - buildCounterListTargetingExpression--; - return o; -} - -checkListTargetingExpression(api.ListTargetingExpression o) { - buildCounterListTargetingExpression++; - if (buildCounterListTargetingExpression < 3) { - unittest.expect(o.expression, unittest.equals('foo')); - } - buildCounterListTargetingExpression--; -} - -core.int buildCounterLookbackConfiguration = 0; -buildLookbackConfiguration() { - var o = new api.LookbackConfiguration(); - buildCounterLookbackConfiguration++; - if (buildCounterLookbackConfiguration < 3) { - o.clickDuration = 42; - o.postImpressionActivitiesDuration = 42; - } - buildCounterLookbackConfiguration--; - return o; -} - -checkLookbackConfiguration(api.LookbackConfiguration o) { - buildCounterLookbackConfiguration++; - if (buildCounterLookbackConfiguration < 3) { - unittest.expect(o.clickDuration, unittest.equals(42)); - unittest.expect(o.postImpressionActivitiesDuration, unittest.equals(42)); - } - buildCounterLookbackConfiguration--; -} - -core.int buildCounterMetric = 0; -buildMetric() { - var o = new api.Metric(); - buildCounterMetric++; - if (buildCounterMetric < 3) { - o.kind = "foo"; - o.name = "foo"; - } - buildCounterMetric--; - return o; -} - -checkMetric(api.Metric o) { - buildCounterMetric++; - if (buildCounterMetric < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMetric--; -} - -core.int buildCounterMetro = 0; -buildMetro() { - var o = new api.Metro(); - buildCounterMetro++; - if (buildCounterMetro < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.dmaId = "foo"; - o.kind = "foo"; - o.metroCode = "foo"; - o.name = "foo"; - } - buildCounterMetro--; - return o; -} - -checkMetro(api.Metro o) { - buildCounterMetro++; - if (buildCounterMetro < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.dmaId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.metroCode, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMetro--; -} - -buildUnnamed290() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed290(core.List<api.Metro> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetro(o[0]); - checkMetro(o[1]); -} - -core.int buildCounterMetrosListResponse = 0; -buildMetrosListResponse() { - var o = new api.MetrosListResponse(); - buildCounterMetrosListResponse++; - if (buildCounterMetrosListResponse < 3) { - o.kind = "foo"; - o.metros = buildUnnamed290(); - } - buildCounterMetrosListResponse--; - return o; -} - -checkMetrosListResponse(api.MetrosListResponse o) { - buildCounterMetrosListResponse++; - if (buildCounterMetrosListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed290(o.metros); - } - buildCounterMetrosListResponse--; -} - -core.int buildCounterMobileCarrier = 0; -buildMobileCarrier() { - var o = new api.MobileCarrier(); - buildCounterMobileCarrier++; - if (buildCounterMobileCarrier < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterMobileCarrier--; - return o; -} - -checkMobileCarrier(api.MobileCarrier o) { - buildCounterMobileCarrier++; - if (buildCounterMobileCarrier < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterMobileCarrier--; -} - -buildUnnamed291() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed291(core.List<api.MobileCarrier> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMobileCarrier(o[0]); - checkMobileCarrier(o[1]); -} - -core.int buildCounterMobileCarriersListResponse = 0; -buildMobileCarriersListResponse() { - var o = new api.MobileCarriersListResponse(); - buildCounterMobileCarriersListResponse++; - if (buildCounterMobileCarriersListResponse < 3) { - o.kind = "foo"; - o.mobileCarriers = buildUnnamed291(); - } - buildCounterMobileCarriersListResponse--; - return o; -} - -checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { - buildCounterMobileCarriersListResponse++; - if (buildCounterMobileCarriersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed291(o.mobileCarriers); - } - buildCounterMobileCarriersListResponse--; -} - -buildUnnamed292() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed292(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterObjectFilter = 0; -buildObjectFilter() { - var o = new api.ObjectFilter(); - buildCounterObjectFilter++; - if (buildCounterObjectFilter < 3) { - o.kind = "foo"; - o.objectIds = buildUnnamed292(); - o.status = "foo"; - } - buildCounterObjectFilter--; - return o; -} - -checkObjectFilter(api.ObjectFilter o) { - buildCounterObjectFilter++; - if (buildCounterObjectFilter < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed292(o.objectIds); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterObjectFilter--; -} - -core.int buildCounterOffsetPosition = 0; -buildOffsetPosition() { - var o = new api.OffsetPosition(); - buildCounterOffsetPosition++; - if (buildCounterOffsetPosition < 3) { - o.left = 42; - o.top = 42; - } - buildCounterOffsetPosition--; - return o; -} - -checkOffsetPosition(api.OffsetPosition o) { - buildCounterOffsetPosition++; - if (buildCounterOffsetPosition < 3) { - unittest.expect(o.left, unittest.equals(42)); - unittest.expect(o.top, unittest.equals(42)); - } - buildCounterOffsetPosition--; -} - -core.int buildCounterOmnitureSettings = 0; -buildOmnitureSettings() { - var o = new api.OmnitureSettings(); - buildCounterOmnitureSettings++; - if (buildCounterOmnitureSettings < 3) { - o.omnitureCostDataEnabled = true; - o.omnitureIntegrationEnabled = true; - } - buildCounterOmnitureSettings--; - return o; -} - -checkOmnitureSettings(api.OmnitureSettings o) { - buildCounterOmnitureSettings++; - if (buildCounterOmnitureSettings < 3) { - unittest.expect(o.omnitureCostDataEnabled, unittest.isTrue); - unittest.expect(o.omnitureIntegrationEnabled, unittest.isTrue); - } - buildCounterOmnitureSettings--; -} - -core.int buildCounterOperatingSystem = 0; -buildOperatingSystem() { - var o = new api.OperatingSystem(); - buildCounterOperatingSystem++; - if (buildCounterOperatingSystem < 3) { - o.dartId = "foo"; - o.desktop = true; - o.kind = "foo"; - o.mobile = true; - o.name = "foo"; - } - buildCounterOperatingSystem--; - return o; -} - -checkOperatingSystem(api.OperatingSystem o) { - buildCounterOperatingSystem++; - if (buildCounterOperatingSystem < 3) { - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.desktop, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.mobile, unittest.isTrue); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterOperatingSystem--; -} - -core.int buildCounterOperatingSystemVersion = 0; -buildOperatingSystemVersion() { - var o = new api.OperatingSystemVersion(); - buildCounterOperatingSystemVersion++; - if (buildCounterOperatingSystemVersion < 3) { - o.id = "foo"; - o.kind = "foo"; - o.majorVersion = "foo"; - o.minorVersion = "foo"; - o.name = "foo"; - o.operatingSystem = buildOperatingSystem(); - } - buildCounterOperatingSystemVersion--; - return o; -} - -checkOperatingSystemVersion(api.OperatingSystemVersion o) { - buildCounterOperatingSystemVersion++; - if (buildCounterOperatingSystemVersion < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.majorVersion, unittest.equals('foo')); - unittest.expect(o.minorVersion, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkOperatingSystem(o.operatingSystem); - } - buildCounterOperatingSystemVersion--; -} - -buildUnnamed293() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed293(core.List<api.OperatingSystemVersion> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystemVersion(o[0]); - checkOperatingSystemVersion(o[1]); -} - -core.int buildCounterOperatingSystemVersionsListResponse = 0; -buildOperatingSystemVersionsListResponse() { - var o = new api.OperatingSystemVersionsListResponse(); - buildCounterOperatingSystemVersionsListResponse++; - if (buildCounterOperatingSystemVersionsListResponse < 3) { - o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed293(); - } - buildCounterOperatingSystemVersionsListResponse--; - return o; -} - -checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse o) { - buildCounterOperatingSystemVersionsListResponse++; - if (buildCounterOperatingSystemVersionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed293(o.operatingSystemVersions); - } - buildCounterOperatingSystemVersionsListResponse--; -} - -buildUnnamed294() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed294(core.List<api.OperatingSystem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystem(o[0]); - checkOperatingSystem(o[1]); -} - -core.int buildCounterOperatingSystemsListResponse = 0; -buildOperatingSystemsListResponse() { - var o = new api.OperatingSystemsListResponse(); - buildCounterOperatingSystemsListResponse++; - if (buildCounterOperatingSystemsListResponse < 3) { - o.kind = "foo"; - o.operatingSystems = buildUnnamed294(); - } - buildCounterOperatingSystemsListResponse--; - return o; -} - -checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { - buildCounterOperatingSystemsListResponse++; - if (buildCounterOperatingSystemsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed294(o.operatingSystems); - } - buildCounterOperatingSystemsListResponse--; -} - -core.int buildCounterOptimizationActivity = 0; -buildOptimizationActivity() { - var o = new api.OptimizationActivity(); - buildCounterOptimizationActivity++; - if (buildCounterOptimizationActivity < 3) { - o.floodlightActivityId = "foo"; - o.floodlightActivityIdDimensionValue = buildDimensionValue(); - o.weight = 42; - } - buildCounterOptimizationActivity--; - return o; -} - -checkOptimizationActivity(api.OptimizationActivity o) { - buildCounterOptimizationActivity++; - if (buildCounterOptimizationActivity < 3) { - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkDimensionValue(o.floodlightActivityIdDimensionValue); - unittest.expect(o.weight, unittest.equals(42)); - } - buildCounterOptimizationActivity--; -} - -buildUnnamed295() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed295(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed296() { - var o = new core.List<api.OrderContact>(); - o.add(buildOrderContact()); - o.add(buildOrderContact()); - return o; -} - -checkUnnamed296(core.List<api.OrderContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrderContact(o[0]); - checkOrderContact(o[1]); -} - -buildUnnamed297() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed297(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed298() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed298(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterOrder = 0; -buildOrder() { - var o = new api.Order(); - buildCounterOrder++; - if (buildCounterOrder < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed295(); - o.buyerInvoiceId = "foo"; - o.buyerOrganizationName = "foo"; - o.comments = "foo"; - o.contacts = buildUnnamed296(); - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.notes = "foo"; - o.planningTermId = "foo"; - o.projectId = "foo"; - o.sellerOrderId = "foo"; - o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed297(); - o.siteNames = buildUnnamed298(); - o.subaccountId = "foo"; - o.termsAndConditions = "foo"; - } - buildCounterOrder--; - return o; -} - -checkOrder(api.Order o) { - buildCounterOrder++; - if (buildCounterOrder < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed295(o.approverUserProfileIds); - unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); - unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); - unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed296(o.contacts); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.notes, unittest.equals('foo')); - unittest.expect(o.planningTermId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.sellerOrderId, unittest.equals('foo')); - unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed297(o.siteId); - checkUnnamed298(o.siteNames); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.termsAndConditions, unittest.equals('foo')); - } - buildCounterOrder--; -} - -core.int buildCounterOrderContact = 0; -buildOrderContact() { - var o = new api.OrderContact(); - buildCounterOrderContact++; - if (buildCounterOrderContact < 3) { - o.contactInfo = "foo"; - o.contactName = "foo"; - o.contactTitle = "foo"; - o.contactType = "foo"; - o.signatureUserProfileId = "foo"; - } - buildCounterOrderContact--; - return o; -} - -checkOrderContact(api.OrderContact o) { - buildCounterOrderContact++; - if (buildCounterOrderContact < 3) { - unittest.expect(o.contactInfo, unittest.equals('foo')); - unittest.expect(o.contactName, unittest.equals('foo')); - unittest.expect(o.contactTitle, unittest.equals('foo')); - unittest.expect(o.contactType, unittest.equals('foo')); - unittest.expect(o.signatureUserProfileId, unittest.equals('foo')); - } - buildCounterOrderContact--; -} - -buildUnnamed299() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed299(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed300() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed300(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterOrderDocument = 0; -buildOrderDocument() { - var o = new api.OrderDocument(); - buildCounterOrderDocument++; - if (buildCounterOrderDocument < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed299(); - o.cancelled = true; - o.createdInfo = buildLastModifiedInfo(); - o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.id = "foo"; - o.kind = "foo"; - o.lastSentRecipients = buildUnnamed300(); - o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.orderId = "foo"; - o.projectId = "foo"; - o.signed = true; - o.subaccountId = "foo"; - o.title = "foo"; - o.type = "foo"; - } - buildCounterOrderDocument--; - return o; -} - -checkOrderDocument(api.OrderDocument o) { - buildCounterOrderDocument++; - if (buildCounterOrderDocument < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed299(o.approvedByUserProfileIds); - unittest.expect(o.cancelled, unittest.isTrue); - checkLastModifiedInfo(o.createdInfo); - unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed300(o.lastSentRecipients); - unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.orderId, unittest.equals('foo')); - unittest.expect(o.projectId, unittest.equals('foo')); - unittest.expect(o.signed, unittest.isTrue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterOrderDocument--; -} - -buildUnnamed301() { - var o = new core.List<api.OrderDocument>(); - o.add(buildOrderDocument()); - o.add(buildOrderDocument()); - return o; -} - -checkUnnamed301(core.List<api.OrderDocument> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrderDocument(o[0]); - checkOrderDocument(o[1]); -} - -core.int buildCounterOrderDocumentsListResponse = 0; -buildOrderDocumentsListResponse() { - var o = new api.OrderDocumentsListResponse(); - buildCounterOrderDocumentsListResponse++; - if (buildCounterOrderDocumentsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed301(); - } - buildCounterOrderDocumentsListResponse--; - return o; -} - -checkOrderDocumentsListResponse(api.OrderDocumentsListResponse o) { - buildCounterOrderDocumentsListResponse++; - if (buildCounterOrderDocumentsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed301(o.orderDocuments); - } - buildCounterOrderDocumentsListResponse--; -} - -buildUnnamed302() { - var o = new core.List<api.Order>(); - o.add(buildOrder()); - o.add(buildOrder()); - return o; -} - -checkUnnamed302(core.List<api.Order> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrder(o[0]); - checkOrder(o[1]); -} - -core.int buildCounterOrdersListResponse = 0; -buildOrdersListResponse() { - var o = new api.OrdersListResponse(); - buildCounterOrdersListResponse++; - if (buildCounterOrdersListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.orders = buildUnnamed302(); - } - buildCounterOrdersListResponse--; - return o; -} - -checkOrdersListResponse(api.OrdersListResponse o) { - buildCounterOrdersListResponse++; - if (buildCounterOrdersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed302(o.orders); - } - buildCounterOrdersListResponse--; -} - -buildUnnamed303() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed303(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed304() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed304(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed305() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed305(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed306() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed306(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -core.int buildCounterPathToConversionReportCompatibleFields = 0; -buildPathToConversionReportCompatibleFields() { - var o = new api.PathToConversionReportCompatibleFields(); - buildCounterPathToConversionReportCompatibleFields++; - if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed303(); - o.customFloodlightVariables = buildUnnamed304(); - o.kind = "foo"; - o.metrics = buildUnnamed305(); - o.perInteractionDimensions = buildUnnamed306(); - } - buildCounterPathToConversionReportCompatibleFields--; - return o; -} - -checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { - buildCounterPathToConversionReportCompatibleFields++; - if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed303(o.conversionDimensions); - checkUnnamed304(o.customFloodlightVariables); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed305(o.metrics); - checkUnnamed306(o.perInteractionDimensions); - } - buildCounterPathToConversionReportCompatibleFields--; -} - -buildUnnamed307() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed307(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterPlacement = 0; -buildPlacement() { - var o = new api.Placement(); - buildCounterPlacement++; - if (buildCounterPlacement < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.comment = "foo"; - o.compatibility = "foo"; - o.contentCategoryId = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyName = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.lookbackConfiguration = buildLookbackConfiguration(); - o.name = "foo"; - o.paymentApproved = true; - o.paymentSource = "foo"; - o.placementGroupId = "foo"; - o.placementGroupIdDimensionValue = buildDimensionValue(); - o.placementStrategyId = "foo"; - o.pricingSchedule = buildPricingSchedule(); - o.primary = true; - o.publisherUpdateInfo = buildLastModifiedInfo(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.size = buildSize(); - o.sslRequired = true; - o.status = "foo"; - o.subaccountId = "foo"; - o.tagFormats = buildUnnamed307(); - o.tagSetting = buildTagSetting(); - } - buildCounterPlacement--; - return o; -} - -checkPlacement(api.Placement o) { - buildCounterPlacement++; - if (buildCounterPlacement < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.compatibility, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.keyName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.paymentApproved, unittest.isTrue); - unittest.expect(o.paymentSource, unittest.equals('foo')); - unittest.expect(o.placementGroupId, unittest.equals('foo')); - checkDimensionValue(o.placementGroupIdDimensionValue); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricingSchedule(o.pricingSchedule); - unittest.expect(o.primary, unittest.isTrue); - checkLastModifiedInfo(o.publisherUpdateInfo); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - checkSize(o.size); - unittest.expect(o.sslRequired, unittest.isTrue); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed307(o.tagFormats); - checkTagSetting(o.tagSetting); - } - buildCounterPlacement--; -} - -core.int buildCounterPlacementAssignment = 0; -buildPlacementAssignment() { - var o = new api.PlacementAssignment(); - buildCounterPlacementAssignment++; - if (buildCounterPlacementAssignment < 3) { - o.active = true; - o.placementId = "foo"; - o.placementIdDimensionValue = buildDimensionValue(); - o.sslRequired = true; - } - buildCounterPlacementAssignment--; - return o; -} - -checkPlacementAssignment(api.PlacementAssignment o) { - buildCounterPlacementAssignment++; - if (buildCounterPlacementAssignment < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.placementId, unittest.equals('foo')); - checkDimensionValue(o.placementIdDimensionValue); - unittest.expect(o.sslRequired, unittest.isTrue); - } - buildCounterPlacementAssignment--; -} - -buildUnnamed308() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed308(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterPlacementGroup = 0; -buildPlacementGroup() { - var o = new api.PlacementGroup(); - buildCounterPlacementGroup++; - if (buildCounterPlacementGroup < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.campaignId = "foo"; - o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed308(); - o.comment = "foo"; - o.contentCategoryId = "foo"; - o.createInfo = buildLastModifiedInfo(); - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.externalId = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.placementGroupType = "foo"; - o.placementStrategyId = "foo"; - o.pricingSchedule = buildPricingSchedule(); - o.primaryPlacementId = "foo"; - o.primaryPlacementIdDimensionValue = buildDimensionValue(); - o.siteId = "foo"; - o.siteIdDimensionValue = buildDimensionValue(); - o.subaccountId = "foo"; - } - buildCounterPlacementGroup--; - return o; -} - -checkPlacementGroup(api.PlacementGroup o) { - buildCounterPlacementGroup++; - if (buildCounterPlacementGroup < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.archived, unittest.isTrue); - unittest.expect(o.campaignId, unittest.equals('foo')); - checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed308(o.childPlacementIds); - unittest.expect(o.comment, unittest.equals('foo')); - unittest.expect(o.contentCategoryId, unittest.equals('foo')); - checkLastModifiedInfo(o.createInfo); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.externalId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.placementGroupType, unittest.equals('foo')); - unittest.expect(o.placementStrategyId, unittest.equals('foo')); - checkPricingSchedule(o.pricingSchedule); - unittest.expect(o.primaryPlacementId, unittest.equals('foo')); - checkDimensionValue(o.primaryPlacementIdDimensionValue); - unittest.expect(o.siteId, unittest.equals('foo')); - checkDimensionValue(o.siteIdDimensionValue); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterPlacementGroup--; -} - -buildUnnamed309() { - var o = new core.List<api.PlacementGroup>(); - o.add(buildPlacementGroup()); - o.add(buildPlacementGroup()); - return o; -} - -checkUnnamed309(core.List<api.PlacementGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementGroup(o[0]); - checkPlacementGroup(o[1]); -} - -core.int buildCounterPlacementGroupsListResponse = 0; -buildPlacementGroupsListResponse() { - var o = new api.PlacementGroupsListResponse(); - buildCounterPlacementGroupsListResponse++; - if (buildCounterPlacementGroupsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed309(); - } - buildCounterPlacementGroupsListResponse--; - return o; -} - -checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { - buildCounterPlacementGroupsListResponse++; - if (buildCounterPlacementGroupsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed309(o.placementGroups); - } - buildCounterPlacementGroupsListResponse--; -} - -buildUnnamed310() { - var o = new core.List<api.PlacementStrategy>(); - o.add(buildPlacementStrategy()); - o.add(buildPlacementStrategy()); - return o; -} - -checkUnnamed310(core.List<api.PlacementStrategy> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementStrategy(o[0]); - checkPlacementStrategy(o[1]); -} - -core.int buildCounterPlacementStrategiesListResponse = 0; -buildPlacementStrategiesListResponse() { - var o = new api.PlacementStrategiesListResponse(); - buildCounterPlacementStrategiesListResponse++; - if (buildCounterPlacementStrategiesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed310(); - } - buildCounterPlacementStrategiesListResponse--; - return o; -} - -checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { - buildCounterPlacementStrategiesListResponse++; - if (buildCounterPlacementStrategiesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed310(o.placementStrategies); - } - buildCounterPlacementStrategiesListResponse--; -} - -core.int buildCounterPlacementStrategy = 0; -buildPlacementStrategy() { - var o = new api.PlacementStrategy(); - buildCounterPlacementStrategy++; - if (buildCounterPlacementStrategy < 3) { - o.accountId = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterPlacementStrategy--; - return o; -} - -checkPlacementStrategy(api.PlacementStrategy o) { - buildCounterPlacementStrategy++; - if (buildCounterPlacementStrategy < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterPlacementStrategy--; -} - -buildUnnamed311() { - var o = new core.List<api.TagData>(); - o.add(buildTagData()); - o.add(buildTagData()); - return o; -} - -checkUnnamed311(core.List<api.TagData> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTagData(o[0]); - checkTagData(o[1]); -} - -core.int buildCounterPlacementTag = 0; -buildPlacementTag() { - var o = new api.PlacementTag(); - buildCounterPlacementTag++; - if (buildCounterPlacementTag < 3) { - o.placementId = "foo"; - o.tagDatas = buildUnnamed311(); - } - buildCounterPlacementTag--; - return o; -} - -checkPlacementTag(api.PlacementTag o) { - buildCounterPlacementTag++; - if (buildCounterPlacementTag < 3) { - unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed311(o.tagDatas); - } - buildCounterPlacementTag--; -} - -buildUnnamed312() { - var o = new core.List<api.PlacementTag>(); - o.add(buildPlacementTag()); - o.add(buildPlacementTag()); - return o; -} - -checkUnnamed312(core.List<api.PlacementTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacementTag(o[0]); - checkPlacementTag(o[1]); -} - -core.int buildCounterPlacementsGenerateTagsResponse = 0; -buildPlacementsGenerateTagsResponse() { - var o = new api.PlacementsGenerateTagsResponse(); - buildCounterPlacementsGenerateTagsResponse++; - if (buildCounterPlacementsGenerateTagsResponse < 3) { - o.kind = "foo"; - o.placementTags = buildUnnamed312(); - } - buildCounterPlacementsGenerateTagsResponse--; - return o; -} - -checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { - buildCounterPlacementsGenerateTagsResponse++; - if (buildCounterPlacementsGenerateTagsResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed312(o.placementTags); - } - buildCounterPlacementsGenerateTagsResponse--; -} - -buildUnnamed313() { - var o = new core.List<api.Placement>(); - o.add(buildPlacement()); - o.add(buildPlacement()); - return o; -} - -checkUnnamed313(core.List<api.Placement> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlacement(o[0]); - checkPlacement(o[1]); -} - -core.int buildCounterPlacementsListResponse = 0; -buildPlacementsListResponse() { - var o = new api.PlacementsListResponse(); - buildCounterPlacementsListResponse++; - if (buildCounterPlacementsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.placements = buildUnnamed313(); - } - buildCounterPlacementsListResponse--; - return o; -} - -checkPlacementsListResponse(api.PlacementsListResponse o) { - buildCounterPlacementsListResponse++; - if (buildCounterPlacementsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed313(o.placements); - } - buildCounterPlacementsListResponse--; -} - -core.int buildCounterPlatformType = 0; -buildPlatformType() { - var o = new api.PlatformType(); - buildCounterPlatformType++; - if (buildCounterPlatformType < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterPlatformType--; - return o; -} - -checkPlatformType(api.PlatformType o) { - buildCounterPlatformType++; - if (buildCounterPlatformType < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterPlatformType--; -} - -buildUnnamed314() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed314(core.List<api.PlatformType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlatformType(o[0]); - checkPlatformType(o[1]); -} - -core.int buildCounterPlatformTypesListResponse = 0; -buildPlatformTypesListResponse() { - var o = new api.PlatformTypesListResponse(); - buildCounterPlatformTypesListResponse++; - if (buildCounterPlatformTypesListResponse < 3) { - o.kind = "foo"; - o.platformTypes = buildUnnamed314(); - } - buildCounterPlatformTypesListResponse--; - return o; -} - -checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { - buildCounterPlatformTypesListResponse++; - if (buildCounterPlatformTypesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed314(o.platformTypes); - } - buildCounterPlatformTypesListResponse--; -} - -core.int buildCounterPopupWindowProperties = 0; -buildPopupWindowProperties() { - var o = new api.PopupWindowProperties(); - buildCounterPopupWindowProperties++; - if (buildCounterPopupWindowProperties < 3) { - o.dimension = buildSize(); - o.offset = buildOffsetPosition(); - o.positionType = "foo"; - o.showAddressBar = true; - o.showMenuBar = true; - o.showScrollBar = true; - o.showStatusBar = true; - o.showToolBar = true; - o.title = "foo"; - } - buildCounterPopupWindowProperties--; - return o; -} - -checkPopupWindowProperties(api.PopupWindowProperties o) { - buildCounterPopupWindowProperties++; - if (buildCounterPopupWindowProperties < 3) { - checkSize(o.dimension); - checkOffsetPosition(o.offset); - unittest.expect(o.positionType, unittest.equals('foo')); - unittest.expect(o.showAddressBar, unittest.isTrue); - unittest.expect(o.showMenuBar, unittest.isTrue); - unittest.expect(o.showScrollBar, unittest.isTrue); - unittest.expect(o.showStatusBar, unittest.isTrue); - unittest.expect(o.showToolBar, unittest.isTrue); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterPopupWindowProperties--; -} - -core.int buildCounterPostalCode = 0; -buildPostalCode() { - var o = new api.PostalCode(); - buildCounterPostalCode++; - if (buildCounterPostalCode < 3) { - o.code = "foo"; - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.id = "foo"; - o.kind = "foo"; - } - buildCounterPostalCode--; - return o; -} - -checkPostalCode(api.PostalCode o) { - buildCounterPostalCode++; - if (buildCounterPostalCode < 3) { - unittest.expect(o.code, unittest.equals('foo')); - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterPostalCode--; -} - -buildUnnamed315() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed315(core.List<api.PostalCode> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPostalCode(o[0]); - checkPostalCode(o[1]); -} - -core.int buildCounterPostalCodesListResponse = 0; -buildPostalCodesListResponse() { - var o = new api.PostalCodesListResponse(); - buildCounterPostalCodesListResponse++; - if (buildCounterPostalCodesListResponse < 3) { - o.kind = "foo"; - o.postalCodes = buildUnnamed315(); - } - buildCounterPostalCodesListResponse--; - return o; -} - -checkPostalCodesListResponse(api.PostalCodesListResponse o) { - buildCounterPostalCodesListResponse++; - if (buildCounterPostalCodesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed315(o.postalCodes); - } - buildCounterPostalCodesListResponse--; -} - -buildUnnamed316() { - var o = new core.List<api.Flight>(); - o.add(buildFlight()); - o.add(buildFlight()); - return o; -} - -checkUnnamed316(core.List<api.Flight> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFlight(o[0]); - checkFlight(o[1]); -} - -core.int buildCounterPricing = 0; -buildPricing() { - var o = new api.Pricing(); - buildCounterPricing++; - if (buildCounterPricing < 3) { - o.capCostType = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed316(); - o.groupType = "foo"; - o.pricingType = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterPricing--; - return o; -} - -checkPricing(api.Pricing o) { - buildCounterPricing++; - if (buildCounterPricing < 3) { - unittest.expect(o.capCostType, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed316(o.flights); - unittest.expect(o.groupType, unittest.equals('foo')); - unittest.expect(o.pricingType, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterPricing--; -} - -buildUnnamed317() { - var o = new core.List<api.PricingSchedulePricingPeriod>(); - o.add(buildPricingSchedulePricingPeriod()); - o.add(buildPricingSchedulePricingPeriod()); - return o; -} - -checkUnnamed317(core.List<api.PricingSchedulePricingPeriod> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPricingSchedulePricingPeriod(o[0]); - checkPricingSchedulePricingPeriod(o[1]); -} - -core.int buildCounterPricingSchedule = 0; -buildPricingSchedule() { - var o = new api.PricingSchedule(); - buildCounterPricingSchedule++; - if (buildCounterPricingSchedule < 3) { - o.capCostOption = "foo"; - o.disregardOverdelivery = true; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flighted = true; - o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed317(); - o.pricingType = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterPricingSchedule--; - return o; -} - -checkPricingSchedule(api.PricingSchedule o) { - buildCounterPricingSchedule++; - if (buildCounterPricingSchedule < 3) { - unittest.expect(o.capCostOption, unittest.equals('foo')); - unittest.expect(o.disregardOverdelivery, unittest.isTrue); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.flighted, unittest.isTrue); - unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed317(o.pricingPeriods); - unittest.expect(o.pricingType, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterPricingSchedule--; -} - -core.int buildCounterPricingSchedulePricingPeriod = 0; -buildPricingSchedulePricingPeriod() { - var o = new api.PricingSchedulePricingPeriod(); - buildCounterPricingSchedulePricingPeriod++; - if (buildCounterPricingSchedulePricingPeriod < 3) { - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.pricingComment = "foo"; - o.rateOrCostNanos = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.units = "foo"; - } - buildCounterPricingSchedulePricingPeriod--; - return o; -} - -checkPricingSchedulePricingPeriod(api.PricingSchedulePricingPeriod o) { - buildCounterPricingSchedulePricingPeriod++; - if (buildCounterPricingSchedulePricingPeriod < 3) { - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.pricingComment, unittest.equals('foo')); - unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.units, unittest.equals('foo')); - } - buildCounterPricingSchedulePricingPeriod--; -} - -core.int buildCounterProject = 0; -buildProject() { - var o = new api.Project(); - buildCounterProject++; - if (buildCounterProject < 3) { - o.accountId = "foo"; - o.advertiserId = "foo"; - o.audienceAgeGroup = "foo"; - o.audienceGender = "foo"; - o.budget = "foo"; - o.clientBillingCode = "foo"; - o.clientName = "foo"; - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.overview = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subaccountId = "foo"; - o.targetClicks = "foo"; - o.targetConversions = "foo"; - o.targetCpaNanos = "foo"; - o.targetCpcNanos = "foo"; - o.targetCpmNanos = "foo"; - o.targetImpressions = "foo"; - } - buildCounterProject--; - return o; -} - -checkProject(api.Project o) { - buildCounterProject++; - if (buildCounterProject < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.advertiserId, unittest.equals('foo')); - unittest.expect(o.audienceAgeGroup, unittest.equals('foo')); - unittest.expect(o.audienceGender, unittest.equals('foo')); - unittest.expect(o.budget, unittest.equals('foo')); - unittest.expect(o.clientBillingCode, unittest.equals('foo')); - unittest.expect(o.clientName, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkLastModifiedInfo(o.lastModifiedInfo); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.overview, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.subaccountId, unittest.equals('foo')); - unittest.expect(o.targetClicks, unittest.equals('foo')); - unittest.expect(o.targetConversions, unittest.equals('foo')); - unittest.expect(o.targetCpaNanos, unittest.equals('foo')); - unittest.expect(o.targetCpcNanos, unittest.equals('foo')); - unittest.expect(o.targetCpmNanos, unittest.equals('foo')); - unittest.expect(o.targetImpressions, unittest.equals('foo')); - } - buildCounterProject--; -} - -buildUnnamed318() { - var o = new core.List<api.Project>(); - o.add(buildProject()); - o.add(buildProject()); - return o; -} - -checkUnnamed318(core.List<api.Project> o) { - unittest.expect(o, unittest.hasLength(2)); - checkProject(o[0]); - checkProject(o[1]); -} - -core.int buildCounterProjectsListResponse = 0; -buildProjectsListResponse() { - var o = new api.ProjectsListResponse(); - buildCounterProjectsListResponse++; - if (buildCounterProjectsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.projects = buildUnnamed318(); - } - buildCounterProjectsListResponse--; - return o; -} - -checkProjectsListResponse(api.ProjectsListResponse o) { - buildCounterProjectsListResponse++; - if (buildCounterProjectsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed318(o.projects); - } - buildCounterProjectsListResponse--; -} - -buildUnnamed319() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed319(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed320() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed320(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed321() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed321(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed322() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed322(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed323() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed323(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterReachReportCompatibleFields = 0; -buildReachReportCompatibleFields() { - var o = new api.ReachReportCompatibleFields(); - buildCounterReachReportCompatibleFields++; - if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed319(); - o.dimensions = buildUnnamed320(); - o.kind = "foo"; - o.metrics = buildUnnamed321(); - o.pivotedActivityMetrics = buildUnnamed322(); - o.reachByFrequencyMetrics = buildUnnamed323(); - } - buildCounterReachReportCompatibleFields--; - return o; -} - -checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { - buildCounterReachReportCompatibleFields++; - if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed319(o.dimensionFilters); - checkUnnamed320(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed321(o.metrics); - checkUnnamed322(o.pivotedActivityMetrics); - checkUnnamed323(o.reachByFrequencyMetrics); - } - buildCounterReachReportCompatibleFields--; -} - -core.int buildCounterRecipient = 0; -buildRecipient() { - var o = new api.Recipient(); - buildCounterRecipient++; - if (buildCounterRecipient < 3) { - o.deliveryType = "foo"; - o.email = "foo"; - o.kind = "foo"; - } - buildCounterRecipient--; - return o; -} - -checkRecipient(api.Recipient o) { - buildCounterRecipient++; - if (buildCounterRecipient < 3) { - unittest.expect(o.deliveryType, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterRecipient--; -} - -core.int buildCounterRegion = 0; -buildRegion() { - var o = new api.Region(); - buildCounterRegion++; - if (buildCounterRegion < 3) { - o.countryCode = "foo"; - o.countryDartId = "foo"; - o.dartId = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.regionCode = "foo"; - } - buildCounterRegion--; - return o; -} - -checkRegion(api.Region o) { - buildCounterRegion++; - if (buildCounterRegion < 3) { - unittest.expect(o.countryCode, unittest.equals('foo')); - unittest.expect(o.countryDartId, unittest.equals('foo')); - unittest.expect(o.dartId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.regionCode, unittest.equals('foo')); - } - buildCounterRegion--; -} - -buildUnnamed324() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed324(core.List<api.Region> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRegion(o[0]); - checkRegion(o[1]); -} - -core.int buildCounterRegionsListResponse = 0; -buildRegionsListResponse() { - var o = new api.RegionsListResponse(); - buildCounterRegionsListResponse++; - if (buildCounterRegionsListResponse < 3) { - o.kind = "foo"; - o.regions = buildUnnamed324(); - } - buildCounterRegionsListResponse--; - return o; -} - -checkRegionsListResponse(api.RegionsListResponse o) { - buildCounterRegionsListResponse++; - if (buildCounterRegionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed324(o.regions); - } - buildCounterRegionsListResponse--; -} - -core.int buildCounterRemarketingList = 0; -buildRemarketingList() { - var o = new api.RemarketingList(); - buildCounterRemarketingList++; - if (buildCounterRemarketingList < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lifeSpan = "foo"; - o.listPopulationRule = buildListPopulationRule(); - o.listSize = "foo"; - o.listSource = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterRemarketingList--; - return o; -} - -checkRemarketingList(api.RemarketingList o) { - buildCounterRemarketingList++; - if (buildCounterRemarketingList < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lifeSpan, unittest.equals('foo')); - checkListPopulationRule(o.listPopulationRule); - unittest.expect(o.listSize, unittest.equals('foo')); - unittest.expect(o.listSource, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterRemarketingList--; -} - -buildUnnamed325() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed325(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed326() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed326(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterRemarketingListShare = 0; -buildRemarketingListShare() { - var o = new api.RemarketingListShare(); - buildCounterRemarketingListShare++; - if (buildCounterRemarketingListShare < 3) { - o.kind = "foo"; - o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed325(); - o.sharedAdvertiserIds = buildUnnamed326(); - } - buildCounterRemarketingListShare--; - return o; -} - -checkRemarketingListShare(api.RemarketingListShare o) { - buildCounterRemarketingListShare++; - if (buildCounterRemarketingListShare < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed325(o.sharedAccountIds); - checkUnnamed326(o.sharedAdvertiserIds); - } - buildCounterRemarketingListShare--; -} - -buildUnnamed327() { - var o = new core.List<api.RemarketingList>(); - o.add(buildRemarketingList()); - o.add(buildRemarketingList()); - return o; -} - -checkUnnamed327(core.List<api.RemarketingList> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRemarketingList(o[0]); - checkRemarketingList(o[1]); -} - -core.int buildCounterRemarketingListsListResponse = 0; -buildRemarketingListsListResponse() { - var o = new api.RemarketingListsListResponse(); - buildCounterRemarketingListsListResponse++; - if (buildCounterRemarketingListsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed327(); - } - buildCounterRemarketingListsListResponse--; - return o; -} - -checkRemarketingListsListResponse(api.RemarketingListsListResponse o) { - buildCounterRemarketingListsListResponse++; - if (buildCounterRemarketingListsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed327(o.remarketingLists); - } - buildCounterRemarketingListsListResponse--; -} - -buildUnnamed328() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed328(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed329() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed329(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed330() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed330(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportCriteria = 0; -buildReportCriteria() { - var o = new api.ReportCriteria(); - buildCounterReportCriteria++; - if (buildCounterReportCriteria < 3) { - o.activities = buildActivities(); - o.customRichMediaEvents = buildCustomRichMediaEvents(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed328(); - o.dimensions = buildUnnamed329(); - o.metricNames = buildUnnamed330(); - } - buildCounterReportCriteria--; - return o; -} - -checkReportCriteria(api.ReportCriteria o) { - buildCounterReportCriteria++; - if (buildCounterReportCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed328(o.dimensionFilters); - checkUnnamed329(o.dimensions); - checkUnnamed330(o.metricNames); - } - buildCounterReportCriteria--; -} - -buildUnnamed331() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed331(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed332() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed332(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed333() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed333(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed334() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed334(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportCrossDimensionReachCriteria = 0; -buildReportCrossDimensionReachCriteria() { - var o = new api.ReportCrossDimensionReachCriteria(); - buildCounterReportCrossDimensionReachCriteria++; - if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed331(); - o.dateRange = buildDateRange(); - o.dimension = "foo"; - o.dimensionFilters = buildUnnamed332(); - o.metricNames = buildUnnamed333(); - o.overlapMetricNames = buildUnnamed334(); - o.pivoted = true; - } - buildCounterReportCrossDimensionReachCriteria--; - return o; -} - -checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { - buildCounterReportCrossDimensionReachCriteria++; - if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed331(o.breakdown); - checkDateRange(o.dateRange); - unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed332(o.dimensionFilters); - checkUnnamed333(o.metricNames); - checkUnnamed334(o.overlapMetricNames); - unittest.expect(o.pivoted, unittest.isTrue); - } - buildCounterReportCrossDimensionReachCriteria--; -} - -buildUnnamed335() { - var o = new core.List<api.Recipient>(); - o.add(buildRecipient()); - o.add(buildRecipient()); - return o; -} - -checkUnnamed335(core.List<api.Recipient> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRecipient(o[0]); - checkRecipient(o[1]); -} - -core.int buildCounterReportDelivery = 0; -buildReportDelivery() { - var o = new api.ReportDelivery(); - buildCounterReportDelivery++; - if (buildCounterReportDelivery < 3) { - o.emailOwner = true; - o.emailOwnerDeliveryType = "foo"; - o.message = "foo"; - o.recipients = buildUnnamed335(); - } - buildCounterReportDelivery--; - return o; -} - -checkReportDelivery(api.ReportDelivery o) { - buildCounterReportDelivery++; - if (buildCounterReportDelivery < 3) { - unittest.expect(o.emailOwner, unittest.isTrue); - unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed335(o.recipients); - } - buildCounterReportDelivery--; -} - -buildUnnamed336() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed336(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed337() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed337(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed338() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed338(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed339() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed339(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportFloodlightCriteriaReportProperties = 0; -buildReportFloodlightCriteriaReportProperties() { - var o = new api.ReportFloodlightCriteriaReportProperties(); - buildCounterReportFloodlightCriteriaReportProperties++; - if (buildCounterReportFloodlightCriteriaReportProperties < 3) { - o.includeAttributedIPConversions = true; - o.includeUnattributedCookieConversions = true; - o.includeUnattributedIPConversions = true; - } - buildCounterReportFloodlightCriteriaReportProperties--; - return o; -} - -checkReportFloodlightCriteriaReportProperties(api.ReportFloodlightCriteriaReportProperties o) { - buildCounterReportFloodlightCriteriaReportProperties++; - if (buildCounterReportFloodlightCriteriaReportProperties < 3) { - unittest.expect(o.includeAttributedIPConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedCookieConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); - } - buildCounterReportFloodlightCriteriaReportProperties--; -} - -core.int buildCounterReportFloodlightCriteria = 0; -buildReportFloodlightCriteria() { - var o = new api.ReportFloodlightCriteria(); - buildCounterReportFloodlightCriteria++; - if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed336(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed337(); - o.dimensions = buildUnnamed338(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed339(); - o.reportProperties = buildReportFloodlightCriteriaReportProperties(); - } - buildCounterReportFloodlightCriteria--; - return o; -} - -checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { - buildCounterReportFloodlightCriteria++; - if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed336(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed337(o.dimensionFilters); - checkUnnamed338(o.dimensions); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed339(o.metricNames); - checkReportFloodlightCriteriaReportProperties(o.reportProperties); - } - buildCounterReportFloodlightCriteria--; -} - -buildUnnamed340() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed340(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed341() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed341(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed342() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed342(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed343() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed343(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed344() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed344(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed345() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed345(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; -buildReportPathToConversionCriteriaReportProperties() { - var o = new api.ReportPathToConversionCriteriaReportProperties(); - buildCounterReportPathToConversionCriteriaReportProperties++; - if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { - o.clicksLookbackWindow = 42; - o.impressionsLookbackWindow = 42; - o.includeAttributedIPConversions = true; - o.includeUnattributedCookieConversions = true; - o.includeUnattributedIPConversions = true; - o.maximumClickInteractions = 42; - o.maximumImpressionInteractions = 42; - o.maximumInteractionGap = 42; - o.pivotOnInteractionPath = true; - } - buildCounterReportPathToConversionCriteriaReportProperties--; - return o; -} - -checkReportPathToConversionCriteriaReportProperties(api.ReportPathToConversionCriteriaReportProperties o) { - buildCounterReportPathToConversionCriteriaReportProperties++; - if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { - unittest.expect(o.clicksLookbackWindow, unittest.equals(42)); - unittest.expect(o.impressionsLookbackWindow, unittest.equals(42)); - unittest.expect(o.includeAttributedIPConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedCookieConversions, unittest.isTrue); - unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); - unittest.expect(o.maximumClickInteractions, unittest.equals(42)); - unittest.expect(o.maximumImpressionInteractions, unittest.equals(42)); - unittest.expect(o.maximumInteractionGap, unittest.equals(42)); - unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); - } - buildCounterReportPathToConversionCriteriaReportProperties--; -} - -core.int buildCounterReportPathToConversionCriteria = 0; -buildReportPathToConversionCriteria() { - var o = new api.ReportPathToConversionCriteria(); - buildCounterReportPathToConversionCriteria++; - if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed340(); - o.conversionDimensions = buildUnnamed341(); - o.customFloodlightVariables = buildUnnamed342(); - o.customRichMediaEvents = buildUnnamed343(); - o.dateRange = buildDateRange(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed344(); - o.perInteractionDimensions = buildUnnamed345(); - o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); - } - buildCounterReportPathToConversionCriteria--; - return o; -} - -checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { - buildCounterReportPathToConversionCriteria++; - if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed340(o.activityFilters); - checkUnnamed341(o.conversionDimensions); - checkUnnamed342(o.customFloodlightVariables); - checkUnnamed343(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed344(o.metricNames); - checkUnnamed345(o.perInteractionDimensions); - checkReportPathToConversionCriteriaReportProperties(o.reportProperties); - } - buildCounterReportPathToConversionCriteria--; -} - -buildUnnamed346() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed346(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed347() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed347(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed348() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed348(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed349() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed349(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportReachCriteria = 0; -buildReportReachCriteria() { - var o = new api.ReportReachCriteria(); - buildCounterReportReachCriteria++; - if (buildCounterReportReachCriteria < 3) { - o.activities = buildActivities(); - o.customRichMediaEvents = buildCustomRichMediaEvents(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed346(); - o.dimensions = buildUnnamed347(); - o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed348(); - o.reachByFrequencyMetricNames = buildUnnamed349(); - } - buildCounterReportReachCriteria--; - return o; -} - -checkReportReachCriteria(api.ReportReachCriteria o) { - buildCounterReportReachCriteria++; - if (buildCounterReportReachCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed346(o.dimensionFilters); - checkUnnamed347(o.dimensions); - unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed348(o.metricNames); - checkUnnamed349(o.reachByFrequencyMetricNames); - } - buildCounterReportReachCriteria--; -} - -buildUnnamed350() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed350(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterReportSchedule = 0; -buildReportSchedule() { - var o = new api.ReportSchedule(); - buildCounterReportSchedule++; - if (buildCounterReportSchedule < 3) { - o.active = true; - o.every = 42; - o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed350(); - o.runsOnDayOfMonth = "foo"; - o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - } - buildCounterReportSchedule--; - return o; -} - -checkReportSchedule(api.ReportSchedule o) { - buildCounterReportSchedule++; - if (buildCounterReportSchedule < 3) { - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.every, unittest.equals(42)); - unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed350(o.repeatsOnWeekDays); - unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterReportSchedule--; -} - -core.int buildCounterReport = 0; -buildReport() { - var o = new api.Report(); - buildCounterReport++; - if (buildCounterReport < 3) { - o.accountId = "foo"; - o.criteria = buildReportCriteria(); - o.crossDimensionReachCriteria = buildReportCrossDimensionReachCriteria(); - o.delivery = buildReportDelivery(); - o.etag = "foo"; - o.fileName = "foo"; - o.floodlightCriteria = buildReportFloodlightCriteria(); - o.format = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lastModifiedTime = "foo"; - o.name = "foo"; - o.ownerProfileId = "foo"; - o.pathToConversionCriteria = buildReportPathToConversionCriteria(); - o.reachCriteria = buildReportReachCriteria(); - o.schedule = buildReportSchedule(); - o.subAccountId = "foo"; - o.type = "foo"; - } - buildCounterReport--; - return o; -} - -checkReport(api.Report o) { - buildCounterReport++; - if (buildCounterReport < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkReportCriteria(o.criteria); - checkReportCrossDimensionReachCriteria(o.crossDimensionReachCriteria); - checkReportDelivery(o.delivery); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.fileName, unittest.equals('foo')); - checkReportFloodlightCriteria(o.floodlightCriteria); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastModifiedTime, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.ownerProfileId, unittest.equals('foo')); - checkReportPathToConversionCriteria(o.pathToConversionCriteria); - checkReportReachCriteria(o.reachCriteria); - checkReportSchedule(o.schedule); - unittest.expect(o.subAccountId, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterReport--; -} - -buildUnnamed351() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed351(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed352() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed352(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed353() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed353(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed354() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed354(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -core.int buildCounterReportCompatibleFields = 0; -buildReportCompatibleFields() { - var o = new api.ReportCompatibleFields(); - buildCounterReportCompatibleFields++; - if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed351(); - o.dimensions = buildUnnamed352(); - o.kind = "foo"; - o.metrics = buildUnnamed353(); - o.pivotedActivityMetrics = buildUnnamed354(); - } - buildCounterReportCompatibleFields--; - return o; -} - -checkReportCompatibleFields(api.ReportCompatibleFields o) { - buildCounterReportCompatibleFields++; - if (buildCounterReportCompatibleFields < 3) { - checkUnnamed351(o.dimensionFilters); - checkUnnamed352(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed353(o.metrics); - checkUnnamed354(o.pivotedActivityMetrics); - } - buildCounterReportCompatibleFields--; -} - -buildUnnamed355() { - var o = new core.List<api.Report>(); - o.add(buildReport()); - o.add(buildReport()); - return o; -} - -checkUnnamed355(core.List<api.Report> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReport(o[0]); - checkReport(o[1]); -} - -core.int buildCounterReportList = 0; -buildReportList() { - var o = new api.ReportList(); - buildCounterReportList++; - if (buildCounterReportList < 3) { - o.etag = "foo"; - o.items = buildUnnamed355(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterReportList--; - return o; -} - -checkReportList(api.ReportList o) { - buildCounterReportList++; - if (buildCounterReportList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed355(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterReportList--; -} - -core.int buildCounterReportsConfiguration = 0; -buildReportsConfiguration() { - var o = new api.ReportsConfiguration(); - buildCounterReportsConfiguration++; - if (buildCounterReportsConfiguration < 3) { - o.exposureToConversionEnabled = true; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.reportGenerationTimeZoneId = "foo"; - } - buildCounterReportsConfiguration--; - return o; -} - -checkReportsConfiguration(api.ReportsConfiguration o) { - buildCounterReportsConfiguration++; - if (buildCounterReportsConfiguration < 3) { - unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); - checkLookbackConfiguration(o.lookbackConfiguration); - unittest.expect(o.reportGenerationTimeZoneId, unittest.equals('foo')); - } - buildCounterReportsConfiguration--; -} - -core.int buildCounterRichMediaExitOverride = 0; -buildRichMediaExitOverride() { - var o = new api.RichMediaExitOverride(); - buildCounterRichMediaExitOverride++; - if (buildCounterRichMediaExitOverride < 3) { - o.customExitUrl = "foo"; - o.exitId = "foo"; - o.useCustomExitUrl = true; - } - buildCounterRichMediaExitOverride--; - return o; -} - -checkRichMediaExitOverride(api.RichMediaExitOverride o) { - buildCounterRichMediaExitOverride++; - if (buildCounterRichMediaExitOverride < 3) { - unittest.expect(o.customExitUrl, unittest.equals('foo')); - unittest.expect(o.exitId, unittest.equals('foo')); - unittest.expect(o.useCustomExitUrl, unittest.isTrue); - } - buildCounterRichMediaExitOverride--; -} - -buildUnnamed356() { - var o = new core.List<api.SiteContact>(); - o.add(buildSiteContact()); - o.add(buildSiteContact()); - return o; -} - -checkUnnamed356(core.List<api.SiteContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSiteContact(o[0]); - checkSiteContact(o[1]); -} - -core.int buildCounterSite = 0; -buildSite() { - var o = new api.Site(); - buildCounterSite++; - if (buildCounterSite < 3) { - o.accountId = "foo"; - o.approved = true; - o.directorySiteId = "foo"; - o.directorySiteIdDimensionValue = buildDimensionValue(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyName = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.siteContacts = buildUnnamed356(); - o.siteSettings = buildSiteSettings(); - o.subaccountId = "foo"; - } - buildCounterSite--; - return o; -} - -checkSite(api.Site o) { - buildCounterSite++; - if (buildCounterSite < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.approved, unittest.isTrue); - unittest.expect(o.directorySiteId, unittest.equals('foo')); - checkDimensionValue(o.directorySiteIdDimensionValue); - unittest.expect(o.id, unittest.equals('foo')); - checkDimensionValue(o.idDimensionValue); - unittest.expect(o.keyName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed356(o.siteContacts); - checkSiteSettings(o.siteSettings); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterSite--; -} - -core.int buildCounterSiteContact = 0; -buildSiteContact() { - var o = new api.SiteContact(); - buildCounterSiteContact++; - if (buildCounterSiteContact < 3) { - o.address = "foo"; - o.contactType = "foo"; - o.email = "foo"; - o.firstName = "foo"; - o.id = "foo"; - o.lastName = "foo"; - o.phone = "foo"; - o.title = "foo"; - } - buildCounterSiteContact--; - return o; -} - -checkSiteContact(api.SiteContact o) { - buildCounterSiteContact++; - if (buildCounterSiteContact < 3) { - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.contactType, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.firstName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.lastName, unittest.equals('foo')); - unittest.expect(o.phone, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterSiteContact--; -} - -core.int buildCounterSiteSettings = 0; -buildSiteSettings() { - var o = new api.SiteSettings(); - buildCounterSiteSettings++; - if (buildCounterSiteSettings < 3) { - o.activeViewOptOut = true; - o.creativeSettings = buildCreativeSettings(); - o.disableBrandSafeAds = true; - o.disableNewCookie = true; - o.lookbackConfiguration = buildLookbackConfiguration(); - o.tagSetting = buildTagSetting(); - o.videoActiveViewOptOut = true; - } - buildCounterSiteSettings--; - return o; -} - -checkSiteSettings(api.SiteSettings o) { - buildCounterSiteSettings++; - if (buildCounterSiteSettings < 3) { - unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkCreativeSettings(o.creativeSettings); - unittest.expect(o.disableBrandSafeAds, unittest.isTrue); - unittest.expect(o.disableNewCookie, unittest.isTrue); - checkLookbackConfiguration(o.lookbackConfiguration); - checkTagSetting(o.tagSetting); - unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); - } - buildCounterSiteSettings--; -} - -buildUnnamed357() { - var o = new core.List<api.Site>(); - o.add(buildSite()); - o.add(buildSite()); - return o; -} - -checkUnnamed357(core.List<api.Site> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSite(o[0]); - checkSite(o[1]); -} - -core.int buildCounterSitesListResponse = 0; -buildSitesListResponse() { - var o = new api.SitesListResponse(); - buildCounterSitesListResponse++; - if (buildCounterSitesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.sites = buildUnnamed357(); - } - buildCounterSitesListResponse--; - return o; -} - -checkSitesListResponse(api.SitesListResponse o) { - buildCounterSitesListResponse++; - if (buildCounterSitesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed357(o.sites); - } - buildCounterSitesListResponse--; -} - -core.int buildCounterSize = 0; -buildSize() { - var o = new api.Size(); - buildCounterSize++; - if (buildCounterSize < 3) { - o.height = 42; - o.iab = true; - o.id = "foo"; - o.kind = "foo"; - o.width = 42; - } - buildCounterSize--; - return o; -} - -checkSize(api.Size o) { - buildCounterSize++; - if (buildCounterSize < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.iab, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterSize--; -} - -buildUnnamed358() { - var o = new core.List<api.Size>(); - o.add(buildSize()); - o.add(buildSize()); - return o; -} - -checkUnnamed358(core.List<api.Size> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSize(o[0]); - checkSize(o[1]); -} - -core.int buildCounterSizesListResponse = 0; -buildSizesListResponse() { - var o = new api.SizesListResponse(); - buildCounterSizesListResponse++; - if (buildCounterSizesListResponse < 3) { - o.kind = "foo"; - o.sizes = buildUnnamed358(); - } - buildCounterSizesListResponse--; - return o; -} - -checkSizesListResponse(api.SizesListResponse o) { - buildCounterSizesListResponse++; - if (buildCounterSizesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed358(o.sizes); - } - buildCounterSizesListResponse--; -} - -core.int buildCounterSortedDimension = 0; -buildSortedDimension() { - var o = new api.SortedDimension(); - buildCounterSortedDimension++; - if (buildCounterSortedDimension < 3) { - o.kind = "foo"; - o.name = "foo"; - o.sortOrder = "foo"; - } - buildCounterSortedDimension--; - return o; -} - -checkSortedDimension(api.SortedDimension o) { - buildCounterSortedDimension++; - if (buildCounterSortedDimension < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.sortOrder, unittest.equals('foo')); - } - buildCounterSortedDimension--; -} - -buildUnnamed359() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed359(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterSubaccount = 0; -buildSubaccount() { - var o = new api.Subaccount(); - buildCounterSubaccount++; - if (buildCounterSubaccount < 3) { - o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed359(); - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterSubaccount--; - return o; -} - -checkSubaccount(api.Subaccount o) { - buildCounterSubaccount++; - if (buildCounterSubaccount < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed359(o.availablePermissionIds); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterSubaccount--; -} - -buildUnnamed360() { - var o = new core.List<api.Subaccount>(); - o.add(buildSubaccount()); - o.add(buildSubaccount()); - return o; -} - -checkUnnamed360(core.List<api.Subaccount> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSubaccount(o[0]); - checkSubaccount(o[1]); -} - -core.int buildCounterSubaccountsListResponse = 0; -buildSubaccountsListResponse() { - var o = new api.SubaccountsListResponse(); - buildCounterSubaccountsListResponse++; - if (buildCounterSubaccountsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed360(); - } - buildCounterSubaccountsListResponse--; - return o; -} - -checkSubaccountsListResponse(api.SubaccountsListResponse o) { - buildCounterSubaccountsListResponse++; - if (buildCounterSubaccountsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed360(o.subaccounts); - } - buildCounterSubaccountsListResponse--; -} - -core.int buildCounterTagData = 0; -buildTagData() { - var o = new api.TagData(); - buildCounterTagData++; - if (buildCounterTagData < 3) { - o.adId = "foo"; - o.clickTag = "foo"; - o.creativeId = "foo"; - o.format = "foo"; - o.impressionTag = "foo"; - } - buildCounterTagData--; - return o; -} - -checkTagData(api.TagData o) { - buildCounterTagData++; - if (buildCounterTagData < 3) { - unittest.expect(o.adId, unittest.equals('foo')); - unittest.expect(o.clickTag, unittest.equals('foo')); - unittest.expect(o.creativeId, unittest.equals('foo')); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.impressionTag, unittest.equals('foo')); - } - buildCounterTagData--; -} - -core.int buildCounterTagSetting = 0; -buildTagSetting() { - var o = new api.TagSetting(); - buildCounterTagSetting++; - if (buildCounterTagSetting < 3) { - o.additionalKeyValues = "foo"; - o.includeClickThroughUrls = true; - o.includeClickTracking = true; - o.keywordOption = "foo"; - } - buildCounterTagSetting--; - return o; -} - -checkTagSetting(api.TagSetting o) { - buildCounterTagSetting++; - if (buildCounterTagSetting < 3) { - unittest.expect(o.additionalKeyValues, unittest.equals('foo')); - unittest.expect(o.includeClickThroughUrls, unittest.isTrue); - unittest.expect(o.includeClickTracking, unittest.isTrue); - unittest.expect(o.keywordOption, unittest.equals('foo')); - } - buildCounterTagSetting--; -} - -core.int buildCounterTagSettings = 0; -buildTagSettings() { - var o = new api.TagSettings(); - buildCounterTagSettings++; - if (buildCounterTagSettings < 3) { - o.dynamicTagEnabled = true; - o.imageTagEnabled = true; - } - buildCounterTagSettings--; - return o; -} - -checkTagSettings(api.TagSettings o) { - buildCounterTagSettings++; - if (buildCounterTagSettings < 3) { - unittest.expect(o.dynamicTagEnabled, unittest.isTrue); - unittest.expect(o.imageTagEnabled, unittest.isTrue); - } - buildCounterTagSettings--; -} - -core.int buildCounterTargetWindow = 0; -buildTargetWindow() { - var o = new api.TargetWindow(); - buildCounterTargetWindow++; - if (buildCounterTargetWindow < 3) { - o.customHtml = "foo"; - o.targetWindowOption = "foo"; - } - buildCounterTargetWindow--; - return o; -} - -checkTargetWindow(api.TargetWindow o) { - buildCounterTargetWindow++; - if (buildCounterTargetWindow < 3) { - unittest.expect(o.customHtml, unittest.equals('foo')); - unittest.expect(o.targetWindowOption, unittest.equals('foo')); - } - buildCounterTargetWindow--; -} - -core.int buildCounterTargetableRemarketingList = 0; -buildTargetableRemarketingList() { - var o = new api.TargetableRemarketingList(); - buildCounterTargetableRemarketingList++; - if (buildCounterTargetableRemarketingList < 3) { - o.accountId = "foo"; - o.active = true; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.description = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.lifeSpan = "foo"; - o.listSize = "foo"; - o.listSource = "foo"; - o.name = "foo"; - o.subaccountId = "foo"; - } - buildCounterTargetableRemarketingList--; - return o; -} - -checkTargetableRemarketingList(api.TargetableRemarketingList o) { - buildCounterTargetableRemarketingList++; - if (buildCounterTargetableRemarketingList < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.active, unittest.isTrue); - unittest.expect(o.advertiserId, unittest.equals('foo')); - checkDimensionValue(o.advertiserIdDimensionValue); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lifeSpan, unittest.equals('foo')); - unittest.expect(o.listSize, unittest.equals('foo')); - unittest.expect(o.listSource, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterTargetableRemarketingList--; -} - -buildUnnamed361() { - var o = new core.List<api.TargetableRemarketingList>(); - o.add(buildTargetableRemarketingList()); - o.add(buildTargetableRemarketingList()); - return o; -} - -checkUnnamed361(core.List<api.TargetableRemarketingList> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTargetableRemarketingList(o[0]); - checkTargetableRemarketingList(o[1]); -} - -core.int buildCounterTargetableRemarketingListsListResponse = 0; -buildTargetableRemarketingListsListResponse() { - var o = new api.TargetableRemarketingListsListResponse(); - buildCounterTargetableRemarketingListsListResponse++; - if (buildCounterTargetableRemarketingListsListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed361(); - } - buildCounterTargetableRemarketingListsListResponse--; - return o; -} - -checkTargetableRemarketingListsListResponse(api.TargetableRemarketingListsListResponse o) { - buildCounterTargetableRemarketingListsListResponse++; - if (buildCounterTargetableRemarketingListsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed361(o.targetableRemarketingLists); - } - buildCounterTargetableRemarketingListsListResponse--; -} - -buildUnnamed362() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed362(core.List<api.Browser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBrowser(o[0]); - checkBrowser(o[1]); -} - -buildUnnamed363() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed363(core.List<api.ConnectionType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkConnectionType(o[0]); - checkConnectionType(o[1]); -} - -buildUnnamed364() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed364(core.List<api.MobileCarrier> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMobileCarrier(o[0]); - checkMobileCarrier(o[1]); -} - -buildUnnamed365() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed365(core.List<api.OperatingSystemVersion> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystemVersion(o[0]); - checkOperatingSystemVersion(o[1]); -} - -buildUnnamed366() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed366(core.List<api.OperatingSystem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystem(o[0]); - checkOperatingSystem(o[1]); -} - -buildUnnamed367() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed367(core.List<api.PlatformType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlatformType(o[0]); - checkPlatformType(o[1]); -} - -core.int buildCounterTechnologyTargeting = 0; -buildTechnologyTargeting() { - var o = new api.TechnologyTargeting(); - buildCounterTechnologyTargeting++; - if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed362(); - o.connectionTypes = buildUnnamed363(); - o.mobileCarriers = buildUnnamed364(); - o.operatingSystemVersions = buildUnnamed365(); - o.operatingSystems = buildUnnamed366(); - o.platformTypes = buildUnnamed367(); - } - buildCounterTechnologyTargeting--; - return o; -} - -checkTechnologyTargeting(api.TechnologyTargeting o) { - buildCounterTechnologyTargeting++; - if (buildCounterTechnologyTargeting < 3) { - checkUnnamed362(o.browsers); - checkUnnamed363(o.connectionTypes); - checkUnnamed364(o.mobileCarriers); - checkUnnamed365(o.operatingSystemVersions); - checkUnnamed366(o.operatingSystems); - checkUnnamed367(o.platformTypes); - } - buildCounterTechnologyTargeting--; -} - -core.int buildCounterThirdPartyAuthenticationToken = 0; -buildThirdPartyAuthenticationToken() { - var o = new api.ThirdPartyAuthenticationToken(); - buildCounterThirdPartyAuthenticationToken++; - if (buildCounterThirdPartyAuthenticationToken < 3) { - o.name = "foo"; - o.value = "foo"; - } - buildCounterThirdPartyAuthenticationToken--; - return o; -} - -checkThirdPartyAuthenticationToken(api.ThirdPartyAuthenticationToken o) { - buildCounterThirdPartyAuthenticationToken++; - if (buildCounterThirdPartyAuthenticationToken < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterThirdPartyAuthenticationToken--; -} - -core.int buildCounterThirdPartyTrackingUrl = 0; -buildThirdPartyTrackingUrl() { - var o = new api.ThirdPartyTrackingUrl(); - buildCounterThirdPartyTrackingUrl++; - if (buildCounterThirdPartyTrackingUrl < 3) { - o.thirdPartyUrlType = "foo"; - o.url = "foo"; - } - buildCounterThirdPartyTrackingUrl--; - return o; -} - -checkThirdPartyTrackingUrl(api.ThirdPartyTrackingUrl o) { - buildCounterThirdPartyTrackingUrl++; - if (buildCounterThirdPartyTrackingUrl < 3) { - unittest.expect(o.thirdPartyUrlType, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterThirdPartyTrackingUrl--; -} - -core.int buildCounterUserDefinedVariableConfiguration = 0; -buildUserDefinedVariableConfiguration() { - var o = new api.UserDefinedVariableConfiguration(); - buildCounterUserDefinedVariableConfiguration++; - if (buildCounterUserDefinedVariableConfiguration < 3) { - o.dataType = "foo"; - o.reportName = "foo"; - o.variableType = "foo"; - } - buildCounterUserDefinedVariableConfiguration--; - return o; -} - -checkUserDefinedVariableConfiguration(api.UserDefinedVariableConfiguration o) { - buildCounterUserDefinedVariableConfiguration++; - if (buildCounterUserDefinedVariableConfiguration < 3) { - unittest.expect(o.dataType, unittest.equals('foo')); - unittest.expect(o.reportName, unittest.equals('foo')); - unittest.expect(o.variableType, unittest.equals('foo')); - } - buildCounterUserDefinedVariableConfiguration--; -} - -core.int buildCounterUserProfile = 0; -buildUserProfile() { - var o = new api.UserProfile(); - buildCounterUserProfile++; - if (buildCounterUserProfile < 3) { - o.accountId = "foo"; - o.accountName = "foo"; - o.etag = "foo"; - o.kind = "foo"; - o.profileId = "foo"; - o.subAccountId = "foo"; - o.subAccountName = "foo"; - o.userName = "foo"; - } - buildCounterUserProfile--; - return o; -} - -checkUserProfile(api.UserProfile o) { - buildCounterUserProfile++; - if (buildCounterUserProfile < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.accountName, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.profileId, unittest.equals('foo')); - unittest.expect(o.subAccountId, unittest.equals('foo')); - unittest.expect(o.subAccountName, unittest.equals('foo')); - unittest.expect(o.userName, unittest.equals('foo')); - } - buildCounterUserProfile--; -} - -buildUnnamed368() { - var o = new core.List<api.UserProfile>(); - o.add(buildUserProfile()); - o.add(buildUserProfile()); - return o; -} - -checkUnnamed368(core.List<api.UserProfile> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserProfile(o[0]); - checkUserProfile(o[1]); -} - -core.int buildCounterUserProfileList = 0; -buildUserProfileList() { - var o = new api.UserProfileList(); - buildCounterUserProfileList++; - if (buildCounterUserProfileList < 3) { - o.etag = "foo"; - o.items = buildUnnamed368(); - o.kind = "foo"; - } - buildCounterUserProfileList--; - return o; -} - -checkUserProfileList(api.UserProfileList o) { - buildCounterUserProfileList++; - if (buildCounterUserProfileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed368(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterUserProfileList--; -} - -buildUnnamed369() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed369(core.List<api.UserRolePermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermission(o[0]); - checkUserRolePermission(o[1]); -} - -core.int buildCounterUserRole = 0; -buildUserRole() { - var o = new api.UserRole(); - buildCounterUserRole++; - if (buildCounterUserRole < 3) { - o.accountId = "foo"; - o.defaultUserRole = true; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed369(); - o.subaccountId = "foo"; - } - buildCounterUserRole--; - return o; -} - -checkUserRole(api.UserRole o) { - buildCounterUserRole++; - if (buildCounterUserRole < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - unittest.expect(o.defaultUserRole, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed369(o.permissions); - unittest.expect(o.subaccountId, unittest.equals('foo')); - } - buildCounterUserRole--; -} - -core.int buildCounterUserRolePermission = 0; -buildUserRolePermission() { - var o = new api.UserRolePermission(); - buildCounterUserRolePermission++; - if (buildCounterUserRolePermission < 3) { - o.availability = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.permissionGroupId = "foo"; - } - buildCounterUserRolePermission--; - return o; -} - -checkUserRolePermission(api.UserRolePermission o) { - buildCounterUserRolePermission++; - if (buildCounterUserRolePermission < 3) { - unittest.expect(o.availability, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionGroupId, unittest.equals('foo')); - } - buildCounterUserRolePermission--; -} - -core.int buildCounterUserRolePermissionGroup = 0; -buildUserRolePermissionGroup() { - var o = new api.UserRolePermissionGroup(); - buildCounterUserRolePermissionGroup++; - if (buildCounterUserRolePermissionGroup < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - } - buildCounterUserRolePermissionGroup--; - return o; -} - -checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { - buildCounterUserRolePermissionGroup++; - if (buildCounterUserRolePermissionGroup < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterUserRolePermissionGroup--; -} - -buildUnnamed370() { - var o = new core.List<api.UserRolePermissionGroup>(); - o.add(buildUserRolePermissionGroup()); - o.add(buildUserRolePermissionGroup()); - return o; -} - -checkUnnamed370(core.List<api.UserRolePermissionGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermissionGroup(o[0]); - checkUserRolePermissionGroup(o[1]); -} - -core.int buildCounterUserRolePermissionGroupsListResponse = 0; -buildUserRolePermissionGroupsListResponse() { - var o = new api.UserRolePermissionGroupsListResponse(); - buildCounterUserRolePermissionGroupsListResponse++; - if (buildCounterUserRolePermissionGroupsListResponse < 3) { - o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed370(); - } - buildCounterUserRolePermissionGroupsListResponse--; - return o; -} - -checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListResponse o) { - buildCounterUserRolePermissionGroupsListResponse++; - if (buildCounterUserRolePermissionGroupsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed370(o.userRolePermissionGroups); - } - buildCounterUserRolePermissionGroupsListResponse--; -} - -buildUnnamed371() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed371(core.List<api.UserRolePermission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRolePermission(o[0]); - checkUserRolePermission(o[1]); -} - -core.int buildCounterUserRolePermissionsListResponse = 0; -buildUserRolePermissionsListResponse() { - var o = new api.UserRolePermissionsListResponse(); - buildCounterUserRolePermissionsListResponse++; - if (buildCounterUserRolePermissionsListResponse < 3) { - o.kind = "foo"; - o.userRolePermissions = buildUnnamed371(); - } - buildCounterUserRolePermissionsListResponse--; - return o; -} - -checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { - buildCounterUserRolePermissionsListResponse++; - if (buildCounterUserRolePermissionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed371(o.userRolePermissions); - } - buildCounterUserRolePermissionsListResponse--; -} - -buildUnnamed372() { - var o = new core.List<api.UserRole>(); - o.add(buildUserRole()); - o.add(buildUserRole()); - return o; -} - -checkUnnamed372(core.List<api.UserRole> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUserRole(o[0]); - checkUserRole(o[1]); -} - -core.int buildCounterUserRolesListResponse = 0; -buildUserRolesListResponse() { - var o = new api.UserRolesListResponse(); - buildCounterUserRolesListResponse++; - if (buildCounterUserRolesListResponse < 3) { - o.kind = "foo"; - o.nextPageToken = "foo"; - o.userRoles = buildUnnamed372(); - } - buildCounterUserRolesListResponse--; - return o; -} - -checkUserRolesListResponse(api.UserRolesListResponse o) { - buildCounterUserRolesListResponse++; - if (buildCounterUserRolesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed372(o.userRoles); - } - buildCounterUserRolesListResponse--; -} - -buildUnnamed373() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed373(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed374() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed374(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed375() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed375(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed376() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed376(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed377() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed377(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed378() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed378(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed379() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed379(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed380() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed380(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed381() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed381(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed382() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed382(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed383() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed383(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed384() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed384(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed385() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed385(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed386() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed386(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed387() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed387(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed388() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed388(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed389() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed389(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed390() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed390(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed391() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed391(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed392() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed392(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed393() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed393(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed394() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed394(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed395() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed395(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed396() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed396(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed397() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed397(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed398() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed398(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed399() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed399(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed400() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed400(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed401() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed401(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed402() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed402(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed403() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed403(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed404() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed404(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed405() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed405(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed406() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed406(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed407() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed407(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed408() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed408(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed409() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed409(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed410() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed410(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed411() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed411(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed412() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed412(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed413() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed413(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed414() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed414(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed415() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed415(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed416() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed416(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed417() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed417(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed418() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed418(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed419() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed419(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed420() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed420(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed421() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed421(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed422() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed422(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed423() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed423(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed424() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed424(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed425() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed425(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed426() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed426(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed427() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed427(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed428() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed428(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed429() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed429(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed430() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed430(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed431() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed431(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed432() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed432(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed433() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed433(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed434() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed434(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed435() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed435(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed436() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed436(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed437() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed437(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed438() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed438(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed439() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed439(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed440() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed440(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed441() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed441(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed442() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed442(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed443() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed443(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed444() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed444(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed445() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed445(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed446() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed446(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed447() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed447(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed448() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed448(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed449() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed449(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed450() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed450(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed451() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed451(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed452() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed452(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed453() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed453(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed454() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed454(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed455() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed455(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed456() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed456(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed457() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed457(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed458() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed458(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - - -main() { - unittest.group("obj-schema-Account", () { - unittest.test("to-json--from-json", () { - var o = buildAccount(); - var od = new api.Account.fromJson(o.toJson()); - checkAccount(od); - }); - }); - - - unittest.group("obj-schema-AccountActiveAdSummary", () { - unittest.test("to-json--from-json", () { - var o = buildAccountActiveAdSummary(); - var od = new api.AccountActiveAdSummary.fromJson(o.toJson()); - checkAccountActiveAdSummary(od); - }); - }); - - - unittest.group("obj-schema-AccountPermission", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermission(); - var od = new api.AccountPermission.fromJson(o.toJson()); - checkAccountPermission(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionGroup(); - var od = new api.AccountPermissionGroup.fromJson(o.toJson()); - checkAccountPermissionGroup(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionGroupsListResponse(); - var od = new api.AccountPermissionGroupsListResponse.fromJson(o.toJson()); - checkAccountPermissionGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountPermissionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountPermissionsListResponse(); - var od = new api.AccountPermissionsListResponse.fromJson(o.toJson()); - checkAccountPermissionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountUserProfile", () { - unittest.test("to-json--from-json", () { - var o = buildAccountUserProfile(); - var od = new api.AccountUserProfile.fromJson(o.toJson()); - checkAccountUserProfile(od); - }); - }); - - - unittest.group("obj-schema-AccountUserProfilesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountUserProfilesListResponse(); - var od = new api.AccountUserProfilesListResponse.fromJson(o.toJson()); - checkAccountUserProfilesListResponse(od); - }); - }); - - - unittest.group("obj-schema-AccountsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAccountsListResponse(); - var od = new api.AccountsListResponse.fromJson(o.toJson()); - checkAccountsListResponse(od); - }); - }); - - - unittest.group("obj-schema-Activities", () { - unittest.test("to-json--from-json", () { - var o = buildActivities(); - var od = new api.Activities.fromJson(o.toJson()); - checkActivities(od); - }); - }); - - - unittest.group("obj-schema-Ad", () { - unittest.test("to-json--from-json", () { - var o = buildAd(); - var od = new api.Ad.fromJson(o.toJson()); - checkAd(od); - }); - }); - - - unittest.group("obj-schema-AdSlot", () { - unittest.test("to-json--from-json", () { - var o = buildAdSlot(); - var od = new api.AdSlot.fromJson(o.toJson()); - checkAdSlot(od); - }); - }); - - - unittest.group("obj-schema-AdsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdsListResponse(); - var od = new api.AdsListResponse.fromJson(o.toJson()); - checkAdsListResponse(od); - }); - }); - - - unittest.group("obj-schema-Advertiser", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiser(); - var od = new api.Advertiser.fromJson(o.toJson()); - checkAdvertiser(od); - }); - }); - - - unittest.group("obj-schema-AdvertiserGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiserGroup(); - var od = new api.AdvertiserGroup.fromJson(o.toJson()); - checkAdvertiserGroup(od); - }); - }); - - - unittest.group("obj-schema-AdvertiserGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertiserGroupsListResponse(); - var od = new api.AdvertiserGroupsListResponse.fromJson(o.toJson()); - checkAdvertiserGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-AdvertisersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildAdvertisersListResponse(); - var od = new api.AdvertisersListResponse.fromJson(o.toJson()); - checkAdvertisersListResponse(od); - }); - }); - - - unittest.group("obj-schema-AudienceSegment", () { - unittest.test("to-json--from-json", () { - var o = buildAudienceSegment(); - var od = new api.AudienceSegment.fromJson(o.toJson()); - checkAudienceSegment(od); - }); - }); - - - unittest.group("obj-schema-AudienceSegmentGroup", () { - unittest.test("to-json--from-json", () { - var o = buildAudienceSegmentGroup(); - var od = new api.AudienceSegmentGroup.fromJson(o.toJson()); - checkAudienceSegmentGroup(od); - }); - }); - - - unittest.group("obj-schema-Browser", () { - unittest.test("to-json--from-json", () { - var o = buildBrowser(); - var od = new api.Browser.fromJson(o.toJson()); - checkBrowser(od); - }); - }); - - - unittest.group("obj-schema-BrowsersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildBrowsersListResponse(); - var od = new api.BrowsersListResponse.fromJson(o.toJson()); - checkBrowsersListResponse(od); - }); - }); - - - unittest.group("obj-schema-Campaign", () { - unittest.test("to-json--from-json", () { - var o = buildCampaign(); - var od = new api.Campaign.fromJson(o.toJson()); - checkCampaign(od); - }); - }); - - - unittest.group("obj-schema-CampaignCreativeAssociation", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignCreativeAssociation(); - var od = new api.CampaignCreativeAssociation.fromJson(o.toJson()); - checkCampaignCreativeAssociation(od); - }); - }); - - - unittest.group("obj-schema-CampaignCreativeAssociationsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignCreativeAssociationsListResponse(); - var od = new api.CampaignCreativeAssociationsListResponse.fromJson(o.toJson()); - checkCampaignCreativeAssociationsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CampaignsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCampaignsListResponse(); - var od = new api.CampaignsListResponse.fromJson(o.toJson()); - checkCampaignsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ChangeLog", () { - unittest.test("to-json--from-json", () { - var o = buildChangeLog(); - var od = new api.ChangeLog.fromJson(o.toJson()); - checkChangeLog(od); - }); - }); - - - unittest.group("obj-schema-ChangeLogsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildChangeLogsListResponse(); - var od = new api.ChangeLogsListResponse.fromJson(o.toJson()); - checkChangeLogsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CitiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCitiesListResponse(); - var od = new api.CitiesListResponse.fromJson(o.toJson()); - checkCitiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-City", () { - unittest.test("to-json--from-json", () { - var o = buildCity(); - var od = new api.City.fromJson(o.toJson()); - checkCity(od); - }); - }); - - - unittest.group("obj-schema-ClickTag", () { - unittest.test("to-json--from-json", () { - var o = buildClickTag(); - var od = new api.ClickTag.fromJson(o.toJson()); - checkClickTag(od); - }); - }); - - - unittest.group("obj-schema-ClickThroughUrl", () { - unittest.test("to-json--from-json", () { - var o = buildClickThroughUrl(); - var od = new api.ClickThroughUrl.fromJson(o.toJson()); - checkClickThroughUrl(od); - }); - }); - - - unittest.group("obj-schema-ClickThroughUrlSuffixProperties", () { - unittest.test("to-json--from-json", () { - var o = buildClickThroughUrlSuffixProperties(); - var od = new api.ClickThroughUrlSuffixProperties.fromJson(o.toJson()); - checkClickThroughUrlSuffixProperties(od); - }); - }); - - - unittest.group("obj-schema-CompanionClickThroughOverride", () { - unittest.test("to-json--from-json", () { - var o = buildCompanionClickThroughOverride(); - var od = new api.CompanionClickThroughOverride.fromJson(o.toJson()); - checkCompanionClickThroughOverride(od); - }); - }); - - - unittest.group("obj-schema-CompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildCompatibleFields(); - var od = new api.CompatibleFields.fromJson(o.toJson()); - checkCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-ConnectionType", () { - unittest.test("to-json--from-json", () { - var o = buildConnectionType(); - var od = new api.ConnectionType.fromJson(o.toJson()); - checkConnectionType(od); - }); - }); - - - unittest.group("obj-schema-ConnectionTypesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildConnectionTypesListResponse(); - var od = new api.ConnectionTypesListResponse.fromJson(o.toJson()); - checkConnectionTypesListResponse(od); - }); - }); - - - unittest.group("obj-schema-ContentCategoriesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildContentCategoriesListResponse(); - var od = new api.ContentCategoriesListResponse.fromJson(o.toJson()); - checkContentCategoriesListResponse(od); - }); - }); - - - unittest.group("obj-schema-ContentCategory", () { - unittest.test("to-json--from-json", () { - var o = buildContentCategory(); - var od = new api.ContentCategory.fromJson(o.toJson()); - checkContentCategory(od); - }); - }); - - - unittest.group("obj-schema-CountriesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCountriesListResponse(); - var od = new api.CountriesListResponse.fromJson(o.toJson()); - checkCountriesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Country", () { - unittest.test("to-json--from-json", () { - var o = buildCountry(); - var od = new api.Country.fromJson(o.toJson()); - checkCountry(od); - }); - }); - - - unittest.group("obj-schema-Creative", () { - unittest.test("to-json--from-json", () { - var o = buildCreative(); - var od = new api.Creative.fromJson(o.toJson()); - checkCreative(od); - }); - }); - - - unittest.group("obj-schema-CreativeAsset", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAsset(); - var od = new api.CreativeAsset.fromJson(o.toJson()); - checkCreativeAsset(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssetId", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssetId(); - var od = new api.CreativeAssetId.fromJson(o.toJson()); - checkCreativeAssetId(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssetMetadata", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssetMetadata(); - var od = new api.CreativeAssetMetadata.fromJson(o.toJson()); - checkCreativeAssetMetadata(od); - }); - }); - - - unittest.group("obj-schema-CreativeAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeAssignment(); - var od = new api.CreativeAssignment.fromJson(o.toJson()); - checkCreativeAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeCustomEvent", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeCustomEvent(); - var od = new api.CreativeCustomEvent.fromJson(o.toJson()); - checkCreativeCustomEvent(od); - }); - }); - - - unittest.group("obj-schema-CreativeField", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeField(); - var od = new api.CreativeField.fromJson(o.toJson()); - checkCreativeField(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldAssignment(); - var od = new api.CreativeFieldAssignment.fromJson(o.toJson()); - checkCreativeFieldAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldValue", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldValue(); - var od = new api.CreativeFieldValue.fromJson(o.toJson()); - checkCreativeFieldValue(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldValuesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldValuesListResponse(); - var od = new api.CreativeFieldValuesListResponse.fromJson(o.toJson()); - checkCreativeFieldValuesListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeFieldsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeFieldsListResponse(); - var od = new api.CreativeFieldsListResponse.fromJson(o.toJson()); - checkCreativeFieldsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroup", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroup(); - var od = new api.CreativeGroup.fromJson(o.toJson()); - checkCreativeGroup(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroupAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroupAssignment(); - var od = new api.CreativeGroupAssignment.fromJson(o.toJson()); - checkCreativeGroupAssignment(od); - }); - }); - - - unittest.group("obj-schema-CreativeGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeGroupsListResponse(); - var od = new api.CreativeGroupsListResponse.fromJson(o.toJson()); - checkCreativeGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-CreativeOptimizationConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeOptimizationConfiguration(); - var od = new api.CreativeOptimizationConfiguration.fromJson(o.toJson()); - checkCreativeOptimizationConfiguration(od); - }); - }); - - - unittest.group("obj-schema-CreativeRotation", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeRotation(); - var od = new api.CreativeRotation.fromJson(o.toJson()); - checkCreativeRotation(od); - }); - }); - - - unittest.group("obj-schema-CreativeSettings", () { - unittest.test("to-json--from-json", () { - var o = buildCreativeSettings(); - var od = new api.CreativeSettings.fromJson(o.toJson()); - checkCreativeSettings(od); - }); - }); - - - unittest.group("obj-schema-CreativesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildCreativesListResponse(); - var od = new api.CreativesListResponse.fromJson(o.toJson()); - checkCreativesListResponse(od); - }); - }); - - - unittest.group("obj-schema-CrossDimensionReachReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildCrossDimensionReachReportCompatibleFields(); - var od = new api.CrossDimensionReachReportCompatibleFields.fromJson(o.toJson()); - checkCrossDimensionReachReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-CustomRichMediaEvents", () { - unittest.test("to-json--from-json", () { - var o = buildCustomRichMediaEvents(); - var od = new api.CustomRichMediaEvents.fromJson(o.toJson()); - checkCustomRichMediaEvents(od); - }); - }); - - - unittest.group("obj-schema-DateRange", () { - unittest.test("to-json--from-json", () { - var o = buildDateRange(); - var od = new api.DateRange.fromJson(o.toJson()); - checkDateRange(od); - }); - }); - - - unittest.group("obj-schema-DayPartTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildDayPartTargeting(); - var od = new api.DayPartTargeting.fromJson(o.toJson()); - checkDayPartTargeting(od); - }); - }); - - - unittest.group("obj-schema-DefaultClickThroughEventTagProperties", () { - unittest.test("to-json--from-json", () { - var o = buildDefaultClickThroughEventTagProperties(); - var od = new api.DefaultClickThroughEventTagProperties.fromJson(o.toJson()); - checkDefaultClickThroughEventTagProperties(od); - }); - }); - - - unittest.group("obj-schema-DeliverySchedule", () { - unittest.test("to-json--from-json", () { - var o = buildDeliverySchedule(); - var od = new api.DeliverySchedule.fromJson(o.toJson()); - checkDeliverySchedule(od); - }); - }); - - - unittest.group("obj-schema-DfpSettings", () { - unittest.test("to-json--from-json", () { - var o = buildDfpSettings(); - var od = new api.DfpSettings.fromJson(o.toJson()); - checkDfpSettings(od); - }); - }); - - - unittest.group("obj-schema-Dimension", () { - unittest.test("to-json--from-json", () { - var o = buildDimension(); - var od = new api.Dimension.fromJson(o.toJson()); - checkDimension(od); - }); - }); - - - unittest.group("obj-schema-DimensionFilter", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionFilter(); - var od = new api.DimensionFilter.fromJson(o.toJson()); - checkDimensionFilter(od); - }); - }); - - - unittest.group("obj-schema-DimensionValue", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValue(); - var od = new api.DimensionValue.fromJson(o.toJson()); - checkDimensionValue(od); - }); - }); - - - unittest.group("obj-schema-DimensionValueList", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValueList(); - var od = new api.DimensionValueList.fromJson(o.toJson()); - checkDimensionValueList(od); - }); - }); - - - unittest.group("obj-schema-DimensionValueRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDimensionValueRequest(); - var od = new api.DimensionValueRequest.fromJson(o.toJson()); - checkDimensionValueRequest(od); - }); - }); - - - unittest.group("obj-schema-DirectorySite", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySite(); - var od = new api.DirectorySite.fromJson(o.toJson()); - checkDirectorySite(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContact", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContact(); - var od = new api.DirectorySiteContact.fromJson(o.toJson()); - checkDirectorySiteContact(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContactAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContactAssignment(); - var od = new api.DirectorySiteContactAssignment.fromJson(o.toJson()); - checkDirectorySiteContactAssignment(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteContactsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteContactsListResponse(); - var od = new api.DirectorySiteContactsListResponse.fromJson(o.toJson()); - checkDirectorySiteContactsListResponse(od); - }); - }); - - - unittest.group("obj-schema-DirectorySiteSettings", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySiteSettings(); - var od = new api.DirectorySiteSettings.fromJson(o.toJson()); - checkDirectorySiteSettings(od); - }); - }); - - - unittest.group("obj-schema-DirectorySitesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildDirectorySitesListResponse(); - var od = new api.DirectorySitesListResponse.fromJson(o.toJson()); - checkDirectorySitesListResponse(od); - }); - }); - - - unittest.group("obj-schema-EventTag", () { - unittest.test("to-json--from-json", () { - var o = buildEventTag(); - var od = new api.EventTag.fromJson(o.toJson()); - checkEventTag(od); - }); - }); - - - unittest.group("obj-schema-EventTagOverride", () { - unittest.test("to-json--from-json", () { - var o = buildEventTagOverride(); - var od = new api.EventTagOverride.fromJson(o.toJson()); - checkEventTagOverride(od); - }); - }); - - - unittest.group("obj-schema-EventTagsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildEventTagsListResponse(); - var od = new api.EventTagsListResponse.fromJson(o.toJson()); - checkEventTagsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FileUrls", () { - unittest.test("to-json--from-json", () { - var o = buildFileUrls(); - var od = new api.FileUrls.fromJson(o.toJson()); - checkFileUrls(od); - }); - }); - - - unittest.group("obj-schema-File", () { - unittest.test("to-json--from-json", () { - var o = buildFile(); - var od = new api.File.fromJson(o.toJson()); - checkFile(od); - }); - }); - - - unittest.group("obj-schema-FileList", () { - unittest.test("to-json--from-json", () { - var o = buildFileList(); - var od = new api.FileList.fromJson(o.toJson()); - checkFileList(od); - }); - }); - - - unittest.group("obj-schema-Flight", () { - unittest.test("to-json--from-json", () { - var o = buildFlight(); - var od = new api.Flight.fromJson(o.toJson()); - checkFlight(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivitiesGenerateTagResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivitiesGenerateTagResponse(); - var od = new api.FloodlightActivitiesGenerateTagResponse.fromJson(o.toJson()); - checkFloodlightActivitiesGenerateTagResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivitiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivitiesListResponse(); - var od = new api.FloodlightActivitiesListResponse.fromJson(o.toJson()); - checkFloodlightActivitiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivity", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivity(); - var od = new api.FloodlightActivity.fromJson(o.toJson()); - checkFloodlightActivity(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityDynamicTag", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityDynamicTag(); - var od = new api.FloodlightActivityDynamicTag.fromJson(o.toJson()); - checkFloodlightActivityDynamicTag(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityGroup", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityGroup(); - var od = new api.FloodlightActivityGroup.fromJson(o.toJson()); - checkFloodlightActivityGroup(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityGroupsListResponse(); - var od = new api.FloodlightActivityGroupsListResponse.fromJson(o.toJson()); - checkFloodlightActivityGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightActivityPublisherDynamicTag", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightActivityPublisherDynamicTag(); - var od = new api.FloodlightActivityPublisherDynamicTag.fromJson(o.toJson()); - checkFloodlightActivityPublisherDynamicTag(od); - }); - }); - - - unittest.group("obj-schema-FloodlightConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightConfiguration(); - var od = new api.FloodlightConfiguration.fromJson(o.toJson()); - checkFloodlightConfiguration(od); - }); - }); - - - unittest.group("obj-schema-FloodlightConfigurationsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightConfigurationsListResponse(); - var od = new api.FloodlightConfigurationsListResponse.fromJson(o.toJson()); - checkFloodlightConfigurationsListResponse(od); - }); - }); - - - unittest.group("obj-schema-FloodlightReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildFloodlightReportCompatibleFields(); - var od = new api.FloodlightReportCompatibleFields.fromJson(o.toJson()); - checkFloodlightReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-FrequencyCap", () { - unittest.test("to-json--from-json", () { - var o = buildFrequencyCap(); - var od = new api.FrequencyCap.fromJson(o.toJson()); - checkFrequencyCap(od); - }); - }); - - - unittest.group("obj-schema-FsCommand", () { - unittest.test("to-json--from-json", () { - var o = buildFsCommand(); - var od = new api.FsCommand.fromJson(o.toJson()); - checkFsCommand(od); - }); - }); - - - unittest.group("obj-schema-GeoTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildGeoTargeting(); - var od = new api.GeoTargeting.fromJson(o.toJson()); - checkGeoTargeting(od); - }); - }); - - - unittest.group("obj-schema-InventoryItem", () { - unittest.test("to-json--from-json", () { - var o = buildInventoryItem(); - var od = new api.InventoryItem.fromJson(o.toJson()); - checkInventoryItem(od); - }); - }); - - - unittest.group("obj-schema-InventoryItemsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildInventoryItemsListResponse(); - var od = new api.InventoryItemsListResponse.fromJson(o.toJson()); - checkInventoryItemsListResponse(od); - }); - }); - - - unittest.group("obj-schema-KeyValueTargetingExpression", () { - unittest.test("to-json--from-json", () { - var o = buildKeyValueTargetingExpression(); - var od = new api.KeyValueTargetingExpression.fromJson(o.toJson()); - checkKeyValueTargetingExpression(od); - }); - }); - - - unittest.group("obj-schema-LandingPage", () { - unittest.test("to-json--from-json", () { - var o = buildLandingPage(); - var od = new api.LandingPage.fromJson(o.toJson()); - checkLandingPage(od); - }); - }); - - - unittest.group("obj-schema-LandingPagesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildLandingPagesListResponse(); - var od = new api.LandingPagesListResponse.fromJson(o.toJson()); - checkLandingPagesListResponse(od); - }); - }); - - - unittest.group("obj-schema-LastModifiedInfo", () { - unittest.test("to-json--from-json", () { - var o = buildLastModifiedInfo(); - var od = new api.LastModifiedInfo.fromJson(o.toJson()); - checkLastModifiedInfo(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationClause", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationClause(); - var od = new api.ListPopulationClause.fromJson(o.toJson()); - checkListPopulationClause(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationRule", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationRule(); - var od = new api.ListPopulationRule.fromJson(o.toJson()); - checkListPopulationRule(od); - }); - }); - - - unittest.group("obj-schema-ListPopulationTerm", () { - unittest.test("to-json--from-json", () { - var o = buildListPopulationTerm(); - var od = new api.ListPopulationTerm.fromJson(o.toJson()); - checkListPopulationTerm(od); - }); - }); - - - unittest.group("obj-schema-ListTargetingExpression", () { - unittest.test("to-json--from-json", () { - var o = buildListTargetingExpression(); - var od = new api.ListTargetingExpression.fromJson(o.toJson()); - checkListTargetingExpression(od); - }); - }); - - - unittest.group("obj-schema-LookbackConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildLookbackConfiguration(); - var od = new api.LookbackConfiguration.fromJson(o.toJson()); - checkLookbackConfiguration(od); - }); - }); - - - unittest.group("obj-schema-Metric", () { - unittest.test("to-json--from-json", () { - var o = buildMetric(); - var od = new api.Metric.fromJson(o.toJson()); - checkMetric(od); - }); - }); - - - unittest.group("obj-schema-Metro", () { - unittest.test("to-json--from-json", () { - var o = buildMetro(); - var od = new api.Metro.fromJson(o.toJson()); - checkMetro(od); - }); - }); - - - unittest.group("obj-schema-MetrosListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildMetrosListResponse(); - var od = new api.MetrosListResponse.fromJson(o.toJson()); - checkMetrosListResponse(od); - }); - }); - - - unittest.group("obj-schema-MobileCarrier", () { - unittest.test("to-json--from-json", () { - var o = buildMobileCarrier(); - var od = new api.MobileCarrier.fromJson(o.toJson()); - checkMobileCarrier(od); - }); - }); - - - unittest.group("obj-schema-MobileCarriersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildMobileCarriersListResponse(); - var od = new api.MobileCarriersListResponse.fromJson(o.toJson()); - checkMobileCarriersListResponse(od); - }); - }); - - - unittest.group("obj-schema-ObjectFilter", () { - unittest.test("to-json--from-json", () { - var o = buildObjectFilter(); - var od = new api.ObjectFilter.fromJson(o.toJson()); - checkObjectFilter(od); - }); - }); - - - unittest.group("obj-schema-OffsetPosition", () { - unittest.test("to-json--from-json", () { - var o = buildOffsetPosition(); - var od = new api.OffsetPosition.fromJson(o.toJson()); - checkOffsetPosition(od); - }); - }); - - - unittest.group("obj-schema-OmnitureSettings", () { - unittest.test("to-json--from-json", () { - var o = buildOmnitureSettings(); - var od = new api.OmnitureSettings.fromJson(o.toJson()); - checkOmnitureSettings(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystem", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystem(); - var od = new api.OperatingSystem.fromJson(o.toJson()); - checkOperatingSystem(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemVersion", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemVersion(); - var od = new api.OperatingSystemVersion.fromJson(o.toJson()); - checkOperatingSystemVersion(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemVersionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemVersionsListResponse(); - var od = new api.OperatingSystemVersionsListResponse.fromJson(o.toJson()); - checkOperatingSystemVersionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OperatingSystemsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOperatingSystemsListResponse(); - var od = new api.OperatingSystemsListResponse.fromJson(o.toJson()); - checkOperatingSystemsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OptimizationActivity", () { - unittest.test("to-json--from-json", () { - var o = buildOptimizationActivity(); - var od = new api.OptimizationActivity.fromJson(o.toJson()); - checkOptimizationActivity(od); - }); - }); - - - unittest.group("obj-schema-Order", () { - unittest.test("to-json--from-json", () { - var o = buildOrder(); - var od = new api.Order.fromJson(o.toJson()); - checkOrder(od); - }); - }); - - - unittest.group("obj-schema-OrderContact", () { - unittest.test("to-json--from-json", () { - var o = buildOrderContact(); - var od = new api.OrderContact.fromJson(o.toJson()); - checkOrderContact(od); - }); - }); - - - unittest.group("obj-schema-OrderDocument", () { - unittest.test("to-json--from-json", () { - var o = buildOrderDocument(); - var od = new api.OrderDocument.fromJson(o.toJson()); - checkOrderDocument(od); - }); - }); - - - unittest.group("obj-schema-OrderDocumentsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOrderDocumentsListResponse(); - var od = new api.OrderDocumentsListResponse.fromJson(o.toJson()); - checkOrderDocumentsListResponse(od); - }); - }); - - - unittest.group("obj-schema-OrdersListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildOrdersListResponse(); - var od = new api.OrdersListResponse.fromJson(o.toJson()); - checkOrdersListResponse(od); - }); - }); - - - unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildPathToConversionReportCompatibleFields(); - var od = new api.PathToConversionReportCompatibleFields.fromJson(o.toJson()); - checkPathToConversionReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-Placement", () { - unittest.test("to-json--from-json", () { - var o = buildPlacement(); - var od = new api.Placement.fromJson(o.toJson()); - checkPlacement(od); - }); - }); - - - unittest.group("obj-schema-PlacementAssignment", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementAssignment(); - var od = new api.PlacementAssignment.fromJson(o.toJson()); - checkPlacementAssignment(od); - }); - }); - - - unittest.group("obj-schema-PlacementGroup", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementGroup(); - var od = new api.PlacementGroup.fromJson(o.toJson()); - checkPlacementGroup(od); - }); - }); - - - unittest.group("obj-schema-PlacementGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementGroupsListResponse(); - var od = new api.PlacementGroupsListResponse.fromJson(o.toJson()); - checkPlacementGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementStrategiesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementStrategiesListResponse(); - var od = new api.PlacementStrategiesListResponse.fromJson(o.toJson()); - checkPlacementStrategiesListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementStrategy", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementStrategy(); - var od = new api.PlacementStrategy.fromJson(o.toJson()); - checkPlacementStrategy(od); - }); - }); - - - unittest.group("obj-schema-PlacementTag", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementTag(); - var od = new api.PlacementTag.fromJson(o.toJson()); - checkPlacementTag(od); - }); - }); - - - unittest.group("obj-schema-PlacementsGenerateTagsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementsGenerateTagsResponse(); - var od = new api.PlacementsGenerateTagsResponse.fromJson(o.toJson()); - checkPlacementsGenerateTagsResponse(od); - }); - }); - - - unittest.group("obj-schema-PlacementsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlacementsListResponse(); - var od = new api.PlacementsListResponse.fromJson(o.toJson()); - checkPlacementsListResponse(od); - }); - }); - - - unittest.group("obj-schema-PlatformType", () { - unittest.test("to-json--from-json", () { - var o = buildPlatformType(); - var od = new api.PlatformType.fromJson(o.toJson()); - checkPlatformType(od); - }); - }); - - - unittest.group("obj-schema-PlatformTypesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPlatformTypesListResponse(); - var od = new api.PlatformTypesListResponse.fromJson(o.toJson()); - checkPlatformTypesListResponse(od); - }); - }); - - - unittest.group("obj-schema-PopupWindowProperties", () { - unittest.test("to-json--from-json", () { - var o = buildPopupWindowProperties(); - var od = new api.PopupWindowProperties.fromJson(o.toJson()); - checkPopupWindowProperties(od); - }); - }); - - - unittest.group("obj-schema-PostalCode", () { - unittest.test("to-json--from-json", () { - var o = buildPostalCode(); - var od = new api.PostalCode.fromJson(o.toJson()); - checkPostalCode(od); - }); - }); - - - unittest.group("obj-schema-PostalCodesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildPostalCodesListResponse(); - var od = new api.PostalCodesListResponse.fromJson(o.toJson()); - checkPostalCodesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Pricing", () { - unittest.test("to-json--from-json", () { - var o = buildPricing(); - var od = new api.Pricing.fromJson(o.toJson()); - checkPricing(od); - }); - }); - - - unittest.group("obj-schema-PricingSchedule", () { - unittest.test("to-json--from-json", () { - var o = buildPricingSchedule(); - var od = new api.PricingSchedule.fromJson(o.toJson()); - checkPricingSchedule(od); - }); - }); - - - unittest.group("obj-schema-PricingSchedulePricingPeriod", () { - unittest.test("to-json--from-json", () { - var o = buildPricingSchedulePricingPeriod(); - var od = new api.PricingSchedulePricingPeriod.fromJson(o.toJson()); - checkPricingSchedulePricingPeriod(od); - }); - }); - - - unittest.group("obj-schema-Project", () { - unittest.test("to-json--from-json", () { - var o = buildProject(); - var od = new api.Project.fromJson(o.toJson()); - checkProject(od); - }); - }); - - - unittest.group("obj-schema-ProjectsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildProjectsListResponse(); - var od = new api.ProjectsListResponse.fromJson(o.toJson()); - checkProjectsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ReachReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildReachReportCompatibleFields(); - var od = new api.ReachReportCompatibleFields.fromJson(o.toJson()); - checkReachReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-Recipient", () { - unittest.test("to-json--from-json", () { - var o = buildRecipient(); - var od = new api.Recipient.fromJson(o.toJson()); - checkRecipient(od); - }); - }); - - - unittest.group("obj-schema-Region", () { - unittest.test("to-json--from-json", () { - var o = buildRegion(); - var od = new api.Region.fromJson(o.toJson()); - checkRegion(od); - }); - }); - - - unittest.group("obj-schema-RegionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildRegionsListResponse(); - var od = new api.RegionsListResponse.fromJson(o.toJson()); - checkRegionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-RemarketingList", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingList(); - var od = new api.RemarketingList.fromJson(o.toJson()); - checkRemarketingList(od); - }); - }); - - - unittest.group("obj-schema-RemarketingListShare", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingListShare(); - var od = new api.RemarketingListShare.fromJson(o.toJson()); - checkRemarketingListShare(od); - }); - }); - - - unittest.group("obj-schema-RemarketingListsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildRemarketingListsListResponse(); - var od = new api.RemarketingListsListResponse.fromJson(o.toJson()); - checkRemarketingListsListResponse(od); - }); - }); - - - unittest.group("obj-schema-ReportCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportCriteria(); - var od = new api.ReportCriteria.fromJson(o.toJson()); - checkReportCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportCrossDimensionReachCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportCrossDimensionReachCriteria(); - var od = new api.ReportCrossDimensionReachCriteria.fromJson(o.toJson()); - checkReportCrossDimensionReachCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportDelivery", () { - unittest.test("to-json--from-json", () { - var o = buildReportDelivery(); - var od = new api.ReportDelivery.fromJson(o.toJson()); - checkReportDelivery(od); - }); - }); - - - unittest.group("obj-schema-ReportFloodlightCriteriaReportProperties", () { - unittest.test("to-json--from-json", () { - var o = buildReportFloodlightCriteriaReportProperties(); - var od = new api.ReportFloodlightCriteriaReportProperties.fromJson(o.toJson()); - checkReportFloodlightCriteriaReportProperties(od); - }); - }); - - - unittest.group("obj-schema-ReportFloodlightCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportFloodlightCriteria(); - var od = new api.ReportFloodlightCriteria.fromJson(o.toJson()); - checkReportFloodlightCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportPathToConversionCriteriaReportProperties", () { - unittest.test("to-json--from-json", () { - var o = buildReportPathToConversionCriteriaReportProperties(); - var od = new api.ReportPathToConversionCriteriaReportProperties.fromJson(o.toJson()); - checkReportPathToConversionCriteriaReportProperties(od); - }); - }); - - - unittest.group("obj-schema-ReportPathToConversionCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportPathToConversionCriteria(); - var od = new api.ReportPathToConversionCriteria.fromJson(o.toJson()); - checkReportPathToConversionCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportReachCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildReportReachCriteria(); - var od = new api.ReportReachCriteria.fromJson(o.toJson()); - checkReportReachCriteria(od); - }); - }); - - - unittest.group("obj-schema-ReportSchedule", () { - unittest.test("to-json--from-json", () { - var o = buildReportSchedule(); - var od = new api.ReportSchedule.fromJson(o.toJson()); - checkReportSchedule(od); - }); - }); - - - unittest.group("obj-schema-Report", () { - unittest.test("to-json--from-json", () { - var o = buildReport(); - var od = new api.Report.fromJson(o.toJson()); - checkReport(od); - }); - }); - - - unittest.group("obj-schema-ReportCompatibleFields", () { - unittest.test("to-json--from-json", () { - var o = buildReportCompatibleFields(); - var od = new api.ReportCompatibleFields.fromJson(o.toJson()); - checkReportCompatibleFields(od); - }); - }); - - - unittest.group("obj-schema-ReportList", () { - unittest.test("to-json--from-json", () { - var o = buildReportList(); - var od = new api.ReportList.fromJson(o.toJson()); - checkReportList(od); - }); - }); - - - unittest.group("obj-schema-ReportsConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildReportsConfiguration(); - var od = new api.ReportsConfiguration.fromJson(o.toJson()); - checkReportsConfiguration(od); - }); - }); - - - unittest.group("obj-schema-RichMediaExitOverride", () { - unittest.test("to-json--from-json", () { - var o = buildRichMediaExitOverride(); - var od = new api.RichMediaExitOverride.fromJson(o.toJson()); - checkRichMediaExitOverride(od); - }); - }); - - - unittest.group("obj-schema-Site", () { - unittest.test("to-json--from-json", () { - var o = buildSite(); - var od = new api.Site.fromJson(o.toJson()); - checkSite(od); - }); - }); - - - unittest.group("obj-schema-SiteContact", () { - unittest.test("to-json--from-json", () { - var o = buildSiteContact(); - var od = new api.SiteContact.fromJson(o.toJson()); - checkSiteContact(od); - }); - }); - - - unittest.group("obj-schema-SiteSettings", () { - unittest.test("to-json--from-json", () { - var o = buildSiteSettings(); - var od = new api.SiteSettings.fromJson(o.toJson()); - checkSiteSettings(od); - }); - }); - - - unittest.group("obj-schema-SitesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSitesListResponse(); - var od = new api.SitesListResponse.fromJson(o.toJson()); - checkSitesListResponse(od); - }); - }); - - - unittest.group("obj-schema-Size", () { - unittest.test("to-json--from-json", () { - var o = buildSize(); - var od = new api.Size.fromJson(o.toJson()); - checkSize(od); - }); - }); - - - unittest.group("obj-schema-SizesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSizesListResponse(); - var od = new api.SizesListResponse.fromJson(o.toJson()); - checkSizesListResponse(od); - }); - }); - - - unittest.group("obj-schema-SortedDimension", () { - unittest.test("to-json--from-json", () { - var o = buildSortedDimension(); - var od = new api.SortedDimension.fromJson(o.toJson()); - checkSortedDimension(od); - }); - }); - - - unittest.group("obj-schema-Subaccount", () { - unittest.test("to-json--from-json", () { - var o = buildSubaccount(); - var od = new api.Subaccount.fromJson(o.toJson()); - checkSubaccount(od); - }); - }); - - - unittest.group("obj-schema-SubaccountsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSubaccountsListResponse(); - var od = new api.SubaccountsListResponse.fromJson(o.toJson()); - checkSubaccountsListResponse(od); - }); - }); - - - unittest.group("obj-schema-TagData", () { - unittest.test("to-json--from-json", () { - var o = buildTagData(); - var od = new api.TagData.fromJson(o.toJson()); - checkTagData(od); - }); - }); - - - unittest.group("obj-schema-TagSetting", () { - unittest.test("to-json--from-json", () { - var o = buildTagSetting(); - var od = new api.TagSetting.fromJson(o.toJson()); - checkTagSetting(od); - }); - }); - - - unittest.group("obj-schema-TagSettings", () { - unittest.test("to-json--from-json", () { - var o = buildTagSettings(); - var od = new api.TagSettings.fromJson(o.toJson()); - checkTagSettings(od); - }); - }); - - - unittest.group("obj-schema-TargetWindow", () { - unittest.test("to-json--from-json", () { - var o = buildTargetWindow(); - var od = new api.TargetWindow.fromJson(o.toJson()); - checkTargetWindow(od); - }); - }); - - - unittest.group("obj-schema-TargetableRemarketingList", () { - unittest.test("to-json--from-json", () { - var o = buildTargetableRemarketingList(); - var od = new api.TargetableRemarketingList.fromJson(o.toJson()); - checkTargetableRemarketingList(od); - }); - }); - - - unittest.group("obj-schema-TargetableRemarketingListsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildTargetableRemarketingListsListResponse(); - var od = new api.TargetableRemarketingListsListResponse.fromJson(o.toJson()); - checkTargetableRemarketingListsListResponse(od); - }); - }); - - - unittest.group("obj-schema-TechnologyTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildTechnologyTargeting(); - var od = new api.TechnologyTargeting.fromJson(o.toJson()); - checkTechnologyTargeting(od); - }); - }); - - - unittest.group("obj-schema-ThirdPartyAuthenticationToken", () { - unittest.test("to-json--from-json", () { - var o = buildThirdPartyAuthenticationToken(); - var od = new api.ThirdPartyAuthenticationToken.fromJson(o.toJson()); - checkThirdPartyAuthenticationToken(od); - }); - }); - - - unittest.group("obj-schema-ThirdPartyTrackingUrl", () { - unittest.test("to-json--from-json", () { - var o = buildThirdPartyTrackingUrl(); - var od = new api.ThirdPartyTrackingUrl.fromJson(o.toJson()); - checkThirdPartyTrackingUrl(od); - }); - }); - - - unittest.group("obj-schema-UserDefinedVariableConfiguration", () { - unittest.test("to-json--from-json", () { - var o = buildUserDefinedVariableConfiguration(); - var od = new api.UserDefinedVariableConfiguration.fromJson(o.toJson()); - checkUserDefinedVariableConfiguration(od); - }); - }); - - - unittest.group("obj-schema-UserProfile", () { - unittest.test("to-json--from-json", () { - var o = buildUserProfile(); - var od = new api.UserProfile.fromJson(o.toJson()); - checkUserProfile(od); - }); - }); - - - unittest.group("obj-schema-UserProfileList", () { - unittest.test("to-json--from-json", () { - var o = buildUserProfileList(); - var od = new api.UserProfileList.fromJson(o.toJson()); - checkUserProfileList(od); - }); - }); - - - unittest.group("obj-schema-UserRole", () { - unittest.test("to-json--from-json", () { - var o = buildUserRole(); - var od = new api.UserRole.fromJson(o.toJson()); - checkUserRole(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermission", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermission(); - var od = new api.UserRolePermission.fromJson(o.toJson()); - checkUserRolePermission(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionGroup", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionGroup(); - var od = new api.UserRolePermissionGroup.fromJson(o.toJson()); - checkUserRolePermissionGroup(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionGroupsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionGroupsListResponse(); - var od = new api.UserRolePermissionGroupsListResponse.fromJson(o.toJson()); - checkUserRolePermissionGroupsListResponse(od); - }); - }); - - - unittest.group("obj-schema-UserRolePermissionsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolePermissionsListResponse(); - var od = new api.UserRolePermissionsListResponse.fromJson(o.toJson()); - checkUserRolePermissionsListResponse(od); - }); - }); - - - unittest.group("obj-schema-UserRolesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildUserRolesListResponse(); - var od = new api.UserRolesListResponse.fromJson(o.toJson()); - checkUserRolesListResponse(od); - }); - }); - - - unittest.group("resource-AccountActiveAdSummariesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock).accountActiveAdSummaries; - var arg_profileId = "foo"; - var arg_summaryAccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountActiveAdSummaries/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/accountActiveAdSummaries/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_summaryAccountId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountActiveAdSummary()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_summaryAccountId).then(unittest.expectAsync(((api.AccountActiveAdSummary response) { - checkAccountActiveAdSummary(response); - }))); - }); - - }); - - - unittest.group("resource-AccountPermissionGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock).accountPermissionGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissionGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/accountPermissionGroups/")); - pathOffset += 25; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPermissionGroup response) { - checkAccountPermissionGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock).accountPermissionGroups; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissionGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/accountPermissionGroups")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionGroupsListResponse response) { - checkAccountPermissionGroupsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-AccountPermissionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).accountPermissions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountPermissions/")); - pathOffset += 20; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermission()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPermission response) { - checkAccountPermission(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).accountPermissions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountPermissions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/accountPermissions")); - pathOffset += 19; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountPermissionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionsListResponse response) { - checkAccountPermissionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-AccountUserProfilesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/accountUserProfiles/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed373(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - var arg_userRoleId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - unittest.expect(queryMap["userRoleId"].first, unittest.equals(arg_userRoleId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfilesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, userRoleId: arg_userRoleId).then(unittest.expectAsync(((api.AccountUserProfilesListResponse response) { - checkAccountUserProfilesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; - var arg_request = buildAccountUserProfile(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AccountUserProfile.fromJson(json); - checkAccountUserProfile(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accountUserProfiles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/accountUserProfiles")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.AccountUserProfile response) { - checkAccountUserProfile(response); - }))); - }); - - }); - - - unittest.group("resource-AccountsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/accounts/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed374(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccountsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.AccountsListResponse response) { - checkAccountsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_request = buildAccount(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Account.fromJson(json); - checkAccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; - var arg_request = buildAccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Account.fromJson(json); - checkAccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/accounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/accounts")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Account response) { - checkAccount(response); - }))); - }); - - }); - - - unittest.group("resource-AdsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/ads/")); - pathOffset += 5; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_profileId = "foo"; - var arg_active = true; - var arg_advertiserId = "foo"; - var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed375(); - var arg_campaignIds = buildUnnamed376(); - var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed377(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed378(); - var arg_creativeType = "foo"; - var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed379(); - var arg_landingPageIds = buildUnnamed380(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed381(); - var arg_remarketingListIds = buildUnnamed382(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed383(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_sslCompliant = true; - var arg_sslRequired = true; - var arg_type = buildUnnamed384(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["audienceSegmentIds"], unittest.equals(arg_audienceSegmentIds)); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["compatibility"].first, unittest.equals(arg_compatibility)); - unittest.expect(queryMap["creativeIds"], unittest.equals(arg_creativeIds)); - unittest.expect(queryMap["creativeOptimizationConfigurationIds"], unittest.equals(arg_creativeOptimizationConfigurationIds)); - unittest.expect(queryMap["creativeType"].first, unittest.equals(arg_creativeType)); - unittest.expect(queryMap["dynamicClickTracker"].first, unittest.equals("$arg_dynamicClickTracker")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["landingPageIds"], unittest.equals(arg_landingPageIds)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["overriddenEventTagId"].first, unittest.equals(arg_overriddenEventTagId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds)); - unittest.expect(queryMap["remarketingListIds"], unittest.equals(arg_remarketingListIds)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["sslCompliant"].first, unittest.equals("$arg_sslCompliant")); - unittest.expect(queryMap["sslRequired"].first, unittest.equals("$arg_sslRequired")); - unittest.expect(queryMap["type"], unittest.equals(arg_type)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignIds: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeIds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationIds, creativeType: arg_creativeType, dynamicClickTracker: arg_dynamicClickTracker, ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placementIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, type: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) { - checkAdsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdsResourceApi res = new api.DfareportingApi(mock).ads; - var arg_request = buildAd(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Ad.fromJson(json); - checkAd(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/ads", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/ads")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAd()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { - checkAd(response); - }))); - }); - - }); - - - unittest.group("resource-AdvertiserGroupsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/advertiserGroups/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/advertiserGroups/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed385(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.AdvertiserGroupsListResponse response) { - checkAdvertiserGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; - var arg_request = buildAdvertiserGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.AdvertiserGroup.fromJson(json); - checkAdvertiserGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertiserGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/advertiserGroups")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiserGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.AdvertiserGroup response) { - checkAdvertiserGroup(response); - }))); - }); - - }); - - - unittest.group("resource-AdvertisersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/advertisers/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed386(); - var arg_floodlightConfigurationIds = buildUnnamed387(); - var arg_ids = buildUnnamed388(); - var arg_includeAdvertisersWithoutGroupsOnly = true; - var arg_maxResults = 42; - var arg_onlyParent = true; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_status = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserGroupIds"], unittest.equals(arg_advertiserGroupIds)); - unittest.expect(queryMap["floodlightConfigurationIds"], unittest.equals(arg_floodlightConfigurationIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["includeAdvertisersWithoutGroupsOnly"].first, unittest.equals("$arg_includeAdvertisersWithoutGroupsOnly")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["onlyParent"].first, unittest.equals("$arg_onlyParent")); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertisersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, floodlightConfigurationIds: arg_floodlightConfigurationIds, ids: arg_ids, includeAdvertisersWithoutGroupsOnly: arg_includeAdvertisersWithoutGroupsOnly, maxResults: arg_maxResults, onlyParent: arg_onlyParent, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, status: arg_status, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.AdvertisersListResponse response) { - checkAdvertisersListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; - var arg_request = buildAdvertiser(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Advertiser.fromJson(json); - checkAdvertiser(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/advertisers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/advertisers")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildAdvertiser()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Advertiser response) { - checkAdvertiser(response); - }))); - }); - - }); - - - unittest.group("resource-BrowsersResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/browsers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/browsers")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildBrowsersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.BrowsersListResponse response) { - checkBrowsersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CampaignCreativeAssociationsResourceApi", () { - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi(mock).campaignCreativeAssociations; - var arg_request = buildCampaignCreativeAssociation(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CampaignCreativeAssociation.fromJson(json); - checkCampaignCreativeAssociation(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/campaignCreativeAssociations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.equals("/campaignCreativeAssociations")); - pathOffset += 29; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignCreativeAssociation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.CampaignCreativeAssociation response) { - checkCampaignCreativeAssociation(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi(mock).campaignCreativeAssociations; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/campaignCreativeAssociations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.equals("/campaignCreativeAssociations")); - pathOffset += 29; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignCreativeAssociationsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_campaignId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CampaignCreativeAssociationsListResponse response) { - checkCampaignCreativeAssociationsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CampaignsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - var arg_defaultLandingPageName = "foo"; - var arg_defaultLandingPageUrl = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["defaultLandingPageName"].first, unittest.equals(arg_defaultLandingPageName)); - unittest.expect(queryMap["defaultLandingPageUrl"].first, unittest.equals(arg_defaultLandingPageUrl)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_defaultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed389(); - var arg_advertiserIds = buildUnnamed390(); - var arg_archived = true; - var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed391(); - var arg_ids = buildUnnamed392(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserGroupIds"], unittest.equals(arg_advertiserGroupIds)); - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["atLeastOneOptimizationActivity"].first, unittest.equals("$arg_atLeastOneOptimizationActivity")); - unittest.expect(queryMap["excludedIds"], unittest.equals(arg_excludedIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["overriddenEventTagId"].first, unittest.equals(arg_overriddenEventTagId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaignsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, advertiserIds: arg_advertiserIds, archived: arg_archived, atLeastOneOptimizationActivity: arg_atLeastOneOptimizationActivity, excludedIds: arg_excludedIds, ids: arg_ids, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.CampaignsListResponse response) { - checkCampaignsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; - var arg_request = buildCampaign(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Campaign.fromJson(json); - checkCampaign(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/campaigns")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCampaign()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Campaign response) { - checkCampaign(response); - }))); - }); - - }); - - - unittest.group("resource-ChangeLogsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/changeLogs/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/changeLogs/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildChangeLog()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ChangeLog response) { - checkChangeLog(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; - var arg_profileId = "foo"; - var arg_action = "foo"; - var arg_ids = buildUnnamed393(); - var arg_maxChangeTime = "foo"; - var arg_maxResults = 42; - var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed394(); - var arg_objectType = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed395(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/changeLogs", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/changeLogs")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxChangeTime"].first, unittest.equals(arg_maxChangeTime)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["minChangeTime"].first, unittest.equals(arg_minChangeTime)); - unittest.expect(queryMap["objectIds"], unittest.equals(arg_objectIds)); - unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["userProfileIds"], unittest.equals(arg_userProfileIds)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildChangeLogsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, action: arg_action, ids: arg_ids, maxChangeTime: arg_maxChangeTime, maxResults: arg_maxResults, minChangeTime: arg_minChangeTime, objectIds: arg_objectIds, objectType: arg_objectType, pageToken: arg_pageToken, searchString: arg_searchString, userProfileIds: arg_userProfileIds).then(unittest.expectAsync(((api.ChangeLogsListResponse response) { - checkChangeLogsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CitiesResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; - var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed396(); - var arg_dartIds = buildUnnamed397(); - var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed398(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/cities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/cities")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["countryDartIds"], unittest.equals(arg_countryDartIds)); - unittest.expect(queryMap["dartIds"], unittest.equals(arg_dartIds)); - unittest.expect(queryMap["namePrefix"].first, unittest.equals(arg_namePrefix)); - unittest.expect(queryMap["regionDartIds"], unittest.equals(arg_regionDartIds)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCitiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_dartIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unittest.expectAsync(((api.CitiesListResponse response) { - checkCitiesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ConnectionTypesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connectionTypes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/connectionTypes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/connectionTypes/")); - pathOffset += 17; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildConnectionType()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ConnectionType response) { - checkConnectionType(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connectionTypes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/connectionTypes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/connectionTypes")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildConnectionTypesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.ConnectionTypesListResponse response) { - checkConnectionTypesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ContentCategoriesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/contentCategories/")); - pathOffset += 19; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.equals("/contentCategories/")); - pathOffset += 19; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed399(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategoriesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ContentCategoriesListResponse response) { - checkContentCategoriesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; - var arg_request = buildContentCategory(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.ContentCategory.fromJson(json); - checkContentCategory(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/contentCategories", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/contentCategories")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildContentCategory()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.ContentCategory response) { - checkContentCategory(response); - }))); - }); - - }); - - - unittest.group("resource-CountriesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; - var arg_profileId = "foo"; - var arg_dartId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/countries/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/countries/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_dartId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCountry()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Country response) { - checkCountry(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/countries", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/countries")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCountriesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.CountriesListResponse response) { - checkCountriesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeAssetsResourceApi", () { - unittest.test("method--insert", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.CreativeAssetsResourceApi res = new api.DfareportingApi(mock).creativeAssets; - var arg_request = buildCreativeAssetMetadata(); - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeAssetMetadata.fromJson(json); - checkCreativeAssetMetadata(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeAssets/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeAssets/")); - pathOffset += 16; - index = path.indexOf("/creativeAssets", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_advertiserId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeAssets")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeAssetMetadata()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_advertiserId).then(unittest.expectAsync(((api.CreativeAssetMetadata response) { - checkCreativeAssetMetadata(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeFieldValuesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/creativeFieldValues/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/creativeFieldValues/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_creativeFieldId).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed400(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValuesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_creativeFieldId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeFieldValuesListResponse response) { - checkCreativeFieldValuesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; - var arg_request = buildCreativeFieldValue(); - var arg_profileId = "foo"; - var arg_creativeFieldId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeFieldValue.fromJson(json); - checkCreativeFieldValue(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - index = path.indexOf("/creativeFieldValues", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_creativeFieldId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/creativeFieldValues")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldValue()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_creativeFieldId).then(unittest.expectAsync(((api.CreativeFieldValue response) { - checkCreativeFieldValue(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeFieldsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeFields/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed401(); - var arg_ids = buildUnnamed402(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeFieldsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeFieldsListResponse response) { - checkCreativeFieldsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; - var arg_request = buildCreativeField(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeField.fromJson(json); - checkCreativeField(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeFields", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeFields")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeField()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeField response) { - checkCreativeField(response); - }))); - }); - - }); - - - unittest.group("resource-CreativeGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/creativeGroups/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed403(); - var arg_groupNumber = 42; - var arg_ids = buildUnnamed404(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(core.int.parse(queryMap["groupNumber"].first), unittest.equals(arg_groupNumber)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, groupNumber: arg_groupNumber, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.CreativeGroupsListResponse response) { - checkCreativeGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; - var arg_request = buildCreativeGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.CreativeGroup.fromJson(json); - checkCreativeGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creativeGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/creativeGroups")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativeGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.CreativeGroup response) { - checkCreativeGroup(response); - }))); - }); - - }); - - - unittest.group("resource-CreativesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/creatives/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_profileId = "foo"; - var arg_active = true; - var arg_advertiserId = "foo"; - var arg_archived = true; - var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed405(); - var arg_creativeFieldIds = buildUnnamed406(); - var arg_ids = buildUnnamed407(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed408(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed409(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed410(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["companionCreativeIds"], unittest.equals(arg_companionCreativeIds)); - unittest.expect(queryMap["creativeFieldIds"], unittest.equals(arg_creativeFieldIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["renderingIds"], unittest.equals(arg_renderingIds)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["studioCreativeId"].first, unittest.equals(arg_studioCreativeId)); - unittest.expect(queryMap["types"], unittest.equals(arg_types)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreativesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId, archived: arg_archived, campaignId: arg_campaignId, companionCreativeIds: arg_companionCreativeIds, creativeFieldIds: arg_creativeFieldIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, renderingIds: arg_renderingIds, searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, studioCreativeId: arg_studioCreativeId, types: arg_types).then(unittest.expectAsync(((api.CreativesListResponse response) { - checkCreativesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; - var arg_request = buildCreative(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Creative.fromJson(json); - checkCreative(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/creatives", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/creatives")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCreative()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Creative response) { - checkCreative(response); - }))); - }); - - }); - - - unittest.group("resource-DimensionValuesResourceApi", () { - unittest.test("method--query", () { - - var mock = new HttpServerMock(); - api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensionValues; - var arg_request = buildDimensionValueRequest(); - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.DimensionValueRequest.fromJson(json); - checkDimensionValueRequest(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/dimensionvalues/query", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/dimensionvalues/query")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDimensionValueList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) { - checkDimensionValueList(response); - }))); - }); - - }); - - - unittest.group("resource-DirectorySiteContactsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySiteContacts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/directorySiteContacts/")); - pathOffset += 23; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySiteContact()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySiteContact response) { - checkDirectorySiteContact(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; - var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed411(); - var arg_ids = buildUnnamed412(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySiteContacts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/directorySiteContacts")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySiteContactsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.DirectorySiteContactsListResponse response) { - checkDirectorySiteContactsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-DirectorySitesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/directorySites/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySite response) { - checkDirectorySite(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_request = buildDirectorySite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.DirectorySite.fromJson(json); - checkDirectorySite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/directorySites")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.DirectorySite response) { - checkDirectorySite(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).directorySites; - var arg_profileId = "foo"; - var arg_acceptsInStreamVideoPlacements = true; - var arg_acceptsInterstitialPlacements = true; - var arg_acceptsPublisherPaidPlacements = true; - var arg_active = true; - var arg_countryId = "foo"; - var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed413(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_parentId = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/directorySites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/directorySites")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["acceptsInStreamVideoPlacements"].first, unittest.equals("$arg_acceptsInStreamVideoPlacements")); - unittest.expect(queryMap["acceptsInterstitialPlacements"].first, unittest.equals("$arg_acceptsInterstitialPlacements")); - unittest.expect(queryMap["acceptsPublisherPaidPlacements"].first, unittest.equals("$arg_acceptsPublisherPaidPlacements")); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["countryId"].first, unittest.equals(arg_countryId)); - unittest.expect(queryMap["dfp_network_code"].first, unittest.equals(arg_dfpNetworkCode)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildDirectorySitesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStreamVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, active: arg_active, countryId: arg_countryId, dfpNetworkCode: arg_dfpNetworkCode, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_parentId, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.DirectorySitesListResponse response) { - checkDirectorySitesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-EventTagsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/eventTags/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/eventTags/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_profileId = "foo"; - var arg_adId = "foo"; - var arg_advertiserId = "foo"; - var arg_campaignId = "foo"; - var arg_definitionsOnly = true; - var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed414(); - var arg_ids = buildUnnamed415(); - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["adId"].first, unittest.equals(arg_adId)); - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["definitionsOnly"].first, unittest.equals("$arg_definitionsOnly")); - unittest.expect(queryMap["enabled"].first, unittest.equals("$arg_enabled")); - unittest.expect(queryMap["eventTagTypes"], unittest.equals(arg_eventTagTypes)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTagsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, adId: arg_adId, advertiserId: arg_advertiserId, campaignId: arg_campaignId, definitionsOnly: arg_definitionsOnly, enabled: arg_enabled, eventTagTypes: arg_eventTagTypes, ids: arg_ids, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.EventTagsListResponse response) { - checkEventTagsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; - var arg_request = buildEventTag(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.EventTag.fromJson(json); - checkEventTag(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/eventTags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/eventTags")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildEventTag()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.EventTag response) { - checkEventTag(response); - }))); - }); - - }); - - - unittest.group("resource-FilesResourceApi", () { - unittest.test("method--get", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.FilesResourceApi res = new api.DfareportingApi(mock).files; - var arg_reportId = "foo"; - var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/")); - pathOffset += 8; - index = path.indexOf("/files/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/files/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_fileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FilesResourceApi res = new api.DfareportingApi(mock).files; - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_scope = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/files", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/files")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.FileList response) { - checkFileList(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightActivitiesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/floodlightActivities/")); - pathOffset += 22; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--generatetag", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_floodlightActivityId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/generatetag", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 33), unittest.equals("/floodlightActivities/generatetag")); - pathOffset += 33; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(arg_floodlightActivityId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivitiesGenerateTagResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.generatetag(arg_profileId, floodlightActivityId: arg_floodlightActivityId).then(unittest.expectAsync(((api.FloodlightActivitiesGenerateTagResponse response) { - checkFloodlightActivitiesGenerateTagResponse(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/floodlightActivities/")); - pathOffset += 22; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed416(); - var arg_floodlightActivityGroupName = "foo"; - var arg_floodlightActivityGroupTagString = "foo"; - var arg_floodlightActivityGroupType = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed417(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_tagString = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["floodlightActivityGroupIds"], unittest.equals(arg_floodlightActivityGroupIds)); - unittest.expect(queryMap["floodlightActivityGroupName"].first, unittest.equals(arg_floodlightActivityGroupName)); - unittest.expect(queryMap["floodlightActivityGroupTagString"].first, unittest.equals(arg_floodlightActivityGroupTagString)); - unittest.expect(queryMap["floodlightActivityGroupType"].first, unittest.equals(arg_floodlightActivityGroupType)); - unittest.expect(queryMap["floodlightConfigurationId"].first, unittest.equals(arg_floodlightConfigurationId)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["tagString"].first, unittest.equals(arg_tagString)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivitiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightActivityGroupIds: arg_floodlightActivityGroupIds, floodlightActivityGroupName: arg_floodlightActivityGroupName, floodlightActivityGroupTagString: arg_floodlightActivityGroupTagString, floodlightActivityGroupType: arg_floodlightActivityGroupType, floodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, tagString: arg_tagString).then(unittest.expectAsync(((api.FloodlightActivitiesListResponse response) { - checkFloodlightActivitiesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; - var arg_request = buildFloodlightActivity(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivity.fromJson(json); - checkFloodlightActivity(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivities", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/floodlightActivities")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivity response) { - checkFloodlightActivity(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightActivityGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/floodlightActivityGroups/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed418(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["floodlightConfigurationId"].first, unittest.equals(arg_floodlightConfigurationId)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api.FloodlightActivityGroupsListResponse response) { - checkFloodlightActivityGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; - var arg_request = buildFloodlightActivityGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightActivityGroup.fromJson(json); - checkFloodlightActivityGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightActivityGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightActivityGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightActivityGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightActivityGroup response) { - checkFloodlightActivityGroup(response); - }))); - }); - - }); - - - unittest.group("resource-FloodlightConfigurationsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/floodlightConfigurations/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed419(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfigurationsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.FloodlightConfigurationsListResponse response) { - checkFloodlightConfigurationsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_request = buildFloodlightConfiguration(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightConfiguration.fromJson(json); - checkFloodlightConfiguration(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; - var arg_request = buildFloodlightConfiguration(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.FloodlightConfiguration.fromJson(json); - checkFloodlightConfiguration(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/floodlightConfigurations", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/floodlightConfigurations")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFloodlightConfiguration()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.FloodlightConfiguration response) { - checkFloodlightConfiguration(response); - }))); - }); - - }); - - - unittest.group("resource-InventoryItemsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/inventoryItems/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/inventoryItems/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildInventoryItem()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.InventoryItem response) { - checkInventoryItem(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_ids = buildUnnamed420(); - var arg_inPlan = true; - var arg_maxResults = 42; - var arg_orderId = buildUnnamed421(); - var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed422(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_type = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/inventoryItems", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/inventoryItems")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["inPlan"].first, unittest.equals("$arg_inPlan")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildInventoryItemsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, ids: arg_ids, inPlan: arg_inPlan, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api.InventoryItemsListResponse response) { - checkInventoryItemsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-LandingPagesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/landingPages/")); - pathOffset += 14; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/landingPages/")); - pathOffset += 14; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPagesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPagesListResponse response) { - checkLandingPagesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPages; - var arg_request = buildLandingPage(); - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.LandingPage.fromJson(json); - checkLandingPage(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/campaigns/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/campaigns/")); - pathOffset += 11; - index = path.indexOf("/landingPages", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_campaignId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/landingPages")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildLandingPage()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.LandingPage response) { - checkLandingPage(response); - }))); - }); - - }); - - - unittest.group("resource-MetrosResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/metros", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/metros")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMetrosListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse response) { - checkMetrosListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-MobileCarriersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/mobileCarriers/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/mobileCarriers/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMobileCarrier()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.MobileCarrier response) { - checkMobileCarrier(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCarriers; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/mobileCarriers", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/mobileCarriers")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildMobileCarriersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersListResponse response) { - checkMobileCarriersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OperatingSystemVersionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystemVersions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/operatingSystemVersions/")); - pathOffset += 25; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemVersion()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.OperatingSystemVersion response) { - checkOperatingSystemVersion(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock).operatingSystemVersions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystemVersions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/operatingSystemVersions")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVersionsListResponse response) { - checkOperatingSystemVersionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OperatingSystemsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems; - var arg_profileId = "foo"; - var arg_dartId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystems/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/operatingSystems/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_dartId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystem()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.OperatingSystem response) { - checkOperatingSystem(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operatingSystems; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/operatingSystems", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/operatingSystems")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsListResponse response) { - checkOperatingSystemsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OrderDocumentsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orderDocuments/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/orderDocuments/")); - pathOffset += 16; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrderDocument()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.OrderDocument response) { - checkOrderDocument(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OrderDocumentsResourceApi res = new api.DfareportingApi(mock).orderDocuments; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_approved = true; - var arg_ids = buildUnnamed423(); - var arg_maxResults = 42; - var arg_orderId = buildUnnamed424(); - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed425(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orderDocuments", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/orderDocuments")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approved")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrderDocumentsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, approved: arg_approved, ids: arg_ids, maxResults: arg_maxResults, orderId: arg_orderId, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrderDocumentsListResponse response) { - checkOrderDocumentsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-OrdersResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orders/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/orders/")); - pathOffset += 8; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrder()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_projectId, arg_id).then(unittest.expectAsync(((api.Order response) { - checkOrder(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; - var arg_profileId = "foo"; - var arg_projectId = "foo"; - var arg_ids = buildUnnamed426(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed427(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - index = path.indexOf("/orders", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_projectId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/orders")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildOrdersListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_projectId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, siteId: arg_siteId, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.OrdersListResponse response) { - checkOrdersListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/placementGroups/")); - pathOffset += 17; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed428(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed429(); - var arg_contentCategoryIds = buildUnnamed430(); - var arg_directorySiteIds = buildUnnamed431(); - var arg_ids = buildUnnamed432(); - var arg_maxEndDate = "foo"; - var arg_maxResults = 42; - var arg_maxStartDate = "foo"; - var arg_minEndDate = "foo"; - var arg_minStartDate = "foo"; - var arg_pageToken = "foo"; - var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed433(); - var arg_pricingTypes = buildUnnamed434(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed435(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate)); - unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); - unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["placementGroupType"].first, unittest.equals(arg_placementGroupType)); - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds)); - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) { - checkPlacementGroupsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; - var arg_request = buildPlacementGroup(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementGroup.fromJson(json); - checkPlacementGroup(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/placementGroups")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementGroup response) { - checkPlacementGroup(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementStrategiesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/placementStrategies/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed436(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListResponse response) { - checkPlacementStrategiesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; - var arg_request = buildPlacementStrategy(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.PlacementStrategy.fromJson(json); - checkPlacementStrategy(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placementStrategies", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/placementStrategies")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementStrategy()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.PlacementStrategy response) { - checkPlacementStrategy(response); - }))); - }); - - }); - - - unittest.group("resource-PlacementsResourceApi", () { - unittest.test("method--generatetags", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed437(); - var arg_tagFormats = buildUnnamed438(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements/generatetags", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("/placements/generatetags")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementIds)); - unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.PlacementsGenerateTagsResponse response) { - checkPlacementsGenerateTagsResponse(response); - }))); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/placements/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed439(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed440(); - var arg_compatibilities = buildUnnamed441(); - var arg_contentCategoryIds = buildUnnamed442(); - var arg_directorySiteIds = buildUnnamed443(); - var arg_groupIds = buildUnnamed444(); - var arg_ids = buildUnnamed445(); - var arg_maxEndDate = "foo"; - var arg_maxResults = 42; - var arg_maxStartDate = "foo"; - var arg_minEndDate = "foo"; - var arg_minStartDate = "foo"; - var arg_pageToken = "foo"; - var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed446(); - var arg_pricingTypes = buildUnnamed447(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed448(); - var arg_sizeIds = buildUnnamed449(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["archived"].first, unittest.equals("$arg_archived")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["compatibilities"], unittest.equals(arg_compatibilities)); - unittest.expect(queryMap["contentCategoryIds"], unittest.equals(arg_contentCategoryIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate)); - unittest.expect(queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); - unittest.expect(queryMap["minStartDate"].first, unittest.equals(arg_minStartDate)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["paymentSource"].first, unittest.equals(arg_paymentSource)); - unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds)); - unittest.expect(queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); - unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacementsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_archived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, contentCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxEndDate: arg_maxEndDate, maxResults: arg_maxResults, maxStartDate: arg_maxStartDate, minEndDate: arg_minEndDate, minStartDate: arg_minStartDate, pageToken: arg_pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, siteIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) { - checkPlacementsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; - var arg_request = buildPlacement(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Placement.fromJson(json); - checkPlacement(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/placements", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/placements")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlacement()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Placement response) { - checkPlacement(response); - }))); - }); - - }); - - - unittest.group("resource-PlatformTypesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/platformTypes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/platformTypes/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlatformType()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlatformType response) { - checkPlatformType(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformTypes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/platformTypes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/platformTypes")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPlatformTypesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListResponse response) { - checkPlatformTypesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-PostalCodesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes; - var arg_profileId = "foo"; - var arg_code = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/postalCodes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/postalCodes/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_code")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPostalCode()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_code).then(unittest.expectAsync(((api.PostalCode response) { - checkPostalCode(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/postalCodes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/postalCodes")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildPostalCodesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListResponse response) { - checkPostalCodesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-ProjectsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/projects/")); - pathOffset += 10; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildProject()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Project response) { - checkProject(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; - var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed450(); - var arg_ids = buildUnnamed451(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/projects", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/projects")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildProjectsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ProjectsListResponse response) { - checkProjectsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-RegionsResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/regions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/regions")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRegionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListResponse response) { - checkRegionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-RemarketingListSharesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_profileId = "foo"; - var arg_remarketingListId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/remarketingListShares/")); - pathOffset += 23; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_remarketingListId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_request = buildRemarketingListShare(); - var arg_profileId = "foo"; - var arg_remarketingListId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingListShare.fromJson(json); - checkRemarketingListShare(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["remarketingListId"].first, unittest.equals(arg_remarketingListId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_remarketingListId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.RemarketingListSharesResourceApi res = new api.DfareportingApi(mock).remarketingListShares; - var arg_request = buildRemarketingListShare(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingListShare.fromJson(json); - checkRemarketingListShare(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingListShares", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("/remarketingListShares")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListShare()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingListShare response) { - checkRemarketingListShare(response); - }))); - }); - - }); - - - unittest.group("resource-RemarketingListsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/remarketingLists/")); - pathOffset += 18; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_active = true; - var arg_floodlightActivityId = "foo"; - var arg_maxResults = 42; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals(arg_floodlightActivityId)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingListsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_advertiserId, active: arg_active, floodlightActivityId: arg_floodlightActivityId, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.RemarketingListsListResponse response) { - checkRemarketingListsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.RemarketingListsResourceApi res = new api.DfareportingApi(mock).remarketingLists; - var arg_request = buildRemarketingList(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.RemarketingList.fromJson(json); - checkRemarketingList(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/remarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("/remarketingLists")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.RemarketingList response) { - checkRemarketingList(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/reports")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_scope = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/reports")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReportList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageToken, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.ReportList response) { - checkReportList(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - unittest.test("method--run", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_synchronous = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/run", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 4), unittest.equals("/run")); - pathOffset += 4; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_synchronous")); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; - var arg_request = buildReport(); - var arg_profileId = "foo"; - var arg_reportId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReport()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Report response) { - checkReport(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsCompatibleFieldsResourceApi", () { - unittest.test("method--query", () { - - var mock = new HttpServerMock(); - api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock).reports.compatibleFields; - var arg_request = buildReport(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Report.fromJson(json); - checkReport(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/compatiblefields/query", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.equals("/reports/compatiblefields/query")); - pathOffset += 31; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildCompatibleFields()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.CompatibleFields response) { - checkCompatibleFields(response); - }))); - }); - - }); - - - unittest.group("resource-ReportsFilesResourceApi", () { - unittest.test("method--get", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.files; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_fileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/files/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/files/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_fileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File response) { - checkFile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.files; - var arg_profileId = "foo"; - var arg_reportId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/reports/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/reports/")); - pathOffset += 9; - index = path.indexOf("/files", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_reportId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/files")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildFileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.FileList response) { - checkFileList(response); - }))); - }); - - }); - - - unittest.group("resource-SitesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/sites/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_profileId = "foo"; - var arg_acceptsInStreamVideoPlacements = true; - var arg_acceptsInterstitialPlacements = true; - var arg_acceptsPublisherPaidPlacements = true; - var arg_adWordsSite = true; - var arg_approved = true; - var arg_campaignIds = buildUnnamed452(); - var arg_directorySiteIds = buildUnnamed453(); - var arg_ids = buildUnnamed454(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - var arg_unmappedSite = true; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["acceptsInStreamVideoPlacements"].first, unittest.equals("$arg_acceptsInStreamVideoPlacements")); - unittest.expect(queryMap["acceptsInterstitialPlacements"].first, unittest.equals("$arg_acceptsInterstitialPlacements")); - unittest.expect(queryMap["acceptsPublisherPaidPlacements"].first, unittest.equals("$arg_acceptsPublisherPaidPlacements")); - unittest.expect(queryMap["adWordsSite"].first, unittest.equals("$arg_adWordsSite")); - unittest.expect(queryMap["approved"].first, unittest.equals("$arg_approved")); - unittest.expect(queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - unittest.expect(queryMap["directorySiteIds"], unittest.equals(arg_directorySiteIds)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - unittest.expect(queryMap["unmappedSite"].first, unittest.equals("$arg_unmappedSite")); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSitesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStreamVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, adWordsSite: arg_adWordsSite, approved: arg_approved, campaignIds: arg_campaignIds, directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, unmappedSite: arg_unmappedSite).then(unittest.expectAsync(((api.SitesListResponse response) { - checkSitesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.SitesResourceApi res = new api.DfareportingApi(mock).sites; - var arg_request = buildSite(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Site.fromJson(json); - checkSite(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sites", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sites")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSite()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Site response) { - checkSite(response); - }))); - }); - - }); - - - unittest.group("resource-SizesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/sizes/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSize()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Size response) { - checkSize(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_request = buildSize(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Size.fromJson(json); - checkSize(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sizes")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSize()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Size response) { - checkSize(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; - var arg_profileId = "foo"; - var arg_height = 42; - var arg_iabStandard = true; - var arg_ids = buildUnnamed455(); - var arg_width = 42; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/sizes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/sizes")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(core.int.parse(queryMap["height"].first), unittest.equals(arg_height)); - unittest.expect(queryMap["iabStandard"].first, unittest.equals("$arg_iabStandard")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["width"].first), unittest.equals(arg_width)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSizesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, height: arg_height, iabStandard: arg_iabStandard, ids: arg_ids, width: arg_width).then(unittest.expectAsync(((api.SizesListResponse response) { - checkSizesListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-SubaccountsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("/subaccounts/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed456(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccountsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.SubaccountsListResponse response) { - checkSubaccountsListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; - var arg_request = buildSubaccount(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.Subaccount.fromJson(json); - checkSubaccount(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/subaccounts", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("/subaccounts")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildSubaccount()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Subaccount response) { - checkSubaccount(response); - }))); - }); - - }); - - - unittest.group("resource-TargetableRemarketingListsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/targetableRemarketingLists/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("/targetableRemarketingLists/")); - pathOffset += 28; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildTargetableRemarketingList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetableRemarketingList response) { - checkTargetableRemarketingList(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.TargetableRemarketingListsResourceApi res = new api.DfareportingApi(mock).targetableRemarketingLists; - var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_active = true; - var arg_maxResults = 42; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/targetableRemarketingLists", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.equals("/targetableRemarketingLists")); - pathOffset += 27; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect(queryMap["active"].first, unittest.equals("$arg_active")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildTargetableRemarketingListsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, arg_advertiserId, active: arg_active, maxResults: arg_maxResults, name: arg_name, pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetableRemarketingListsListResponse response) { - checkTargetableRemarketingListsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserProfilesResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfiles; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserProfile()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile response) { - checkUserProfile(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfiles; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("userprofiles")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserProfileList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list().then(unittest.expectAsync(((api.UserProfileList response) { - checkUserProfileList(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolePermissionGroupsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock).userRolePermissionGroups; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissionGroups/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("/userRolePermissionGroups/")); - pathOffset += 26; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionGroup()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePermissionGroup response) { - checkUserRolePermissionGroup(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock).userRolePermissionGroups; - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissionGroups", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("/userRolePermissionGroups")); - pathOffset += 25; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionGroupsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId).then(unittest.expectAsync(((api.UserRolePermissionGroupsListResponse response) { - checkUserRolePermissionGroupsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolePermissionsResourceApi", () { - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissions/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("/userRolePermissions/")); - pathOffset += 21; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermission()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePermission response) { - checkUserRolePermission(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; - var arg_profileId = "foo"; - var arg_ids = buildUnnamed457(); - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRolePermissions", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("/userRolePermissions")); - pathOffset += 20; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolePermissionsListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.UserRolePermissionsListResponse response) { - checkUserRolePermissionsListResponse(response); - }))); - }); - - }); - - - unittest.group("resource-UserRolesResourceApi", () { - unittest.test("method--delete", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/userRoles/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); - }); - - unittest.test("method--get", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("/userRoles/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_id")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--insert", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_profileId = "foo"; - var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed458(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_subaccountId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["accountUserRoleOnly"].first, unittest.equals("$arg_accountUserRoleOnly")); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortField)); - unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRolesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_profileId, accountUserRoleOnly: arg_accountUserRoleOnly, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.UserRolesListResponse response) { - checkUserRolesListResponse(response); - }))); - }); - - unittest.test("method--patch", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - var arg_id = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - unittest.test("method--update", () { - - var mock = new HttpServerMock(); - api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; - var arg_request = buildUserRole(); - var arg_profileId = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.UserRole.fromJson(json); - checkUserRole(obj); - - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.4/")); - pathOffset += 18; - unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); - pathOffset += 13; - index = path.indexOf("/userRoles", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_profileId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/userRoles")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildUserRole()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.UserRole response) { - checkUserRole(response); - }))); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/dfareporting/v2_5_test.dart b/generated/googleapis/test/dfareporting/v2_5_test.dart index 750efef..decc221 100644 --- a/generated/googleapis/test/dfareporting/v2_5_test.dart +++ b/generated/googleapis/test/dfareporting/v2_5_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1543() { +buildUnnamed1296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1543(core.List<core.String> o) { +checkUnnamed1296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1544() { +buildUnnamed1297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1544(core.List<core.String> o) { +checkUnnamed1297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed1543(); + o.accountPermissionIds = buildUnnamed1296(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed1544(); + o.availablePermissionIds = buildUnnamed1297(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1543(o.accountPermissionIds); + checkUnnamed1296(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed1544(o.availablePermissionIds); + checkUnnamed1297(o.availablePermissionIds); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed1545() { +buildUnnamed1298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1545(core.List<core.String> o) { +checkUnnamed1298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed1545(); + o.accountProfiles = buildUnnamed1298(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed1545(o.accountProfiles); + checkUnnamed1298(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed1546() { +buildUnnamed1299() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed1546(core.List<api.AccountPermissionGroup> o) { +checkUnnamed1299(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed1546(); + o.accountPermissionGroups = buildUnnamed1299(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed1546(o.accountPermissionGroups); + checkUnnamed1299(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed1547() { +buildUnnamed1300() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed1547(core.List<api.AccountPermission> o) { +checkUnnamed1300(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed1547(); + o.accountPermissions = buildUnnamed1300(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed1547(o.accountPermissions); + checkUnnamed1300(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed1548() { +buildUnnamed1301() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed1548(core.List<api.AccountUserProfile> o) { +checkUnnamed1301(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed1548(); + o.accountUserProfiles = buildUnnamed1301(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed1548(o.accountUserProfiles); + checkUnnamed1301(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed1549() { +buildUnnamed1302() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1549(core.List<api.Account> o) { +checkUnnamed1302(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed1549(); + o.accounts = buildUnnamed1302(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed1549(o.accounts); + checkUnnamed1302(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed1550() { +buildUnnamed1303() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1550(core.List<api.DimensionValue> o) { +checkUnnamed1303(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1551() { +buildUnnamed1304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1551(core.List<core.String> o) { +checkUnnamed1304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed1550(); + o.filters = buildUnnamed1303(); o.kind = "foo"; - o.metricNames = buildUnnamed1551(); + o.metricNames = buildUnnamed1304(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed1550(o.filters); + checkUnnamed1303(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1551(o.metricNames); + checkUnnamed1304(o.metricNames); } buildCounterActivities--; } -buildUnnamed1552() { +buildUnnamed1305() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1552(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1305(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1553() { +buildUnnamed1306() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1553(core.List<api.EventTagOverride> o) { +checkUnnamed1306(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1554() { +buildUnnamed1307() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed1554(core.List<api.PlacementAssignment> o) { +checkUnnamed1307(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed1552(); + o.creativeGroupAssignments = buildUnnamed1305(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed1553(); + o.eventTagOverrides = buildUnnamed1306(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed1554(); + o.placementAssignments = buildUnnamed1307(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -564,14 +564,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed1552(o.creativeGroupAssignments); + checkUnnamed1305(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1553(o.eventTagOverrides); + checkUnnamed1306(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -579,7 +579,7 @@ unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1554(o.placementAssignments); + checkUnnamed1307(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed1555() { +buildUnnamed1308() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed1555(core.List<api.Ad> o) { +checkUnnamed1308(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -643,7 +643,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed1555(); + o.ads = buildUnnamed1308(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed1555(o.ads); + checkUnnamed1308(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed1556() { +buildUnnamed1309() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed1556(core.List<api.AdvertiserGroup> o) { +checkUnnamed1309(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -751,7 +751,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed1556(); + o.advertiserGroups = buildUnnamed1309(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed1556(o.advertiserGroups); + checkUnnamed1309(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed1557() { +buildUnnamed1310() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed1557(core.List<api.Advertiser> o) { +checkUnnamed1310(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -787,7 +787,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed1557(); + o.advertisers = buildUnnamed1310(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed1557(o.advertisers); + checkUnnamed1310(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed1558() { +buildUnnamed1311() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed1558(core.List<api.AudienceSegment> o) { +checkUnnamed1311(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -846,7 +846,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed1558(); + o.audienceSegments = buildUnnamed1311(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed1558(o.audienceSegments); + checkUnnamed1311(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed1559() { +buildUnnamed1312() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1559(core.List<api.Browser> o) { +checkUnnamed1312(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -911,7 +911,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed1559(); + o.browsers = buildUnnamed1312(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed1559(o.browsers); + checkUnnamed1312(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed1560() { +buildUnnamed1313() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed1560(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed1313(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed1561() { +buildUnnamed1314() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed1561(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed1314(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed1562() { +buildUnnamed1315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1562(core.List<core.String> o) { +checkUnnamed1315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1563() { +buildUnnamed1316() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1563(core.List<api.EventTagOverride> o) { +checkUnnamed1316(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1564() { +buildUnnamed1317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1564(core.List<core.String> o) { +checkUnnamed1317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -998,22 +998,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed1560(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed1313(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed1561(); + o.audienceSegmentGroups = buildUnnamed1314(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed1562(); + o.creativeGroupIds = buildUnnamed1315(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed1563(); + o.eventTagOverrides = buildUnnamed1316(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1024,7 +1024,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed1564(); + o.traffickerEmails = buildUnnamed1317(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1560(o.additionalCreativeOptimizationConfigurations); + checkUnnamed1313(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed1561(o.audienceSegmentGroups); + checkUnnamed1314(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.comscoreVceEnabled, unittest.isTrue); checkLastModifiedInfo(o.createInfo); - checkUnnamed1562(o.creativeGroupIds); + checkUnnamed1315(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1563(o.eventTagOverrides); + checkUnnamed1316(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1060,7 +1060,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1564(o.traffickerEmails); + checkUnnamed1317(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed1565() { +buildUnnamed1318() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed1565(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed1318(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1104,7 +1104,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed1565(); + o.campaignCreativeAssociations = buildUnnamed1318(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed1565(o.campaignCreativeAssociations); + checkUnnamed1318(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed1566() { +buildUnnamed1319() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed1566(core.List<api.Campaign> o) { +checkUnnamed1319(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1140,7 +1140,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed1566(); + o.campaigns = buildUnnamed1319(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed1566(o.campaigns); + checkUnnamed1319(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed1567() { +buildUnnamed1320() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed1567(core.List<api.ChangeLog> o) { +checkUnnamed1320(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1221,7 +1221,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed1567(); + o.changeLogs = buildUnnamed1320(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed1567(o.changeLogs); + checkUnnamed1320(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed1568() { +buildUnnamed1321() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1568(core.List<api.City> o) { +checkUnnamed1321(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1257,7 +1257,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed1568(); + o.cities = buildUnnamed1321(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed1568(o.cities); + checkUnnamed1321(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed1569() { +buildUnnamed1322() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1569(core.List<api.ConnectionType> o) { +checkUnnamed1322(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1468,7 +1468,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed1569(); + o.connectionTypes = buildUnnamed1322(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed1569(o.connectionTypes); + checkUnnamed1322(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed1570() { +buildUnnamed1323() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed1570(core.List<api.ContentCategory> o) { +checkUnnamed1323(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1502,7 +1502,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed1570(); + o.contentCategories = buildUnnamed1323(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed1570(o.contentCategories); + checkUnnamed1323(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed1571() { +buildUnnamed1324() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed1571(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed1324(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); @@ -1564,7 +1564,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed1571(); + o.customVariables = buildUnnamed1324(); o.encryptedUserId = "foo"; o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; @@ -1584,7 +1584,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed1571(o.customVariables); + checkUnnamed1324(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); @@ -1622,14 +1622,14 @@ buildCounterConversionError--; } -buildUnnamed1572() { +buildUnnamed1325() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed1572(core.List<api.ConversionError> o) { +checkUnnamed1325(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1641,7 +1641,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed1572(); + o.errors = buildUnnamed1325(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1652,20 +1652,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed1572(o.errors); + checkUnnamed1325(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed1573() { +buildUnnamed1326() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1573(core.List<api.Conversion> o) { +checkUnnamed1326(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1676,7 +1676,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed1573(); + o.conversions = buildUnnamed1326(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1687,21 +1687,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed1573(o.conversions); + checkUnnamed1326(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed1574() { +buildUnnamed1327() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed1574(core.List<api.ConversionStatus> o) { +checkUnnamed1327(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1714,7 +1714,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed1574(); + o.status = buildUnnamed1327(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1725,19 +1725,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1574(o.status); + checkUnnamed1327(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed1575() { +buildUnnamed1328() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1575(core.List<api.Country> o) { +checkUnnamed1328(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1748,7 +1748,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed1575(); + o.countries = buildUnnamed1328(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1758,7 +1758,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed1575(o.countries); + checkUnnamed1328(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1791,157 +1791,157 @@ buildCounterCountry--; } -buildUnnamed1576() { +buildUnnamed1329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1576(core.List<core.String> o) { +checkUnnamed1329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1577() { +buildUnnamed1330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1577(core.List<core.String> o) { +checkUnnamed1330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1578() { +buildUnnamed1331() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1578(core.List<api.ClickTag> o) { +checkUnnamed1331(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1579() { +buildUnnamed1332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1579(core.List<core.String> o) { +checkUnnamed1332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1580() { +buildUnnamed1333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1580(core.List<core.String> o) { +checkUnnamed1333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1581() { +buildUnnamed1334() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1581(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1334(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1582() { +buildUnnamed1335() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed1582(core.List<api.CreativeAsset> o) { +checkUnnamed1335(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed1583() { +buildUnnamed1336() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed1583(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed1336(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed1584() { +buildUnnamed1337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1584(core.List<core.String> o) { +checkUnnamed1337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1585() { +buildUnnamed1338() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1585(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1338(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1586() { +buildUnnamed1339() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed1586(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed1339(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed1587() { +buildUnnamed1340() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1587(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1340(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1955,7 +1955,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed1576(); + o.adTagKeys = buildUnnamed1329(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1965,19 +1965,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed1577(); + o.backupImageFeatures = buildUnnamed1330(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed1578(); + o.clickTags = buildUnnamed1331(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed1579(); - o.compatibility = buildUnnamed1580(); + o.companionCreatives = buildUnnamed1332(); + o.compatibility = buildUnnamed1333(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed1581(); - o.creativeAssets = buildUnnamed1582(); - o.creativeFieldAssignments = buildUnnamed1583(); - o.customKeyValues = buildUnnamed1584(); - o.exitCustomEvents = buildUnnamed1585(); + o.counterCustomEvents = buildUnnamed1334(); + o.creativeAssets = buildUnnamed1335(); + o.creativeFieldAssignments = buildUnnamed1336(); + o.customKeyValues = buildUnnamed1337(); + o.exitCustomEvents = buildUnnamed1338(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2003,8 +2003,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed1586(); - o.timerCustomEvents = buildUnnamed1587(); + o.thirdPartyUrls = buildUnnamed1339(); + o.timerCustomEvents = buildUnnamed1340(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -2021,7 +2021,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed1576(o.adTagKeys); + checkUnnamed1329(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2031,19 +2031,19 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed1577(o.backupImageFeatures); + checkUnnamed1330(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed1578(o.clickTags); + checkUnnamed1331(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed1579(o.companionCreatives); - checkUnnamed1580(o.compatibility); + checkUnnamed1332(o.companionCreatives); + checkUnnamed1333(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed1581(o.counterCustomEvents); - checkUnnamed1582(o.creativeAssets); - checkUnnamed1583(o.creativeFieldAssignments); - checkUnnamed1584(o.customKeyValues); - checkUnnamed1585(o.exitCustomEvents); + checkUnnamed1334(o.counterCustomEvents); + checkUnnamed1335(o.creativeAssets); + checkUnnamed1336(o.creativeFieldAssignments); + checkUnnamed1337(o.customKeyValues); + checkUnnamed1338(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2069,8 +2069,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed1586(o.thirdPartyUrls); - checkUnnamed1587(o.timerCustomEvents); + checkUnnamed1339(o.thirdPartyUrls); + checkUnnamed1340(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -2080,14 +2080,14 @@ buildCounterCreative--; } -buildUnnamed1588() { +buildUnnamed1341() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1588(core.List<core.String> o) { +checkUnnamed1341(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2108,7 +2108,7 @@ o.childAssetType = "foo"; o.collapsedSize = buildSize(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed1588(); + o.detectedFeatures = buildUnnamed1341(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2158,7 +2158,7 @@ unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed1588(o.detectedFeatures); + checkUnnamed1341(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2215,40 +2215,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed1589() { +buildUnnamed1342() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1589(core.List<api.ClickTag> o) { +checkUnnamed1342(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1590() { +buildUnnamed1343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1590(core.List<core.String> o) { +checkUnnamed1343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1591() { +buildUnnamed1344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1591(core.List<core.String> o) { +checkUnnamed1344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2260,10 +2260,10 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed1589(); - o.detectedFeatures = buildUnnamed1590(); + o.clickTags = buildUnnamed1342(); + o.detectedFeatures = buildUnnamed1343(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed1591(); + o.warnedValidationRules = buildUnnamed1344(); } buildCounterCreativeAssetMetadata--; return o; @@ -2273,48 +2273,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed1589(o.clickTags); - checkUnnamed1590(o.detectedFeatures); + checkUnnamed1342(o.clickTags); + checkUnnamed1343(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1591(o.warnedValidationRules); + checkUnnamed1344(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed1592() { +buildUnnamed1345() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed1592(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed1345(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed1593() { +buildUnnamed1346() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1593(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1346(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1594() { +buildUnnamed1347() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed1594(core.List<api.RichMediaExitOverride> o) { +checkUnnamed1347(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2328,12 +2328,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed1592(); - o.creativeGroupAssignments = buildUnnamed1593(); + o.companionCreativeOverrides = buildUnnamed1345(); + o.creativeGroupAssignments = buildUnnamed1346(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed1594(); + o.richMediaExitOverrides = buildUnnamed1347(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2349,12 +2349,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed1592(o.companionCreativeOverrides); - checkUnnamed1593(o.creativeGroupAssignments); + checkUnnamed1345(o.companionCreativeOverrides); + checkUnnamed1346(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1594(o.richMediaExitOverrides); + checkUnnamed1347(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2475,14 +2475,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed1595() { +buildUnnamed1348() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed1595(core.List<api.CreativeFieldValue> o) { +checkUnnamed1348(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2493,7 +2493,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed1595(); + o.creativeFieldValues = buildUnnamed1348(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2504,21 +2504,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed1595(o.creativeFieldValues); + checkUnnamed1348(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed1596() { +buildUnnamed1349() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed1596(core.List<api.CreativeField> o) { +checkUnnamed1349(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2529,7 +2529,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed1596(); + o.creativeFields = buildUnnamed1349(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2540,7 +2540,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed1596(o.creativeFields); + checkUnnamed1349(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2601,14 +2601,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed1597() { +buildUnnamed1350() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed1597(core.List<api.CreativeGroup> o) { +checkUnnamed1350(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2619,7 +2619,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed1597(); + o.creativeGroups = buildUnnamed1350(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2630,21 +2630,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed1597(o.creativeGroups); + checkUnnamed1350(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed1598() { +buildUnnamed1351() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed1598(core.List<api.OptimizationActivity> o) { +checkUnnamed1351(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2657,7 +2657,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed1598(); + o.optimizationActivitys = buildUnnamed1351(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2669,20 +2669,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1598(o.optimizationActivitys); + checkUnnamed1351(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed1599() { +buildUnnamed1352() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed1599(core.List<api.CreativeAssignment> o) { +checkUnnamed1352(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2693,7 +2693,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed1599(); + o.creativeAssignments = buildUnnamed1352(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2705,7 +2705,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed1599(o.creativeAssignments); + checkUnnamed1352(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2734,14 +2734,14 @@ buildCounterCreativeSettings--; } -buildUnnamed1600() { +buildUnnamed1353() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1600(core.List<api.Creative> o) { +checkUnnamed1353(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2752,7 +2752,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed1600(); + o.creatives = buildUnnamed1353(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2763,60 +2763,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed1600(o.creatives); + checkUnnamed1353(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed1601() { +buildUnnamed1354() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1601(core.List<api.Dimension> o) { +checkUnnamed1354(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1602() { +buildUnnamed1355() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1602(core.List<api.Dimension> o) { +checkUnnamed1355(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1603() { +buildUnnamed1356() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1603(core.List<api.Metric> o) { +checkUnnamed1356(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1604() { +buildUnnamed1357() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1604(core.List<api.Metric> o) { +checkUnnamed1357(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2827,11 +2827,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed1601(); - o.dimensionFilters = buildUnnamed1602(); + o.breakdown = buildUnnamed1354(); + o.dimensionFilters = buildUnnamed1355(); o.kind = "foo"; - o.metrics = buildUnnamed1603(); - o.overlapMetrics = buildUnnamed1604(); + o.metrics = buildUnnamed1356(); + o.overlapMetrics = buildUnnamed1357(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2840,11 +2840,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed1601(o.breakdown); - checkUnnamed1602(o.dimensionFilters); + checkUnnamed1354(o.breakdown); + checkUnnamed1355(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1603(o.metrics); - checkUnnamed1604(o.overlapMetrics); + checkUnnamed1356(o.metrics); + checkUnnamed1357(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2872,14 +2872,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed1605() { +buildUnnamed1358() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1605(core.List<api.DimensionValue> o) { +checkUnnamed1358(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2890,7 +2890,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed1605(); + o.filteredEventIds = buildUnnamed1358(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2900,7 +2900,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed1605(o.filteredEventIds); + checkUnnamed1358(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2931,27 +2931,27 @@ buildCounterDateRange--; } -buildUnnamed1606() { +buildUnnamed1359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1606(core.List<core.String> o) { +checkUnnamed1359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1607() { +buildUnnamed1360() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1607(core.List<core.int> o) { +checkUnnamed1360(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -2962,8 +2962,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed1606(); - o.hoursOfDay = buildUnnamed1607(); + o.daysOfWeek = buildUnnamed1359(); + o.hoursOfDay = buildUnnamed1360(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2973,8 +2973,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed1606(o.daysOfWeek); - checkUnnamed1607(o.hoursOfDay); + checkUnnamed1359(o.daysOfWeek); + checkUnnamed1360(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3126,14 +3126,14 @@ buildCounterDimensionValue--; } -buildUnnamed1608() { +buildUnnamed1361() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1608(core.List<api.DimensionValue> o) { +checkUnnamed1361(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3145,7 +3145,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed1608(); + o.items = buildUnnamed1361(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3157,21 +3157,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1608(o.items); + checkUnnamed1361(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed1609() { +buildUnnamed1362() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1609(core.List<api.DimensionFilter> o) { +checkUnnamed1362(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3184,7 +3184,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed1609(); + o.filters = buildUnnamed1362(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3197,47 +3197,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1609(o.filters); + checkUnnamed1362(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed1610() { +buildUnnamed1363() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed1610(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed1363(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed1611() { +buildUnnamed1364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1611(core.List<core.String> o) { +checkUnnamed1364(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1612() { +buildUnnamed1365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1612(core.List<core.String> o) { +checkUnnamed1365(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3249,14 +3249,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed1610(); + o.contactAssignments = buildUnnamed1363(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed1611(); - o.interstitialTagFormats = buildUnnamed1612(); + o.inpageTagFormats = buildUnnamed1364(); + o.interstitialTagFormats = buildUnnamed1365(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3271,14 +3271,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed1610(o.contactAssignments); + checkUnnamed1363(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed1611(o.inpageTagFormats); - checkUnnamed1612(o.interstitialTagFormats); + checkUnnamed1364(o.inpageTagFormats); + checkUnnamed1365(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3346,14 +3346,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed1613() { +buildUnnamed1366() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed1613(core.List<api.DirectorySiteContact> o) { +checkUnnamed1366(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3364,7 +3364,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed1613(); + o.directorySiteContacts = buildUnnamed1366(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3375,7 +3375,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed1613(o.directorySiteContacts); + checkUnnamed1366(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3413,14 +3413,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed1614() { +buildUnnamed1367() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed1614(core.List<api.DirectorySite> o) { +checkUnnamed1367(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3431,7 +3431,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed1614(); + o.directorySites = buildUnnamed1367(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3442,7 +3442,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed1614(o.directorySites); + checkUnnamed1367(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3474,14 +3474,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed1615() { +buildUnnamed1368() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed1615(core.List<api.DynamicTargetingKey> o) { +checkUnnamed1368(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3492,7 +3492,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed1615(); + o.dynamicTargetingKeys = buildUnnamed1368(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3502,7 +3502,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed1615(o.dynamicTargetingKeys); + checkUnnamed1368(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3533,14 +3533,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed1616() { +buildUnnamed1369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1616(core.List<core.String> o) { +checkUnnamed1369(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3562,7 +3562,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed1616(); + o.siteIds = buildUnnamed1369(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3588,7 +3588,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed1616(o.siteIds); + checkUnnamed1369(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3620,14 +3620,14 @@ buildCounterEventTagOverride--; } -buildUnnamed1617() { +buildUnnamed1370() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed1617(core.List<api.EventTag> o) { +checkUnnamed1370(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3638,7 +3638,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed1617(); + o.eventTags = buildUnnamed1370(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3648,7 +3648,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed1617(o.eventTags); + checkUnnamed1370(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3712,14 +3712,14 @@ buildCounterFile--; } -buildUnnamed1618() { +buildUnnamed1371() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1618(core.List<api.File> o) { +checkUnnamed1371(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3731,7 +3731,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1618(); + o.items = buildUnnamed1371(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3743,7 +3743,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1618(o.items); + checkUnnamed1371(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3796,14 +3796,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed1619() { +buildUnnamed1372() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed1619(core.List<api.FloodlightActivity> o) { +checkUnnamed1372(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3814,7 +3814,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed1619(); + o.floodlightActivities = buildUnnamed1372(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3825,47 +3825,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed1619(o.floodlightActivities); + checkUnnamed1372(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed1620() { +buildUnnamed1373() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed1620(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed1373(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed1621() { +buildUnnamed1374() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed1621(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed1374(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed1622() { +buildUnnamed1375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1622(core.List<core.String> o) { +checkUnnamed1375(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3881,7 +3881,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed1620(); + o.defaultTags = buildUnnamed1373(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3896,14 +3896,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed1621(); + o.publisherTags = buildUnnamed1374(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed1622(); + o.userDefinedVariableTypes = buildUnnamed1375(); } buildCounterFloodlightActivity--; return o; @@ -3917,7 +3917,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed1620(o.defaultTags); + checkUnnamed1373(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3932,14 +3932,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1621(o.publisherTags); + checkUnnamed1374(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed1622(o.userDefinedVariableTypes); + checkUnnamed1375(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4008,14 +4008,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed1623() { +buildUnnamed1376() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed1623(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed1376(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4026,7 +4026,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed1623(); + o.floodlightActivityGroups = buildUnnamed1376(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4037,7 +4037,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed1623(o.floodlightActivityGroups); + checkUnnamed1376(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4073,40 +4073,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed1624() { +buildUnnamed1377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1624(core.List<core.String> o) { +checkUnnamed1377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1625() { +buildUnnamed1378() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed1625(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed1378(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed1626() { +buildUnnamed1379() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed1626(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed1379(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4130,11 +4130,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed1624(); + o.standardVariableTypes = buildUnnamed1377(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed1625(); - o.userDefinedVariableConfigurations = buildUnnamed1626(); + o.thirdPartyAuthenticationTokens = buildUnnamed1378(); + o.userDefinedVariableConfigurations = buildUnnamed1379(); } buildCounterFloodlightConfiguration--; return o; @@ -4156,23 +4156,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed1624(o.standardVariableTypes); + checkUnnamed1377(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed1625(o.thirdPartyAuthenticationTokens); - checkUnnamed1626(o.userDefinedVariableConfigurations); + checkUnnamed1378(o.thirdPartyAuthenticationTokens); + checkUnnamed1379(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed1627() { +buildUnnamed1380() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed1627(core.List<api.FloodlightConfiguration> o) { +checkUnnamed1380(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4183,7 +4183,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed1627(); + o.floodlightConfigurations = buildUnnamed1380(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4193,46 +4193,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed1627(o.floodlightConfigurations); + checkUnnamed1380(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed1628() { +buildUnnamed1381() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1628(core.List<api.Dimension> o) { +checkUnnamed1381(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1629() { +buildUnnamed1382() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1629(core.List<api.Dimension> o) { +checkUnnamed1382(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1630() { +buildUnnamed1383() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1630(core.List<api.Metric> o) { +checkUnnamed1383(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4243,10 +4243,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1628(); - o.dimensions = buildUnnamed1629(); + o.dimensionFilters = buildUnnamed1381(); + o.dimensions = buildUnnamed1382(); o.kind = "foo"; - o.metrics = buildUnnamed1630(); + o.metrics = buildUnnamed1383(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4255,10 +4255,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed1628(o.dimensionFilters); - checkUnnamed1629(o.dimensions); + checkUnnamed1381(o.dimensionFilters); + checkUnnamed1382(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1630(o.metrics); + checkUnnamed1383(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4311,66 +4311,66 @@ buildCounterFsCommand--; } -buildUnnamed1631() { +buildUnnamed1384() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1631(core.List<api.City> o) { +checkUnnamed1384(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed1632() { +buildUnnamed1385() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1632(core.List<api.Country> o) { +checkUnnamed1385(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed1633() { +buildUnnamed1386() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1633(core.List<api.Metro> o) { +checkUnnamed1386(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed1634() { +buildUnnamed1387() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1634(core.List<api.PostalCode> o) { +checkUnnamed1387(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed1635() { +buildUnnamed1388() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1635(core.List<api.Region> o) { +checkUnnamed1388(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4381,12 +4381,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed1631(); - o.countries = buildUnnamed1632(); + o.cities = buildUnnamed1384(); + o.countries = buildUnnamed1385(); o.excludeCountries = true; - o.metros = buildUnnamed1633(); - o.postalCodes = buildUnnamed1634(); - o.regions = buildUnnamed1635(); + o.metros = buildUnnamed1386(); + o.postalCodes = buildUnnamed1387(); + o.regions = buildUnnamed1388(); } buildCounterGeoTargeting--; return o; @@ -4395,24 +4395,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed1631(o.cities); - checkUnnamed1632(o.countries); + checkUnnamed1384(o.cities); + checkUnnamed1385(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed1633(o.metros); - checkUnnamed1634(o.postalCodes); - checkUnnamed1635(o.regions); + checkUnnamed1386(o.metros); + checkUnnamed1387(o.postalCodes); + checkUnnamed1388(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed1636() { +buildUnnamed1389() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed1636(core.List<api.AdSlot> o) { +checkUnnamed1389(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4424,7 +4424,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed1636(); + o.adSlots = buildUnnamed1389(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4452,7 +4452,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1636(o.adSlots); + checkUnnamed1389(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4475,14 +4475,14 @@ buildCounterInventoryItem--; } -buildUnnamed1637() { +buildUnnamed1390() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed1637(core.List<api.InventoryItem> o) { +checkUnnamed1390(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4493,7 +4493,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed1637(); + o.inventoryItems = buildUnnamed1390(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4504,7 +4504,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed1637(o.inventoryItems); + checkUnnamed1390(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4557,14 +4557,14 @@ buildCounterLandingPage--; } -buildUnnamed1638() { +buildUnnamed1391() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed1638(core.List<api.LandingPage> o) { +checkUnnamed1391(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4576,7 +4576,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed1638(); + o.landingPages = buildUnnamed1391(); } buildCounterLandingPagesListResponse--; return o; @@ -4586,7 +4586,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1638(o.landingPages); + checkUnnamed1391(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4610,14 +4610,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed1639() { +buildUnnamed1392() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed1639(core.List<api.ListPopulationTerm> o) { +checkUnnamed1392(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4628,7 +4628,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed1639(); + o.terms = buildUnnamed1392(); } buildCounterListPopulationClause--; return o; @@ -4637,19 +4637,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed1639(o.terms); + checkUnnamed1392(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed1640() { +buildUnnamed1393() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed1640(core.List<api.ListPopulationClause> o) { +checkUnnamed1393(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4662,7 +4662,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed1640(); + o.listPopulationClauses = buildUnnamed1393(); } buildCounterListPopulationRule--; return o; @@ -4673,7 +4673,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed1640(o.listPopulationClauses); + checkUnnamed1393(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4803,14 +4803,14 @@ buildCounterMetro--; } -buildUnnamed1641() { +buildUnnamed1394() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1641(core.List<api.Metro> o) { +checkUnnamed1394(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4822,7 +4822,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed1641(); + o.metros = buildUnnamed1394(); } buildCounterMetrosListResponse--; return o; @@ -4832,7 +4832,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1641(o.metros); + checkUnnamed1394(o.metros); } buildCounterMetrosListResponse--; } @@ -4864,14 +4864,14 @@ buildCounterMobileCarrier--; } -buildUnnamed1642() { +buildUnnamed1395() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1642(core.List<api.MobileCarrier> o) { +checkUnnamed1395(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4883,7 +4883,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed1642(); + o.mobileCarriers = buildUnnamed1395(); } buildCounterMobileCarriersListResponse--; return o; @@ -4893,19 +4893,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1642(o.mobileCarriers); + checkUnnamed1395(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed1643() { +buildUnnamed1396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1643(core.List<core.String> o) { +checkUnnamed1396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4917,7 +4917,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed1643(); + o.objectIds = buildUnnamed1396(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4928,7 +4928,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1643(o.objectIds); + checkUnnamed1396(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5032,14 +5032,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed1644() { +buildUnnamed1397() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1644(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1397(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5051,7 +5051,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed1644(); + o.operatingSystemVersions = buildUnnamed1397(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5061,19 +5061,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1644(o.operatingSystemVersions); + checkUnnamed1397(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed1645() { +buildUnnamed1398() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1645(core.List<api.OperatingSystem> o) { +checkUnnamed1398(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5085,7 +5085,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed1645(); + o.operatingSystems = buildUnnamed1398(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5095,7 +5095,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1645(o.operatingSystems); + checkUnnamed1398(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5123,53 +5123,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed1646() { +buildUnnamed1399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1646(core.List<core.String> o) { +checkUnnamed1399(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1647() { +buildUnnamed1400() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed1647(core.List<api.OrderContact> o) { +checkUnnamed1400(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed1648() { +buildUnnamed1401() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1648(core.List<core.String> o) { +checkUnnamed1401(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1649() { +buildUnnamed1402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1649(core.List<core.String> o) { +checkUnnamed1402(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5182,11 +5182,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed1646(); + o.approverUserProfileIds = buildUnnamed1399(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed1647(); + o.contacts = buildUnnamed1400(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5196,8 +5196,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed1648(); - o.siteNames = buildUnnamed1649(); + o.siteId = buildUnnamed1401(); + o.siteNames = buildUnnamed1402(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5210,11 +5210,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed1646(o.approverUserProfileIds); + checkUnnamed1399(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed1647(o.contacts); + checkUnnamed1400(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5224,8 +5224,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed1648(o.siteId); - checkUnnamed1649(o.siteNames); + checkUnnamed1401(o.siteId); + checkUnnamed1402(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5259,27 +5259,27 @@ buildCounterOrderContact--; } -buildUnnamed1650() { +buildUnnamed1403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1650(core.List<core.String> o) { +checkUnnamed1403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1651() { +buildUnnamed1404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1651(core.List<core.String> o) { +checkUnnamed1404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5293,13 +5293,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed1650(); + o.approvedByUserProfileIds = buildUnnamed1403(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed1651(); + o.lastSentRecipients = buildUnnamed1404(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5318,13 +5318,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed1650(o.approvedByUserProfileIds); + checkUnnamed1403(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1651(o.lastSentRecipients); + checkUnnamed1404(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5336,14 +5336,14 @@ buildCounterOrderDocument--; } -buildUnnamed1652() { +buildUnnamed1405() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed1652(core.List<api.OrderDocument> o) { +checkUnnamed1405(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5356,7 +5356,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed1652(); + o.orderDocuments = buildUnnamed1405(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5367,19 +5367,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1652(o.orderDocuments); + checkUnnamed1405(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed1653() { +buildUnnamed1406() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1653(core.List<api.Order> o) { +checkUnnamed1406(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5392,7 +5392,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed1653(); + o.orders = buildUnnamed1406(); } buildCounterOrdersListResponse--; return o; @@ -5403,58 +5403,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1653(o.orders); + checkUnnamed1406(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed1654() { +buildUnnamed1407() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1654(core.List<api.Dimension> o) { +checkUnnamed1407(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1655() { +buildUnnamed1408() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1655(core.List<api.Dimension> o) { +checkUnnamed1408(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1656() { +buildUnnamed1409() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1656(core.List<api.Metric> o) { +checkUnnamed1409(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1657() { +buildUnnamed1410() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1657(core.List<api.Dimension> o) { +checkUnnamed1410(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5465,11 +5465,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed1654(); - o.customFloodlightVariables = buildUnnamed1655(); + o.conversionDimensions = buildUnnamed1407(); + o.customFloodlightVariables = buildUnnamed1408(); o.kind = "foo"; - o.metrics = buildUnnamed1656(); - o.perInteractionDimensions = buildUnnamed1657(); + o.metrics = buildUnnamed1409(); + o.perInteractionDimensions = buildUnnamed1410(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5478,23 +5478,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed1654(o.conversionDimensions); - checkUnnamed1655(o.customFloodlightVariables); + checkUnnamed1407(o.conversionDimensions); + checkUnnamed1408(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1656(o.metrics); - checkUnnamed1657(o.perInteractionDimensions); + checkUnnamed1409(o.metrics); + checkUnnamed1410(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed1658() { +buildUnnamed1411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1658(core.List<core.String> o) { +checkUnnamed1411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5539,7 +5539,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed1658(); + o.tagFormats = buildUnnamed1411(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5583,7 +5583,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1658(o.tagFormats); + checkUnnamed1411(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5614,14 +5614,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed1659() { +buildUnnamed1412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1659(core.List<core.String> o) { +checkUnnamed1412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5638,7 +5638,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed1659(); + o.childPlacementIds = buildUnnamed1412(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5672,7 +5672,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed1659(o.childPlacementIds); + checkUnnamed1412(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5696,14 +5696,14 @@ buildCounterPlacementGroup--; } -buildUnnamed1660() { +buildUnnamed1413() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed1660(core.List<api.PlacementGroup> o) { +checkUnnamed1413(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5716,7 +5716,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed1660(); + o.placementGroups = buildUnnamed1413(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5727,19 +5727,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1660(o.placementGroups); + checkUnnamed1413(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed1661() { +buildUnnamed1414() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed1661(core.List<api.PlacementStrategy> o) { +checkUnnamed1414(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5752,7 +5752,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed1661(); + o.placementStrategies = buildUnnamed1414(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5763,7 +5763,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1661(o.placementStrategies); + checkUnnamed1414(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5793,14 +5793,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed1662() { +buildUnnamed1415() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed1662(core.List<api.TagData> o) { +checkUnnamed1415(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5812,7 +5812,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed1662(); + o.tagDatas = buildUnnamed1415(); } buildCounterPlacementTag--; return o; @@ -5822,19 +5822,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed1662(o.tagDatas); + checkUnnamed1415(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed1663() { +buildUnnamed1416() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed1663(core.List<api.PlacementTag> o) { +checkUnnamed1416(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5846,7 +5846,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed1663(); + o.placementTags = buildUnnamed1416(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5856,19 +5856,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1663(o.placementTags); + checkUnnamed1416(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed1664() { +buildUnnamed1417() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed1664(core.List<api.Placement> o) { +checkUnnamed1417(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5881,7 +5881,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed1664(); + o.placements = buildUnnamed1417(); } buildCounterPlacementsListResponse--; return o; @@ -5892,7 +5892,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1664(o.placements); + checkUnnamed1417(o.placements); } buildCounterPlacementsListResponse--; } @@ -5920,14 +5920,14 @@ buildCounterPlatformType--; } -buildUnnamed1665() { +buildUnnamed1418() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1665(core.List<api.PlatformType> o) { +checkUnnamed1418(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5939,7 +5939,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed1665(); + o.platformTypes = buildUnnamed1418(); } buildCounterPlatformTypesListResponse--; return o; @@ -5949,7 +5949,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1665(o.platformTypes); + checkUnnamed1418(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6016,14 +6016,14 @@ buildCounterPostalCode--; } -buildUnnamed1666() { +buildUnnamed1419() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1666(core.List<api.PostalCode> o) { +checkUnnamed1419(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6035,7 +6035,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed1666(); + o.postalCodes = buildUnnamed1419(); } buildCounterPostalCodesListResponse--; return o; @@ -6045,19 +6045,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1666(o.postalCodes); + checkUnnamed1419(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed1667() { +buildUnnamed1420() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed1667(core.List<api.Flight> o) { +checkUnnamed1420(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6070,7 +6070,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed1667(); + o.flights = buildUnnamed1420(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6084,7 +6084,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1667(o.flights); + checkUnnamed1420(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6092,14 +6092,14 @@ buildCounterPricing--; } -buildUnnamed1668() { +buildUnnamed1421() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed1668(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed1421(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6115,7 +6115,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed1668(); + o.pricingPeriods = buildUnnamed1421(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6132,7 +6132,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed1668(o.pricingPeriods); + checkUnnamed1421(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6226,14 +6226,14 @@ buildCounterProject--; } -buildUnnamed1669() { +buildUnnamed1422() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1669(core.List<api.Project> o) { +checkUnnamed1422(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6246,7 +6246,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed1669(); + o.projects = buildUnnamed1422(); } buildCounterProjectsListResponse--; return o; @@ -6257,71 +6257,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1669(o.projects); + checkUnnamed1422(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed1670() { +buildUnnamed1423() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1670(core.List<api.Dimension> o) { +checkUnnamed1423(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1671() { +buildUnnamed1424() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1671(core.List<api.Dimension> o) { +checkUnnamed1424(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1672() { +buildUnnamed1425() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1672(core.List<api.Metric> o) { +checkUnnamed1425(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1673() { +buildUnnamed1426() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1673(core.List<api.Metric> o) { +checkUnnamed1426(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1674() { +buildUnnamed1427() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1674(core.List<api.Metric> o) { +checkUnnamed1427(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6332,12 +6332,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1670(); - o.dimensions = buildUnnamed1671(); + o.dimensionFilters = buildUnnamed1423(); + o.dimensions = buildUnnamed1424(); o.kind = "foo"; - o.metrics = buildUnnamed1672(); - o.pivotedActivityMetrics = buildUnnamed1673(); - o.reachByFrequencyMetrics = buildUnnamed1674(); + o.metrics = buildUnnamed1425(); + o.pivotedActivityMetrics = buildUnnamed1426(); + o.reachByFrequencyMetrics = buildUnnamed1427(); } buildCounterReachReportCompatibleFields--; return o; @@ -6346,12 +6346,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed1670(o.dimensionFilters); - checkUnnamed1671(o.dimensions); + checkUnnamed1423(o.dimensionFilters); + checkUnnamed1424(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1672(o.metrics); - checkUnnamed1673(o.pivotedActivityMetrics); - checkUnnamed1674(o.reachByFrequencyMetrics); + checkUnnamed1425(o.metrics); + checkUnnamed1426(o.pivotedActivityMetrics); + checkUnnamed1427(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6408,14 +6408,14 @@ buildCounterRegion--; } -buildUnnamed1675() { +buildUnnamed1428() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1675(core.List<api.Region> o) { +checkUnnamed1428(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6427,7 +6427,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed1675(); + o.regions = buildUnnamed1428(); } buildCounterRegionsListResponse--; return o; @@ -6437,7 +6437,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1675(o.regions); + checkUnnamed1428(o.regions); } buildCounterRegionsListResponse--; } @@ -6485,27 +6485,27 @@ buildCounterRemarketingList--; } -buildUnnamed1676() { +buildUnnamed1429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1676(core.List<core.String> o) { +checkUnnamed1429(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1677() { +buildUnnamed1430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1677(core.List<core.String> o) { +checkUnnamed1430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6518,8 +6518,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed1676(); - o.sharedAdvertiserIds = buildUnnamed1677(); + o.sharedAccountIds = buildUnnamed1429(); + o.sharedAdvertiserIds = buildUnnamed1430(); } buildCounterRemarketingListShare--; return o; @@ -6530,20 +6530,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed1676(o.sharedAccountIds); - checkUnnamed1677(o.sharedAdvertiserIds); + checkUnnamed1429(o.sharedAccountIds); + checkUnnamed1430(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed1678() { +buildUnnamed1431() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed1678(core.List<api.RemarketingList> o) { +checkUnnamed1431(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6556,7 +6556,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed1678(); + o.remarketingLists = buildUnnamed1431(); } buildCounterRemarketingListsListResponse--; return o; @@ -6567,45 +6567,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1678(o.remarketingLists); + checkUnnamed1431(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed1679() { +buildUnnamed1432() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1679(core.List<api.DimensionValue> o) { +checkUnnamed1432(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1680() { +buildUnnamed1433() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1680(core.List<api.SortedDimension> o) { +checkUnnamed1433(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1681() { +buildUnnamed1434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1681(core.List<core.String> o) { +checkUnnamed1434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6619,9 +6619,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1679(); - o.dimensions = buildUnnamed1680(); - o.metricNames = buildUnnamed1681(); + o.dimensionFilters = buildUnnamed1432(); + o.dimensions = buildUnnamed1433(); + o.metricNames = buildUnnamed1434(); } buildCounterReportCriteria--; return o; @@ -6633,60 +6633,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1679(o.dimensionFilters); - checkUnnamed1680(o.dimensions); - checkUnnamed1681(o.metricNames); + checkUnnamed1432(o.dimensionFilters); + checkUnnamed1433(o.dimensions); + checkUnnamed1434(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed1682() { +buildUnnamed1435() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1682(core.List<api.SortedDimension> o) { +checkUnnamed1435(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1683() { +buildUnnamed1436() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1683(core.List<api.DimensionValue> o) { +checkUnnamed1436(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1684() { +buildUnnamed1437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1684(core.List<core.String> o) { +checkUnnamed1437(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1685() { +buildUnnamed1438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1685(core.List<core.String> o) { +checkUnnamed1438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6697,12 +6697,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed1682(); + o.breakdown = buildUnnamed1435(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed1683(); - o.metricNames = buildUnnamed1684(); - o.overlapMetricNames = buildUnnamed1685(); + o.dimensionFilters = buildUnnamed1436(); + o.metricNames = buildUnnamed1437(); + o.overlapMetricNames = buildUnnamed1438(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6712,25 +6712,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed1682(o.breakdown); + checkUnnamed1435(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed1683(o.dimensionFilters); - checkUnnamed1684(o.metricNames); - checkUnnamed1685(o.overlapMetricNames); + checkUnnamed1436(o.dimensionFilters); + checkUnnamed1437(o.metricNames); + checkUnnamed1438(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed1686() { +buildUnnamed1439() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed1686(core.List<api.Recipient> o) { +checkUnnamed1439(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6744,7 +6744,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed1686(); + o.recipients = buildUnnamed1439(); } buildCounterReportDelivery--; return o; @@ -6756,58 +6756,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed1686(o.recipients); + checkUnnamed1439(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed1687() { +buildUnnamed1440() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1687(core.List<api.DimensionValue> o) { +checkUnnamed1440(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1688() { +buildUnnamed1441() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1688(core.List<api.DimensionValue> o) { +checkUnnamed1441(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1689() { +buildUnnamed1442() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1689(core.List<api.SortedDimension> o) { +checkUnnamed1442(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1690() { +buildUnnamed1443() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1690(core.List<core.String> o) { +checkUnnamed1443(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6841,12 +6841,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed1687(); + o.customRichMediaEvents = buildUnnamed1440(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1688(); - o.dimensions = buildUnnamed1689(); + o.dimensionFilters = buildUnnamed1441(); + o.dimensions = buildUnnamed1442(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1690(); + o.metricNames = buildUnnamed1443(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6856,90 +6856,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed1687(o.customRichMediaEvents); + checkUnnamed1440(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1688(o.dimensionFilters); - checkUnnamed1689(o.dimensions); + checkUnnamed1441(o.dimensionFilters); + checkUnnamed1442(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1690(o.metricNames); + checkUnnamed1443(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed1691() { +buildUnnamed1444() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1691(core.List<api.DimensionValue> o) { +checkUnnamed1444(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1692() { +buildUnnamed1445() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1692(core.List<api.SortedDimension> o) { +checkUnnamed1445(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1693() { +buildUnnamed1446() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1693(core.List<api.SortedDimension> o) { +checkUnnamed1446(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1694() { +buildUnnamed1447() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1694(core.List<api.DimensionValue> o) { +checkUnnamed1447(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1695() { +buildUnnamed1448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1695(core.List<core.String> o) { +checkUnnamed1448(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1696() { +buildUnnamed1449() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1696(core.List<api.SortedDimension> o) { +checkUnnamed1449(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6985,14 +6985,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed1691(); - o.conversionDimensions = buildUnnamed1692(); - o.customFloodlightVariables = buildUnnamed1693(); - o.customRichMediaEvents = buildUnnamed1694(); + o.activityFilters = buildUnnamed1444(); + o.conversionDimensions = buildUnnamed1445(); + o.customFloodlightVariables = buildUnnamed1446(); + o.customRichMediaEvents = buildUnnamed1447(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1695(); - o.perInteractionDimensions = buildUnnamed1696(); + o.metricNames = buildUnnamed1448(); + o.perInteractionDimensions = buildUnnamed1449(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7002,66 +7002,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed1691(o.activityFilters); - checkUnnamed1692(o.conversionDimensions); - checkUnnamed1693(o.customFloodlightVariables); - checkUnnamed1694(o.customRichMediaEvents); + checkUnnamed1444(o.activityFilters); + checkUnnamed1445(o.conversionDimensions); + checkUnnamed1446(o.customFloodlightVariables); + checkUnnamed1447(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1695(o.metricNames); - checkUnnamed1696(o.perInteractionDimensions); + checkUnnamed1448(o.metricNames); + checkUnnamed1449(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed1697() { +buildUnnamed1450() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1697(core.List<api.DimensionValue> o) { +checkUnnamed1450(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1698() { +buildUnnamed1451() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1698(core.List<api.SortedDimension> o) { +checkUnnamed1451(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1699() { +buildUnnamed1452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1699(core.List<core.String> o) { +checkUnnamed1452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1700() { +buildUnnamed1453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1700(core.List<core.String> o) { +checkUnnamed1453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7075,11 +7075,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1697(); - o.dimensions = buildUnnamed1698(); + o.dimensionFilters = buildUnnamed1450(); + o.dimensions = buildUnnamed1451(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed1699(); - o.reachByFrequencyMetricNames = buildUnnamed1700(); + o.metricNames = buildUnnamed1452(); + o.reachByFrequencyMetricNames = buildUnnamed1453(); } buildCounterReportReachCriteria--; return o; @@ -7091,23 +7091,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1697(o.dimensionFilters); - checkUnnamed1698(o.dimensions); + checkUnnamed1450(o.dimensionFilters); + checkUnnamed1451(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed1699(o.metricNames); - checkUnnamed1700(o.reachByFrequencyMetricNames); + checkUnnamed1452(o.metricNames); + checkUnnamed1453(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed1701() { +buildUnnamed1454() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1701(core.List<core.String> o) { +checkUnnamed1454(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7122,7 +7122,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed1701(); + o.repeatsOnWeekDays = buildUnnamed1454(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7137,7 +7137,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed1701(o.repeatsOnWeekDays); + checkUnnamed1454(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -7197,53 +7197,53 @@ buildCounterReport--; } -buildUnnamed1702() { +buildUnnamed1455() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1702(core.List<api.Dimension> o) { +checkUnnamed1455(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1703() { +buildUnnamed1456() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1703(core.List<api.Dimension> o) { +checkUnnamed1456(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1704() { +buildUnnamed1457() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1704(core.List<api.Metric> o) { +checkUnnamed1457(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1705() { +buildUnnamed1458() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1705(core.List<api.Metric> o) { +checkUnnamed1458(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7254,11 +7254,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1702(); - o.dimensions = buildUnnamed1703(); + o.dimensionFilters = buildUnnamed1455(); + o.dimensions = buildUnnamed1456(); o.kind = "foo"; - o.metrics = buildUnnamed1704(); - o.pivotedActivityMetrics = buildUnnamed1705(); + o.metrics = buildUnnamed1457(); + o.pivotedActivityMetrics = buildUnnamed1458(); } buildCounterReportCompatibleFields--; return o; @@ -7267,23 +7267,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed1702(o.dimensionFilters); - checkUnnamed1703(o.dimensions); + checkUnnamed1455(o.dimensionFilters); + checkUnnamed1456(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1704(o.metrics); - checkUnnamed1705(o.pivotedActivityMetrics); + checkUnnamed1457(o.metrics); + checkUnnamed1458(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed1706() { +buildUnnamed1459() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1706(core.List<api.Report> o) { +checkUnnamed1459(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7295,7 +7295,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed1706(); + o.items = buildUnnamed1459(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7307,7 +7307,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1706(o.items); + checkUnnamed1459(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7360,14 +7360,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed1707() { +buildUnnamed1460() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed1707(core.List<api.SiteContact> o) { +checkUnnamed1460(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7387,7 +7387,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed1707(); + o.siteContacts = buildUnnamed1460(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7407,7 +7407,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1707(o.siteContacts); + checkUnnamed1460(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7478,14 +7478,14 @@ buildCounterSiteSettings--; } -buildUnnamed1708() { +buildUnnamed1461() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed1708(core.List<api.Site> o) { +checkUnnamed1461(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7498,7 +7498,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed1708(); + o.sites = buildUnnamed1461(); } buildCounterSitesListResponse--; return o; @@ -7509,7 +7509,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1708(o.sites); + checkUnnamed1461(o.sites); } buildCounterSitesListResponse--; } @@ -7541,14 +7541,14 @@ buildCounterSize--; } -buildUnnamed1709() { +buildUnnamed1462() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed1709(core.List<api.Size> o) { +checkUnnamed1462(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7560,7 +7560,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed1709(); + o.sizes = buildUnnamed1462(); } buildCounterSizesListResponse--; return o; @@ -7570,7 +7570,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1709(o.sizes); + checkUnnamed1462(o.sizes); } buildCounterSizesListResponse--; } @@ -7598,14 +7598,14 @@ buildCounterSortedDimension--; } -buildUnnamed1710() { +buildUnnamed1463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1710(core.List<core.String> o) { +checkUnnamed1463(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7617,7 +7617,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed1710(); + o.availablePermissionIds = buildUnnamed1463(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7630,7 +7630,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1710(o.availablePermissionIds); + checkUnnamed1463(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7638,14 +7638,14 @@ buildCounterSubaccount--; } -buildUnnamed1711() { +buildUnnamed1464() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed1711(core.List<api.Subaccount> o) { +checkUnnamed1464(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7658,7 +7658,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed1711(); + o.subaccounts = buildUnnamed1464(); } buildCounterSubaccountsListResponse--; return o; @@ -7669,7 +7669,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1711(o.subaccounts); + checkUnnamed1464(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7809,14 +7809,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed1712() { +buildUnnamed1465() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed1712(core.List<api.TargetableRemarketingList> o) { +checkUnnamed1465(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7829,7 +7829,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed1712(); + o.targetableRemarketingLists = buildUnnamed1465(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7840,84 +7840,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1712(o.targetableRemarketingLists); + checkUnnamed1465(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed1713() { +buildUnnamed1466() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1713(core.List<api.Browser> o) { +checkUnnamed1466(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed1714() { +buildUnnamed1467() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1714(core.List<api.ConnectionType> o) { +checkUnnamed1467(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed1715() { +buildUnnamed1468() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1715(core.List<api.MobileCarrier> o) { +checkUnnamed1468(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed1716() { +buildUnnamed1469() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1716(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1469(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed1717() { +buildUnnamed1470() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1717(core.List<api.OperatingSystem> o) { +checkUnnamed1470(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed1718() { +buildUnnamed1471() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1718(core.List<api.PlatformType> o) { +checkUnnamed1471(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7928,12 +7928,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed1713(); - o.connectionTypes = buildUnnamed1714(); - o.mobileCarriers = buildUnnamed1715(); - o.operatingSystemVersions = buildUnnamed1716(); - o.operatingSystems = buildUnnamed1717(); - o.platformTypes = buildUnnamed1718(); + o.browsers = buildUnnamed1466(); + o.connectionTypes = buildUnnamed1467(); + o.mobileCarriers = buildUnnamed1468(); + o.operatingSystemVersions = buildUnnamed1469(); + o.operatingSystems = buildUnnamed1470(); + o.platformTypes = buildUnnamed1471(); } buildCounterTechnologyTargeting--; return o; @@ -7942,12 +7942,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed1713(o.browsers); - checkUnnamed1714(o.connectionTypes); - checkUnnamed1715(o.mobileCarriers); - checkUnnamed1716(o.operatingSystemVersions); - checkUnnamed1717(o.operatingSystems); - checkUnnamed1718(o.platformTypes); + checkUnnamed1466(o.browsers); + checkUnnamed1467(o.connectionTypes); + checkUnnamed1468(o.mobileCarriers); + checkUnnamed1469(o.operatingSystemVersions); + checkUnnamed1470(o.operatingSystems); + checkUnnamed1471(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8050,14 +8050,14 @@ buildCounterUserProfile--; } -buildUnnamed1719() { +buildUnnamed1472() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed1719(core.List<api.UserProfile> o) { +checkUnnamed1472(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8069,7 +8069,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1719(); + o.items = buildUnnamed1472(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8080,20 +8080,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1719(o.items); + checkUnnamed1472(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed1720() { +buildUnnamed1473() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1720(core.List<api.UserRolePermission> o) { +checkUnnamed1473(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8110,7 +8110,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed1720(); + o.permissions = buildUnnamed1473(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8126,7 +8126,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed1720(o.permissions); + checkUnnamed1473(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8182,14 +8182,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed1721() { +buildUnnamed1474() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed1721(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed1474(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8201,7 +8201,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed1721(); + o.userRolePermissionGroups = buildUnnamed1474(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8211,19 +8211,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1721(o.userRolePermissionGroups); + checkUnnamed1474(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed1722() { +buildUnnamed1475() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1722(core.List<api.UserRolePermission> o) { +checkUnnamed1475(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8235,7 +8235,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed1722(); + o.userRolePermissions = buildUnnamed1475(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8245,19 +8245,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1722(o.userRolePermissions); + checkUnnamed1475(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed1723() { +buildUnnamed1476() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed1723(core.List<api.UserRole> o) { +checkUnnamed1476(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8270,7 +8270,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed1723(); + o.userRoles = buildUnnamed1476(); } buildCounterUserRolesListResponse--; return o; @@ -8281,1137 +8281,1137 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1723(o.userRoles); + checkUnnamed1476(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed1724() { +buildUnnamed1477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1724(core.List<core.String> o) { +checkUnnamed1477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1725() { +buildUnnamed1478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1725(core.List<core.String> o) { +checkUnnamed1478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1726() { +buildUnnamed1479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1726(core.List<core.String> o) { +checkUnnamed1479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1727() { +buildUnnamed1480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1727(core.List<core.String> o) { +checkUnnamed1480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1728() { +buildUnnamed1481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1728(core.List<core.String> o) { +checkUnnamed1481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1729() { +buildUnnamed1482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1729(core.List<core.String> o) { +checkUnnamed1482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1730() { +buildUnnamed1483() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1730(core.List<core.String> o) { +checkUnnamed1483(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1731() { +buildUnnamed1484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1731(core.List<core.String> o) { +checkUnnamed1484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1732() { +buildUnnamed1485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1732(core.List<core.String> o) { +checkUnnamed1485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1733() { +buildUnnamed1486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1733(core.List<core.String> o) { +checkUnnamed1486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1734() { +buildUnnamed1487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1734(core.List<core.String> o) { +checkUnnamed1487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1735() { +buildUnnamed1488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1735(core.List<core.String> o) { +checkUnnamed1488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1736() { +buildUnnamed1489() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1736(core.List<core.String> o) { +checkUnnamed1489(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1737() { +buildUnnamed1490() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1737(core.List<core.String> o) { +checkUnnamed1490(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1738() { +buildUnnamed1491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1738(core.List<core.String> o) { +checkUnnamed1491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1739() { +buildUnnamed1492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1739(core.List<core.String> o) { +checkUnnamed1492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1740() { +buildUnnamed1493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1740(core.List<core.String> o) { +checkUnnamed1493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1741() { +buildUnnamed1494() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1741(core.List<core.String> o) { +checkUnnamed1494(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1742() { +buildUnnamed1495() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1742(core.List<core.String> o) { +checkUnnamed1495(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1743() { +buildUnnamed1496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1743(core.List<core.String> o) { +checkUnnamed1496(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1744() { +buildUnnamed1497() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1744(core.List<core.String> o) { +checkUnnamed1497(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1745() { +buildUnnamed1498() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1745(core.List<core.String> o) { +checkUnnamed1498(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1746() { +buildUnnamed1499() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1746(core.List<core.String> o) { +checkUnnamed1499(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1747() { +buildUnnamed1500() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1747(core.List<core.String> o) { +checkUnnamed1500(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1748() { +buildUnnamed1501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1748(core.List<core.String> o) { +checkUnnamed1501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1749() { +buildUnnamed1502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1749(core.List<core.String> o) { +checkUnnamed1502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1750() { +buildUnnamed1503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1750(core.List<core.String> o) { +checkUnnamed1503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1751() { +buildUnnamed1504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1751(core.List<core.String> o) { +checkUnnamed1504(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1752() { +buildUnnamed1505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1752(core.List<core.String> o) { +checkUnnamed1505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1753() { +buildUnnamed1506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1753(core.List<core.String> o) { +checkUnnamed1506(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1754() { +buildUnnamed1507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1754(core.List<core.String> o) { +checkUnnamed1507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1755() { +buildUnnamed1508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1755(core.List<core.String> o) { +checkUnnamed1508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1756() { +buildUnnamed1509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1756(core.List<core.String> o) { +checkUnnamed1509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1757() { +buildUnnamed1510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1757(core.List<core.String> o) { +checkUnnamed1510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1758() { +buildUnnamed1511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1758(core.List<core.String> o) { +checkUnnamed1511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1759() { +buildUnnamed1512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1759(core.List<core.String> o) { +checkUnnamed1512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1760() { +buildUnnamed1513() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1760(core.List<core.String> o) { +checkUnnamed1513(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1761() { +buildUnnamed1514() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1761(core.List<core.String> o) { +checkUnnamed1514(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1762() { +buildUnnamed1515() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1762(core.List<core.String> o) { +checkUnnamed1515(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1763() { +buildUnnamed1516() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1763(core.List<core.String> o) { +checkUnnamed1516(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1764() { +buildUnnamed1517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1764(core.List<core.String> o) { +checkUnnamed1517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1765() { +buildUnnamed1518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1765(core.List<core.String> o) { +checkUnnamed1518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1766() { +buildUnnamed1519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1766(core.List<core.String> o) { +checkUnnamed1519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1767() { +buildUnnamed1520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1767(core.List<core.String> o) { +checkUnnamed1520(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1768() { +buildUnnamed1521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1768(core.List<core.String> o) { +checkUnnamed1521(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1769() { +buildUnnamed1522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1769(core.List<core.String> o) { +checkUnnamed1522(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1770() { +buildUnnamed1523() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1770(core.List<core.String> o) { +checkUnnamed1523(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1771() { +buildUnnamed1524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1771(core.List<core.String> o) { +checkUnnamed1524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1772() { +buildUnnamed1525() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1772(core.List<core.String> o) { +checkUnnamed1525(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1773() { +buildUnnamed1526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1773(core.List<core.String> o) { +checkUnnamed1526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1774() { +buildUnnamed1527() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1774(core.List<core.String> o) { +checkUnnamed1527(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1775() { +buildUnnamed1528() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1775(core.List<core.String> o) { +checkUnnamed1528(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1776() { +buildUnnamed1529() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1776(core.List<core.String> o) { +checkUnnamed1529(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1777() { +buildUnnamed1530() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1777(core.List<core.String> o) { +checkUnnamed1530(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1778() { +buildUnnamed1531() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1778(core.List<core.String> o) { +checkUnnamed1531(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1779() { +buildUnnamed1532() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1779(core.List<core.String> o) { +checkUnnamed1532(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1780() { +buildUnnamed1533() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1780(core.List<core.String> o) { +checkUnnamed1533(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1781() { +buildUnnamed1534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1781(core.List<core.String> o) { +checkUnnamed1534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1782() { +buildUnnamed1535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1782(core.List<core.String> o) { +checkUnnamed1535(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1783() { +buildUnnamed1536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1783(core.List<core.String> o) { +checkUnnamed1536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1784() { +buildUnnamed1537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1784(core.List<core.String> o) { +checkUnnamed1537(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1785() { +buildUnnamed1538() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1785(core.List<core.String> o) { +checkUnnamed1538(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1786() { +buildUnnamed1539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1786(core.List<core.String> o) { +checkUnnamed1539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1787() { +buildUnnamed1540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1787(core.List<core.String> o) { +checkUnnamed1540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1788() { +buildUnnamed1541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1788(core.List<core.String> o) { +checkUnnamed1541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1789() { +buildUnnamed1542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1789(core.List<core.String> o) { +checkUnnamed1542(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1790() { +buildUnnamed1543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1790(core.List<core.String> o) { +checkUnnamed1543(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1791() { +buildUnnamed1544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1791(core.List<core.String> o) { +checkUnnamed1544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1792() { +buildUnnamed1545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1792(core.List<core.String> o) { +checkUnnamed1545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1793() { +buildUnnamed1546() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1793(core.List<core.String> o) { +checkUnnamed1546(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1794() { +buildUnnamed1547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1794(core.List<core.String> o) { +checkUnnamed1547(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1795() { +buildUnnamed1548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1795(core.List<core.String> o) { +checkUnnamed1548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1796() { +buildUnnamed1549() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1796(core.List<core.String> o) { +checkUnnamed1549(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1797() { +buildUnnamed1550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1797(core.List<core.String> o) { +checkUnnamed1550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1798() { +buildUnnamed1551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1798(core.List<core.String> o) { +checkUnnamed1551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1799() { +buildUnnamed1552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1799(core.List<core.String> o) { +checkUnnamed1552(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1800() { +buildUnnamed1553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1800(core.List<core.String> o) { +checkUnnamed1553(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1801() { +buildUnnamed1554() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1801(core.List<core.String> o) { +checkUnnamed1554(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1802() { +buildUnnamed1555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1802(core.List<core.String> o) { +checkUnnamed1555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1803() { +buildUnnamed1556() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1803(core.List<core.String> o) { +checkUnnamed1556(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1804() { +buildUnnamed1557() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1804(core.List<core.String> o) { +checkUnnamed1557(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1805() { +buildUnnamed1558() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1805(core.List<core.String> o) { +checkUnnamed1558(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1806() { +buildUnnamed1559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1806(core.List<core.String> o) { +checkUnnamed1559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1807() { +buildUnnamed1560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1807(core.List<core.String> o) { +checkUnnamed1560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1808() { +buildUnnamed1561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1808(core.List<core.String> o) { +checkUnnamed1561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1809() { +buildUnnamed1562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1809(core.List<core.String> o) { +checkUnnamed1562(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1810() { +buildUnnamed1563() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1810(core.List<core.String> o) { +checkUnnamed1563(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11647,7 +11647,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed1724(); + var arg_ids = buildUnnamed1477(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11895,7 +11895,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed1725(); + var arg_ids = buildUnnamed1478(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12198,27 +12198,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed1726(); - var arg_campaignIds = buildUnnamed1727(); + var arg_audienceSegmentIds = buildUnnamed1479(); + var arg_campaignIds = buildUnnamed1480(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed1728(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed1729(); + var arg_creativeIds = buildUnnamed1481(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed1482(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed1730(); - var arg_landingPageIds = buildUnnamed1731(); + var arg_ids = buildUnnamed1483(); + var arg_landingPageIds = buildUnnamed1484(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed1732(); - var arg_remarketingListIds = buildUnnamed1733(); + var arg_placementIds = buildUnnamed1485(); + var arg_remarketingListIds = buildUnnamed1486(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1734(); + var arg_sizeIds = buildUnnamed1487(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed1735(); + var arg_type = buildUnnamed1488(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12585,7 +12585,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1736(); + var arg_ids = buildUnnamed1489(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12884,9 +12884,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed1737(); - var arg_floodlightConfigurationIds = buildUnnamed1738(); - var arg_ids = buildUnnamed1739(); + var arg_advertiserGroupIds = buildUnnamed1490(); + var arg_floodlightConfigurationIds = buildUnnamed1491(); + var arg_ids = buildUnnamed1492(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13392,12 +13392,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed1740(); - var arg_advertiserIds = buildUnnamed1741(); + var arg_advertiserGroupIds = buildUnnamed1493(); + var arg_advertiserIds = buildUnnamed1494(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed1742(); - var arg_ids = buildUnnamed1743(); + var arg_excludedIds = buildUnnamed1495(); + var arg_ids = buildUnnamed1496(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13649,15 +13649,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed1744(); + var arg_ids = buildUnnamed1497(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed1745(); + var arg_objectIds = buildUnnamed1498(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed1746(); + var arg_userProfileIds = buildUnnamed1499(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13725,10 +13725,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed1747(); - var arg_dartIds = buildUnnamed1748(); + var arg_countryDartIds = buildUnnamed1500(); + var arg_dartIds = buildUnnamed1501(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed1749(); + var arg_regionDartIds = buildUnnamed1502(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14073,7 +14073,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1750(); + var arg_ids = buildUnnamed1503(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14698,7 +14698,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed1751(); + var arg_ids = buildUnnamed1504(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15075,8 +15075,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1752(); - var arg_ids = buildUnnamed1753(); + var arg_advertiserIds = buildUnnamed1505(); + var arg_ids = buildUnnamed1506(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15376,9 +15376,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1754(); + var arg_advertiserIds = buildUnnamed1507(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed1755(); + var arg_ids = buildUnnamed1508(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15683,18 +15683,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed1756(); - var arg_creativeFieldIds = buildUnnamed1757(); - var arg_ids = buildUnnamed1758(); + var arg_companionCreativeIds = buildUnnamed1509(); + var arg_creativeFieldIds = buildUnnamed1510(); + var arg_ids = buildUnnamed1511(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed1759(); + var arg_renderingIds = buildUnnamed1512(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1760(); + var arg_sizeIds = buildUnnamed1513(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed1761(); + var arg_types = buildUnnamed1514(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -16006,8 +16006,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed1762(); - var arg_ids = buildUnnamed1763(); + var arg_directorySiteIds = buildUnnamed1515(); + var arg_ids = buildUnnamed1516(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16197,7 +16197,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed1764(); + var arg_ids = buildUnnamed1517(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16391,7 +16391,7 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed1765(); + var arg_names = buildUnnamed1518(); var arg_objectId = "foo"; var arg_objectType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -16629,8 +16629,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed1766(); - var arg_ids = buildUnnamed1767(); + var arg_eventTagTypes = buildUnnamed1519(); + var arg_ids = buildUnnamed1520(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -17168,12 +17168,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed1768(); + var arg_floodlightActivityGroupIds = buildUnnamed1521(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed1769(); + var arg_ids = buildUnnamed1522(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17482,7 +17482,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed1770(); + var arg_ids = buildUnnamed1523(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17728,7 +17728,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1771(); + var arg_ids = buildUnnamed1524(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17969,12 +17969,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed1772(); + var arg_ids = buildUnnamed1525(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed1773(); + var arg_orderId = buildUnnamed1526(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed1774(); + var arg_siteId = buildUnnamed1527(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -18907,12 +18907,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed1775(); + var arg_ids = buildUnnamed1528(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed1776(); + var arg_orderId = buildUnnamed1529(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1777(); + var arg_siteId = buildUnnamed1530(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19054,11 +19054,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed1778(); + var arg_ids = buildUnnamed1531(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1779(); + var arg_siteId = buildUnnamed1532(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19246,12 +19246,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1780(); + var arg_advertiserIds = buildUnnamed1533(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1781(); - var arg_contentCategoryIds = buildUnnamed1782(); - var arg_directorySiteIds = buildUnnamed1783(); - var arg_ids = buildUnnamed1784(); + var arg_campaignIds = buildUnnamed1534(); + var arg_contentCategoryIds = buildUnnamed1535(); + var arg_directorySiteIds = buildUnnamed1536(); + var arg_ids = buildUnnamed1537(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19259,10 +19259,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed1785(); - var arg_pricingTypes = buildUnnamed1786(); + var arg_placementStrategyIds = buildUnnamed1538(); + var arg_pricingTypes = buildUnnamed1539(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1787(); + var arg_siteIds = buildUnnamed1540(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19626,7 +19626,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1788(); + var arg_ids = buildUnnamed1541(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19812,8 +19812,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed1789(); - var arg_tagFormats = buildUnnamed1790(); + var arg_placementIds = buildUnnamed1542(); + var arg_tagFormats = buildUnnamed1543(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19984,14 +19984,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1791(); + var arg_advertiserIds = buildUnnamed1544(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1792(); - var arg_compatibilities = buildUnnamed1793(); - var arg_contentCategoryIds = buildUnnamed1794(); - var arg_directorySiteIds = buildUnnamed1795(); - var arg_groupIds = buildUnnamed1796(); - var arg_ids = buildUnnamed1797(); + var arg_campaignIds = buildUnnamed1545(); + var arg_compatibilities = buildUnnamed1546(); + var arg_contentCategoryIds = buildUnnamed1547(); + var arg_directorySiteIds = buildUnnamed1548(); + var arg_groupIds = buildUnnamed1549(); + var arg_ids = buildUnnamed1550(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19999,11 +19999,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed1798(); - var arg_pricingTypes = buildUnnamed1799(); + var arg_placementStrategyIds = buildUnnamed1551(); + var arg_pricingTypes = buildUnnamed1552(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1800(); - var arg_sizeIds = buildUnnamed1801(); + var arg_siteIds = buildUnnamed1553(); + var arg_sizeIds = buildUnnamed1554(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20486,8 +20486,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed1802(); - var arg_ids = buildUnnamed1803(); + var arg_advertiserIds = buildUnnamed1555(); + var arg_ids = buildUnnamed1556(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21835,9 +21835,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed1804(); - var arg_directorySiteIds = buildUnnamed1805(); - var arg_ids = buildUnnamed1806(); + var arg_campaignIds = buildUnnamed1557(); + var arg_directorySiteIds = buildUnnamed1558(); + var arg_ids = buildUnnamed1559(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22149,7 +22149,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed1807(); + var arg_ids = buildUnnamed1560(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -22326,7 +22326,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1808(); + var arg_ids = buildUnnamed1561(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22908,7 +22908,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed1809(); + var arg_ids = buildUnnamed1562(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -23137,7 +23137,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed1810(); + var arg_ids = buildUnnamed1563(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_6_test.dart b/generated/googleapis/test/dfareporting/v2_6_test.dart index 6127055..d3e562e 100644 --- a/generated/googleapis/test/dfareporting/v2_6_test.dart +++ b/generated/googleapis/test/dfareporting/v2_6_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2717() { +buildUnnamed2505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2717(core.List<core.String> o) { +checkUnnamed2505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2718() { +buildUnnamed2506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2718(core.List<core.String> o) { +checkUnnamed2506(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed2717(); + o.accountPermissionIds = buildUnnamed2505(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed2718(); + o.availablePermissionIds = buildUnnamed2506(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2717(o.accountPermissionIds); + checkUnnamed2505(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed2718(o.availablePermissionIds); + checkUnnamed2506(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed2719() { +buildUnnamed2507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2719(core.List<core.String> o) { +checkUnnamed2507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed2719(); + o.accountProfiles = buildUnnamed2507(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed2719(o.accountProfiles); + checkUnnamed2507(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed2720() { +buildUnnamed2508() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed2720(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2508(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed2720(); + o.accountPermissionGroups = buildUnnamed2508(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed2720(o.accountPermissionGroups); + checkUnnamed2508(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed2721() { +buildUnnamed2509() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed2721(core.List<api.AccountPermission> o) { +checkUnnamed2509(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed2721(); + o.accountPermissions = buildUnnamed2509(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed2721(o.accountPermissions); + checkUnnamed2509(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed2722() { +buildUnnamed2510() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed2722(core.List<api.AccountUserProfile> o) { +checkUnnamed2510(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed2722(); + o.accountUserProfiles = buildUnnamed2510(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed2722(o.accountUserProfiles); + checkUnnamed2510(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed2723() { +buildUnnamed2511() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2723(core.List<api.Account> o) { +checkUnnamed2511(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed2723(); + o.accounts = buildUnnamed2511(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed2723(o.accounts); + checkUnnamed2511(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed2724() { +buildUnnamed2512() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2724(core.List<api.DimensionValue> o) { +checkUnnamed2512(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2725() { +buildUnnamed2513() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2725(core.List<core.String> o) { +checkUnnamed2513(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed2724(); + o.filters = buildUnnamed2512(); o.kind = "foo"; - o.metricNames = buildUnnamed2725(); + o.metricNames = buildUnnamed2513(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed2724(o.filters); + checkUnnamed2512(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2725(o.metricNames); + checkUnnamed2513(o.metricNames); } buildCounterActivities--; } -buildUnnamed2726() { +buildUnnamed2514() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2726(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2514(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2727() { +buildUnnamed2515() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2727(core.List<api.EventTagOverride> o) { +checkUnnamed2515(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2728() { +buildUnnamed2516() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed2728(core.List<api.PlacementAssignment> o) { +checkUnnamed2516(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed2726(); + o.creativeGroupAssignments = buildUnnamed2514(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed2727(); + o.eventTagOverrides = buildUnnamed2515(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -535,7 +535,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed2728(); + o.placementAssignments = buildUnnamed2516(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -566,14 +566,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2726(o.creativeGroupAssignments); + checkUnnamed2514(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2727(o.eventTagOverrides); + checkUnnamed2515(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -582,7 +582,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2728(o.placementAssignments); + checkUnnamed2516(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -629,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed2729() { +buildUnnamed2517() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed2729(core.List<api.Ad> o) { +checkUnnamed2517(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -647,7 +647,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed2729(); + o.ads = buildUnnamed2517(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -658,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed2729(o.ads); + checkUnnamed2517(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -737,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed2730() { +buildUnnamed2518() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed2730(core.List<api.AdvertiserGroup> o) { +checkUnnamed2518(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -755,7 +755,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed2730(); + o.advertiserGroups = buildUnnamed2518(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -766,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed2730(o.advertiserGroups); + checkUnnamed2518(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed2731() { +buildUnnamed2519() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed2731(core.List<api.Advertiser> o) { +checkUnnamed2519(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -791,7 +791,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed2731(); + o.advertisers = buildUnnamed2519(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -802,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed2731(o.advertisers); + checkUnnamed2519(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -832,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed2732() { +buildUnnamed2520() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed2732(core.List<api.AudienceSegment> o) { +checkUnnamed2520(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -850,7 +850,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed2732(); + o.audienceSegments = buildUnnamed2520(); o.id = "foo"; o.name = "foo"; } @@ -861,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed2732(o.audienceSegments); + checkUnnamed2520(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -897,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed2733() { +buildUnnamed2521() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2733(core.List<api.Browser> o) { +checkUnnamed2521(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -915,7 +915,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed2733(); + o.browsers = buildUnnamed2521(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -925,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed2733(o.browsers); + checkUnnamed2521(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed2734() { +buildUnnamed2522() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed2734(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2522(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed2735() { +buildUnnamed2523() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed2735(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2523(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed2736() { +buildUnnamed2524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2736(core.List<core.String> o) { +checkUnnamed2524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2737() { +buildUnnamed2525() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2737(core.List<api.EventTagOverride> o) { +checkUnnamed2525(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2738() { +buildUnnamed2526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2738(core.List<core.String> o) { +checkUnnamed2526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1002,21 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed2734(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2522(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed2735(); + o.audienceSegmentGroups = buildUnnamed2523(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed2736(); + o.creativeGroupIds = buildUnnamed2524(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed2737(); + o.eventTagOverrides = buildUnnamed2525(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1027,7 +1027,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed2738(); + o.traffickerEmails = buildUnnamed2526(); } buildCounterCampaign--; return o; @@ -1037,21 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2734(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2522(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed2735(o.audienceSegmentGroups); + checkUnnamed2523(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2736(o.creativeGroupIds); + checkUnnamed2524(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2737(o.eventTagOverrides); + checkUnnamed2525(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1062,7 +1062,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2738(o.traffickerEmails); + checkUnnamed2526(o.traffickerEmails); } buildCounterCampaign--; } @@ -1088,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed2739() { +buildUnnamed2527() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed2739(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2527(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1106,7 +1106,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed2739(); + o.campaignCreativeAssociations = buildUnnamed2527(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1117,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed2739(o.campaignCreativeAssociations); + checkUnnamed2527(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed2740() { +buildUnnamed2528() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed2740(core.List<api.Campaign> o) { +checkUnnamed2528(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1142,7 +1142,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed2740(); + o.campaigns = buildUnnamed2528(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1153,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed2740(o.campaigns); + checkUnnamed2528(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1205,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed2741() { +buildUnnamed2529() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed2741(core.List<api.ChangeLog> o) { +checkUnnamed2529(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1223,7 +1223,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed2741(); + o.changeLogs = buildUnnamed2529(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1234,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed2741(o.changeLogs); + checkUnnamed2529(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed2742() { +buildUnnamed2530() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2742(core.List<api.City> o) { +checkUnnamed2530(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1259,7 +1259,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed2742(); + o.cities = buildUnnamed2530(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1269,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed2742(o.cities); + checkUnnamed2530(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1452,14 +1452,14 @@ buildCounterConnectionType--; } -buildUnnamed2743() { +buildUnnamed2531() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2743(core.List<api.ConnectionType> o) { +checkUnnamed2531(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1470,7 +1470,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed2743(); + o.connectionTypes = buildUnnamed2531(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1480,20 +1480,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed2743(o.connectionTypes); + checkUnnamed2531(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed2744() { +buildUnnamed2532() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed2744(core.List<api.ContentCategory> o) { +checkUnnamed2532(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1504,7 +1504,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed2744(); + o.contentCategories = buildUnnamed2532(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1515,7 +1515,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed2744(o.contentCategories); + checkUnnamed2532(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1547,27 +1547,27 @@ buildCounterContentCategory--; } -buildUnnamed2745() { +buildUnnamed2533() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed2745(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed2533(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed2746() { +buildUnnamed2534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2746(core.List<core.String> o) { +checkUnnamed2534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1579,9 +1579,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed2745(); + o.customVariables = buildUnnamed2533(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed2746(); + o.encryptedUserIdCandidates = buildUnnamed2534(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.kind = "foo"; @@ -1600,9 +1600,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed2745(o.customVariables); + checkUnnamed2533(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed2746(o.encryptedUserIdCandidates); + checkUnnamed2534(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1639,14 +1639,14 @@ buildCounterConversionError--; } -buildUnnamed2747() { +buildUnnamed2535() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed2747(core.List<api.ConversionError> o) { +checkUnnamed2535(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1658,7 +1658,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed2747(); + o.errors = buildUnnamed2535(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1669,20 +1669,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed2747(o.errors); + checkUnnamed2535(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed2748() { +buildUnnamed2536() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed2748(core.List<api.Conversion> o) { +checkUnnamed2536(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1693,7 +1693,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed2748(); + o.conversions = buildUnnamed2536(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1704,21 +1704,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed2748(o.conversions); + checkUnnamed2536(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed2749() { +buildUnnamed2537() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed2749(core.List<api.ConversionStatus> o) { +checkUnnamed2537(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1731,7 +1731,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed2749(); + o.status = buildUnnamed2537(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1742,19 +1742,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2749(o.status); + checkUnnamed2537(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed2750() { +buildUnnamed2538() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2750(core.List<api.Country> o) { +checkUnnamed2538(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1765,7 +1765,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed2750(); + o.countries = buildUnnamed2538(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1775,7 +1775,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed2750(o.countries); + checkUnnamed2538(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1808,157 +1808,157 @@ buildCounterCountry--; } -buildUnnamed2751() { +buildUnnamed2539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2751(core.List<core.String> o) { +checkUnnamed2539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2752() { +buildUnnamed2540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2752(core.List<core.String> o) { +checkUnnamed2540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2753() { +buildUnnamed2541() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2753(core.List<api.ClickTag> o) { +checkUnnamed2541(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2754() { +buildUnnamed2542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2754(core.List<core.String> o) { +checkUnnamed2542(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2755() { +buildUnnamed2543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2755(core.List<core.String> o) { +checkUnnamed2543(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2756() { +buildUnnamed2544() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2756(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2544(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2757() { +buildUnnamed2545() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed2757(core.List<api.CreativeAsset> o) { +checkUnnamed2545(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed2758() { +buildUnnamed2546() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed2758(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2546(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed2759() { +buildUnnamed2547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2759(core.List<core.String> o) { +checkUnnamed2547(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2760() { +buildUnnamed2548() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2760(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2548(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2761() { +buildUnnamed2549() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed2761(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2549(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed2762() { +buildUnnamed2550() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2762(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2550(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1972,7 +1972,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed2751(); + o.adTagKeys = buildUnnamed2539(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1982,21 +1982,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed2752(); + o.backupImageFeatures = buildUnnamed2540(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed2753(); + o.clickTags = buildUnnamed2541(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed2754(); - o.compatibility = buildUnnamed2755(); + o.companionCreatives = buildUnnamed2542(); + o.compatibility = buildUnnamed2543(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed2756(); + o.counterCustomEvents = buildUnnamed2544(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed2757(); - o.creativeFieldAssignments = buildUnnamed2758(); - o.customKeyValues = buildUnnamed2759(); + o.creativeAssets = buildUnnamed2545(); + o.creativeFieldAssignments = buildUnnamed2546(); + o.customKeyValues = buildUnnamed2547(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed2760(); + o.exitCustomEvents = buildUnnamed2548(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2022,8 +2022,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed2761(); - o.timerCustomEvents = buildUnnamed2762(); + o.thirdPartyUrls = buildUnnamed2549(); + o.timerCustomEvents = buildUnnamed2550(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -2040,7 +2040,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed2751(o.adTagKeys); + checkUnnamed2539(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2050,21 +2050,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed2752(o.backupImageFeatures); + checkUnnamed2540(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed2753(o.clickTags); + checkUnnamed2541(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed2754(o.companionCreatives); - checkUnnamed2755(o.compatibility); + checkUnnamed2542(o.companionCreatives); + checkUnnamed2543(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed2756(o.counterCustomEvents); + checkUnnamed2544(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed2757(o.creativeAssets); - checkUnnamed2758(o.creativeFieldAssignments); - checkUnnamed2759(o.customKeyValues); + checkUnnamed2545(o.creativeAssets); + checkUnnamed2546(o.creativeFieldAssignments); + checkUnnamed2547(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed2760(o.exitCustomEvents); + checkUnnamed2548(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2090,8 +2090,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed2761(o.thirdPartyUrls); - checkUnnamed2762(o.timerCustomEvents); + checkUnnamed2549(o.thirdPartyUrls); + checkUnnamed2550(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -2101,27 +2101,27 @@ buildCounterCreative--; } -buildUnnamed2763() { +buildUnnamed2551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2763(core.List<core.String> o) { +checkUnnamed2551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2764() { +buildUnnamed2552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2764(core.List<core.String> o) { +checkUnnamed2552(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2141,9 +2141,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed2763(); + o.companionCreativeIds = buildUnnamed2551(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed2764(); + o.detectedFeatures = buildUnnamed2552(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2193,9 +2193,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed2763(o.companionCreativeIds); + checkUnnamed2551(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed2764(o.detectedFeatures); + checkUnnamed2552(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2253,40 +2253,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed2765() { +buildUnnamed2553() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2765(core.List<api.ClickTag> o) { +checkUnnamed2553(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2766() { +buildUnnamed2554() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2766(core.List<core.String> o) { +checkUnnamed2554(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2767() { +buildUnnamed2555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2767(core.List<core.String> o) { +checkUnnamed2555(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2298,12 +2298,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed2765(); - o.detectedFeatures = buildUnnamed2766(); + o.clickTags = buildUnnamed2553(); + o.detectedFeatures = buildUnnamed2554(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed2767(); + o.warnedValidationRules = buildUnnamed2555(); } buildCounterCreativeAssetMetadata--; return o; @@ -2313,24 +2313,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed2765(o.clickTags); - checkUnnamed2766(o.detectedFeatures); + checkUnnamed2553(o.clickTags); + checkUnnamed2554(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2767(o.warnedValidationRules); + checkUnnamed2555(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed2768() { +buildUnnamed2556() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2768(core.List<api.Rule> o) { +checkUnnamed2556(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2342,7 +2342,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed2768(); + o.rules = buildUnnamed2556(); } buildCounterCreativeAssetSelection--; return o; @@ -2352,45 +2352,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed2768(o.rules); + checkUnnamed2556(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed2769() { +buildUnnamed2557() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed2769(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2557(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed2770() { +buildUnnamed2558() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2770(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2558(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2771() { +buildUnnamed2559() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed2771(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2559(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2404,12 +2404,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed2769(); - o.creativeGroupAssignments = buildUnnamed2770(); + o.companionCreativeOverrides = buildUnnamed2557(); + o.creativeGroupAssignments = buildUnnamed2558(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed2771(); + o.richMediaExitOverrides = buildUnnamed2559(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2425,12 +2425,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed2769(o.companionCreativeOverrides); - checkUnnamed2770(o.creativeGroupAssignments); + checkUnnamed2557(o.companionCreativeOverrides); + checkUnnamed2558(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2771(o.richMediaExitOverrides); + checkUnnamed2559(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2551,14 +2551,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed2772() { +buildUnnamed2560() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed2772(core.List<api.CreativeFieldValue> o) { +checkUnnamed2560(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2569,7 +2569,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed2772(); + o.creativeFieldValues = buildUnnamed2560(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2580,21 +2580,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed2772(o.creativeFieldValues); + checkUnnamed2560(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed2773() { +buildUnnamed2561() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed2773(core.List<api.CreativeField> o) { +checkUnnamed2561(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2605,7 +2605,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed2773(); + o.creativeFields = buildUnnamed2561(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2616,7 +2616,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed2773(o.creativeFields); + checkUnnamed2561(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2677,14 +2677,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed2774() { +buildUnnamed2562() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed2774(core.List<api.CreativeGroup> o) { +checkUnnamed2562(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2695,7 +2695,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed2774(); + o.creativeGroups = buildUnnamed2562(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2706,21 +2706,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed2774(o.creativeGroups); + checkUnnamed2562(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed2775() { +buildUnnamed2563() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed2775(core.List<api.OptimizationActivity> o) { +checkUnnamed2563(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2733,7 +2733,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed2775(); + o.optimizationActivitys = buildUnnamed2563(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2745,20 +2745,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2775(o.optimizationActivitys); + checkUnnamed2563(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed2776() { +buildUnnamed2564() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed2776(core.List<api.CreativeAssignment> o) { +checkUnnamed2564(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2769,7 +2769,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed2776(); + o.creativeAssignments = buildUnnamed2564(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2781,7 +2781,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed2776(o.creativeAssignments); + checkUnnamed2564(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2810,14 +2810,14 @@ buildCounterCreativeSettings--; } -buildUnnamed2777() { +buildUnnamed2565() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2777(core.List<api.Creative> o) { +checkUnnamed2565(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2828,7 +2828,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed2777(); + o.creatives = buildUnnamed2565(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2839,60 +2839,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed2777(o.creatives); + checkUnnamed2565(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed2778() { +buildUnnamed2566() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2778(core.List<api.Dimension> o) { +checkUnnamed2566(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2779() { +buildUnnamed2567() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2779(core.List<api.Dimension> o) { +checkUnnamed2567(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2780() { +buildUnnamed2568() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2780(core.List<api.Metric> o) { +checkUnnamed2568(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2781() { +buildUnnamed2569() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2781(core.List<api.Metric> o) { +checkUnnamed2569(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2903,11 +2903,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed2778(); - o.dimensionFilters = buildUnnamed2779(); + o.breakdown = buildUnnamed2566(); + o.dimensionFilters = buildUnnamed2567(); o.kind = "foo"; - o.metrics = buildUnnamed2780(); - o.overlapMetrics = buildUnnamed2781(); + o.metrics = buildUnnamed2568(); + o.overlapMetrics = buildUnnamed2569(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2916,11 +2916,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed2778(o.breakdown); - checkUnnamed2779(o.dimensionFilters); + checkUnnamed2566(o.breakdown); + checkUnnamed2567(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2780(o.metrics); - checkUnnamed2781(o.overlapMetrics); + checkUnnamed2568(o.metrics); + checkUnnamed2569(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2948,14 +2948,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed2782() { +buildUnnamed2570() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2782(core.List<api.DimensionValue> o) { +checkUnnamed2570(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2966,7 +2966,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed2782(); + o.filteredEventIds = buildUnnamed2570(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2976,7 +2976,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed2782(o.filteredEventIds); + checkUnnamed2570(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3007,27 +3007,27 @@ buildCounterDateRange--; } -buildUnnamed2783() { +buildUnnamed2571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2783(core.List<core.String> o) { +checkUnnamed2571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2784() { +buildUnnamed2572() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2784(core.List<core.int> o) { +checkUnnamed2572(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -3038,8 +3038,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed2783(); - o.hoursOfDay = buildUnnamed2784(); + o.daysOfWeek = buildUnnamed2571(); + o.hoursOfDay = buildUnnamed2572(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3049,8 +3049,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed2783(o.daysOfWeek); - checkUnnamed2784(o.hoursOfDay); + checkUnnamed2571(o.daysOfWeek); + checkUnnamed2572(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3202,14 +3202,14 @@ buildCounterDimensionValue--; } -buildUnnamed2785() { +buildUnnamed2573() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2785(core.List<api.DimensionValue> o) { +checkUnnamed2573(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3221,7 +3221,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed2785(); + o.items = buildUnnamed2573(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3233,21 +3233,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2785(o.items); + checkUnnamed2573(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed2786() { +buildUnnamed2574() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed2786(core.List<api.DimensionFilter> o) { +checkUnnamed2574(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3260,7 +3260,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed2786(); + o.filters = buildUnnamed2574(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3273,47 +3273,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2786(o.filters); + checkUnnamed2574(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed2787() { +buildUnnamed2575() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed2787(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2575(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed2788() { +buildUnnamed2576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2788(core.List<core.String> o) { +checkUnnamed2576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2789() { +buildUnnamed2577() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2789(core.List<core.String> o) { +checkUnnamed2577(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3325,14 +3325,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed2787(); + o.contactAssignments = buildUnnamed2575(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed2788(); - o.interstitialTagFormats = buildUnnamed2789(); + o.inpageTagFormats = buildUnnamed2576(); + o.interstitialTagFormats = buildUnnamed2577(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3347,14 +3347,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed2787(o.contactAssignments); + checkUnnamed2575(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed2788(o.inpageTagFormats); - checkUnnamed2789(o.interstitialTagFormats); + checkUnnamed2576(o.inpageTagFormats); + checkUnnamed2577(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3422,14 +3422,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed2790() { +buildUnnamed2578() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed2790(core.List<api.DirectorySiteContact> o) { +checkUnnamed2578(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3440,7 +3440,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed2790(); + o.directorySiteContacts = buildUnnamed2578(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3451,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed2790(o.directorySiteContacts); + checkUnnamed2578(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3489,14 +3489,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed2791() { +buildUnnamed2579() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed2791(core.List<api.DirectorySite> o) { +checkUnnamed2579(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3507,7 +3507,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed2791(); + o.directorySites = buildUnnamed2579(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3518,7 +3518,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed2791(o.directorySites); + checkUnnamed2579(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3550,14 +3550,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed2792() { +buildUnnamed2580() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed2792(core.List<api.DynamicTargetingKey> o) { +checkUnnamed2580(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3568,7 +3568,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed2792(); + o.dynamicTargetingKeys = buildUnnamed2580(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3578,7 +3578,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed2792(o.dynamicTargetingKeys); + checkUnnamed2580(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3609,14 +3609,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed2793() { +buildUnnamed2581() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2793(core.List<core.String> o) { +checkUnnamed2581(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3638,7 +3638,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed2793(); + o.siteIds = buildUnnamed2581(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3664,7 +3664,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed2793(o.siteIds); + checkUnnamed2581(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3696,14 +3696,14 @@ buildCounterEventTagOverride--; } -buildUnnamed2794() { +buildUnnamed2582() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed2794(core.List<api.EventTag> o) { +checkUnnamed2582(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3714,7 +3714,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed2794(); + o.eventTags = buildUnnamed2582(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3724,7 +3724,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed2794(o.eventTags); + checkUnnamed2582(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3788,14 +3788,14 @@ buildCounterFile--; } -buildUnnamed2795() { +buildUnnamed2583() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2795(core.List<api.File> o) { +checkUnnamed2583(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3807,7 +3807,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2795(); + o.items = buildUnnamed2583(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3819,7 +3819,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2795(o.items); + checkUnnamed2583(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3872,14 +3872,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed2796() { +buildUnnamed2584() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed2796(core.List<api.FloodlightActivity> o) { +checkUnnamed2584(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3890,7 +3890,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed2796(); + o.floodlightActivities = buildUnnamed2584(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3901,47 +3901,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed2796(o.floodlightActivities); + checkUnnamed2584(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed2797() { +buildUnnamed2585() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed2797(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2585(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed2798() { +buildUnnamed2586() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed2798(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2586(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed2799() { +buildUnnamed2587() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2799(core.List<core.String> o) { +checkUnnamed2587(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3957,7 +3957,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed2797(); + o.defaultTags = buildUnnamed2585(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3972,14 +3972,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed2798(); + o.publisherTags = buildUnnamed2586(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed2799(); + o.userDefinedVariableTypes = buildUnnamed2587(); } buildCounterFloodlightActivity--; return o; @@ -3993,7 +3993,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed2797(o.defaultTags); + checkUnnamed2585(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4008,14 +4008,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2798(o.publisherTags); + checkUnnamed2586(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed2799(o.userDefinedVariableTypes); + checkUnnamed2587(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4084,14 +4084,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed2800() { +buildUnnamed2588() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed2800(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2588(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4102,7 +4102,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed2800(); + o.floodlightActivityGroups = buildUnnamed2588(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4113,7 +4113,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed2800(o.floodlightActivityGroups); + checkUnnamed2588(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4149,40 +4149,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed2801() { +buildUnnamed2589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2801(core.List<core.String> o) { +checkUnnamed2589(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2802() { +buildUnnamed2590() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed2802(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2590(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed2803() { +buildUnnamed2591() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed2803(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2591(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4206,11 +4206,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed2801(); + o.standardVariableTypes = buildUnnamed2589(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed2802(); - o.userDefinedVariableConfigurations = buildUnnamed2803(); + o.thirdPartyAuthenticationTokens = buildUnnamed2590(); + o.userDefinedVariableConfigurations = buildUnnamed2591(); } buildCounterFloodlightConfiguration--; return o; @@ -4232,23 +4232,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed2801(o.standardVariableTypes); + checkUnnamed2589(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed2802(o.thirdPartyAuthenticationTokens); - checkUnnamed2803(o.userDefinedVariableConfigurations); + checkUnnamed2590(o.thirdPartyAuthenticationTokens); + checkUnnamed2591(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed2804() { +buildUnnamed2592() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed2804(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2592(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4259,7 +4259,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed2804(); + o.floodlightConfigurations = buildUnnamed2592(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4269,46 +4269,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed2804(o.floodlightConfigurations); + checkUnnamed2592(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed2805() { +buildUnnamed2593() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2805(core.List<api.Dimension> o) { +checkUnnamed2593(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2806() { +buildUnnamed2594() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2806(core.List<api.Dimension> o) { +checkUnnamed2594(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2807() { +buildUnnamed2595() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2807(core.List<api.Metric> o) { +checkUnnamed2595(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4319,10 +4319,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2805(); - o.dimensions = buildUnnamed2806(); + o.dimensionFilters = buildUnnamed2593(); + o.dimensions = buildUnnamed2594(); o.kind = "foo"; - o.metrics = buildUnnamed2807(); + o.metrics = buildUnnamed2595(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4331,10 +4331,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed2805(o.dimensionFilters); - checkUnnamed2806(o.dimensions); + checkUnnamed2593(o.dimensionFilters); + checkUnnamed2594(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2807(o.metrics); + checkUnnamed2595(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4387,66 +4387,66 @@ buildCounterFsCommand--; } -buildUnnamed2808() { +buildUnnamed2596() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2808(core.List<api.City> o) { +checkUnnamed2596(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed2809() { +buildUnnamed2597() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2809(core.List<api.Country> o) { +checkUnnamed2597(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed2810() { +buildUnnamed2598() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2810(core.List<api.Metro> o) { +checkUnnamed2598(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed2811() { +buildUnnamed2599() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2811(core.List<api.PostalCode> o) { +checkUnnamed2599(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed2812() { +buildUnnamed2600() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2812(core.List<api.Region> o) { +checkUnnamed2600(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4457,12 +4457,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed2808(); - o.countries = buildUnnamed2809(); + o.cities = buildUnnamed2596(); + o.countries = buildUnnamed2597(); o.excludeCountries = true; - o.metros = buildUnnamed2810(); - o.postalCodes = buildUnnamed2811(); - o.regions = buildUnnamed2812(); + o.metros = buildUnnamed2598(); + o.postalCodes = buildUnnamed2599(); + o.regions = buildUnnamed2600(); } buildCounterGeoTargeting--; return o; @@ -4471,24 +4471,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed2808(o.cities); - checkUnnamed2809(o.countries); + checkUnnamed2596(o.cities); + checkUnnamed2597(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed2810(o.metros); - checkUnnamed2811(o.postalCodes); - checkUnnamed2812(o.regions); + checkUnnamed2598(o.metros); + checkUnnamed2599(o.postalCodes); + checkUnnamed2600(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed2813() { +buildUnnamed2601() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed2813(core.List<api.AdSlot> o) { +checkUnnamed2601(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4500,7 +4500,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed2813(); + o.adSlots = buildUnnamed2601(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4528,7 +4528,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2813(o.adSlots); + checkUnnamed2601(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4551,14 +4551,14 @@ buildCounterInventoryItem--; } -buildUnnamed2814() { +buildUnnamed2602() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed2814(core.List<api.InventoryItem> o) { +checkUnnamed2602(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4569,7 +4569,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed2814(); + o.inventoryItems = buildUnnamed2602(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4580,7 +4580,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed2814(o.inventoryItems); + checkUnnamed2602(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4633,14 +4633,14 @@ buildCounterLandingPage--; } -buildUnnamed2815() { +buildUnnamed2603() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed2815(core.List<api.LandingPage> o) { +checkUnnamed2603(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4652,7 +4652,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed2815(); + o.landingPages = buildUnnamed2603(); } buildCounterLandingPagesListResponse--; return o; @@ -4662,7 +4662,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2815(o.landingPages); + checkUnnamed2603(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4692,14 +4692,14 @@ buildCounterLanguage--; } -buildUnnamed2816() { +buildUnnamed2604() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2816(core.List<api.Language> o) { +checkUnnamed2604(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4710,7 +4710,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed2816(); + o.languages = buildUnnamed2604(); } buildCounterLanguageTargeting--; return o; @@ -4719,19 +4719,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed2816(o.languages); + checkUnnamed2604(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed2817() { +buildUnnamed2605() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2817(core.List<api.Language> o) { +checkUnnamed2605(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4743,7 +4743,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed2817(); + o.languages = buildUnnamed2605(); } buildCounterLanguagesListResponse--; return o; @@ -4753,7 +4753,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2817(o.languages); + checkUnnamed2605(o.languages); } buildCounterLanguagesListResponse--; } @@ -4777,14 +4777,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed2818() { +buildUnnamed2606() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed2818(core.List<api.ListPopulationTerm> o) { +checkUnnamed2606(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4795,7 +4795,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed2818(); + o.terms = buildUnnamed2606(); } buildCounterListPopulationClause--; return o; @@ -4804,19 +4804,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed2818(o.terms); + checkUnnamed2606(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed2819() { +buildUnnamed2607() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed2819(core.List<api.ListPopulationClause> o) { +checkUnnamed2607(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4829,7 +4829,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed2819(); + o.listPopulationClauses = buildUnnamed2607(); } buildCounterListPopulationRule--; return o; @@ -4840,7 +4840,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed2819(o.listPopulationClauses); + checkUnnamed2607(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4970,14 +4970,14 @@ buildCounterMetro--; } -buildUnnamed2820() { +buildUnnamed2608() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2820(core.List<api.Metro> o) { +checkUnnamed2608(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4989,7 +4989,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed2820(); + o.metros = buildUnnamed2608(); } buildCounterMetrosListResponse--; return o; @@ -4999,7 +4999,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2820(o.metros); + checkUnnamed2608(o.metros); } buildCounterMetrosListResponse--; } @@ -5031,14 +5031,14 @@ buildCounterMobileCarrier--; } -buildUnnamed2821() { +buildUnnamed2609() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2821(core.List<api.MobileCarrier> o) { +checkUnnamed2609(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5050,7 +5050,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed2821(); + o.mobileCarriers = buildUnnamed2609(); } buildCounterMobileCarriersListResponse--; return o; @@ -5060,19 +5060,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2821(o.mobileCarriers); + checkUnnamed2609(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed2822() { +buildUnnamed2610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2822(core.List<core.String> o) { +checkUnnamed2610(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5084,7 +5084,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed2822(); + o.objectIds = buildUnnamed2610(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5095,7 +5095,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2822(o.objectIds); + checkUnnamed2610(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5199,14 +5199,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed2823() { +buildUnnamed2611() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2823(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2611(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5218,7 +5218,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed2823(); + o.operatingSystemVersions = buildUnnamed2611(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5228,19 +5228,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2823(o.operatingSystemVersions); + checkUnnamed2611(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed2824() { +buildUnnamed2612() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2824(core.List<api.OperatingSystem> o) { +checkUnnamed2612(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5252,7 +5252,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed2824(); + o.operatingSystems = buildUnnamed2612(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5262,7 +5262,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2824(o.operatingSystems); + checkUnnamed2612(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5290,53 +5290,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed2825() { +buildUnnamed2613() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2825(core.List<core.String> o) { +checkUnnamed2613(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2826() { +buildUnnamed2614() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed2826(core.List<api.OrderContact> o) { +checkUnnamed2614(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed2827() { +buildUnnamed2615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2827(core.List<core.String> o) { +checkUnnamed2615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2828() { +buildUnnamed2616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2828(core.List<core.String> o) { +checkUnnamed2616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5349,11 +5349,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed2825(); + o.approverUserProfileIds = buildUnnamed2613(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed2826(); + o.contacts = buildUnnamed2614(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5363,8 +5363,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed2827(); - o.siteNames = buildUnnamed2828(); + o.siteId = buildUnnamed2615(); + o.siteNames = buildUnnamed2616(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5377,11 +5377,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed2825(o.approverUserProfileIds); + checkUnnamed2613(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed2826(o.contacts); + checkUnnamed2614(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5391,8 +5391,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed2827(o.siteId); - checkUnnamed2828(o.siteNames); + checkUnnamed2615(o.siteId); + checkUnnamed2616(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5426,27 +5426,27 @@ buildCounterOrderContact--; } -buildUnnamed2829() { +buildUnnamed2617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2829(core.List<core.String> o) { +checkUnnamed2617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2830() { +buildUnnamed2618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2830(core.List<core.String> o) { +checkUnnamed2618(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5460,13 +5460,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed2829(); + o.approvedByUserProfileIds = buildUnnamed2617(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed2830(); + o.lastSentRecipients = buildUnnamed2618(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5485,13 +5485,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed2829(o.approvedByUserProfileIds); + checkUnnamed2617(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2830(o.lastSentRecipients); + checkUnnamed2618(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5503,14 +5503,14 @@ buildCounterOrderDocument--; } -buildUnnamed2831() { +buildUnnamed2619() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed2831(core.List<api.OrderDocument> o) { +checkUnnamed2619(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5523,7 +5523,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed2831(); + o.orderDocuments = buildUnnamed2619(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5534,19 +5534,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2831(o.orderDocuments); + checkUnnamed2619(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed2832() { +buildUnnamed2620() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed2832(core.List<api.Order> o) { +checkUnnamed2620(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5559,7 +5559,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed2832(); + o.orders = buildUnnamed2620(); } buildCounterOrdersListResponse--; return o; @@ -5570,58 +5570,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2832(o.orders); + checkUnnamed2620(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed2833() { +buildUnnamed2621() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2833(core.List<api.Dimension> o) { +checkUnnamed2621(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2834() { +buildUnnamed2622() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2834(core.List<api.Dimension> o) { +checkUnnamed2622(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2835() { +buildUnnamed2623() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2835(core.List<api.Metric> o) { +checkUnnamed2623(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2836() { +buildUnnamed2624() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2836(core.List<api.Dimension> o) { +checkUnnamed2624(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5632,11 +5632,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed2833(); - o.customFloodlightVariables = buildUnnamed2834(); + o.conversionDimensions = buildUnnamed2621(); + o.customFloodlightVariables = buildUnnamed2622(); o.kind = "foo"; - o.metrics = buildUnnamed2835(); - o.perInteractionDimensions = buildUnnamed2836(); + o.metrics = buildUnnamed2623(); + o.perInteractionDimensions = buildUnnamed2624(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5645,23 +5645,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed2833(o.conversionDimensions); - checkUnnamed2834(o.customFloodlightVariables); + checkUnnamed2621(o.conversionDimensions); + checkUnnamed2622(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2835(o.metrics); - checkUnnamed2836(o.perInteractionDimensions); + checkUnnamed2623(o.metrics); + checkUnnamed2624(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed2837() { +buildUnnamed2625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2837(core.List<core.String> o) { +checkUnnamed2625(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5706,7 +5706,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed2837(); + o.tagFormats = buildUnnamed2625(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5750,7 +5750,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2837(o.tagFormats); + checkUnnamed2625(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5781,14 +5781,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2838() { +buildUnnamed2626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2838(core.List<core.String> o) { +checkUnnamed2626(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5805,7 +5805,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed2838(); + o.childPlacementIds = buildUnnamed2626(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5839,7 +5839,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed2838(o.childPlacementIds); + checkUnnamed2626(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5863,14 +5863,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2839() { +buildUnnamed2627() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2839(core.List<api.PlacementGroup> o) { +checkUnnamed2627(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5883,7 +5883,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed2839(); + o.placementGroups = buildUnnamed2627(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5894,19 +5894,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2839(o.placementGroups); + checkUnnamed2627(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2840() { +buildUnnamed2628() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2840(core.List<api.PlacementStrategy> o) { +checkUnnamed2628(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5919,7 +5919,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed2840(); + o.placementStrategies = buildUnnamed2628(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5930,7 +5930,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2840(o.placementStrategies); + checkUnnamed2628(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5960,14 +5960,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2841() { +buildUnnamed2629() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2841(core.List<api.TagData> o) { +checkUnnamed2629(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5979,7 +5979,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed2841(); + o.tagDatas = buildUnnamed2629(); } buildCounterPlacementTag--; return o; @@ -5989,19 +5989,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2841(o.tagDatas); + checkUnnamed2629(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2842() { +buildUnnamed2630() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2842(core.List<api.PlacementTag> o) { +checkUnnamed2630(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6013,7 +6013,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed2842(); + o.placementTags = buildUnnamed2630(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6023,19 +6023,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2842(o.placementTags); + checkUnnamed2630(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2843() { +buildUnnamed2631() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2843(core.List<api.Placement> o) { +checkUnnamed2631(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6048,7 +6048,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed2843(); + o.placements = buildUnnamed2631(); } buildCounterPlacementsListResponse--; return o; @@ -6059,7 +6059,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2843(o.placements); + checkUnnamed2631(o.placements); } buildCounterPlacementsListResponse--; } @@ -6087,14 +6087,14 @@ buildCounterPlatformType--; } -buildUnnamed2844() { +buildUnnamed2632() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2844(core.List<api.PlatformType> o) { +checkUnnamed2632(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6106,7 +6106,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed2844(); + o.platformTypes = buildUnnamed2632(); } buildCounterPlatformTypesListResponse--; return o; @@ -6116,7 +6116,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2844(o.platformTypes); + checkUnnamed2632(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6183,14 +6183,14 @@ buildCounterPostalCode--; } -buildUnnamed2845() { +buildUnnamed2633() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2845(core.List<api.PostalCode> o) { +checkUnnamed2633(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6202,7 +6202,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed2845(); + o.postalCodes = buildUnnamed2633(); } buildCounterPostalCodesListResponse--; return o; @@ -6212,19 +6212,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2845(o.postalCodes); + checkUnnamed2633(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2846() { +buildUnnamed2634() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2846(core.List<api.Flight> o) { +checkUnnamed2634(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6237,7 +6237,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed2846(); + o.flights = buildUnnamed2634(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6251,7 +6251,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2846(o.flights); + checkUnnamed2634(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6259,14 +6259,14 @@ buildCounterPricing--; } -buildUnnamed2847() { +buildUnnamed2635() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2847(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2635(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6282,7 +6282,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed2847(); + o.pricingPeriods = buildUnnamed2635(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6299,7 +6299,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed2847(o.pricingPeriods); + checkUnnamed2635(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6395,14 +6395,14 @@ buildCounterProject--; } -buildUnnamed2848() { +buildUnnamed2636() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2848(core.List<api.Project> o) { +checkUnnamed2636(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6415,7 +6415,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2848(); + o.projects = buildUnnamed2636(); } buildCounterProjectsListResponse--; return o; @@ -6426,71 +6426,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2848(o.projects); + checkUnnamed2636(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2849() { +buildUnnamed2637() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2849(core.List<api.Dimension> o) { +checkUnnamed2637(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2850() { +buildUnnamed2638() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2850(core.List<api.Dimension> o) { +checkUnnamed2638(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2851() { +buildUnnamed2639() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2851(core.List<api.Metric> o) { +checkUnnamed2639(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2852() { +buildUnnamed2640() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2852(core.List<api.Metric> o) { +checkUnnamed2640(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2853() { +buildUnnamed2641() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2853(core.List<api.Metric> o) { +checkUnnamed2641(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6501,12 +6501,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2849(); - o.dimensions = buildUnnamed2850(); + o.dimensionFilters = buildUnnamed2637(); + o.dimensions = buildUnnamed2638(); o.kind = "foo"; - o.metrics = buildUnnamed2851(); - o.pivotedActivityMetrics = buildUnnamed2852(); - o.reachByFrequencyMetrics = buildUnnamed2853(); + o.metrics = buildUnnamed2639(); + o.pivotedActivityMetrics = buildUnnamed2640(); + o.reachByFrequencyMetrics = buildUnnamed2641(); } buildCounterReachReportCompatibleFields--; return o; @@ -6515,12 +6515,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2849(o.dimensionFilters); - checkUnnamed2850(o.dimensions); + checkUnnamed2637(o.dimensionFilters); + checkUnnamed2638(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2851(o.metrics); - checkUnnamed2852(o.pivotedActivityMetrics); - checkUnnamed2853(o.reachByFrequencyMetrics); + checkUnnamed2639(o.metrics); + checkUnnamed2640(o.pivotedActivityMetrics); + checkUnnamed2641(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6577,14 +6577,14 @@ buildCounterRegion--; } -buildUnnamed2854() { +buildUnnamed2642() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2854(core.List<api.Region> o) { +checkUnnamed2642(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6596,7 +6596,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed2854(); + o.regions = buildUnnamed2642(); } buildCounterRegionsListResponse--; return o; @@ -6606,7 +6606,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2854(o.regions); + checkUnnamed2642(o.regions); } buildCounterRegionsListResponse--; } @@ -6654,27 +6654,27 @@ buildCounterRemarketingList--; } -buildUnnamed2855() { +buildUnnamed2643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2855(core.List<core.String> o) { +checkUnnamed2643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2856() { +buildUnnamed2644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2856(core.List<core.String> o) { +checkUnnamed2644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6687,8 +6687,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2855(); - o.sharedAdvertiserIds = buildUnnamed2856(); + o.sharedAccountIds = buildUnnamed2643(); + o.sharedAdvertiserIds = buildUnnamed2644(); } buildCounterRemarketingListShare--; return o; @@ -6699,20 +6699,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2855(o.sharedAccountIds); - checkUnnamed2856(o.sharedAdvertiserIds); + checkUnnamed2643(o.sharedAccountIds); + checkUnnamed2644(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2857() { +buildUnnamed2645() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2857(core.List<api.RemarketingList> o) { +checkUnnamed2645(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6725,7 +6725,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed2857(); + o.remarketingLists = buildUnnamed2645(); } buildCounterRemarketingListsListResponse--; return o; @@ -6736,45 +6736,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2857(o.remarketingLists); + checkUnnamed2645(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2858() { +buildUnnamed2646() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2858(core.List<api.DimensionValue> o) { +checkUnnamed2646(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2859() { +buildUnnamed2647() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2859(core.List<api.SortedDimension> o) { +checkUnnamed2647(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2860() { +buildUnnamed2648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2860(core.List<core.String> o) { +checkUnnamed2648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6788,9 +6788,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2858(); - o.dimensions = buildUnnamed2859(); - o.metricNames = buildUnnamed2860(); + o.dimensionFilters = buildUnnamed2646(); + o.dimensions = buildUnnamed2647(); + o.metricNames = buildUnnamed2648(); } buildCounterReportCriteria--; return o; @@ -6802,60 +6802,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2858(o.dimensionFilters); - checkUnnamed2859(o.dimensions); - checkUnnamed2860(o.metricNames); + checkUnnamed2646(o.dimensionFilters); + checkUnnamed2647(o.dimensions); + checkUnnamed2648(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2861() { +buildUnnamed2649() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2861(core.List<api.SortedDimension> o) { +checkUnnamed2649(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2862() { +buildUnnamed2650() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2862(core.List<api.DimensionValue> o) { +checkUnnamed2650(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2863() { +buildUnnamed2651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2863(core.List<core.String> o) { +checkUnnamed2651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2864() { +buildUnnamed2652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2864(core.List<core.String> o) { +checkUnnamed2652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6866,12 +6866,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed2861(); + o.breakdown = buildUnnamed2649(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2862(); - o.metricNames = buildUnnamed2863(); - o.overlapMetricNames = buildUnnamed2864(); + o.dimensionFilters = buildUnnamed2650(); + o.metricNames = buildUnnamed2651(); + o.overlapMetricNames = buildUnnamed2652(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6881,25 +6881,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2861(o.breakdown); + checkUnnamed2649(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2862(o.dimensionFilters); - checkUnnamed2863(o.metricNames); - checkUnnamed2864(o.overlapMetricNames); + checkUnnamed2650(o.dimensionFilters); + checkUnnamed2651(o.metricNames); + checkUnnamed2652(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2865() { +buildUnnamed2653() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2865(core.List<api.Recipient> o) { +checkUnnamed2653(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6913,7 +6913,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed2865(); + o.recipients = buildUnnamed2653(); } buildCounterReportDelivery--; return o; @@ -6925,58 +6925,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed2865(o.recipients); + checkUnnamed2653(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2866() { +buildUnnamed2654() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2866(core.List<api.DimensionValue> o) { +checkUnnamed2654(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2867() { +buildUnnamed2655() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2867(core.List<api.DimensionValue> o) { +checkUnnamed2655(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2868() { +buildUnnamed2656() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2868(core.List<api.SortedDimension> o) { +checkUnnamed2656(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2869() { +buildUnnamed2657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2869(core.List<core.String> o) { +checkUnnamed2657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7010,12 +7010,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed2866(); + o.customRichMediaEvents = buildUnnamed2654(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2867(); - o.dimensions = buildUnnamed2868(); + o.dimensionFilters = buildUnnamed2655(); + o.dimensions = buildUnnamed2656(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2869(); + o.metricNames = buildUnnamed2657(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7025,90 +7025,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2866(o.customRichMediaEvents); + checkUnnamed2654(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2867(o.dimensionFilters); - checkUnnamed2868(o.dimensions); + checkUnnamed2655(o.dimensionFilters); + checkUnnamed2656(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2869(o.metricNames); + checkUnnamed2657(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2870() { +buildUnnamed2658() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2870(core.List<api.DimensionValue> o) { +checkUnnamed2658(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2871() { +buildUnnamed2659() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2871(core.List<api.SortedDimension> o) { +checkUnnamed2659(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2872() { +buildUnnamed2660() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2872(core.List<api.SortedDimension> o) { +checkUnnamed2660(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2873() { +buildUnnamed2661() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2873(core.List<api.DimensionValue> o) { +checkUnnamed2661(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2874() { +buildUnnamed2662() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2874(core.List<core.String> o) { +checkUnnamed2662(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2875() { +buildUnnamed2663() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2875(core.List<api.SortedDimension> o) { +checkUnnamed2663(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7154,14 +7154,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed2870(); - o.conversionDimensions = buildUnnamed2871(); - o.customFloodlightVariables = buildUnnamed2872(); - o.customRichMediaEvents = buildUnnamed2873(); + o.activityFilters = buildUnnamed2658(); + o.conversionDimensions = buildUnnamed2659(); + o.customFloodlightVariables = buildUnnamed2660(); + o.customRichMediaEvents = buildUnnamed2661(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2874(); - o.perInteractionDimensions = buildUnnamed2875(); + o.metricNames = buildUnnamed2662(); + o.perInteractionDimensions = buildUnnamed2663(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7171,66 +7171,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2870(o.activityFilters); - checkUnnamed2871(o.conversionDimensions); - checkUnnamed2872(o.customFloodlightVariables); - checkUnnamed2873(o.customRichMediaEvents); + checkUnnamed2658(o.activityFilters); + checkUnnamed2659(o.conversionDimensions); + checkUnnamed2660(o.customFloodlightVariables); + checkUnnamed2661(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2874(o.metricNames); - checkUnnamed2875(o.perInteractionDimensions); + checkUnnamed2662(o.metricNames); + checkUnnamed2663(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2876() { +buildUnnamed2664() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2876(core.List<api.DimensionValue> o) { +checkUnnamed2664(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2877() { +buildUnnamed2665() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2877(core.List<api.SortedDimension> o) { +checkUnnamed2665(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2878() { +buildUnnamed2666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2878(core.List<core.String> o) { +checkUnnamed2666(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2879() { +buildUnnamed2667() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2879(core.List<core.String> o) { +checkUnnamed2667(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7244,11 +7244,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2876(); - o.dimensions = buildUnnamed2877(); + o.dimensionFilters = buildUnnamed2664(); + o.dimensions = buildUnnamed2665(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2878(); - o.reachByFrequencyMetricNames = buildUnnamed2879(); + o.metricNames = buildUnnamed2666(); + o.reachByFrequencyMetricNames = buildUnnamed2667(); } buildCounterReportReachCriteria--; return o; @@ -7260,23 +7260,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2876(o.dimensionFilters); - checkUnnamed2877(o.dimensions); + checkUnnamed2664(o.dimensionFilters); + checkUnnamed2665(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2878(o.metricNames); - checkUnnamed2879(o.reachByFrequencyMetricNames); + checkUnnamed2666(o.metricNames); + checkUnnamed2667(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2880() { +buildUnnamed2668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2880(core.List<core.String> o) { +checkUnnamed2668(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7291,7 +7291,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed2880(); + o.repeatsOnWeekDays = buildUnnamed2668(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7306,7 +7306,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed2880(o.repeatsOnWeekDays); + checkUnnamed2668(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -7366,53 +7366,53 @@ buildCounterReport--; } -buildUnnamed2881() { +buildUnnamed2669() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2881(core.List<api.Dimension> o) { +checkUnnamed2669(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2882() { +buildUnnamed2670() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2882(core.List<api.Dimension> o) { +checkUnnamed2670(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2883() { +buildUnnamed2671() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2883(core.List<api.Metric> o) { +checkUnnamed2671(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2884() { +buildUnnamed2672() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2884(core.List<api.Metric> o) { +checkUnnamed2672(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7423,11 +7423,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2881(); - o.dimensions = buildUnnamed2882(); + o.dimensionFilters = buildUnnamed2669(); + o.dimensions = buildUnnamed2670(); o.kind = "foo"; - o.metrics = buildUnnamed2883(); - o.pivotedActivityMetrics = buildUnnamed2884(); + o.metrics = buildUnnamed2671(); + o.pivotedActivityMetrics = buildUnnamed2672(); } buildCounterReportCompatibleFields--; return o; @@ -7436,23 +7436,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2881(o.dimensionFilters); - checkUnnamed2882(o.dimensions); + checkUnnamed2669(o.dimensionFilters); + checkUnnamed2670(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2883(o.metrics); - checkUnnamed2884(o.pivotedActivityMetrics); + checkUnnamed2671(o.metrics); + checkUnnamed2672(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2885() { +buildUnnamed2673() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2885(core.List<api.Report> o) { +checkUnnamed2673(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7464,7 +7464,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed2885(); + o.items = buildUnnamed2673(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7476,7 +7476,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2885(o.items); + checkUnnamed2673(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7552,14 +7552,14 @@ buildCounterRule--; } -buildUnnamed2886() { +buildUnnamed2674() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2886(core.List<api.SiteContact> o) { +checkUnnamed2674(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7579,7 +7579,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed2886(); + o.siteContacts = buildUnnamed2674(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7599,7 +7599,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2886(o.siteContacts); + checkUnnamed2674(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7670,14 +7670,14 @@ buildCounterSiteSettings--; } -buildUnnamed2887() { +buildUnnamed2675() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2887(core.List<api.Site> o) { +checkUnnamed2675(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7690,7 +7690,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed2887(); + o.sites = buildUnnamed2675(); } buildCounterSitesListResponse--; return o; @@ -7701,7 +7701,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2887(o.sites); + checkUnnamed2675(o.sites); } buildCounterSitesListResponse--; } @@ -7733,14 +7733,14 @@ buildCounterSize--; } -buildUnnamed2888() { +buildUnnamed2676() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2888(core.List<api.Size> o) { +checkUnnamed2676(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7752,7 +7752,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed2888(); + o.sizes = buildUnnamed2676(); } buildCounterSizesListResponse--; return o; @@ -7762,7 +7762,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2888(o.sizes); + checkUnnamed2676(o.sizes); } buildCounterSizesListResponse--; } @@ -7790,14 +7790,14 @@ buildCounterSortedDimension--; } -buildUnnamed2889() { +buildUnnamed2677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2889(core.List<core.String> o) { +checkUnnamed2677(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7809,7 +7809,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2889(); + o.availablePermissionIds = buildUnnamed2677(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7822,7 +7822,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2889(o.availablePermissionIds); + checkUnnamed2677(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7830,14 +7830,14 @@ buildCounterSubaccount--; } -buildUnnamed2890() { +buildUnnamed2678() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2890(core.List<api.Subaccount> o) { +checkUnnamed2678(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7850,7 +7850,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed2890(); + o.subaccounts = buildUnnamed2678(); } buildCounterSubaccountsListResponse--; return o; @@ -7861,7 +7861,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2890(o.subaccounts); + checkUnnamed2678(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8001,14 +8001,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2891() { +buildUnnamed2679() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2891(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2679(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8021,7 +8021,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed2891(); + o.targetableRemarketingLists = buildUnnamed2679(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8032,7 +8032,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2891(o.targetableRemarketingLists); + checkUnnamed2679(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8080,14 +8080,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed2892() { +buildUnnamed2680() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed2892(core.List<api.TargetingTemplate> o) { +checkUnnamed2680(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8100,7 +8100,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed2892(); + o.targetingTemplates = buildUnnamed2680(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8111,84 +8111,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2892(o.targetingTemplates); + checkUnnamed2680(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed2893() { +buildUnnamed2681() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2893(core.List<api.Browser> o) { +checkUnnamed2681(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2894() { +buildUnnamed2682() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2894(core.List<api.ConnectionType> o) { +checkUnnamed2682(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2895() { +buildUnnamed2683() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2895(core.List<api.MobileCarrier> o) { +checkUnnamed2683(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2896() { +buildUnnamed2684() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2896(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2684(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2897() { +buildUnnamed2685() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2897(core.List<api.OperatingSystem> o) { +checkUnnamed2685(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2898() { +buildUnnamed2686() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2898(core.List<api.PlatformType> o) { +checkUnnamed2686(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -8199,12 +8199,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed2893(); - o.connectionTypes = buildUnnamed2894(); - o.mobileCarriers = buildUnnamed2895(); - o.operatingSystemVersions = buildUnnamed2896(); - o.operatingSystems = buildUnnamed2897(); - o.platformTypes = buildUnnamed2898(); + o.browsers = buildUnnamed2681(); + o.connectionTypes = buildUnnamed2682(); + o.mobileCarriers = buildUnnamed2683(); + o.operatingSystemVersions = buildUnnamed2684(); + o.operatingSystems = buildUnnamed2685(); + o.platformTypes = buildUnnamed2686(); } buildCounterTechnologyTargeting--; return o; @@ -8213,12 +8213,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2893(o.browsers); - checkUnnamed2894(o.connectionTypes); - checkUnnamed2895(o.mobileCarriers); - checkUnnamed2896(o.operatingSystemVersions); - checkUnnamed2897(o.operatingSystems); - checkUnnamed2898(o.platformTypes); + checkUnnamed2681(o.browsers); + checkUnnamed2682(o.connectionTypes); + checkUnnamed2683(o.mobileCarriers); + checkUnnamed2684(o.operatingSystemVersions); + checkUnnamed2685(o.operatingSystems); + checkUnnamed2686(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8321,14 +8321,14 @@ buildCounterUserProfile--; } -buildUnnamed2899() { +buildUnnamed2687() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2899(core.List<api.UserProfile> o) { +checkUnnamed2687(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8340,7 +8340,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2899(); + o.items = buildUnnamed2687(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8351,20 +8351,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2899(o.items); + checkUnnamed2687(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2900() { +buildUnnamed2688() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2900(core.List<api.UserRolePermission> o) { +checkUnnamed2688(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8381,7 +8381,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed2900(); + o.permissions = buildUnnamed2688(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8397,7 +8397,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed2900(o.permissions); + checkUnnamed2688(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8453,14 +8453,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2901() { +buildUnnamed2689() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2901(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2689(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8472,7 +8472,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed2901(); + o.userRolePermissionGroups = buildUnnamed2689(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8482,19 +8482,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2901(o.userRolePermissionGroups); + checkUnnamed2689(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2902() { +buildUnnamed2690() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2902(core.List<api.UserRolePermission> o) { +checkUnnamed2690(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8506,7 +8506,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed2902(); + o.userRolePermissions = buildUnnamed2690(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8516,19 +8516,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2902(o.userRolePermissions); + checkUnnamed2690(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2903() { +buildUnnamed2691() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2903(core.List<api.UserRole> o) { +checkUnnamed2691(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8541,7 +8541,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed2903(); + o.userRoles = buildUnnamed2691(); } buildCounterUserRolesListResponse--; return o; @@ -8552,1150 +8552,1150 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2903(o.userRoles); + checkUnnamed2691(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed2904() { +buildUnnamed2692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2904(core.List<core.String> o) { +checkUnnamed2692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2905() { +buildUnnamed2693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2905(core.List<core.String> o) { +checkUnnamed2693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2906() { +buildUnnamed2694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2906(core.List<core.String> o) { +checkUnnamed2694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2907() { +buildUnnamed2695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2907(core.List<core.String> o) { +checkUnnamed2695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2908() { +buildUnnamed2696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2908(core.List<core.String> o) { +checkUnnamed2696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2909() { +buildUnnamed2697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2909(core.List<core.String> o) { +checkUnnamed2697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2910() { +buildUnnamed2698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2910(core.List<core.String> o) { +checkUnnamed2698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2911() { +buildUnnamed2699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2911(core.List<core.String> o) { +checkUnnamed2699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2912() { +buildUnnamed2700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2912(core.List<core.String> o) { +checkUnnamed2700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2913() { +buildUnnamed2701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2913(core.List<core.String> o) { +checkUnnamed2701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2914() { +buildUnnamed2702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2914(core.List<core.String> o) { +checkUnnamed2702(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2915() { +buildUnnamed2703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2915(core.List<core.String> o) { +checkUnnamed2703(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2916() { +buildUnnamed2704() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2916(core.List<core.String> o) { +checkUnnamed2704(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2917() { +buildUnnamed2705() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2917(core.List<core.String> o) { +checkUnnamed2705(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2918() { +buildUnnamed2706() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2918(core.List<core.String> o) { +checkUnnamed2706(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2919() { +buildUnnamed2707() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2919(core.List<core.String> o) { +checkUnnamed2707(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2920() { +buildUnnamed2708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2920(core.List<core.String> o) { +checkUnnamed2708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2921() { +buildUnnamed2709() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2921(core.List<core.String> o) { +checkUnnamed2709(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2922() { +buildUnnamed2710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2922(core.List<core.String> o) { +checkUnnamed2710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2923() { +buildUnnamed2711() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2923(core.List<core.String> o) { +checkUnnamed2711(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2924() { +buildUnnamed2712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2924(core.List<core.String> o) { +checkUnnamed2712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2925() { +buildUnnamed2713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2925(core.List<core.String> o) { +checkUnnamed2713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2926() { +buildUnnamed2714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2926(core.List<core.String> o) { +checkUnnamed2714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2927() { +buildUnnamed2715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2927(core.List<core.String> o) { +checkUnnamed2715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2928() { +buildUnnamed2716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2928(core.List<core.String> o) { +checkUnnamed2716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2929() { +buildUnnamed2717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2929(core.List<core.String> o) { +checkUnnamed2717(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2930() { +buildUnnamed2718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2930(core.List<core.String> o) { +checkUnnamed2718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2931() { +buildUnnamed2719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2931(core.List<core.String> o) { +checkUnnamed2719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2932() { +buildUnnamed2720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2932(core.List<core.String> o) { +checkUnnamed2720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2933() { +buildUnnamed2721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2933(core.List<core.String> o) { +checkUnnamed2721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2934() { +buildUnnamed2722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2934(core.List<core.String> o) { +checkUnnamed2722(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2935() { +buildUnnamed2723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2935(core.List<core.String> o) { +checkUnnamed2723(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2936() { +buildUnnamed2724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2936(core.List<core.String> o) { +checkUnnamed2724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2937() { +buildUnnamed2725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2937(core.List<core.String> o) { +checkUnnamed2725(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2938() { +buildUnnamed2726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2938(core.List<core.String> o) { +checkUnnamed2726(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2939() { +buildUnnamed2727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2939(core.List<core.String> o) { +checkUnnamed2727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2940() { +buildUnnamed2728() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2940(core.List<core.String> o) { +checkUnnamed2728(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2941() { +buildUnnamed2729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2941(core.List<core.String> o) { +checkUnnamed2729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2942() { +buildUnnamed2730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2942(core.List<core.String> o) { +checkUnnamed2730(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2943() { +buildUnnamed2731() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2943(core.List<core.String> o) { +checkUnnamed2731(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2944() { +buildUnnamed2732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2944(core.List<core.String> o) { +checkUnnamed2732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2945() { +buildUnnamed2733() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2945(core.List<core.String> o) { +checkUnnamed2733(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2946() { +buildUnnamed2734() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2946(core.List<core.String> o) { +checkUnnamed2734(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2947() { +buildUnnamed2735() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2947(core.List<core.String> o) { +checkUnnamed2735(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2948() { +buildUnnamed2736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2948(core.List<core.String> o) { +checkUnnamed2736(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2949() { +buildUnnamed2737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2949(core.List<core.String> o) { +checkUnnamed2737(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2950() { +buildUnnamed2738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2950(core.List<core.String> o) { +checkUnnamed2738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2951() { +buildUnnamed2739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2951(core.List<core.String> o) { +checkUnnamed2739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2952() { +buildUnnamed2740() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2952(core.List<core.String> o) { +checkUnnamed2740(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2953() { +buildUnnamed2741() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2953(core.List<core.String> o) { +checkUnnamed2741(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2954() { +buildUnnamed2742() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2954(core.List<core.String> o) { +checkUnnamed2742(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2955() { +buildUnnamed2743() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2955(core.List<core.String> o) { +checkUnnamed2743(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2956() { +buildUnnamed2744() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2956(core.List<core.String> o) { +checkUnnamed2744(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2957() { +buildUnnamed2745() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2957(core.List<core.String> o) { +checkUnnamed2745(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2958() { +buildUnnamed2746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2958(core.List<core.String> o) { +checkUnnamed2746(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2959() { +buildUnnamed2747() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2959(core.List<core.String> o) { +checkUnnamed2747(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2960() { +buildUnnamed2748() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2960(core.List<core.String> o) { +checkUnnamed2748(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2961() { +buildUnnamed2749() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2961(core.List<core.String> o) { +checkUnnamed2749(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2962() { +buildUnnamed2750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2962(core.List<core.String> o) { +checkUnnamed2750(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2963() { +buildUnnamed2751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2963(core.List<core.String> o) { +checkUnnamed2751(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2964() { +buildUnnamed2752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2964(core.List<core.String> o) { +checkUnnamed2752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2965() { +buildUnnamed2753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2965(core.List<core.String> o) { +checkUnnamed2753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2966() { +buildUnnamed2754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2966(core.List<core.String> o) { +checkUnnamed2754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2967() { +buildUnnamed2755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2967(core.List<core.String> o) { +checkUnnamed2755(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2968() { +buildUnnamed2756() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2968(core.List<core.String> o) { +checkUnnamed2756(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2969() { +buildUnnamed2757() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2969(core.List<core.String> o) { +checkUnnamed2757(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2970() { +buildUnnamed2758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2970(core.List<core.String> o) { +checkUnnamed2758(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2971() { +buildUnnamed2759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2971(core.List<core.String> o) { +checkUnnamed2759(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2972() { +buildUnnamed2760() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2972(core.List<core.String> o) { +checkUnnamed2760(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2973() { +buildUnnamed2761() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2973(core.List<core.String> o) { +checkUnnamed2761(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2974() { +buildUnnamed2762() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2974(core.List<core.String> o) { +checkUnnamed2762(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2975() { +buildUnnamed2763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2975(core.List<core.String> o) { +checkUnnamed2763(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2976() { +buildUnnamed2764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2976(core.List<core.String> o) { +checkUnnamed2764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2977() { +buildUnnamed2765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2977(core.List<core.String> o) { +checkUnnamed2765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2978() { +buildUnnamed2766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2978(core.List<core.String> o) { +checkUnnamed2766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2979() { +buildUnnamed2767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2979(core.List<core.String> o) { +checkUnnamed2767(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2980() { +buildUnnamed2768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2980(core.List<core.String> o) { +checkUnnamed2768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2981() { +buildUnnamed2769() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2981(core.List<core.String> o) { +checkUnnamed2769(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2982() { +buildUnnamed2770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2982(core.List<core.String> o) { +checkUnnamed2770(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2983() { +buildUnnamed2771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2983(core.List<core.String> o) { +checkUnnamed2771(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2984() { +buildUnnamed2772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2984(core.List<core.String> o) { +checkUnnamed2772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2985() { +buildUnnamed2773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2985(core.List<core.String> o) { +checkUnnamed2773(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2986() { +buildUnnamed2774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2986(core.List<core.String> o) { +checkUnnamed2774(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2987() { +buildUnnamed2775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2987(core.List<core.String> o) { +checkUnnamed2775(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2988() { +buildUnnamed2776() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2988(core.List<core.String> o) { +checkUnnamed2776(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2989() { +buildUnnamed2777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2989(core.List<core.String> o) { +checkUnnamed2777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2990() { +buildUnnamed2778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2990(core.List<core.String> o) { +checkUnnamed2778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2991() { +buildUnnamed2779() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2991(core.List<core.String> o) { +checkUnnamed2779(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11994,7 +11994,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2904(); + var arg_ids = buildUnnamed2692(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12242,7 +12242,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2905(); + var arg_ids = buildUnnamed2693(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12545,27 +12545,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed2906(); - var arg_campaignIds = buildUnnamed2907(); + var arg_audienceSegmentIds = buildUnnamed2694(); + var arg_campaignIds = buildUnnamed2695(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2908(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2909(); + var arg_creativeIds = buildUnnamed2696(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2697(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2910(); - var arg_landingPageIds = buildUnnamed2911(); + var arg_ids = buildUnnamed2698(); + var arg_landingPageIds = buildUnnamed2699(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2912(); - var arg_remarketingListIds = buildUnnamed2913(); + var arg_placementIds = buildUnnamed2700(); + var arg_remarketingListIds = buildUnnamed2701(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2914(); + var arg_sizeIds = buildUnnamed2702(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2915(); + var arg_type = buildUnnamed2703(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12932,7 +12932,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2916(); + var arg_ids = buildUnnamed2704(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13231,9 +13231,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2917(); - var arg_floodlightConfigurationIds = buildUnnamed2918(); - var arg_ids = buildUnnamed2919(); + var arg_advertiserGroupIds = buildUnnamed2705(); + var arg_floodlightConfigurationIds = buildUnnamed2706(); + var arg_ids = buildUnnamed2707(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13739,12 +13739,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2920(); - var arg_advertiserIds = buildUnnamed2921(); + var arg_advertiserGroupIds = buildUnnamed2708(); + var arg_advertiserIds = buildUnnamed2709(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2922(); - var arg_ids = buildUnnamed2923(); + var arg_excludedIds = buildUnnamed2710(); + var arg_ids = buildUnnamed2711(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13996,15 +13996,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed2924(); + var arg_ids = buildUnnamed2712(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2925(); + var arg_objectIds = buildUnnamed2713(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2926(); + var arg_userProfileIds = buildUnnamed2714(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14072,10 +14072,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed2927(); - var arg_dartIds = buildUnnamed2928(); + var arg_countryDartIds = buildUnnamed2715(); + var arg_dartIds = buildUnnamed2716(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2929(); + var arg_regionDartIds = buildUnnamed2717(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14420,7 +14420,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2930(); + var arg_ids = buildUnnamed2718(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15045,7 +15045,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed2931(); + var arg_ids = buildUnnamed2719(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15422,8 +15422,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2932(); - var arg_ids = buildUnnamed2933(); + var arg_advertiserIds = buildUnnamed2720(); + var arg_ids = buildUnnamed2721(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15723,9 +15723,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2934(); + var arg_advertiserIds = buildUnnamed2722(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2935(); + var arg_ids = buildUnnamed2723(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16030,18 +16030,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed2936(); - var arg_creativeFieldIds = buildUnnamed2937(); - var arg_ids = buildUnnamed2938(); + var arg_companionCreativeIds = buildUnnamed2724(); + var arg_creativeFieldIds = buildUnnamed2725(); + var arg_ids = buildUnnamed2726(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2939(); + var arg_renderingIds = buildUnnamed2727(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2940(); + var arg_sizeIds = buildUnnamed2728(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2941(); + var arg_types = buildUnnamed2729(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -16353,8 +16353,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed2942(); - var arg_ids = buildUnnamed2943(); + var arg_directorySiteIds = buildUnnamed2730(); + var arg_ids = buildUnnamed2731(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16544,7 +16544,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed2944(); + var arg_ids = buildUnnamed2732(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16738,7 +16738,7 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed2945(); + var arg_names = buildUnnamed2733(); var arg_objectId = "foo"; var arg_objectType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -16976,8 +16976,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed2946(); - var arg_ids = buildUnnamed2947(); + var arg_eventTagTypes = buildUnnamed2734(); + var arg_ids = buildUnnamed2735(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -17515,12 +17515,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed2948(); + var arg_floodlightActivityGroupIds = buildUnnamed2736(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2949(); + var arg_ids = buildUnnamed2737(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17829,7 +17829,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2950(); + var arg_ids = buildUnnamed2738(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -18075,7 +18075,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2951(); + var arg_ids = buildUnnamed2739(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -18316,12 +18316,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2952(); + var arg_ids = buildUnnamed2740(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2953(); + var arg_orderId = buildUnnamed2741(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2954(); + var arg_siteId = buildUnnamed2742(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -19311,12 +19311,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed2955(); + var arg_ids = buildUnnamed2743(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2956(); + var arg_orderId = buildUnnamed2744(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2957(); + var arg_siteId = buildUnnamed2745(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19458,11 +19458,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2958(); + var arg_ids = buildUnnamed2746(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2959(); + var arg_siteId = buildUnnamed2747(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19650,12 +19650,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2960(); + var arg_advertiserIds = buildUnnamed2748(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2961(); - var arg_contentCategoryIds = buildUnnamed2962(); - var arg_directorySiteIds = buildUnnamed2963(); - var arg_ids = buildUnnamed2964(); + var arg_campaignIds = buildUnnamed2749(); + var arg_contentCategoryIds = buildUnnamed2750(); + var arg_directorySiteIds = buildUnnamed2751(); + var arg_ids = buildUnnamed2752(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19663,10 +19663,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed2965(); - var arg_pricingTypes = buildUnnamed2966(); + var arg_placementStrategyIds = buildUnnamed2753(); + var arg_pricingTypes = buildUnnamed2754(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2967(); + var arg_siteIds = buildUnnamed2755(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20030,7 +20030,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2968(); + var arg_ids = buildUnnamed2756(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -20216,8 +20216,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed2969(); - var arg_tagFormats = buildUnnamed2970(); + var arg_placementIds = buildUnnamed2757(); + var arg_tagFormats = buildUnnamed2758(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -20388,14 +20388,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2971(); + var arg_advertiserIds = buildUnnamed2759(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2972(); - var arg_compatibilities = buildUnnamed2973(); - var arg_contentCategoryIds = buildUnnamed2974(); - var arg_directorySiteIds = buildUnnamed2975(); - var arg_groupIds = buildUnnamed2976(); - var arg_ids = buildUnnamed2977(); + var arg_campaignIds = buildUnnamed2760(); + var arg_compatibilities = buildUnnamed2761(); + var arg_contentCategoryIds = buildUnnamed2762(); + var arg_directorySiteIds = buildUnnamed2763(); + var arg_groupIds = buildUnnamed2764(); + var arg_ids = buildUnnamed2765(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -20403,11 +20403,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed2978(); - var arg_pricingTypes = buildUnnamed2979(); + var arg_placementStrategyIds = buildUnnamed2766(); + var arg_pricingTypes = buildUnnamed2767(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2980(); - var arg_sizeIds = buildUnnamed2981(); + var arg_siteIds = buildUnnamed2768(); + var arg_sizeIds = buildUnnamed2769(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20890,8 +20890,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2982(); - var arg_ids = buildUnnamed2983(); + var arg_advertiserIds = buildUnnamed2770(); + var arg_ids = buildUnnamed2771(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22239,9 +22239,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed2984(); - var arg_directorySiteIds = buildUnnamed2985(); - var arg_ids = buildUnnamed2986(); + var arg_campaignIds = buildUnnamed2772(); + var arg_directorySiteIds = buildUnnamed2773(); + var arg_ids = buildUnnamed2774(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22553,7 +22553,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed2987(); + var arg_ids = buildUnnamed2775(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -22730,7 +22730,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2988(); + var arg_ids = buildUnnamed2776(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23158,7 +23158,7 @@ api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed2989(); + var arg_ids = buildUnnamed2777(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23613,7 +23613,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2990(); + var arg_ids = buildUnnamed2778(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -23842,7 +23842,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed2991(); + var arg_ids = buildUnnamed2779(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_7_test.dart b/generated/googleapis/test/dfareporting/v2_7_test.dart index 06f9cd9..ea7cc53 100644 --- a/generated/googleapis/test/dfareporting/v2_7_test.dart +++ b/generated/googleapis/test/dfareporting/v2_7_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2397() { +buildUnnamed2185() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2397(core.List<core.String> o) { +checkUnnamed2185(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2398() { +buildUnnamed2186() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2398(core.List<core.String> o) { +checkUnnamed2186(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed2397(); + o.accountPermissionIds = buildUnnamed2185(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed2398(); + o.availablePermissionIds = buildUnnamed2186(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2397(o.accountPermissionIds); + checkUnnamed2185(o.accountPermissionIds); unittest.expect(o.accountProfile, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); unittest.expect(o.activeViewOptOut, unittest.isTrue); - checkUnnamed2398(o.availablePermissionIds); + checkUnnamed2186(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed2399() { +buildUnnamed2187() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2399(core.List<core.String> o) { +checkUnnamed2187(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed2399(); + o.accountProfiles = buildUnnamed2187(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed2399(o.accountProfiles); + checkUnnamed2187(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -224,14 +224,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed2400() { +buildUnnamed2188() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed2400(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2188(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -242,7 +242,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed2400(); + o.accountPermissionGroups = buildUnnamed2188(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed2400(o.accountPermissionGroups); + checkUnnamed2188(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed2401() { +buildUnnamed2189() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed2401(core.List<api.AccountPermission> o) { +checkUnnamed2189(core.List<api.AccountPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermission(o[0]); checkAccountPermission(o[1]); @@ -276,7 +276,7 @@ var o = new api.AccountPermissionsListResponse(); buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - o.accountPermissions = buildUnnamed2401(); + o.accountPermissions = buildUnnamed2189(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed2401(o.accountPermissions); + checkUnnamed2189(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed2402() { +buildUnnamed2190() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed2402(core.List<api.AccountUserProfile> o) { +checkUnnamed2190(core.List<api.AccountUserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUserProfile(o[0]); checkAccountUserProfile(o[1]); @@ -359,7 +359,7 @@ var o = new api.AccountUserProfilesListResponse(); buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - o.accountUserProfiles = buildUnnamed2402(); + o.accountUserProfiles = buildUnnamed2190(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed2402(o.accountUserProfiles); + checkUnnamed2190(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed2403() { +buildUnnamed2191() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2403(core.List<api.Account> o) { +checkUnnamed2191(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -395,7 +395,7 @@ var o = new api.AccountsListResponse(); buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - o.accounts = buildUnnamed2403(); + o.accounts = buildUnnamed2191(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed2403(o.accounts); + checkUnnamed2191(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed2404() { +buildUnnamed2192() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2404(core.List<api.DimensionValue> o) { +checkUnnamed2192(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2405() { +buildUnnamed2193() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2405(core.List<core.String> o) { +checkUnnamed2193(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed2404(); + o.filters = buildUnnamed2192(); o.kind = "foo"; - o.metricNames = buildUnnamed2405(); + o.metricNames = buildUnnamed2193(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed2404(o.filters); + checkUnnamed2192(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2405(o.metricNames); + checkUnnamed2193(o.metricNames); } buildCounterActivities--; } -buildUnnamed2406() { +buildUnnamed2194() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2406(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2194(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2407() { +buildUnnamed2195() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2407(core.List<api.EventTagOverride> o) { +checkUnnamed2195(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2408() { +buildUnnamed2196() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed2408(core.List<api.PlacementAssignment> o) { +checkUnnamed2196(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,14 +519,14 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed2406(); + o.creativeGroupAssignments = buildUnnamed2194(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed2407(); + o.eventTagOverrides = buildUnnamed2195(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -535,7 +535,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed2408(); + o.placementAssignments = buildUnnamed2196(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -566,14 +566,14 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2406(o.creativeGroupAssignments); + checkUnnamed2194(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); checkDeliverySchedule(o.deliverySchedule); unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2407(o.eventTagOverrides); + checkUnnamed2195(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -582,7 +582,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2408(o.placementAssignments); + checkUnnamed2196(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -629,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed2409() { +buildUnnamed2197() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed2409(core.List<api.Ad> o) { +checkUnnamed2197(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -647,7 +647,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed2409(); + o.ads = buildUnnamed2197(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -658,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed2409(o.ads); + checkUnnamed2197(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -737,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed2410() { +buildUnnamed2198() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed2410(core.List<api.AdvertiserGroup> o) { +checkUnnamed2198(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -755,7 +755,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed2410(); + o.advertiserGroups = buildUnnamed2198(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -766,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed2410(o.advertiserGroups); + checkUnnamed2198(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed2411() { +buildUnnamed2199() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed2411(core.List<api.Advertiser> o) { +checkUnnamed2199(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -791,7 +791,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed2411(); + o.advertisers = buildUnnamed2199(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -802,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed2411(o.advertisers); + checkUnnamed2199(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -832,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed2412() { +buildUnnamed2200() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed2412(core.List<api.AudienceSegment> o) { +checkUnnamed2200(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -850,7 +850,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed2412(); + o.audienceSegments = buildUnnamed2200(); o.id = "foo"; o.name = "foo"; } @@ -861,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed2412(o.audienceSegments); + checkUnnamed2200(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -897,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed2413() { +buildUnnamed2201() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2413(core.List<api.Browser> o) { +checkUnnamed2201(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -915,7 +915,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed2413(); + o.browsers = buildUnnamed2201(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -925,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed2413(o.browsers); + checkUnnamed2201(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed2414() { +buildUnnamed2202() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed2414(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2202(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed2415() { +buildUnnamed2203() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed2415(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2203(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed2416() { +buildUnnamed2204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2416(core.List<core.String> o) { +checkUnnamed2204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2417() { +buildUnnamed2205() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2417(core.List<api.EventTagOverride> o) { +checkUnnamed2205(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2418() { +buildUnnamed2206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2418(core.List<core.String> o) { +checkUnnamed2206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1002,21 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed2414(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2202(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed2415(); + o.audienceSegmentGroups = buildUnnamed2203(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed2416(); + o.creativeGroupIds = buildUnnamed2204(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed2417(); + o.eventTagOverrides = buildUnnamed2205(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1027,7 +1027,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed2418(); + o.traffickerEmails = buildUnnamed2206(); } buildCounterCampaign--; return o; @@ -1037,21 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2414(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2202(o.additionalCreativeOptimizationConfigurations); unittest.expect(o.advertiserGroupId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed2415(o.audienceSegmentGroups); + checkUnnamed2203(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2416(o.creativeGroupIds); + checkUnnamed2204(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2417(o.eventTagOverrides); + checkUnnamed2205(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1062,7 +1062,7 @@ unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2418(o.traffickerEmails); + checkUnnamed2206(o.traffickerEmails); } buildCounterCampaign--; } @@ -1088,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed2419() { +buildUnnamed2207() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed2419(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2207(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1106,7 +1106,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed2419(); + o.campaignCreativeAssociations = buildUnnamed2207(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1117,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed2419(o.campaignCreativeAssociations); + checkUnnamed2207(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed2420() { +buildUnnamed2208() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed2420(core.List<api.Campaign> o) { +checkUnnamed2208(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1142,7 +1142,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed2420(); + o.campaigns = buildUnnamed2208(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1153,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed2420(o.campaigns); + checkUnnamed2208(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1205,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed2421() { +buildUnnamed2209() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed2421(core.List<api.ChangeLog> o) { +checkUnnamed2209(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1223,7 +1223,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed2421(); + o.changeLogs = buildUnnamed2209(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1234,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed2421(o.changeLogs); + checkUnnamed2209(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed2422() { +buildUnnamed2210() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2422(core.List<api.City> o) { +checkUnnamed2210(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1259,7 +1259,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed2422(); + o.cities = buildUnnamed2210(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1269,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed2422(o.cities); + checkUnnamed2210(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1400,14 +1400,14 @@ buildCounterCompanionClickThroughOverride--; } -buildUnnamed2423() { +buildUnnamed2211() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2423(core.List<api.Size> o) { +checkUnnamed2211(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -1419,7 +1419,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { o.companionsDisabled = true; - o.enabledSizes = buildUnnamed2423(); + o.enabledSizes = buildUnnamed2211(); o.imageOnly = true; o.kind = "foo"; } @@ -1431,7 +1431,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { unittest.expect(o.companionsDisabled, unittest.isTrue); - checkUnnamed2423(o.enabledSizes); + checkUnnamed2211(o.enabledSizes); unittest.expect(o.imageOnly, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1490,14 +1490,14 @@ buildCounterConnectionType--; } -buildUnnamed2424() { +buildUnnamed2212() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2424(core.List<api.ConnectionType> o) { +checkUnnamed2212(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1508,7 +1508,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed2424(); + o.connectionTypes = buildUnnamed2212(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1518,20 +1518,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed2424(o.connectionTypes); + checkUnnamed2212(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed2425() { +buildUnnamed2213() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed2425(core.List<api.ContentCategory> o) { +checkUnnamed2213(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1542,7 +1542,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed2425(); + o.contentCategories = buildUnnamed2213(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1553,7 +1553,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed2425(o.contentCategories); + checkUnnamed2213(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1585,27 +1585,27 @@ buildCounterContentCategory--; } -buildUnnamed2426() { +buildUnnamed2214() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed2426(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed2214(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed2427() { +buildUnnamed2215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2427(core.List<core.String> o) { +checkUnnamed2215(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1617,9 +1617,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed2426(); + o.customVariables = buildUnnamed2214(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed2427(); + o.encryptedUserIdCandidates = buildUnnamed2215(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.kind = "foo"; @@ -1638,9 +1638,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed2426(o.customVariables); + checkUnnamed2214(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed2427(o.encryptedUserIdCandidates); + checkUnnamed2215(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1677,14 +1677,14 @@ buildCounterConversionError--; } -buildUnnamed2428() { +buildUnnamed2216() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed2428(core.List<api.ConversionError> o) { +checkUnnamed2216(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1696,7 +1696,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed2428(); + o.errors = buildUnnamed2216(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1707,20 +1707,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed2428(o.errors); + checkUnnamed2216(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed2429() { +buildUnnamed2217() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed2429(core.List<api.Conversion> o) { +checkUnnamed2217(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1731,7 +1731,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed2429(); + o.conversions = buildUnnamed2217(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1742,21 +1742,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed2429(o.conversions); + checkUnnamed2217(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed2430() { +buildUnnamed2218() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed2430(core.List<api.ConversionStatus> o) { +checkUnnamed2218(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1769,7 +1769,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed2430(); + o.status = buildUnnamed2218(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1780,19 +1780,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2430(o.status); + checkUnnamed2218(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed2431() { +buildUnnamed2219() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2431(core.List<api.Country> o) { +checkUnnamed2219(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1803,7 +1803,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed2431(); + o.countries = buildUnnamed2219(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1813,7 +1813,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed2431(o.countries); + checkUnnamed2219(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1846,157 +1846,157 @@ buildCounterCountry--; } -buildUnnamed2432() { +buildUnnamed2220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2432(core.List<core.String> o) { +checkUnnamed2220(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2433() { +buildUnnamed2221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2433(core.List<core.String> o) { +checkUnnamed2221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2434() { +buildUnnamed2222() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2434(core.List<api.ClickTag> o) { +checkUnnamed2222(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2435() { +buildUnnamed2223() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2435(core.List<core.String> o) { +checkUnnamed2223(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2436() { +buildUnnamed2224() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2436(core.List<core.String> o) { +checkUnnamed2224(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2437() { +buildUnnamed2225() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2437(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2225(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2438() { +buildUnnamed2226() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed2438(core.List<api.CreativeAsset> o) { +checkUnnamed2226(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed2439() { +buildUnnamed2227() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed2439(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2227(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed2440() { +buildUnnamed2228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2440(core.List<core.String> o) { +checkUnnamed2228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2441() { +buildUnnamed2229() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2441(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2229(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2442() { +buildUnnamed2230() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed2442(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2230(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed2443() { +buildUnnamed2231() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2443(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2231(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -2010,7 +2010,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed2432(); + o.adTagKeys = buildUnnamed2220(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -2020,21 +2020,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed2433(); + o.backupImageFeatures = buildUnnamed2221(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed2434(); + o.clickTags = buildUnnamed2222(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed2435(); - o.compatibility = buildUnnamed2436(); + o.companionCreatives = buildUnnamed2223(); + o.compatibility = buildUnnamed2224(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed2437(); + o.counterCustomEvents = buildUnnamed2225(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed2438(); - o.creativeFieldAssignments = buildUnnamed2439(); - o.customKeyValues = buildUnnamed2440(); + o.creativeAssets = buildUnnamed2226(); + o.creativeFieldAssignments = buildUnnamed2227(); + o.customKeyValues = buildUnnamed2228(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed2441(); + o.exitCustomEvents = buildUnnamed2229(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2062,8 +2062,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed2442(); - o.timerCustomEvents = buildUnnamed2443(); + o.thirdPartyUrls = buildUnnamed2230(); + o.timerCustomEvents = buildUnnamed2231(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -2080,7 +2080,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed2432(o.adTagKeys); + checkUnnamed2220(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2090,21 +2090,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed2433(o.backupImageFeatures); + checkUnnamed2221(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed2434(o.clickTags); + checkUnnamed2222(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed2435(o.companionCreatives); - checkUnnamed2436(o.compatibility); + checkUnnamed2223(o.companionCreatives); + checkUnnamed2224(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed2437(o.counterCustomEvents); + checkUnnamed2225(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed2438(o.creativeAssets); - checkUnnamed2439(o.creativeFieldAssignments); - checkUnnamed2440(o.customKeyValues); + checkUnnamed2226(o.creativeAssets); + checkUnnamed2227(o.creativeFieldAssignments); + checkUnnamed2228(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed2441(o.exitCustomEvents); + checkUnnamed2229(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2132,8 +2132,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed2442(o.thirdPartyUrls); - checkUnnamed2443(o.timerCustomEvents); + checkUnnamed2230(o.thirdPartyUrls); + checkUnnamed2231(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -2143,27 +2143,27 @@ buildCounterCreative--; } -buildUnnamed2444() { +buildUnnamed2232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2444(core.List<core.String> o) { +checkUnnamed2232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2445() { +buildUnnamed2233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2445(core.List<core.String> o) { +checkUnnamed2233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2183,9 +2183,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed2444(); + o.companionCreativeIds = buildUnnamed2232(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed2445(); + o.detectedFeatures = buildUnnamed2233(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2235,9 +2235,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed2444(o.companionCreativeIds); + checkUnnamed2232(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed2445(o.detectedFeatures); + checkUnnamed2233(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2295,40 +2295,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed2446() { +buildUnnamed2234() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2446(core.List<api.ClickTag> o) { +checkUnnamed2234(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2447() { +buildUnnamed2235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2447(core.List<core.String> o) { +checkUnnamed2235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2448() { +buildUnnamed2236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2448(core.List<core.String> o) { +checkUnnamed2236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2340,12 +2340,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed2446(); - o.detectedFeatures = buildUnnamed2447(); + o.clickTags = buildUnnamed2234(); + o.detectedFeatures = buildUnnamed2235(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed2448(); + o.warnedValidationRules = buildUnnamed2236(); } buildCounterCreativeAssetMetadata--; return o; @@ -2355,24 +2355,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed2446(o.clickTags); - checkUnnamed2447(o.detectedFeatures); + checkUnnamed2234(o.clickTags); + checkUnnamed2235(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2448(o.warnedValidationRules); + checkUnnamed2236(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed2449() { +buildUnnamed2237() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2449(core.List<api.Rule> o) { +checkUnnamed2237(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2384,7 +2384,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed2449(); + o.rules = buildUnnamed2237(); } buildCounterCreativeAssetSelection--; return o; @@ -2394,45 +2394,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed2449(o.rules); + checkUnnamed2237(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed2450() { +buildUnnamed2238() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed2450(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2238(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed2451() { +buildUnnamed2239() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2451(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2239(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2452() { +buildUnnamed2240() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed2452(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2240(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2446,12 +2446,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed2450(); - o.creativeGroupAssignments = buildUnnamed2451(); + o.companionCreativeOverrides = buildUnnamed2238(); + o.creativeGroupAssignments = buildUnnamed2239(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed2452(); + o.richMediaExitOverrides = buildUnnamed2240(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2467,12 +2467,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed2450(o.companionCreativeOverrides); - checkUnnamed2451(o.creativeGroupAssignments); + checkUnnamed2238(o.companionCreativeOverrides); + checkUnnamed2239(o.creativeGroupAssignments); unittest.expect(o.creativeId, unittest.equals('foo')); checkDimensionValue(o.creativeIdDimensionValue); unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed2452(o.richMediaExitOverrides); + checkUnnamed2240(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2593,14 +2593,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed2453() { +buildUnnamed2241() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed2453(core.List<api.CreativeFieldValue> o) { +checkUnnamed2241(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2611,7 +2611,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed2453(); + o.creativeFieldValues = buildUnnamed2241(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2622,21 +2622,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed2453(o.creativeFieldValues); + checkUnnamed2241(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed2454() { +buildUnnamed2242() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed2454(core.List<api.CreativeField> o) { +checkUnnamed2242(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2647,7 +2647,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed2454(); + o.creativeFields = buildUnnamed2242(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2658,7 +2658,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed2454(o.creativeFields); + checkUnnamed2242(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2719,14 +2719,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed2455() { +buildUnnamed2243() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed2455(core.List<api.CreativeGroup> o) { +checkUnnamed2243(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2737,7 +2737,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed2455(); + o.creativeGroups = buildUnnamed2243(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2748,21 +2748,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed2455(o.creativeGroups); + checkUnnamed2243(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed2456() { +buildUnnamed2244() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed2456(core.List<api.OptimizationActivity> o) { +checkUnnamed2244(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2775,7 +2775,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed2456(); + o.optimizationActivitys = buildUnnamed2244(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2787,20 +2787,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2456(o.optimizationActivitys); + checkUnnamed2244(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed2457() { +buildUnnamed2245() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed2457(core.List<api.CreativeAssignment> o) { +checkUnnamed2245(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2811,7 +2811,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed2457(); + o.creativeAssignments = buildUnnamed2245(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2823,7 +2823,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed2457(o.creativeAssignments); + checkUnnamed2245(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2852,14 +2852,14 @@ buildCounterCreativeSettings--; } -buildUnnamed2458() { +buildUnnamed2246() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2458(core.List<api.Creative> o) { +checkUnnamed2246(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2870,7 +2870,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed2458(); + o.creatives = buildUnnamed2246(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2881,60 +2881,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed2458(o.creatives); + checkUnnamed2246(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed2459() { +buildUnnamed2247() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2459(core.List<api.Dimension> o) { +checkUnnamed2247(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2460() { +buildUnnamed2248() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2460(core.List<api.Dimension> o) { +checkUnnamed2248(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2461() { +buildUnnamed2249() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2461(core.List<api.Metric> o) { +checkUnnamed2249(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2462() { +buildUnnamed2250() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2462(core.List<api.Metric> o) { +checkUnnamed2250(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2945,11 +2945,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed2459(); - o.dimensionFilters = buildUnnamed2460(); + o.breakdown = buildUnnamed2247(); + o.dimensionFilters = buildUnnamed2248(); o.kind = "foo"; - o.metrics = buildUnnamed2461(); - o.overlapMetrics = buildUnnamed2462(); + o.metrics = buildUnnamed2249(); + o.overlapMetrics = buildUnnamed2250(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2958,11 +2958,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed2459(o.breakdown); - checkUnnamed2460(o.dimensionFilters); + checkUnnamed2247(o.breakdown); + checkUnnamed2248(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2461(o.metrics); - checkUnnamed2462(o.overlapMetrics); + checkUnnamed2249(o.metrics); + checkUnnamed2250(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2990,14 +2990,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed2463() { +buildUnnamed2251() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2463(core.List<api.DimensionValue> o) { +checkUnnamed2251(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3008,7 +3008,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed2463(); + o.filteredEventIds = buildUnnamed2251(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -3018,7 +3018,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed2463(o.filteredEventIds); + checkUnnamed2251(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3049,27 +3049,27 @@ buildCounterDateRange--; } -buildUnnamed2464() { +buildUnnamed2252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2464(core.List<core.String> o) { +checkUnnamed2252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2465() { +buildUnnamed2253() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2465(core.List<core.int> o) { +checkUnnamed2253(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -3080,8 +3080,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed2464(); - o.hoursOfDay = buildUnnamed2465(); + o.daysOfWeek = buildUnnamed2252(); + o.hoursOfDay = buildUnnamed2253(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3091,8 +3091,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed2464(o.daysOfWeek); - checkUnnamed2465(o.hoursOfDay); + checkUnnamed2252(o.daysOfWeek); + checkUnnamed2253(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3244,14 +3244,14 @@ buildCounterDimensionValue--; } -buildUnnamed2466() { +buildUnnamed2254() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2466(core.List<api.DimensionValue> o) { +checkUnnamed2254(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3263,7 +3263,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed2466(); + o.items = buildUnnamed2254(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3275,21 +3275,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2466(o.items); + checkUnnamed2254(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed2467() { +buildUnnamed2255() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed2467(core.List<api.DimensionFilter> o) { +checkUnnamed2255(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3302,7 +3302,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed2467(); + o.filters = buildUnnamed2255(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3315,47 +3315,47 @@ if (buildCounterDimensionValueRequest < 3) { unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2467(o.filters); + checkUnnamed2255(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed2468() { +buildUnnamed2256() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed2468(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2256(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed2469() { +buildUnnamed2257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2469(core.List<core.String> o) { +checkUnnamed2257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2470() { +buildUnnamed2258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2470(core.List<core.String> o) { +checkUnnamed2258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3367,14 +3367,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed2468(); + o.contactAssignments = buildUnnamed2256(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed2469(); - o.interstitialTagFormats = buildUnnamed2470(); + o.inpageTagFormats = buildUnnamed2257(); + o.interstitialTagFormats = buildUnnamed2258(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3389,14 +3389,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed2468(o.contactAssignments); + checkUnnamed2256(o.contactAssignments); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed2469(o.inpageTagFormats); - checkUnnamed2470(o.interstitialTagFormats); + checkUnnamed2257(o.inpageTagFormats); + checkUnnamed2258(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3464,14 +3464,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed2471() { +buildUnnamed2259() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed2471(core.List<api.DirectorySiteContact> o) { +checkUnnamed2259(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3482,7 +3482,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed2471(); + o.directorySiteContacts = buildUnnamed2259(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3493,7 +3493,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed2471(o.directorySiteContacts); + checkUnnamed2259(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3531,14 +3531,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed2472() { +buildUnnamed2260() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed2472(core.List<api.DirectorySite> o) { +checkUnnamed2260(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3549,7 +3549,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed2472(); + o.directorySites = buildUnnamed2260(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3560,7 +3560,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed2472(o.directorySites); + checkUnnamed2260(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3592,14 +3592,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed2473() { +buildUnnamed2261() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed2473(core.List<api.DynamicTargetingKey> o) { +checkUnnamed2261(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -3610,7 +3610,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed2473(); + o.dynamicTargetingKeys = buildUnnamed2261(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3620,7 +3620,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed2473(o.dynamicTargetingKeys); + checkUnnamed2261(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3651,14 +3651,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed2474() { +buildUnnamed2262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2474(core.List<core.String> o) { +checkUnnamed2262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3680,7 +3680,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed2474(); + o.siteIds = buildUnnamed2262(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3706,7 +3706,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed2474(o.siteIds); + checkUnnamed2262(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3738,14 +3738,14 @@ buildCounterEventTagOverride--; } -buildUnnamed2475() { +buildUnnamed2263() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed2475(core.List<api.EventTag> o) { +checkUnnamed2263(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3756,7 +3756,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed2475(); + o.eventTags = buildUnnamed2263(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3766,7 +3766,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed2475(o.eventTags); + checkUnnamed2263(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3830,14 +3830,14 @@ buildCounterFile--; } -buildUnnamed2476() { +buildUnnamed2264() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2476(core.List<api.File> o) { +checkUnnamed2264(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3849,7 +3849,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2476(); + o.items = buildUnnamed2264(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3861,7 +3861,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2476(o.items); + checkUnnamed2264(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3914,14 +3914,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed2477() { +buildUnnamed2265() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed2477(core.List<api.FloodlightActivity> o) { +checkUnnamed2265(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3932,7 +3932,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed2477(); + o.floodlightActivities = buildUnnamed2265(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3943,47 +3943,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed2477(o.floodlightActivities); + checkUnnamed2265(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed2478() { +buildUnnamed2266() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed2478(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2266(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed2479() { +buildUnnamed2267() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed2479(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2267(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed2480() { +buildUnnamed2268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2480(core.List<core.String> o) { +checkUnnamed2268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3999,7 +3999,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed2478(); + o.defaultTags = buildUnnamed2266(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -4014,14 +4014,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed2479(); + o.publisherTags = buildUnnamed2267(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed2480(); + o.userDefinedVariableTypes = buildUnnamed2268(); } buildCounterFloodlightActivity--; return o; @@ -4035,7 +4035,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed2478(o.defaultTags); + checkUnnamed2266(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4050,14 +4050,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed2479(o.publisherTags); + checkUnnamed2267(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed2480(o.userDefinedVariableTypes); + checkUnnamed2268(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4126,14 +4126,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed2481() { +buildUnnamed2269() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed2481(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2269(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4144,7 +4144,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed2481(); + o.floodlightActivityGroups = buildUnnamed2269(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4155,7 +4155,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed2481(o.floodlightActivityGroups); + checkUnnamed2269(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4191,40 +4191,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed2482() { +buildUnnamed2270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2482(core.List<core.String> o) { +checkUnnamed2270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2483() { +buildUnnamed2271() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed2483(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2271(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed2484() { +buildUnnamed2272() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed2484(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2272(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4248,11 +4248,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed2482(); + o.standardVariableTypes = buildUnnamed2270(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed2483(); - o.userDefinedVariableConfigurations = buildUnnamed2484(); + o.thirdPartyAuthenticationTokens = buildUnnamed2271(); + o.userDefinedVariableConfigurations = buildUnnamed2272(); } buildCounterFloodlightConfiguration--; return o; @@ -4274,23 +4274,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed2482(o.standardVariableTypes); + checkUnnamed2270(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed2483(o.thirdPartyAuthenticationTokens); - checkUnnamed2484(o.userDefinedVariableConfigurations); + checkUnnamed2271(o.thirdPartyAuthenticationTokens); + checkUnnamed2272(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed2485() { +buildUnnamed2273() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed2485(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2273(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4301,7 +4301,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed2485(); + o.floodlightConfigurations = buildUnnamed2273(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4311,46 +4311,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed2485(o.floodlightConfigurations); + checkUnnamed2273(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed2486() { +buildUnnamed2274() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2486(core.List<api.Dimension> o) { +checkUnnamed2274(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2487() { +buildUnnamed2275() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2487(core.List<api.Dimension> o) { +checkUnnamed2275(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2488() { +buildUnnamed2276() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2488(core.List<api.Metric> o) { +checkUnnamed2276(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4361,10 +4361,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2486(); - o.dimensions = buildUnnamed2487(); + o.dimensionFilters = buildUnnamed2274(); + o.dimensions = buildUnnamed2275(); o.kind = "foo"; - o.metrics = buildUnnamed2488(); + o.metrics = buildUnnamed2276(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4373,10 +4373,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed2486(o.dimensionFilters); - checkUnnamed2487(o.dimensions); + checkUnnamed2274(o.dimensionFilters); + checkUnnamed2275(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2488(o.metrics); + checkUnnamed2276(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4429,66 +4429,66 @@ buildCounterFsCommand--; } -buildUnnamed2489() { +buildUnnamed2277() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2489(core.List<api.City> o) { +checkUnnamed2277(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed2490() { +buildUnnamed2278() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2490(core.List<api.Country> o) { +checkUnnamed2278(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed2491() { +buildUnnamed2279() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2491(core.List<api.Metro> o) { +checkUnnamed2279(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed2492() { +buildUnnamed2280() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2492(core.List<api.PostalCode> o) { +checkUnnamed2280(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed2493() { +buildUnnamed2281() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2493(core.List<api.Region> o) { +checkUnnamed2281(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4499,12 +4499,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed2489(); - o.countries = buildUnnamed2490(); + o.cities = buildUnnamed2277(); + o.countries = buildUnnamed2278(); o.excludeCountries = true; - o.metros = buildUnnamed2491(); - o.postalCodes = buildUnnamed2492(); - o.regions = buildUnnamed2493(); + o.metros = buildUnnamed2279(); + o.postalCodes = buildUnnamed2280(); + o.regions = buildUnnamed2281(); } buildCounterGeoTargeting--; return o; @@ -4513,24 +4513,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed2489(o.cities); - checkUnnamed2490(o.countries); + checkUnnamed2277(o.cities); + checkUnnamed2278(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed2491(o.metros); - checkUnnamed2492(o.postalCodes); - checkUnnamed2493(o.regions); + checkUnnamed2279(o.metros); + checkUnnamed2280(o.postalCodes); + checkUnnamed2281(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed2494() { +buildUnnamed2282() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed2494(core.List<api.AdSlot> o) { +checkUnnamed2282(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4542,7 +4542,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed2494(); + o.adSlots = buildUnnamed2282(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4570,7 +4570,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2494(o.adSlots); + checkUnnamed2282(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4593,14 +4593,14 @@ buildCounterInventoryItem--; } -buildUnnamed2495() { +buildUnnamed2283() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed2495(core.List<api.InventoryItem> o) { +checkUnnamed2283(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4611,7 +4611,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed2495(); + o.inventoryItems = buildUnnamed2283(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4622,7 +4622,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed2495(o.inventoryItems); + checkUnnamed2283(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4675,14 +4675,14 @@ buildCounterLandingPage--; } -buildUnnamed2496() { +buildUnnamed2284() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed2496(core.List<api.LandingPage> o) { +checkUnnamed2284(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4694,7 +4694,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed2496(); + o.landingPages = buildUnnamed2284(); } buildCounterLandingPagesListResponse--; return o; @@ -4704,7 +4704,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2496(o.landingPages); + checkUnnamed2284(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4734,14 +4734,14 @@ buildCounterLanguage--; } -buildUnnamed2497() { +buildUnnamed2285() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2497(core.List<api.Language> o) { +checkUnnamed2285(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4752,7 +4752,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed2497(); + o.languages = buildUnnamed2285(); } buildCounterLanguageTargeting--; return o; @@ -4761,19 +4761,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed2497(o.languages); + checkUnnamed2285(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed2498() { +buildUnnamed2286() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2498(core.List<api.Language> o) { +checkUnnamed2286(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -4785,7 +4785,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed2498(); + o.languages = buildUnnamed2286(); } buildCounterLanguagesListResponse--; return o; @@ -4795,7 +4795,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2498(o.languages); + checkUnnamed2286(o.languages); } buildCounterLanguagesListResponse--; } @@ -4819,14 +4819,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed2499() { +buildUnnamed2287() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed2499(core.List<api.ListPopulationTerm> o) { +checkUnnamed2287(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4837,7 +4837,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed2499(); + o.terms = buildUnnamed2287(); } buildCounterListPopulationClause--; return o; @@ -4846,19 +4846,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed2499(o.terms); + checkUnnamed2287(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed2500() { +buildUnnamed2288() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed2500(core.List<api.ListPopulationClause> o) { +checkUnnamed2288(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4871,7 +4871,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed2500(); + o.listPopulationClauses = buildUnnamed2288(); } buildCounterListPopulationRule--; return o; @@ -4882,7 +4882,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed2500(o.listPopulationClauses); + checkUnnamed2288(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -5012,14 +5012,14 @@ buildCounterMetro--; } -buildUnnamed2501() { +buildUnnamed2289() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2501(core.List<api.Metro> o) { +checkUnnamed2289(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -5031,7 +5031,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed2501(); + o.metros = buildUnnamed2289(); } buildCounterMetrosListResponse--; return o; @@ -5041,7 +5041,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2501(o.metros); + checkUnnamed2289(o.metros); } buildCounterMetrosListResponse--; } @@ -5073,14 +5073,14 @@ buildCounterMobileCarrier--; } -buildUnnamed2502() { +buildUnnamed2290() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2502(core.List<api.MobileCarrier> o) { +checkUnnamed2290(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5092,7 +5092,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed2502(); + o.mobileCarriers = buildUnnamed2290(); } buildCounterMobileCarriersListResponse--; return o; @@ -5102,19 +5102,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2502(o.mobileCarriers); + checkUnnamed2290(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed2503() { +buildUnnamed2291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2503(core.List<core.String> o) { +checkUnnamed2291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5126,7 +5126,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed2503(); + o.objectIds = buildUnnamed2291(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5137,7 +5137,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2503(o.objectIds); + checkUnnamed2291(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5241,14 +5241,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed2504() { +buildUnnamed2292() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2504(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2292(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5260,7 +5260,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed2504(); + o.operatingSystemVersions = buildUnnamed2292(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5270,19 +5270,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2504(o.operatingSystemVersions); + checkUnnamed2292(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed2505() { +buildUnnamed2293() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2505(core.List<api.OperatingSystem> o) { +checkUnnamed2293(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5294,7 +5294,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed2505(); + o.operatingSystems = buildUnnamed2293(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5304,7 +5304,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2505(o.operatingSystems); + checkUnnamed2293(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5332,53 +5332,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed2506() { +buildUnnamed2294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2506(core.List<core.String> o) { +checkUnnamed2294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2507() { +buildUnnamed2295() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed2507(core.List<api.OrderContact> o) { +checkUnnamed2295(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed2508() { +buildUnnamed2296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2508(core.List<core.String> o) { +checkUnnamed2296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2509() { +buildUnnamed2297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2509(core.List<core.String> o) { +checkUnnamed2297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5391,11 +5391,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed2506(); + o.approverUserProfileIds = buildUnnamed2294(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed2507(); + o.contacts = buildUnnamed2295(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5405,8 +5405,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed2508(); - o.siteNames = buildUnnamed2509(); + o.siteId = buildUnnamed2296(); + o.siteNames = buildUnnamed2297(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -5419,11 +5419,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed2506(o.approverUserProfileIds); + checkUnnamed2294(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed2507(o.contacts); + checkUnnamed2295(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -5433,8 +5433,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed2508(o.siteId); - checkUnnamed2509(o.siteNames); + checkUnnamed2296(o.siteId); + checkUnnamed2297(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5468,27 +5468,27 @@ buildCounterOrderContact--; } -buildUnnamed2510() { +buildUnnamed2298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2510(core.List<core.String> o) { +checkUnnamed2298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2511() { +buildUnnamed2299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2511(core.List<core.String> o) { +checkUnnamed2299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5502,13 +5502,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed2510(); + o.approvedByUserProfileIds = buildUnnamed2298(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed2511(); + o.lastSentRecipients = buildUnnamed2299(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5527,13 +5527,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed2510(o.approvedByUserProfileIds); + checkUnnamed2298(o.approvedByUserProfileIds); unittest.expect(o.cancelled, unittest.isTrue); checkLastModifiedInfo(o.createdInfo); unittest.expect(o.effectiveDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2511(o.lastSentRecipients); + checkUnnamed2299(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); @@ -5545,14 +5545,14 @@ buildCounterOrderDocument--; } -buildUnnamed2512() { +buildUnnamed2300() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed2512(core.List<api.OrderDocument> o) { +checkUnnamed2300(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5565,7 +5565,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed2512(); + o.orderDocuments = buildUnnamed2300(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5576,19 +5576,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2512(o.orderDocuments); + checkUnnamed2300(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed2513() { +buildUnnamed2301() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed2513(core.List<api.Order> o) { +checkUnnamed2301(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5601,7 +5601,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed2513(); + o.orders = buildUnnamed2301(); } buildCounterOrdersListResponse--; return o; @@ -5612,58 +5612,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2513(o.orders); + checkUnnamed2301(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed2514() { +buildUnnamed2302() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2514(core.List<api.Dimension> o) { +checkUnnamed2302(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2515() { +buildUnnamed2303() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2515(core.List<api.Dimension> o) { +checkUnnamed2303(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2516() { +buildUnnamed2304() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2516(core.List<api.Metric> o) { +checkUnnamed2304(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2517() { +buildUnnamed2305() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2517(core.List<api.Dimension> o) { +checkUnnamed2305(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5674,11 +5674,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed2514(); - o.customFloodlightVariables = buildUnnamed2515(); + o.conversionDimensions = buildUnnamed2302(); + o.customFloodlightVariables = buildUnnamed2303(); o.kind = "foo"; - o.metrics = buildUnnamed2516(); - o.perInteractionDimensions = buildUnnamed2517(); + o.metrics = buildUnnamed2304(); + o.perInteractionDimensions = buildUnnamed2305(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5687,23 +5687,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed2514(o.conversionDimensions); - checkUnnamed2515(o.customFloodlightVariables); + checkUnnamed2302(o.conversionDimensions); + checkUnnamed2303(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2516(o.metrics); - checkUnnamed2517(o.perInteractionDimensions); + checkUnnamed2304(o.metrics); + checkUnnamed2305(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed2518() { +buildUnnamed2306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2518(core.List<core.String> o) { +checkUnnamed2306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5748,7 +5748,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed2518(); + o.tagFormats = buildUnnamed2306(); o.tagSetting = buildTagSetting(); o.videoActiveViewOptOut = true; o.videoSettings = buildVideoSettings(); @@ -5795,7 +5795,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed2518(o.tagFormats); + checkUnnamed2306(o.tagFormats); checkTagSetting(o.tagSetting); unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); checkVideoSettings(o.videoSettings); @@ -5829,14 +5829,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2519() { +buildUnnamed2307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2519(core.List<core.String> o) { +checkUnnamed2307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5853,7 +5853,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed2519(); + o.childPlacementIds = buildUnnamed2307(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5887,7 +5887,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed2519(o.childPlacementIds); + checkUnnamed2307(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5911,14 +5911,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2520() { +buildUnnamed2308() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2520(core.List<api.PlacementGroup> o) { +checkUnnamed2308(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5931,7 +5931,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed2520(); + o.placementGroups = buildUnnamed2308(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5942,19 +5942,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2520(o.placementGroups); + checkUnnamed2308(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2521() { +buildUnnamed2309() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2521(core.List<api.PlacementStrategy> o) { +checkUnnamed2309(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5967,7 +5967,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed2521(); + o.placementStrategies = buildUnnamed2309(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5978,7 +5978,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2521(o.placementStrategies); + checkUnnamed2309(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -6008,14 +6008,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2522() { +buildUnnamed2310() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2522(core.List<api.TagData> o) { +checkUnnamed2310(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -6027,7 +6027,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed2522(); + o.tagDatas = buildUnnamed2310(); } buildCounterPlacementTag--; return o; @@ -6037,19 +6037,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2522(o.tagDatas); + checkUnnamed2310(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2523() { +buildUnnamed2311() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2523(core.List<api.PlacementTag> o) { +checkUnnamed2311(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6061,7 +6061,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed2523(); + o.placementTags = buildUnnamed2311(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6071,19 +6071,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2523(o.placementTags); + checkUnnamed2311(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2524() { +buildUnnamed2312() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2524(core.List<api.Placement> o) { +checkUnnamed2312(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6096,7 +6096,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed2524(); + o.placements = buildUnnamed2312(); } buildCounterPlacementsListResponse--; return o; @@ -6107,7 +6107,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2524(o.placements); + checkUnnamed2312(o.placements); } buildCounterPlacementsListResponse--; } @@ -6135,14 +6135,14 @@ buildCounterPlatformType--; } -buildUnnamed2525() { +buildUnnamed2313() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2525(core.List<api.PlatformType> o) { +checkUnnamed2313(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6154,7 +6154,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed2525(); + o.platformTypes = buildUnnamed2313(); } buildCounterPlatformTypesListResponse--; return o; @@ -6164,7 +6164,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2525(o.platformTypes); + checkUnnamed2313(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6231,14 +6231,14 @@ buildCounterPostalCode--; } -buildUnnamed2526() { +buildUnnamed2314() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2526(core.List<api.PostalCode> o) { +checkUnnamed2314(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6250,7 +6250,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed2526(); + o.postalCodes = buildUnnamed2314(); } buildCounterPostalCodesListResponse--; return o; @@ -6260,19 +6260,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2526(o.postalCodes); + checkUnnamed2314(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2527() { +buildUnnamed2315() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2527(core.List<api.Flight> o) { +checkUnnamed2315(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6285,7 +6285,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed2527(); + o.flights = buildUnnamed2315(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6299,7 +6299,7 @@ if (buildCounterPricing < 3) { unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2527(o.flights); + checkUnnamed2315(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6307,14 +6307,14 @@ buildCounterPricing--; } -buildUnnamed2528() { +buildUnnamed2316() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2528(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2316(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6330,7 +6330,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed2528(); + o.pricingPeriods = buildUnnamed2316(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6347,7 +6347,7 @@ unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.flighted, unittest.isTrue); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); - checkUnnamed2528(o.pricingPeriods); + checkUnnamed2316(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -6443,14 +6443,14 @@ buildCounterProject--; } -buildUnnamed2529() { +buildUnnamed2317() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2529(core.List<api.Project> o) { +checkUnnamed2317(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -6463,7 +6463,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2529(); + o.projects = buildUnnamed2317(); } buildCounterProjectsListResponse--; return o; @@ -6474,71 +6474,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2529(o.projects); + checkUnnamed2317(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2530() { +buildUnnamed2318() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2530(core.List<api.Dimension> o) { +checkUnnamed2318(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2531() { +buildUnnamed2319() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2531(core.List<api.Dimension> o) { +checkUnnamed2319(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2532() { +buildUnnamed2320() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2532(core.List<api.Metric> o) { +checkUnnamed2320(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2533() { +buildUnnamed2321() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2533(core.List<api.Metric> o) { +checkUnnamed2321(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2534() { +buildUnnamed2322() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2534(core.List<api.Metric> o) { +checkUnnamed2322(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6549,12 +6549,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2530(); - o.dimensions = buildUnnamed2531(); + o.dimensionFilters = buildUnnamed2318(); + o.dimensions = buildUnnamed2319(); o.kind = "foo"; - o.metrics = buildUnnamed2532(); - o.pivotedActivityMetrics = buildUnnamed2533(); - o.reachByFrequencyMetrics = buildUnnamed2534(); + o.metrics = buildUnnamed2320(); + o.pivotedActivityMetrics = buildUnnamed2321(); + o.reachByFrequencyMetrics = buildUnnamed2322(); } buildCounterReachReportCompatibleFields--; return o; @@ -6563,12 +6563,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2530(o.dimensionFilters); - checkUnnamed2531(o.dimensions); + checkUnnamed2318(o.dimensionFilters); + checkUnnamed2319(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2532(o.metrics); - checkUnnamed2533(o.pivotedActivityMetrics); - checkUnnamed2534(o.reachByFrequencyMetrics); + checkUnnamed2320(o.metrics); + checkUnnamed2321(o.pivotedActivityMetrics); + checkUnnamed2322(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6625,14 +6625,14 @@ buildCounterRegion--; } -buildUnnamed2535() { +buildUnnamed2323() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2535(core.List<api.Region> o) { +checkUnnamed2323(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6644,7 +6644,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed2535(); + o.regions = buildUnnamed2323(); } buildCounterRegionsListResponse--; return o; @@ -6654,7 +6654,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2535(o.regions); + checkUnnamed2323(o.regions); } buildCounterRegionsListResponse--; } @@ -6702,27 +6702,27 @@ buildCounterRemarketingList--; } -buildUnnamed2536() { +buildUnnamed2324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2536(core.List<core.String> o) { +checkUnnamed2324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2537() { +buildUnnamed2325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2537(core.List<core.String> o) { +checkUnnamed2325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6735,8 +6735,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2536(); - o.sharedAdvertiserIds = buildUnnamed2537(); + o.sharedAccountIds = buildUnnamed2324(); + o.sharedAdvertiserIds = buildUnnamed2325(); } buildCounterRemarketingListShare--; return o; @@ -6747,20 +6747,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2536(o.sharedAccountIds); - checkUnnamed2537(o.sharedAdvertiserIds); + checkUnnamed2324(o.sharedAccountIds); + checkUnnamed2325(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2538() { +buildUnnamed2326() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2538(core.List<api.RemarketingList> o) { +checkUnnamed2326(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6773,7 +6773,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed2538(); + o.remarketingLists = buildUnnamed2326(); } buildCounterRemarketingListsListResponse--; return o; @@ -6784,45 +6784,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2538(o.remarketingLists); + checkUnnamed2326(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2539() { +buildUnnamed2327() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2539(core.List<api.DimensionValue> o) { +checkUnnamed2327(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2540() { +buildUnnamed2328() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2540(core.List<api.SortedDimension> o) { +checkUnnamed2328(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2541() { +buildUnnamed2329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2541(core.List<core.String> o) { +checkUnnamed2329(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6836,9 +6836,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2539(); - o.dimensions = buildUnnamed2540(); - o.metricNames = buildUnnamed2541(); + o.dimensionFilters = buildUnnamed2327(); + o.dimensions = buildUnnamed2328(); + o.metricNames = buildUnnamed2329(); } buildCounterReportCriteria--; return o; @@ -6850,60 +6850,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2539(o.dimensionFilters); - checkUnnamed2540(o.dimensions); - checkUnnamed2541(o.metricNames); + checkUnnamed2327(o.dimensionFilters); + checkUnnamed2328(o.dimensions); + checkUnnamed2329(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2542() { +buildUnnamed2330() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2542(core.List<api.SortedDimension> o) { +checkUnnamed2330(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2543() { +buildUnnamed2331() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2543(core.List<api.DimensionValue> o) { +checkUnnamed2331(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2544() { +buildUnnamed2332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2544(core.List<core.String> o) { +checkUnnamed2332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2545() { +buildUnnamed2333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2545(core.List<core.String> o) { +checkUnnamed2333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6914,12 +6914,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed2542(); + o.breakdown = buildUnnamed2330(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2543(); - o.metricNames = buildUnnamed2544(); - o.overlapMetricNames = buildUnnamed2545(); + o.dimensionFilters = buildUnnamed2331(); + o.metricNames = buildUnnamed2332(); + o.overlapMetricNames = buildUnnamed2333(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6929,25 +6929,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2542(o.breakdown); + checkUnnamed2330(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2543(o.dimensionFilters); - checkUnnamed2544(o.metricNames); - checkUnnamed2545(o.overlapMetricNames); + checkUnnamed2331(o.dimensionFilters); + checkUnnamed2332(o.metricNames); + checkUnnamed2333(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2546() { +buildUnnamed2334() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2546(core.List<api.Recipient> o) { +checkUnnamed2334(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6961,7 +6961,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed2546(); + o.recipients = buildUnnamed2334(); } buildCounterReportDelivery--; return o; @@ -6973,58 +6973,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed2546(o.recipients); + checkUnnamed2334(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2547() { +buildUnnamed2335() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2547(core.List<api.DimensionValue> o) { +checkUnnamed2335(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2548() { +buildUnnamed2336() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2548(core.List<api.DimensionValue> o) { +checkUnnamed2336(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2549() { +buildUnnamed2337() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2549(core.List<api.SortedDimension> o) { +checkUnnamed2337(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2550() { +buildUnnamed2338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2550(core.List<core.String> o) { +checkUnnamed2338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7058,12 +7058,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed2547(); + o.customRichMediaEvents = buildUnnamed2335(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2548(); - o.dimensions = buildUnnamed2549(); + o.dimensionFilters = buildUnnamed2336(); + o.dimensions = buildUnnamed2337(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2550(); + o.metricNames = buildUnnamed2338(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7073,90 +7073,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2547(o.customRichMediaEvents); + checkUnnamed2335(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2548(o.dimensionFilters); - checkUnnamed2549(o.dimensions); + checkUnnamed2336(o.dimensionFilters); + checkUnnamed2337(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2550(o.metricNames); + checkUnnamed2338(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2551() { +buildUnnamed2339() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2551(core.List<api.DimensionValue> o) { +checkUnnamed2339(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2552() { +buildUnnamed2340() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2552(core.List<api.SortedDimension> o) { +checkUnnamed2340(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2553() { +buildUnnamed2341() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2553(core.List<api.SortedDimension> o) { +checkUnnamed2341(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2554() { +buildUnnamed2342() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2554(core.List<api.DimensionValue> o) { +checkUnnamed2342(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2555() { +buildUnnamed2343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2555(core.List<core.String> o) { +checkUnnamed2343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2556() { +buildUnnamed2344() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2556(core.List<api.SortedDimension> o) { +checkUnnamed2344(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7202,14 +7202,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed2551(); - o.conversionDimensions = buildUnnamed2552(); - o.customFloodlightVariables = buildUnnamed2553(); - o.customRichMediaEvents = buildUnnamed2554(); + o.activityFilters = buildUnnamed2339(); + o.conversionDimensions = buildUnnamed2340(); + o.customFloodlightVariables = buildUnnamed2341(); + o.customRichMediaEvents = buildUnnamed2342(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2555(); - o.perInteractionDimensions = buildUnnamed2556(); + o.metricNames = buildUnnamed2343(); + o.perInteractionDimensions = buildUnnamed2344(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7219,66 +7219,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2551(o.activityFilters); - checkUnnamed2552(o.conversionDimensions); - checkUnnamed2553(o.customFloodlightVariables); - checkUnnamed2554(o.customRichMediaEvents); + checkUnnamed2339(o.activityFilters); + checkUnnamed2340(o.conversionDimensions); + checkUnnamed2341(o.customFloodlightVariables); + checkUnnamed2342(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2555(o.metricNames); - checkUnnamed2556(o.perInteractionDimensions); + checkUnnamed2343(o.metricNames); + checkUnnamed2344(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2557() { +buildUnnamed2345() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2557(core.List<api.DimensionValue> o) { +checkUnnamed2345(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2558() { +buildUnnamed2346() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2558(core.List<api.SortedDimension> o) { +checkUnnamed2346(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2559() { +buildUnnamed2347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2559(core.List<core.String> o) { +checkUnnamed2347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2560() { +buildUnnamed2348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2560(core.List<core.String> o) { +checkUnnamed2348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7292,11 +7292,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2557(); - o.dimensions = buildUnnamed2558(); + o.dimensionFilters = buildUnnamed2345(); + o.dimensions = buildUnnamed2346(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2559(); - o.reachByFrequencyMetricNames = buildUnnamed2560(); + o.metricNames = buildUnnamed2347(); + o.reachByFrequencyMetricNames = buildUnnamed2348(); } buildCounterReportReachCriteria--; return o; @@ -7308,23 +7308,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2557(o.dimensionFilters); - checkUnnamed2558(o.dimensions); + checkUnnamed2345(o.dimensionFilters); + checkUnnamed2346(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2559(o.metricNames); - checkUnnamed2560(o.reachByFrequencyMetricNames); + checkUnnamed2347(o.metricNames); + checkUnnamed2348(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2561() { +buildUnnamed2349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2561(core.List<core.String> o) { +checkUnnamed2349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7339,7 +7339,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed2561(); + o.repeatsOnWeekDays = buildUnnamed2349(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -7354,7 +7354,7 @@ unittest.expect(o.every, unittest.equals(42)); unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed2561(o.repeatsOnWeekDays); + checkUnnamed2349(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -7414,53 +7414,53 @@ buildCounterReport--; } -buildUnnamed2562() { +buildUnnamed2350() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2562(core.List<api.Dimension> o) { +checkUnnamed2350(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2563() { +buildUnnamed2351() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2563(core.List<api.Dimension> o) { +checkUnnamed2351(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2564() { +buildUnnamed2352() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2564(core.List<api.Metric> o) { +checkUnnamed2352(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2565() { +buildUnnamed2353() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2565(core.List<api.Metric> o) { +checkUnnamed2353(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7471,11 +7471,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2562(); - o.dimensions = buildUnnamed2563(); + o.dimensionFilters = buildUnnamed2350(); + o.dimensions = buildUnnamed2351(); o.kind = "foo"; - o.metrics = buildUnnamed2564(); - o.pivotedActivityMetrics = buildUnnamed2565(); + o.metrics = buildUnnamed2352(); + o.pivotedActivityMetrics = buildUnnamed2353(); } buildCounterReportCompatibleFields--; return o; @@ -7484,23 +7484,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2562(o.dimensionFilters); - checkUnnamed2563(o.dimensions); + checkUnnamed2350(o.dimensionFilters); + checkUnnamed2351(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2564(o.metrics); - checkUnnamed2565(o.pivotedActivityMetrics); + checkUnnamed2352(o.metrics); + checkUnnamed2353(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2566() { +buildUnnamed2354() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2566(core.List<api.Report> o) { +checkUnnamed2354(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7512,7 +7512,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed2566(); + o.items = buildUnnamed2354(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7524,7 +7524,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2566(o.items); + checkUnnamed2354(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7600,14 +7600,14 @@ buildCounterRule--; } -buildUnnamed2567() { +buildUnnamed2355() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2567(core.List<api.SiteContact> o) { +checkUnnamed2355(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7627,7 +7627,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed2567(); + o.siteContacts = buildUnnamed2355(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7647,7 +7647,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2567(o.siteContacts); + checkUnnamed2355(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7720,14 +7720,14 @@ buildCounterSiteSettings--; } -buildUnnamed2568() { +buildUnnamed2356() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2568(core.List<api.Site> o) { +checkUnnamed2356(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7740,7 +7740,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed2568(); + o.sites = buildUnnamed2356(); } buildCounterSitesListResponse--; return o; @@ -7751,7 +7751,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2568(o.sites); + checkUnnamed2356(o.sites); } buildCounterSitesListResponse--; } @@ -7783,14 +7783,14 @@ buildCounterSize--; } -buildUnnamed2569() { +buildUnnamed2357() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2569(core.List<api.Size> o) { +checkUnnamed2357(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7802,7 +7802,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed2569(); + o.sizes = buildUnnamed2357(); } buildCounterSizesListResponse--; return o; @@ -7812,7 +7812,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2569(o.sizes); + checkUnnamed2357(o.sizes); } buildCounterSizesListResponse--; } @@ -7865,14 +7865,14 @@ buildCounterSortedDimension--; } -buildUnnamed2570() { +buildUnnamed2358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2570(core.List<core.String> o) { +checkUnnamed2358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7884,7 +7884,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2570(); + o.availablePermissionIds = buildUnnamed2358(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7897,7 +7897,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2570(o.availablePermissionIds); + checkUnnamed2358(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7905,14 +7905,14 @@ buildCounterSubaccount--; } -buildUnnamed2571() { +buildUnnamed2359() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2571(core.List<api.Subaccount> o) { +checkUnnamed2359(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7925,7 +7925,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed2571(); + o.subaccounts = buildUnnamed2359(); } buildCounterSubaccountsListResponse--; return o; @@ -7936,7 +7936,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2571(o.subaccounts); + checkUnnamed2359(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8076,14 +8076,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2572() { +buildUnnamed2360() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2572(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2360(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8096,7 +8096,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed2572(); + o.targetableRemarketingLists = buildUnnamed2360(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8107,7 +8107,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2572(o.targetableRemarketingLists); + checkUnnamed2360(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8155,14 +8155,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed2573() { +buildUnnamed2361() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed2573(core.List<api.TargetingTemplate> o) { +checkUnnamed2361(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8175,7 +8175,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed2573(); + o.targetingTemplates = buildUnnamed2361(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8186,84 +8186,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2573(o.targetingTemplates); + checkUnnamed2361(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed2574() { +buildUnnamed2362() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2574(core.List<api.Browser> o) { +checkUnnamed2362(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2575() { +buildUnnamed2363() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2575(core.List<api.ConnectionType> o) { +checkUnnamed2363(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2576() { +buildUnnamed2364() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2576(core.List<api.MobileCarrier> o) { +checkUnnamed2364(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2577() { +buildUnnamed2365() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2577(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2365(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2578() { +buildUnnamed2366() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2578(core.List<api.OperatingSystem> o) { +checkUnnamed2366(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2579() { +buildUnnamed2367() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2579(core.List<api.PlatformType> o) { +checkUnnamed2367(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -8274,12 +8274,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed2574(); - o.connectionTypes = buildUnnamed2575(); - o.mobileCarriers = buildUnnamed2576(); - o.operatingSystemVersions = buildUnnamed2577(); - o.operatingSystems = buildUnnamed2578(); - o.platformTypes = buildUnnamed2579(); + o.browsers = buildUnnamed2362(); + o.connectionTypes = buildUnnamed2363(); + o.mobileCarriers = buildUnnamed2364(); + o.operatingSystemVersions = buildUnnamed2365(); + o.operatingSystems = buildUnnamed2366(); + o.platformTypes = buildUnnamed2367(); } buildCounterTechnologyTargeting--; return o; @@ -8288,12 +8288,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2574(o.browsers); - checkUnnamed2575(o.connectionTypes); - checkUnnamed2576(o.mobileCarriers); - checkUnnamed2577(o.operatingSystemVersions); - checkUnnamed2578(o.operatingSystems); - checkUnnamed2579(o.platformTypes); + checkUnnamed2362(o.browsers); + checkUnnamed2363(o.connectionTypes); + checkUnnamed2364(o.mobileCarriers); + checkUnnamed2365(o.operatingSystemVersions); + checkUnnamed2366(o.operatingSystems); + checkUnnamed2367(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8340,14 +8340,14 @@ buildCounterThirdPartyTrackingUrl--; } -buildUnnamed2580() { +buildUnnamed2368() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2580(core.List<core.int> o) { +checkUnnamed2368(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -8358,7 +8358,7 @@ var o = new api.TranscodeSetting(); buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - o.enabledVideoFormats = buildUnnamed2580(); + o.enabledVideoFormats = buildUnnamed2368(); o.kind = "foo"; } buildCounterTranscodeSetting--; @@ -8368,7 +8368,7 @@ checkTranscodeSetting(api.TranscodeSetting o) { buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - checkUnnamed2580(o.enabledVideoFormats); + checkUnnamed2368(o.enabledVideoFormats); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTranscodeSetting--; @@ -8430,14 +8430,14 @@ buildCounterUserProfile--; } -buildUnnamed2581() { +buildUnnamed2369() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2581(core.List<api.UserProfile> o) { +checkUnnamed2369(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -8449,7 +8449,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2581(); + o.items = buildUnnamed2369(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8460,20 +8460,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2581(o.items); + checkUnnamed2369(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2582() { +buildUnnamed2370() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2582(core.List<api.UserRolePermission> o) { +checkUnnamed2370(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8490,7 +8490,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed2582(); + o.permissions = buildUnnamed2370(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -8506,7 +8506,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed2582(o.permissions); + checkUnnamed2370(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8562,14 +8562,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2583() { +buildUnnamed2371() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2583(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2371(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -8581,7 +8581,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed2583(); + o.userRolePermissionGroups = buildUnnamed2371(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8591,19 +8591,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2583(o.userRolePermissionGroups); + checkUnnamed2371(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2584() { +buildUnnamed2372() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2584(core.List<api.UserRolePermission> o) { +checkUnnamed2372(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -8615,7 +8615,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed2584(); + o.userRolePermissions = buildUnnamed2372(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8625,19 +8625,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2584(o.userRolePermissions); + checkUnnamed2372(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2585() { +buildUnnamed2373() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2585(core.List<api.UserRole> o) { +checkUnnamed2373(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -8650,7 +8650,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed2585(); + o.userRoles = buildUnnamed2373(); } buildCounterUserRolesListResponse--; return o; @@ -8661,7 +8661,7 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2585(o.userRoles); + checkUnnamed2373(o.userRoles); } buildCounterUserRolesListResponse--; } @@ -8693,14 +8693,14 @@ buildCounterVideoFormat--; } -buildUnnamed2586() { +buildUnnamed2374() { var o = new core.List<api.VideoFormat>(); o.add(buildVideoFormat()); o.add(buildVideoFormat()); return o; } -checkUnnamed2586(core.List<api.VideoFormat> o) { +checkUnnamed2374(core.List<api.VideoFormat> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFormat(o[0]); checkVideoFormat(o[1]); @@ -8712,7 +8712,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { o.kind = "foo"; - o.videoFormats = buildUnnamed2586(); + o.videoFormats = buildUnnamed2374(); } buildCounterVideoFormatsListResponse--; return o; @@ -8722,7 +8722,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2586(o.videoFormats); + checkUnnamed2374(o.videoFormats); } buildCounterVideoFormatsListResponse--; } @@ -8773,1145 +8773,1145 @@ buildCounterVideoSettings--; } -buildUnnamed2587() { +buildUnnamed2375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2587(core.List<core.String> o) { +checkUnnamed2375(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2588() { +buildUnnamed2376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2588(core.List<core.String> o) { +checkUnnamed2376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2589() { +buildUnnamed2377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2589(core.List<core.String> o) { +checkUnnamed2377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2590() { +buildUnnamed2378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2590(core.List<core.String> o) { +checkUnnamed2378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2591() { +buildUnnamed2379() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2591(core.List<core.String> o) { +checkUnnamed2379(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2592() { +buildUnnamed2380() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2592(core.List<core.String> o) { +checkUnnamed2380(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2593() { +buildUnnamed2381() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2593(core.List<core.String> o) { +checkUnnamed2381(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2594() { +buildUnnamed2382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2594(core.List<core.String> o) { +checkUnnamed2382(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2595() { +buildUnnamed2383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2595(core.List<core.String> o) { +checkUnnamed2383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2596() { +buildUnnamed2384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2596(core.List<core.String> o) { +checkUnnamed2384(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2597() { +buildUnnamed2385() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2597(core.List<core.String> o) { +checkUnnamed2385(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2598() { +buildUnnamed2386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2598(core.List<core.String> o) { +checkUnnamed2386(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2599() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2599(core.List<core.String> o) { +checkUnnamed2387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2600() { +buildUnnamed2388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2600(core.List<core.String> o) { +checkUnnamed2388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2601() { +buildUnnamed2389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2601(core.List<core.String> o) { +checkUnnamed2389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2602() { +buildUnnamed2390() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2602(core.List<core.String> o) { +checkUnnamed2390(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2603() { +buildUnnamed2391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2603(core.List<core.String> o) { +checkUnnamed2391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2604() { +buildUnnamed2392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2604(core.List<core.String> o) { +checkUnnamed2392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2605() { +buildUnnamed2393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2605(core.List<core.String> o) { +checkUnnamed2393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2606() { +buildUnnamed2394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2606(core.List<core.String> o) { +checkUnnamed2394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2607() { +buildUnnamed2395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2607(core.List<core.String> o) { +checkUnnamed2395(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2608() { +buildUnnamed2396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2608(core.List<core.String> o) { +checkUnnamed2396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2609() { +buildUnnamed2397() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2609(core.List<core.String> o) { +checkUnnamed2397(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2610() { +buildUnnamed2398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2610(core.List<core.String> o) { +checkUnnamed2398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2611() { +buildUnnamed2399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2611(core.List<core.String> o) { +checkUnnamed2399(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2612() { +buildUnnamed2400() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2612(core.List<core.String> o) { +checkUnnamed2400(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2613() { +buildUnnamed2401() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2613(core.List<core.String> o) { +checkUnnamed2401(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2614() { +buildUnnamed2402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2614(core.List<core.String> o) { +checkUnnamed2402(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2615() { +buildUnnamed2403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2615(core.List<core.String> o) { +checkUnnamed2403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2616() { +buildUnnamed2404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2616(core.List<core.String> o) { +checkUnnamed2404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2617() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2617(core.List<core.String> o) { +checkUnnamed2405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2618() { +buildUnnamed2406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2618(core.List<core.String> o) { +checkUnnamed2406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2619() { +buildUnnamed2407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2619(core.List<core.String> o) { +checkUnnamed2407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2620() { +buildUnnamed2408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2620(core.List<core.String> o) { +checkUnnamed2408(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2621() { +buildUnnamed2409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2621(core.List<core.String> o) { +checkUnnamed2409(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2622() { +buildUnnamed2410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2622(core.List<core.String> o) { +checkUnnamed2410(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2623() { +buildUnnamed2411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2623(core.List<core.String> o) { +checkUnnamed2411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2624() { +buildUnnamed2412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2624(core.List<core.String> o) { +checkUnnamed2412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2625() { +buildUnnamed2413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2625(core.List<core.String> o) { +checkUnnamed2413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2626() { +buildUnnamed2414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2626(core.List<core.String> o) { +checkUnnamed2414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2627() { +buildUnnamed2415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2627(core.List<core.String> o) { +checkUnnamed2415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2628() { +buildUnnamed2416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2628(core.List<core.String> o) { +checkUnnamed2416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2629() { +buildUnnamed2417() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2629(core.List<core.String> o) { +checkUnnamed2417(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2630() { +buildUnnamed2418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2630(core.List<core.String> o) { +checkUnnamed2418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2631() { +buildUnnamed2419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2631(core.List<core.String> o) { +checkUnnamed2419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2632() { +buildUnnamed2420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2632(core.List<core.String> o) { +checkUnnamed2420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2633() { +buildUnnamed2421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2633(core.List<core.String> o) { +checkUnnamed2421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2634() { +buildUnnamed2422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2634(core.List<core.String> o) { +checkUnnamed2422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2635() { +buildUnnamed2423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2635(core.List<core.String> o) { +checkUnnamed2423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2636() { +buildUnnamed2424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2636(core.List<core.String> o) { +checkUnnamed2424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2637() { +buildUnnamed2425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2637(core.List<core.String> o) { +checkUnnamed2425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2638() { +buildUnnamed2426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2638(core.List<core.String> o) { +checkUnnamed2426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2639() { +buildUnnamed2427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2639(core.List<core.String> o) { +checkUnnamed2427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2640() { +buildUnnamed2428() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2640(core.List<core.String> o) { +checkUnnamed2428(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2641() { +buildUnnamed2429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2641(core.List<core.String> o) { +checkUnnamed2429(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2642() { +buildUnnamed2430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2642(core.List<core.String> o) { +checkUnnamed2430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2643() { +buildUnnamed2431() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2643(core.List<core.String> o) { +checkUnnamed2431(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2644() { +buildUnnamed2432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2644(core.List<core.String> o) { +checkUnnamed2432(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2645() { +buildUnnamed2433() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2645(core.List<core.String> o) { +checkUnnamed2433(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2646() { +buildUnnamed2434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2646(core.List<core.String> o) { +checkUnnamed2434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2647() { +buildUnnamed2435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2647(core.List<core.String> o) { +checkUnnamed2435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2648() { +buildUnnamed2436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2648(core.List<core.String> o) { +checkUnnamed2436(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2649() { +buildUnnamed2437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2649(core.List<core.String> o) { +checkUnnamed2437(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2650() { +buildUnnamed2438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2650(core.List<core.String> o) { +checkUnnamed2438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2651() { +buildUnnamed2439() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2651(core.List<core.String> o) { +checkUnnamed2439(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2652() { +buildUnnamed2440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2652(core.List<core.String> o) { +checkUnnamed2440(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2653() { +buildUnnamed2441() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2653(core.List<core.String> o) { +checkUnnamed2441(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2654() { +buildUnnamed2442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2654(core.List<core.String> o) { +checkUnnamed2442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2655() { +buildUnnamed2443() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2655(core.List<core.String> o) { +checkUnnamed2443(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2656() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2656(core.List<core.String> o) { +checkUnnamed2444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2657() { +buildUnnamed2445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2657(core.List<core.String> o) { +checkUnnamed2445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2658() { +buildUnnamed2446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2658(core.List<core.String> o) { +checkUnnamed2446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2659() { +buildUnnamed2447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2659(core.List<core.String> o) { +checkUnnamed2447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2660() { +buildUnnamed2448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2660(core.List<core.String> o) { +checkUnnamed2448(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2661() { +buildUnnamed2449() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2661(core.List<core.String> o) { +checkUnnamed2449(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2662() { +buildUnnamed2450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2662(core.List<core.String> o) { +checkUnnamed2450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2663() { +buildUnnamed2451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2663(core.List<core.String> o) { +checkUnnamed2451(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2664() { +buildUnnamed2452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2664(core.List<core.String> o) { +checkUnnamed2452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2665() { +buildUnnamed2453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2665(core.List<core.String> o) { +checkUnnamed2453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2666() { +buildUnnamed2454() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2666(core.List<core.String> o) { +checkUnnamed2454(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2667() { +buildUnnamed2455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2667(core.List<core.String> o) { +checkUnnamed2455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2668() { +buildUnnamed2456() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2668(core.List<core.String> o) { +checkUnnamed2456(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2669() { +buildUnnamed2457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2669(core.List<core.String> o) { +checkUnnamed2457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2670() { +buildUnnamed2458() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2670(core.List<core.String> o) { +checkUnnamed2458(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2671() { +buildUnnamed2459() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2671(core.List<core.String> o) { +checkUnnamed2459(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2672() { +buildUnnamed2460() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2672(core.List<core.String> o) { +checkUnnamed2460(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2673() { +buildUnnamed2461() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2673(core.List<core.String> o) { +checkUnnamed2461(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2674() { +buildUnnamed2462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2674(core.List<core.String> o) { +checkUnnamed2462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -12273,7 +12273,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2587(); + var arg_ids = buildUnnamed2375(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12521,7 +12521,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2588(); + var arg_ids = buildUnnamed2376(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12824,26 +12824,26 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed2589(); - var arg_campaignIds = buildUnnamed2590(); + var arg_audienceSegmentIds = buildUnnamed2377(); + var arg_campaignIds = buildUnnamed2378(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2591(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2592(); + var arg_creativeIds = buildUnnamed2379(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2380(); var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2593(); - var arg_landingPageIds = buildUnnamed2594(); + var arg_ids = buildUnnamed2381(); + var arg_landingPageIds = buildUnnamed2382(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2595(); - var arg_remarketingListIds = buildUnnamed2596(); + var arg_placementIds = buildUnnamed2383(); + var arg_remarketingListIds = buildUnnamed2384(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2597(); + var arg_sizeIds = buildUnnamed2385(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2598(); + var arg_type = buildUnnamed2386(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13209,7 +13209,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2599(); + var arg_ids = buildUnnamed2387(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13508,9 +13508,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2600(); - var arg_floodlightConfigurationIds = buildUnnamed2601(); - var arg_ids = buildUnnamed2602(); + var arg_advertiserGroupIds = buildUnnamed2388(); + var arg_floodlightConfigurationIds = buildUnnamed2389(); + var arg_ids = buildUnnamed2390(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -14016,12 +14016,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2603(); - var arg_advertiserIds = buildUnnamed2604(); + var arg_advertiserGroupIds = buildUnnamed2391(); + var arg_advertiserIds = buildUnnamed2392(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2605(); - var arg_ids = buildUnnamed2606(); + var arg_excludedIds = buildUnnamed2393(); + var arg_ids = buildUnnamed2394(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -14273,15 +14273,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed2607(); + var arg_ids = buildUnnamed2395(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2608(); + var arg_objectIds = buildUnnamed2396(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2609(); + var arg_userProfileIds = buildUnnamed2397(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14349,10 +14349,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed2610(); - var arg_dartIds = buildUnnamed2611(); + var arg_countryDartIds = buildUnnamed2398(); + var arg_dartIds = buildUnnamed2399(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2612(); + var arg_regionDartIds = buildUnnamed2400(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -14697,7 +14697,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2613(); + var arg_ids = buildUnnamed2401(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15322,7 +15322,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed2614(); + var arg_ids = buildUnnamed2402(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15699,8 +15699,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2615(); - var arg_ids = buildUnnamed2616(); + var arg_advertiserIds = buildUnnamed2403(); + var arg_ids = buildUnnamed2404(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16000,9 +16000,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2617(); + var arg_advertiserIds = buildUnnamed2405(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2618(); + var arg_ids = buildUnnamed2406(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16307,18 +16307,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed2619(); - var arg_creativeFieldIds = buildUnnamed2620(); - var arg_ids = buildUnnamed2621(); + var arg_companionCreativeIds = buildUnnamed2407(); + var arg_creativeFieldIds = buildUnnamed2408(); + var arg_ids = buildUnnamed2409(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2622(); + var arg_renderingIds = buildUnnamed2410(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2623(); + var arg_sizeIds = buildUnnamed2411(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2624(); + var arg_types = buildUnnamed2412(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -16630,8 +16630,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed2625(); - var arg_ids = buildUnnamed2626(); + var arg_directorySiteIds = buildUnnamed2413(); + var arg_ids = buildUnnamed2414(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16821,7 +16821,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed2627(); + var arg_ids = buildUnnamed2415(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -17015,7 +17015,7 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_names = buildUnnamed2628(); + var arg_names = buildUnnamed2416(); var arg_objectId = "foo"; var arg_objectType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -17253,8 +17253,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed2629(); - var arg_ids = buildUnnamed2630(); + var arg_eventTagTypes = buildUnnamed2417(); + var arg_ids = buildUnnamed2418(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -17792,12 +17792,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed2631(); + var arg_floodlightActivityGroupIds = buildUnnamed2419(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2632(); + var arg_ids = buildUnnamed2420(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -18106,7 +18106,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2633(); + var arg_ids = buildUnnamed2421(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -18352,7 +18352,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2634(); + var arg_ids = buildUnnamed2422(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -18593,12 +18593,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2635(); + var arg_ids = buildUnnamed2423(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2636(); + var arg_orderId = buildUnnamed2424(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2637(); + var arg_siteId = buildUnnamed2425(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -19588,12 +19588,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed2638(); + var arg_ids = buildUnnamed2426(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2639(); + var arg_orderId = buildUnnamed2427(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2640(); + var arg_siteId = buildUnnamed2428(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19735,11 +19735,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2641(); + var arg_ids = buildUnnamed2429(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2642(); + var arg_siteId = buildUnnamed2430(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19927,12 +19927,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2643(); + var arg_advertiserIds = buildUnnamed2431(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2644(); - var arg_contentCategoryIds = buildUnnamed2645(); - var arg_directorySiteIds = buildUnnamed2646(); - var arg_ids = buildUnnamed2647(); + var arg_campaignIds = buildUnnamed2432(); + var arg_contentCategoryIds = buildUnnamed2433(); + var arg_directorySiteIds = buildUnnamed2434(); + var arg_ids = buildUnnamed2435(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19940,10 +19940,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed2648(); - var arg_pricingTypes = buildUnnamed2649(); + var arg_placementStrategyIds = buildUnnamed2436(); + var arg_pricingTypes = buildUnnamed2437(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2650(); + var arg_siteIds = buildUnnamed2438(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -20307,7 +20307,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2651(); + var arg_ids = buildUnnamed2439(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -20493,8 +20493,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed2652(); - var arg_tagFormats = buildUnnamed2653(); + var arg_placementIds = buildUnnamed2440(); + var arg_tagFormats = buildUnnamed2441(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -20665,14 +20665,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2654(); + var arg_advertiserIds = buildUnnamed2442(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2655(); - var arg_compatibilities = buildUnnamed2656(); - var arg_contentCategoryIds = buildUnnamed2657(); - var arg_directorySiteIds = buildUnnamed2658(); - var arg_groupIds = buildUnnamed2659(); - var arg_ids = buildUnnamed2660(); + var arg_campaignIds = buildUnnamed2443(); + var arg_compatibilities = buildUnnamed2444(); + var arg_contentCategoryIds = buildUnnamed2445(); + var arg_directorySiteIds = buildUnnamed2446(); + var arg_groupIds = buildUnnamed2447(); + var arg_ids = buildUnnamed2448(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -20680,11 +20680,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed2661(); - var arg_pricingTypes = buildUnnamed2662(); + var arg_placementStrategyIds = buildUnnamed2449(); + var arg_pricingTypes = buildUnnamed2450(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2663(); - var arg_sizeIds = buildUnnamed2664(); + var arg_siteIds = buildUnnamed2451(); + var arg_sizeIds = buildUnnamed2452(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -21167,8 +21167,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2665(); - var arg_ids = buildUnnamed2666(); + var arg_advertiserIds = buildUnnamed2453(); + var arg_ids = buildUnnamed2454(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22516,9 +22516,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed2667(); - var arg_directorySiteIds = buildUnnamed2668(); - var arg_ids = buildUnnamed2669(); + var arg_campaignIds = buildUnnamed2455(); + var arg_directorySiteIds = buildUnnamed2456(); + var arg_ids = buildUnnamed2457(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22830,7 +22830,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed2670(); + var arg_ids = buildUnnamed2458(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -23007,7 +23007,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2671(); + var arg_ids = buildUnnamed2459(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23435,7 +23435,7 @@ api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed2672(); + var arg_ids = buildUnnamed2460(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -23890,7 +23890,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2673(); + var arg_ids = buildUnnamed2461(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -24119,7 +24119,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed2674(); + var arg_ids = buildUnnamed2462(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index 619555e..ce574d6 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed493() { +buildUnnamed232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed493(core.List<core.String> o) { +checkUnnamed232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,7 +97,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed493(); + o.labels = buildUnnamed232(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -117,7 +117,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed493(o.labels); + checkUnnamed232(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -126,14 +126,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed494() { +buildUnnamed233() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed494(core.List<api.DirectoryListItems> o) { +checkUnnamed233(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -145,7 +145,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed494(); + o.items = buildUnnamed233(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -156,20 +156,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed494(o.items); + checkUnnamed233(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed495() { +buildUnnamed234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed495(core.List<core.String> o) { +checkUnnamed234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,7 +180,7 @@ var o = new api.JsonSchemaAnnotations(); buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed495(); + o.required = buildUnnamed234(); } buildCounterJsonSchemaAnnotations--; return o; @@ -189,45 +189,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed495(o.required); + checkUnnamed234(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed496() { +buildUnnamed235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed496(core.List<core.String> o) { +checkUnnamed235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed497() { +buildUnnamed236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed497(core.List<core.String> o) { +checkUnnamed236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed498() { +buildUnnamed237() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed498(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed237(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -254,14 +254,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed499() { +buildUnnamed238() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed499(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed238(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -273,7 +273,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed499(); + o.map = buildUnnamed238(); } buildCounterJsonSchemaVariant--; return o; @@ -283,7 +283,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed499(o.map); + checkUnnamed238(o.map); } buildCounterJsonSchemaVariant--; } @@ -298,8 +298,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed496(); - o.enumDescriptions = buildUnnamed497(); + o.enum_ = buildUnnamed235(); + o.enumDescriptions = buildUnnamed236(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -307,7 +307,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed498(); + o.properties = buildUnnamed237(); o.readOnly = true; o.repeated = true; o.required = true; @@ -326,8 +326,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed496(o.enum_); - checkUnnamed497(o.enumDescriptions); + checkUnnamed235(o.enum_); + checkUnnamed236(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -335,7 +335,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed498(o.properties); + checkUnnamed237(o.properties); unittest.expect(o.readOnly, unittest.isTrue); unittest.expect(o.repeated, unittest.isTrue); unittest.expect(o.required, unittest.isTrue); @@ -364,14 +364,14 @@ buildCounterRestDescriptionAuthOauth2ScopesValue--; } -buildUnnamed500() { +buildUnnamed239() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed500(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { +checkUnnamed239(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); checkRestDescriptionAuthOauth2ScopesValue(o["y"]); @@ -382,7 +382,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed500(); + o.scopes = buildUnnamed239(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -391,7 +391,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed500(o.scopes); + checkUnnamed239(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -415,14 +415,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed501() { +buildUnnamed240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed501(core.List<core.String> o) { +checkUnnamed240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -449,66 +449,66 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed502() { +buildUnnamed241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed502(core.List<core.String> o) { +checkUnnamed241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed503() { +buildUnnamed242() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed503(core.Map<core.String, api.RestMethod> o) { +checkUnnamed242(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed504() { +buildUnnamed243() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed504(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed243(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed505() { +buildUnnamed244() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed505(core.Map<core.String, api.RestResource> o) { +checkUnnamed244(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed506() { +buildUnnamed245() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed506(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed245(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -529,22 +529,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed501(); + o.features = buildUnnamed240(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed502(); - o.methods = buildUnnamed503(); + o.labels = buildUnnamed241(); + o.methods = buildUnnamed242(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed504(); + o.parameters = buildUnnamed243(); o.protocol = "foo"; - o.resources = buildUnnamed505(); + o.resources = buildUnnamed244(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed506(); + o.schemas = buildUnnamed245(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -567,22 +567,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed501(o.features); + checkUnnamed240(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed502(o.labels); - checkUnnamed503(o.methods); + checkUnnamed241(o.labels); + checkUnnamed242(o.methods); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerDomain, unittest.equals('foo')); unittest.expect(o.ownerName, unittest.equals('foo')); unittest.expect(o.packagePath, unittest.equals('foo')); - checkUnnamed504(o.parameters); + checkUnnamed243(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed505(o.resources); + checkUnnamed244(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed506(o.schemas); + checkUnnamed245(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -591,14 +591,14 @@ buildCounterRestDescription--; } -buildUnnamed507() { +buildUnnamed246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed507(core.List<core.String> o) { +checkUnnamed246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed507(); + o.accept = buildUnnamed246(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -683,34 +683,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed507(o.accept); + checkUnnamed246(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed508() { +buildUnnamed247() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed508(core.List<core.String> o) { +checkUnnamed247(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed509() { +buildUnnamed248() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed509(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed248(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -756,14 +756,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed510() { +buildUnnamed249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed510(core.List<core.String> o) { +checkUnnamed249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,12 +779,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed508(); - o.parameters = buildUnnamed509(); + o.parameterOrder = buildUnnamed247(); + o.parameters = buildUnnamed248(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed510(); + o.scopes = buildUnnamed249(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -802,12 +802,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed508(o.parameterOrder); - checkUnnamed509(o.parameters); + checkUnnamed247(o.parameterOrder); + checkUnnamed248(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed510(o.scopes); + checkUnnamed249(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -816,27 +816,27 @@ buildCounterRestMethod--; } -buildUnnamed511() { +buildUnnamed250() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed511(core.Map<core.String, api.RestMethod> o) { +checkUnnamed250(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed512() { +buildUnnamed251() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed512(core.Map<core.String, api.RestResource> o) { +checkUnnamed251(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -847,8 +847,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed511(); - o.resources = buildUnnamed512(); + o.methods = buildUnnamed250(); + o.resources = buildUnnamed251(); } buildCounterRestResource--; return o; @@ -857,8 +857,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed511(o.methods); - checkUnnamed512(o.resources); + checkUnnamed250(o.methods); + checkUnnamed251(o.resources); } buildCounterRestResource--; }
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index f4badd7..7d6fb80 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed928() { +buildUnnamed668() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed928(core.List<api.ResourceRecordSet> o) { +checkUnnamed668(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed929() { +buildUnnamed669() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed929(core.List<api.ResourceRecordSet> o) { +checkUnnamed669(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -82,8 +82,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed928(); - o.deletions = buildUnnamed929(); + o.additions = buildUnnamed668(); + o.deletions = buildUnnamed669(); o.id = "foo"; o.kind = "foo"; o.startTime = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed928(o.additions); - checkUnnamed929(o.deletions); + checkUnnamed668(o.additions); + checkUnnamed669(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -106,14 +106,14 @@ buildCounterChange--; } -buildUnnamed930() { +buildUnnamed670() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed930(core.List<api.Change> o) { +checkUnnamed670(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -124,7 +124,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed930(); + o.changes = buildUnnamed670(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -135,21 +135,21 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed930(o.changes); + checkUnnamed670(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed931() { +buildUnnamed671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed931(core.List<core.String> o) { +checkUnnamed671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -167,7 +167,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed931(); + o.nameServers = buildUnnamed671(); } buildCounterManagedZone--; return o; @@ -183,19 +183,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed931(o.nameServers); + checkUnnamed671(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed932() { +buildUnnamed672() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed932(core.List<api.ManagedZone> o) { +checkUnnamed672(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -207,7 +207,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { o.kind = "foo"; - o.managedZones = buildUnnamed932(); + o.managedZones = buildUnnamed672(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -218,7 +218,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed932(o.managedZones); + checkUnnamed672(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -280,14 +280,14 @@ buildCounterQuota--; } -buildUnnamed933() { +buildUnnamed673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed933(core.List<core.String> o) { +checkUnnamed673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -300,7 +300,7 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed933(); + o.rrdatas = buildUnnamed673(); o.ttl = 42; o.type = "foo"; } @@ -313,21 +313,21 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed933(o.rrdatas); + checkUnnamed673(o.rrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed934() { +buildUnnamed674() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed934(core.List<api.ResourceRecordSet> o) { +checkUnnamed674(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -340,7 +340,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed934(); + o.rrsets = buildUnnamed674(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -351,7 +351,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed934(o.rrsets); + checkUnnamed674(o.rrsets); } buildCounterResourceRecordSetsListResponse--; }
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index 6a1e0a0..0e650e6 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1350() { +buildUnnamed1103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1350(core.List<core.String> o) { +checkUnnamed1103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed1350(); + o.filterIds = buildUnnamed1103(); o.filterType = "foo"; o.format = "foo"; } @@ -82,7 +82,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1350(o.filterIds); + checkUnnamed1103(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -108,27 +108,27 @@ buildCounterDownloadLineItemsResponse--; } -buildUnnamed1351() { +buildUnnamed1104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1351(core.List<core.String> o) { +checkUnnamed1104(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1352() { +buildUnnamed1105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1352(core.List<core.String> o) { +checkUnnamed1105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -139,8 +139,8 @@ var o = new api.DownloadRequest(); buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - o.fileTypes = buildUnnamed1351(); - o.filterIds = buildUnnamed1352(); + o.fileTypes = buildUnnamed1104(); + o.filterIds = buildUnnamed1105(); o.filterType = "foo"; o.version = "foo"; } @@ -151,8 +151,8 @@ checkDownloadRequest(api.DownloadRequest o) { buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - checkUnnamed1351(o.fileTypes); - checkUnnamed1352(o.filterIds); + checkUnnamed1104(o.fileTypes); + checkUnnamed1105(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -205,14 +205,14 @@ buildCounterFilterPair--; } -buildUnnamed1353() { +buildUnnamed1106() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1353(core.List<api.Query> o) { +checkUnnamed1106(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -224,7 +224,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1353(); + o.queries = buildUnnamed1106(); } buildCounterListQueriesResponse--; return o; @@ -234,19 +234,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1353(o.queries); + checkUnnamed1106(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1354() { +buildUnnamed1107() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1354(core.List<api.Report> o) { +checkUnnamed1107(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -258,7 +258,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1354(); + o.reports = buildUnnamed1107(); } buildCounterListReportsResponse--; return o; @@ -268,45 +268,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1354(o.reports); + checkUnnamed1107(o.reports); } buildCounterListReportsResponse--; } -buildUnnamed1355() { +buildUnnamed1108() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1355(core.List<api.FilterPair> o) { +checkUnnamed1108(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1356() { +buildUnnamed1109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1356(core.List<core.String> o) { +checkUnnamed1109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1357() { +buildUnnamed1110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1357(core.List<core.String> o) { +checkUnnamed1110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -317,10 +317,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1355(); - o.groupBys = buildUnnamed1356(); + o.filters = buildUnnamed1108(); + o.groupBys = buildUnnamed1109(); o.includeInviteData = true; - o.metrics = buildUnnamed1357(); + o.metrics = buildUnnamed1110(); o.type = "foo"; } buildCounterParameters--; @@ -330,10 +330,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1355(o.filters); - checkUnnamed1356(o.groupBys); + checkUnnamed1108(o.filters); + checkUnnamed1109(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1357(o.metrics); + checkUnnamed1110(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -372,14 +372,14 @@ buildCounterQuery--; } -buildUnnamed1358() { +buildUnnamed1111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1358(core.List<core.String> o) { +checkUnnamed1111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -399,7 +399,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1358(); + o.shareEmailAddress = buildUnnamed1111(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -418,7 +418,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1358(o.shareEmailAddress); + checkUnnamed1111(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -562,14 +562,14 @@ buildCounterReportStatus--; } -buildUnnamed1359() { +buildUnnamed1112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1359(core.List<core.String> o) { +checkUnnamed1112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -583,7 +583,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1359(); + o.errors = buildUnnamed1112(); o.persisted = true; o.rowNumber = 42; } @@ -597,7 +597,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1359(o.errors); + checkUnnamed1112(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -671,27 +671,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1360() { +buildUnnamed1113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1360(core.List<core.String> o) { +checkUnnamed1113(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1361() { +buildUnnamed1114() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1361(core.List<api.RowStatus> o) { +checkUnnamed1114(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -702,8 +702,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1360(); - o.rowStatus = buildUnnamed1361(); + o.errors = buildUnnamed1113(); + o.rowStatus = buildUnnamed1114(); } buildCounterUploadStatus--; return o; @@ -712,8 +712,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1360(o.errors); - checkUnnamed1361(o.rowStatus); + checkUnnamed1113(o.errors); + checkUnnamed1114(o.rowStatus); } buildCounterUploadStatus--; }
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index 1c0693c..e131a52 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -80,27 +80,27 @@ buildCounterAvailability--; } -buildUnnamed1439() { +buildUnnamed1192() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1439(core.List<api.CustomDimension> o) { +checkUnnamed1192(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1440() { +buildUnnamed1193() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1440(core.List<api.CustomMetric> o) { +checkUnnamed1193(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -125,8 +125,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed1439(); - o.customMetric = buildUnnamed1440(); + o.customDimension = buildUnnamed1192(); + o.customMetric = buildUnnamed1193(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -166,8 +166,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed1439(o.customDimension); - checkUnnamed1440(o.customMetric); + checkUnnamed1192(o.customDimension); + checkUnnamed1193(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -189,14 +189,14 @@ buildCounterConversion--; } -buildUnnamed1441() { +buildUnnamed1194() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1441(core.List<api.Conversion> o) { +checkUnnamed1194(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -207,7 +207,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed1441(); + o.conversion = buildUnnamed1194(); o.kind = "foo"; } buildCounterConversionList--; @@ -217,7 +217,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1441(o.conversion); + checkUnnamed1194(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -286,27 +286,27 @@ buildCounterReportFiles--; } -buildUnnamed1442() { +buildUnnamed1195() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1442(core.List<api.ReportFiles> o) { +checkUnnamed1195(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1443() { +buildUnnamed1196() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1443(core.List<api.ReportRow> o) { +checkUnnamed1196(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -317,13 +317,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed1442(); + o.files = buildUnnamed1195(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1443(); + o.rows = buildUnnamed1196(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -334,13 +334,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1442(o.files); + checkUnnamed1195(o.files); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isReportReady, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkReportRequest(o.request); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed1443(o.rows); + checkUnnamed1196(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -384,27 +384,27 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1444() { +buildUnnamed1197() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1444(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed1197(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1445() { +buildUnnamed1198() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1445(core.List<core.Object> o) { +checkUnnamed1198(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -417,7 +417,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed1445(); + o.values = buildUnnamed1198(); } buildCounterReportRequestFilters--; return o; @@ -428,19 +428,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1445(o.values); + checkUnnamed1198(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1446() { +buildUnnamed1199() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1446(core.List<api.ReportRequestFilters> o) { +checkUnnamed1199(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -467,14 +467,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1447() { +buildUnnamed1200() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1447(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed1200(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -541,13 +541,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed1444(); + o.columns = buildUnnamed1197(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1446(); + o.filters = buildUnnamed1199(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1447(); + o.orderBy = buildUnnamed1200(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -563,13 +563,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1444(o.columns); + checkUnnamed1197(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1446(o.filters); + checkUnnamed1199(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1447(o.orderBy); + checkUnnamed1200(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -617,14 +617,14 @@ buildCounterSavedColumn--; } -buildUnnamed1448() { +buildUnnamed1201() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1448(core.List<api.SavedColumn> o) { +checkUnnamed1201(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -635,7 +635,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed1448(); + o.items = buildUnnamed1201(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -645,20 +645,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1448(o.items); + checkUnnamed1201(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1449() { +buildUnnamed1202() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1449(core.List<api.Availability> o) { +checkUnnamed1202(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -669,7 +669,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed1449(); + o.availabilities = buildUnnamed1202(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -678,19 +678,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1449(o.availabilities); + checkUnnamed1202(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1450() { +buildUnnamed1203() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1450(core.List<api.Availability> o) { +checkUnnamed1203(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -701,7 +701,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed1450(); + o.availabilities = buildUnnamed1203(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -710,7 +710,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1450(o.availabilities); + checkUnnamed1203(o.availabilities); } buildCounterUpdateAvailabilityResponse--; }
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index 1367755..b0d698b 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed846() { +buildUnnamed586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed846(core.List<core.String> o) { +checkUnnamed586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed846(); + o.additionalRoles = buildUnnamed586(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -79,20 +79,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed846(o.additionalRoles); + checkUnnamed586(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed847() { +buildUnnamed587() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed847(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed587(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -103,7 +103,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed847(); + o.roleSets = buildUnnamed587(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -113,33 +113,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed847(o.roleSets); + checkUnnamed587(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed848() { +buildUnnamed588() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed848(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed588(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed849() { +buildUnnamed589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed849(core.List<core.String> o) { +checkUnnamed589(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed849(); + o.targets = buildUnnamed589(); } buildCounterAboutExportFormats--; return o; @@ -161,19 +161,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed849(o.targets); + checkUnnamed589(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed850() { +buildUnnamed590() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed850(core.List<api.AboutExportFormats> o) { +checkUnnamed590(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -200,40 +200,40 @@ buildCounterAboutFeatures--; } -buildUnnamed851() { +buildUnnamed591() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed851(core.List<api.AboutFeatures> o) { +checkUnnamed591(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed852() { +buildUnnamed592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed852(core.List<core.String> o) { +checkUnnamed592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed853() { +buildUnnamed593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed853(core.List<core.String> o) { +checkUnnamed593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -245,7 +245,7 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed853(); + o.targets = buildUnnamed593(); } buildCounterAboutImportFormats--; return o; @@ -255,19 +255,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed853(o.targets); + checkUnnamed593(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed854() { +buildUnnamed594() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed854(core.List<api.AboutImportFormats> o) { +checkUnnamed594(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -294,14 +294,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed855() { +buildUnnamed595() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed855(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed595(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -328,14 +328,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed856() { +buildUnnamed596() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed856(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed596(core.List<api.AboutQuotaBytesByService> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutQuotaBytesByService(o[0]); checkAboutQuotaBytesByService(o[1]); @@ -346,21 +346,21 @@ var o = new api.About(); buildCounterAbout++; if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed848(); + o.additionalRoleInfo = buildUnnamed588(); o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed850(); - o.features = buildUnnamed851(); - o.folderColorPalette = buildUnnamed852(); - o.importFormats = buildUnnamed854(); + o.exportFormats = buildUnnamed590(); + o.features = buildUnnamed591(); + o.folderColorPalette = buildUnnamed592(); + o.importFormats = buildUnnamed594(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed855(); + o.maxUploadSizes = buildUnnamed595(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed856(); + o.quotaBytesByService = buildUnnamed596(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -378,21 +378,21 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed848(o.additionalRoleInfo); + checkUnnamed588(o.additionalRoleInfo); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed850(o.exportFormats); - checkUnnamed851(o.features); - checkUnnamed852(o.folderColorPalette); - checkUnnamed854(o.importFormats); + checkUnnamed590(o.exportFormats); + checkUnnamed591(o.features); + checkUnnamed592(o.folderColorPalette); + checkUnnamed594(o.importFormats); unittest.expect(o.isCurrentAppInstalled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); - checkUnnamed855(o.maxUploadSizes); + checkUnnamed595(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed856(o.quotaBytesByService); + checkUnnamed596(o.quotaBytesByService); unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); @@ -429,66 +429,66 @@ buildCounterAppIcons--; } -buildUnnamed857() { +buildUnnamed597() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed857(core.List<api.AppIcons> o) { +checkUnnamed597(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed858() { +buildUnnamed598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed858(core.List<core.String> o) { +checkUnnamed598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed859() { +buildUnnamed599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed859(core.List<core.String> o) { +checkUnnamed599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed860() { +buildUnnamed600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed860(core.List<core.String> o) { +checkUnnamed600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed861() { +buildUnnamed601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed861(core.List<core.String> o) { +checkUnnamed601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -503,7 +503,7 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed857(); + o.icons = buildUnnamed597(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -511,12 +511,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed858(); - o.primaryMimeTypes = buildUnnamed859(); + o.primaryFileExtensions = buildUnnamed598(); + o.primaryMimeTypes = buildUnnamed599(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed860(); - o.secondaryMimeTypes = buildUnnamed861(); + o.secondaryFileExtensions = buildUnnamed600(); + o.secondaryMimeTypes = buildUnnamed601(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -535,7 +535,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed857(o.icons); + checkUnnamed597(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -543,12 +543,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed858(o.primaryFileExtensions); - checkUnnamed859(o.primaryMimeTypes); + checkUnnamed598(o.primaryFileExtensions); + checkUnnamed599(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed860(o.secondaryFileExtensions); - checkUnnamed861(o.secondaryMimeTypes); + checkUnnamed600(o.secondaryFileExtensions); + checkUnnamed601(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -559,27 +559,27 @@ buildCounterApp--; } -buildUnnamed862() { +buildUnnamed602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed862(core.List<core.String> o) { +checkUnnamed602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed863() { +buildUnnamed603() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed863(core.List<api.App> o) { +checkUnnamed603(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -590,9 +590,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed862(); + o.defaultAppIds = buildUnnamed602(); o.etag = "foo"; - o.items = buildUnnamed863(); + o.items = buildUnnamed603(); o.kind = "foo"; o.selfLink = "foo"; } @@ -603,9 +603,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed862(o.defaultAppIds); + checkUnnamed602(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed863(o.items); + checkUnnamed603(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -643,14 +643,14 @@ buildCounterChange--; } -buildUnnamed864() { +buildUnnamed604() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed864(core.List<api.Change> o) { +checkUnnamed604(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -662,7 +662,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed864(); + o.items = buildUnnamed604(); o.kind = "foo"; o.largestChangeId = "foo"; o.nextLink = "foo"; @@ -677,7 +677,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed864(o.items); + checkUnnamed604(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -687,14 +687,14 @@ buildCounterChangeList--; } -buildUnnamed865() { +buildUnnamed605() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed865(core.Map<core.String, core.String> o) { +checkUnnamed605(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -709,7 +709,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed865(); + o.params = buildUnnamed605(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -727,7 +727,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed865(o.params); + checkUnnamed605(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -737,14 +737,14 @@ buildCounterChannel--; } -buildUnnamed866() { +buildUnnamed606() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed866(core.List<api.ChildReference> o) { +checkUnnamed606(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -756,7 +756,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed866(); + o.items = buildUnnamed606(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -770,7 +770,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed866(o.items); + checkUnnamed606(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -825,14 +825,14 @@ buildCounterCommentContext--; } -buildUnnamed867() { +buildUnnamed607() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed867(core.List<api.CommentReply> o) { +checkUnnamed607(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -855,7 +855,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed867(); + o.replies = buildUnnamed607(); o.selfLink = "foo"; o.status = "foo"; } @@ -878,21 +878,21 @@ unittest.expect(o.htmlContent, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed867(o.replies); + checkUnnamed607(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed868() { +buildUnnamed608() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed868(core.List<api.Comment> o) { +checkUnnamed608(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -903,7 +903,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed868(); + o.items = buildUnnamed608(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -916,7 +916,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed868(o.items); + checkUnnamed608(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -960,14 +960,14 @@ buildCounterCommentReply--; } -buildUnnamed869() { +buildUnnamed609() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed869(core.List<api.CommentReply> o) { +checkUnnamed609(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -978,7 +978,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed869(); + o.items = buildUnnamed609(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -991,7 +991,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed869(o.items); + checkUnnamed609(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1000,14 +1000,14 @@ buildCounterCommentReplyList--; } -buildUnnamed870() { +buildUnnamed610() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed870(core.Map<core.String, core.String> o) { +checkUnnamed610(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1143,92 +1143,92 @@ buildCounterFileLabels--; } -buildUnnamed871() { +buildUnnamed611() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed871(core.Map<core.String, core.String> o) { +checkUnnamed611(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed872() { +buildUnnamed612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed872(core.List<core.String> o) { +checkUnnamed612(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed873() { +buildUnnamed613() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed873(core.List<api.User> o) { +checkUnnamed613(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed874() { +buildUnnamed614() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed874(core.List<api.ParentReference> o) { +checkUnnamed614(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed875() { +buildUnnamed615() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed875(core.List<api.Permission> o) { +checkUnnamed615(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed876() { +buildUnnamed616() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed876(core.List<api.Property> o) { +checkUnnamed616(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); } -buildUnnamed877() { +buildUnnamed617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed877(core.List<core.String> o) { +checkUnnamed617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1296,11 +1296,12 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed870(); + o.exportLinks = buildUnnamed610(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; o.fullFileExtension = "foo"; + o.hasThumbnail = true; o.headRevisionId = "foo"; o.iconLink = "foo"; o.id = "foo"; @@ -1317,23 +1318,24 @@ o.mimeType = "foo"; o.modifiedByMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.openWithLinks = buildUnnamed871(); + o.openWithLinks = buildUnnamed611(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed872(); - o.owners = buildUnnamed873(); - o.parents = buildUnnamed874(); - o.permissions = buildUnnamed875(); - o.properties = buildUnnamed876(); + o.ownerNames = buildUnnamed612(); + o.owners = buildUnnamed613(); + o.parents = buildUnnamed614(); + o.permissions = buildUnnamed615(); + o.properties = buildUnnamed616(); o.quotaBytesUsed = "foo"; o.selfLink = "foo"; o.shareable = true; o.shared = true; o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); - o.spaces = buildUnnamed877(); + o.spaces = buildUnnamed617(); o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; + o.thumbnailVersion = "foo"; o.title = "foo"; o.userPermission = buildPermission(); o.version = "foo"; @@ -1362,11 +1364,12 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed870(o.exportLinks); + checkUnnamed610(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); unittest.expect(o.fullFileExtension, unittest.equals('foo')); + unittest.expect(o.hasThumbnail, unittest.isTrue); unittest.expect(o.headRevisionId, unittest.equals('foo')); unittest.expect(o.iconLink, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1383,23 +1386,24 @@ unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.modifiedByMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed871(o.openWithLinks); + checkUnnamed611(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed872(o.ownerNames); - checkUnnamed873(o.owners); - checkUnnamed874(o.parents); - checkUnnamed875(o.permissions); - checkUnnamed876(o.properties); + checkUnnamed612(o.ownerNames); + checkUnnamed613(o.owners); + checkUnnamed614(o.parents); + checkUnnamed615(o.permissions); + checkUnnamed616(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); - checkUnnamed877(o.spaces); + checkUnnamed617(o.spaces); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); + unittest.expect(o.thumbnailVersion, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); checkPermission(o.userPermission); unittest.expect(o.version, unittest.equals('foo')); @@ -1411,14 +1415,14 @@ buildCounterFile--; } -buildUnnamed878() { +buildUnnamed618() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed878(core.List<api.File> o) { +checkUnnamed618(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1430,7 +1434,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed878(); + o.items = buildUnnamed618(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1444,7 +1448,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed878(o.items); + checkUnnamed618(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1453,14 +1457,14 @@ buildCounterFileList--; } -buildUnnamed879() { +buildUnnamed619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed879(core.List<core.String> o) { +checkUnnamed619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1471,7 +1475,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed879(); + o.ids = buildUnnamed619(); o.kind = "foo"; o.space = "foo"; } @@ -1482,21 +1486,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed879(o.ids); + checkUnnamed619(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed880() { +buildUnnamed620() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed880(core.List<api.ParentReference> o) { +checkUnnamed620(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1508,7 +1512,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed880(); + o.items = buildUnnamed620(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1520,7 +1524,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed880(o.items); + checkUnnamed620(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1554,14 +1558,14 @@ buildCounterParentReference--; } -buildUnnamed881() { +buildUnnamed621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed881(core.List<core.String> o) { +checkUnnamed621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1572,7 +1576,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed881(); + o.additionalRoles = buildUnnamed621(); o.authKey = "foo"; o.domain = "foo"; o.emailAddress = "foo"; @@ -1595,7 +1599,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed881(o.additionalRoles); + checkUnnamed621(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); unittest.expect(o.emailAddress, unittest.equals('foo')); @@ -1635,14 +1639,14 @@ buildCounterPermissionId--; } -buildUnnamed882() { +buildUnnamed622() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed882(core.List<api.Permission> o) { +checkUnnamed622(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1654,7 +1658,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed882(); + o.items = buildUnnamed622(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1666,7 +1670,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed882(o.items); + checkUnnamed622(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1702,14 +1706,14 @@ buildCounterProperty--; } -buildUnnamed883() { +buildUnnamed623() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed883(core.List<api.Property> o) { +checkUnnamed623(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1721,7 +1725,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed883(); + o.items = buildUnnamed623(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1733,21 +1737,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed883(o.items); + checkUnnamed623(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed884() { +buildUnnamed624() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed884(core.Map<core.String, core.String> o) { +checkUnnamed624(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1760,7 +1764,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed884(); + o.exportLinks = buildUnnamed624(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1786,7 +1790,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed884(o.exportLinks); + checkUnnamed624(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1806,14 +1810,14 @@ buildCounterRevision--; } -buildUnnamed885() { +buildUnnamed625() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed885(core.List<api.Revision> o) { +checkUnnamed625(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1825,7 +1829,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed885(); + o.items = buildUnnamed625(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1838,7 +1842,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed885(o.items); + checkUnnamed625(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo'));
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 9a1a6db..79eafb3 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -51,79 +51,79 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1816() { +buildUnnamed1569() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1816(core.List<core.String> o) { +checkUnnamed1569(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1817() { +buildUnnamed1570() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1816(); - o["y"] = buildUnnamed1816(); + o["x"] = buildUnnamed1569(); + o["y"] = buildUnnamed1569(); return o; } -checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1570(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1816(o["x"]); - checkUnnamed1816(o["y"]); + checkUnnamed1569(o["x"]); + checkUnnamed1569(o["y"]); } -buildUnnamed1818() { +buildUnnamed1571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1818(core.List<core.String> o) { +checkUnnamed1571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1819() { +buildUnnamed1572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1819(core.List<core.String> o) { +checkUnnamed1572(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1820() { +buildUnnamed1573() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1819(); - o["y"] = buildUnnamed1819(); + o["x"] = buildUnnamed1572(); + o["y"] = buildUnnamed1572(); return o; } -checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1573(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1819(o["x"]); - checkUnnamed1819(o["y"]); + checkUnnamed1572(o["x"]); + checkUnnamed1572(o["y"]); } -buildUnnamed1821() { +buildUnnamed1574() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1821(core.Map<core.String, core.String> o) { +checkUnnamed1574(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -160,11 +160,11 @@ buildCounterAbout++; if (buildCounterAbout < 3) { o.appInstalled = true; - o.exportFormats = buildUnnamed1817(); - o.folderColorPalette = buildUnnamed1818(); - o.importFormats = buildUnnamed1820(); + o.exportFormats = buildUnnamed1570(); + o.folderColorPalette = buildUnnamed1571(); + o.importFormats = buildUnnamed1573(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed1821(); + o.maxImportSizes = buildUnnamed1574(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); o.user = buildUser(); @@ -177,11 +177,11 @@ buildCounterAbout++; if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); - checkUnnamed1817(o.exportFormats); - checkUnnamed1818(o.folderColorPalette); - checkUnnamed1820(o.importFormats); + checkUnnamed1570(o.exportFormats); + checkUnnamed1571(o.folderColorPalette); + checkUnnamed1573(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1821(o.maxImportSizes); + checkUnnamed1574(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); checkUser(o.user); @@ -216,14 +216,14 @@ buildCounterChange--; } -buildUnnamed1822() { +buildUnnamed1575() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1822(core.List<api.Change> o) { +checkUnnamed1575(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -234,7 +234,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed1822(); + o.changes = buildUnnamed1575(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -246,7 +246,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed1822(o.changes); + checkUnnamed1575(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -254,14 +254,14 @@ buildCounterChangeList--; } -buildUnnamed1823() { +buildUnnamed1576() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1823(core.Map<core.String, core.String> o) { +checkUnnamed1576(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -276,7 +276,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1823(); + o.params = buildUnnamed1576(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -294,7 +294,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1823(o.params); + checkUnnamed1576(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -325,14 +325,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed1824() { +buildUnnamed1577() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1824(core.List<api.Reply> o) { +checkUnnamed1577(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -353,7 +353,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed1824(); + o.replies = buildUnnamed1577(); o.resolved = true; } buildCounterComment--; @@ -373,20 +373,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed1824(o.replies); + checkUnnamed1577(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed1825() { +buildUnnamed1578() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1825(core.List<api.Comment> o) { +checkUnnamed1578(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -397,7 +397,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed1825(); + o.comments = buildUnnamed1578(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -408,21 +408,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1825(o.comments); + checkUnnamed1578(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed1826() { +buildUnnamed1579() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1826(core.Map<core.String, core.String> o) { +checkUnnamed1579(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -579,66 +579,66 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed1827() { +buildUnnamed1580() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1827(core.List<api.User> o) { +checkUnnamed1580(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1828() { +buildUnnamed1581() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1828(core.List<core.String> o) { +checkUnnamed1581(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1829() { +buildUnnamed1582() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1829(core.List<api.Permission> o) { +checkUnnamed1582(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1830() { +buildUnnamed1583() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1830(core.Map<core.String, core.String> o) { +checkUnnamed1583(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1831() { +buildUnnamed1584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1831(core.List<core.String> o) { +checkUnnamed1584(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -672,7 +672,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed1826(); + o.appProperties = buildUnnamed1579(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -681,6 +681,7 @@ o.fileExtension = "foo"; o.folderColorRgb = "foo"; o.fullFileExtension = "foo"; + o.hasThumbnail = true; o.headRevisionId = "foo"; o.iconLink = "foo"; o.id = "foo"; @@ -696,18 +697,19 @@ o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed1827(); - o.parents = buildUnnamed1828(); - o.permissions = buildUnnamed1829(); - o.properties = buildUnnamed1830(); + o.owners = buildUnnamed1580(); + o.parents = buildUnnamed1581(); + o.permissions = buildUnnamed1582(); + o.properties = buildUnnamed1583(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed1831(); + o.spaces = buildUnnamed1584(); o.starred = true; o.thumbnailLink = "foo"; + o.thumbnailVersion = "foo"; o.trashed = true; o.version = "foo"; o.videoMediaMetadata = buildFileVideoMediaMetadata(); @@ -725,7 +727,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed1826(o.appProperties); + checkUnnamed1579(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -734,6 +736,7 @@ unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); unittest.expect(o.fullFileExtension, unittest.equals('foo')); + unittest.expect(o.hasThumbnail, unittest.isTrue); unittest.expect(o.headRevisionId, unittest.equals('foo')); unittest.expect(o.iconLink, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -749,18 +752,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1827(o.owners); - checkUnnamed1828(o.parents); - checkUnnamed1829(o.permissions); - checkUnnamed1830(o.properties); + checkUnnamed1580(o.owners); + checkUnnamed1581(o.parents); + checkUnnamed1582(o.permissions); + checkUnnamed1583(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); unittest.expect(o.size, unittest.equals('foo')); - checkUnnamed1831(o.spaces); + checkUnnamed1584(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.thumbnailLink, unittest.equals('foo')); + unittest.expect(o.thumbnailVersion, unittest.equals('foo')); unittest.expect(o.trashed, unittest.isTrue); unittest.expect(o.version, unittest.equals('foo')); checkFileVideoMediaMetadata(o.videoMediaMetadata); @@ -774,14 +778,14 @@ buildCounterFile--; } -buildUnnamed1832() { +buildUnnamed1585() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1832(core.List<api.File> o) { +checkUnnamed1585(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -792,7 +796,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed1832(); + o.files = buildUnnamed1585(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -803,21 +807,21 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed1832(o.files); + checkUnnamed1585(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFileList--; } -buildUnnamed1833() { +buildUnnamed1586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1833(core.List<core.String> o) { +checkUnnamed1586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -828,7 +832,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1833(); + o.ids = buildUnnamed1586(); o.kind = "foo"; o.space = "foo"; } @@ -839,7 +843,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1833(o.ids); + checkUnnamed1586(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -883,14 +887,14 @@ buildCounterPermission--; } -buildUnnamed1834() { +buildUnnamed1587() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1834(core.List<api.Permission> o) { +checkUnnamed1587(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -902,7 +906,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.kind = "foo"; - o.permissions = buildUnnamed1834(); + o.permissions = buildUnnamed1587(); } buildCounterPermissionList--; return o; @@ -912,7 +916,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1834(o.permissions); + checkUnnamed1587(o.permissions); } buildCounterPermissionList--; } @@ -952,14 +956,14 @@ buildCounterReply--; } -buildUnnamed1835() { +buildUnnamed1588() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1835(core.List<api.Reply> o) { +checkUnnamed1588(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -972,7 +976,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed1835(); + o.replies = buildUnnamed1588(); } buildCounterReplyList--; return o; @@ -983,7 +987,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1835(o.replies); + checkUnnamed1588(o.replies); } buildCounterReplyList--; } @@ -1029,14 +1033,14 @@ buildCounterRevision--; } -buildUnnamed1836() { +buildUnnamed1589() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1836(core.List<api.Revision> o) { +checkUnnamed1589(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1049,7 +1053,7 @@ if (buildCounterRevisionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.revisions = buildUnnamed1836(); + o.revisions = buildUnnamed1589(); } buildCounterRevisionList--; return o; @@ -1060,7 +1064,7 @@ if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1836(o.revisions); + checkUnnamed1589(o.revisions); } buildCounterRevisionList--; }
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart index f0023db..4fd0a70 100644 --- a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -120,14 +120,14 @@ buildCounterCreateShortDynamicLinkRequest--; } -buildUnnamed2171() { +buildUnnamed1942() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed2171(core.List<api.DynamicLinkWarning> o) { +checkUnnamed1942(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -140,7 +140,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { o.previewLink = "foo"; o.shortLink = "foo"; - o.warning = buildUnnamed2171(); + o.warning = buildUnnamed1942(); } buildCounterCreateShortDynamicLinkResponse--; return o; @@ -151,7 +151,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { unittest.expect(o.previewLink, unittest.equals('foo')); unittest.expect(o.shortLink, unittest.equals('foo')); - checkUnnamed2171(o.warning); + checkUnnamed1942(o.warning); } buildCounterCreateShortDynamicLinkResponse--; } @@ -165,7 +165,6 @@ o.androidInfo = buildAndroidInfo(); o.dynamicLinkDomain = "foo"; o.iosInfo = buildIosInfo(); - o.isAd = true; o.link = "foo"; o.socialMetaTagInfo = buildSocialMetaTagInfo(); } @@ -180,7 +179,6 @@ checkAndroidInfo(o.androidInfo); unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); checkIosInfo(o.iosInfo); - unittest.expect(o.isAd, unittest.isTrue); unittest.expect(o.link, unittest.equals('foo')); checkSocialMetaTagInfo(o.socialMetaTagInfo); }
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index 7f1e583..29a62b1 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -114,14 +114,14 @@ buildCounterIssue--; } -buildUnnamed3268() { +buildUnnamed3058() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3268(core.List<api.Release> o) { +checkUnnamed3058(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -133,7 +133,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed3268(); + o.releases = buildUnnamed3058(); } buildCounterListReleasesResponse--; return o; @@ -143,19 +143,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3268(o.releases); + checkUnnamed3058(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3269() { +buildUnnamed3059() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3269(core.List<api.Ruleset> o) { +checkUnnamed3059(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -167,7 +167,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed3269(); + o.rulesets = buildUnnamed3059(); } buildCounterListRulesetsResponse--; return o; @@ -177,7 +177,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3269(o.rulesets); + checkUnnamed3059(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -230,14 +230,14 @@ buildCounterRuleset--; } -buildUnnamed3270() { +buildUnnamed3060() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3270(core.List<api.File> o) { +checkUnnamed3060(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -248,7 +248,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed3270(); + o.files = buildUnnamed3060(); } buildCounterSource--; return o; @@ -257,7 +257,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3270(o.files); + checkUnnamed3060(o.files); } buildCounterSource--; } @@ -304,14 +304,14 @@ buildCounterTestRulesetRequest--; } -buildUnnamed3271() { +buildUnnamed3061() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3271(core.List<api.Issue> o) { +checkUnnamed3061(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); @@ -322,7 +322,7 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed3271(); + o.issues = buildUnnamed3061(); } buildCounterTestRulesetResponse--; return o; @@ -331,7 +331,7 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3271(o.issues); + checkUnnamed3061(o.issues); } buildCounterTestRulesetResponse--; }
diff --git a/generated/googleapis/test/fitness/v1_test.dart b/generated/googleapis/test/fitness/v1_test.dart index bc1c0d4..f8d7450 100644 --- a/generated/googleapis/test/fitness/v1_test.dart +++ b/generated/googleapis/test/fitness/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1998() { +buildUnnamed1769() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed1998(core.List<api.Dataset> o) { +checkUnnamed1769(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -70,7 +70,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { o.activity = 42; - o.dataset = buildUnnamed1998(); + o.dataset = buildUnnamed1769(); o.endTimeMillis = "foo"; o.session = buildSession(); o.startTimeMillis = "foo"; @@ -84,7 +84,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { unittest.expect(o.activity, unittest.equals(42)); - checkUnnamed1998(o.dataset); + checkUnnamed1769(o.dataset); unittest.expect(o.endTimeMillis, unittest.equals('foo')); checkSession(o.session); unittest.expect(o.startTimeMillis, unittest.equals('foo')); @@ -114,27 +114,27 @@ buildCounterAggregateBy--; } -buildUnnamed1999() { +buildUnnamed1770() { var o = new core.List<api.AggregateBy>(); o.add(buildAggregateBy()); o.add(buildAggregateBy()); return o; } -checkUnnamed1999(core.List<api.AggregateBy> o) { +checkUnnamed1770(core.List<api.AggregateBy> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBy(o[0]); checkAggregateBy(o[1]); } -buildUnnamed2000() { +buildUnnamed1771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2000(core.List<core.String> o) { +checkUnnamed1771(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -145,13 +145,13 @@ var o = new api.AggregateRequest(); buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - o.aggregateBy = buildUnnamed1999(); + o.aggregateBy = buildUnnamed1770(); o.bucketByActivitySegment = buildBucketByActivity(); o.bucketByActivityType = buildBucketByActivity(); o.bucketBySession = buildBucketBySession(); o.bucketByTime = buildBucketByTime(); o.endTimeMillis = "foo"; - o.filteredDataQualityStandard = buildUnnamed2000(); + o.filteredDataQualityStandard = buildUnnamed1771(); o.startTimeMillis = "foo"; } buildCounterAggregateRequest--; @@ -161,26 +161,26 @@ checkAggregateRequest(api.AggregateRequest o) { buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - checkUnnamed1999(o.aggregateBy); + checkUnnamed1770(o.aggregateBy); checkBucketByActivity(o.bucketByActivitySegment); checkBucketByActivity(o.bucketByActivityType); checkBucketBySession(o.bucketBySession); checkBucketByTime(o.bucketByTime); unittest.expect(o.endTimeMillis, unittest.equals('foo')); - checkUnnamed2000(o.filteredDataQualityStandard); + checkUnnamed1771(o.filteredDataQualityStandard); unittest.expect(o.startTimeMillis, unittest.equals('foo')); } buildCounterAggregateRequest--; } -buildUnnamed2001() { +buildUnnamed1772() { var o = new core.List<api.AggregateBucket>(); o.add(buildAggregateBucket()); o.add(buildAggregateBucket()); return o; } -checkUnnamed2001(core.List<api.AggregateBucket> o) { +checkUnnamed1772(core.List<api.AggregateBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBucket(o[0]); checkAggregateBucket(o[1]); @@ -191,7 +191,7 @@ var o = new api.AggregateResponse(); buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - o.bucket = buildUnnamed2001(); + o.bucket = buildUnnamed1772(); } buildCounterAggregateResponse--; return o; @@ -200,7 +200,7 @@ checkAggregateResponse(api.AggregateResponse o) { buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - checkUnnamed2001(o.bucket); + checkUnnamed1772(o.bucket); } buildCounterAggregateResponse--; } @@ -314,14 +314,14 @@ buildCounterBucketByTimePeriod--; } -buildUnnamed2002() { +buildUnnamed1773() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2002(core.List<api.Value> o) { +checkUnnamed1773(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -339,7 +339,7 @@ o.originDataSourceId = "foo"; o.rawTimestampNanos = "foo"; o.startTimeNanos = "foo"; - o.value = buildUnnamed2002(); + o.value = buildUnnamed1773(); } buildCounterDataPoint--; return o; @@ -355,19 +355,19 @@ unittest.expect(o.originDataSourceId, unittest.equals('foo')); unittest.expect(o.rawTimestampNanos, unittest.equals('foo')); unittest.expect(o.startTimeNanos, unittest.equals('foo')); - checkUnnamed2002(o.value); + checkUnnamed1773(o.value); } buildCounterDataPoint--; } -buildUnnamed2003() { +buildUnnamed1774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2003(core.List<core.String> o) { +checkUnnamed1774(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -379,7 +379,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { o.application = buildApplication(); - o.dataQualityStandard = buildUnnamed2003(); + o.dataQualityStandard = buildUnnamed1774(); o.dataStreamId = "foo"; o.dataStreamName = "foo"; o.dataType = buildDataType(); @@ -395,7 +395,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { checkApplication(o.application); - checkUnnamed2003(o.dataQualityStandard); + checkUnnamed1774(o.dataQualityStandard); unittest.expect(o.dataStreamId, unittest.equals('foo')); unittest.expect(o.dataStreamName, unittest.equals('foo')); checkDataType(o.dataType); @@ -406,14 +406,14 @@ buildCounterDataSource--; } -buildUnnamed2004() { +buildUnnamed1775() { var o = new core.List<api.DataTypeField>(); o.add(buildDataTypeField()); o.add(buildDataTypeField()); return o; } -checkUnnamed2004(core.List<api.DataTypeField> o) { +checkUnnamed1775(core.List<api.DataTypeField> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTypeField(o[0]); checkDataTypeField(o[1]); @@ -424,7 +424,7 @@ var o = new api.DataType(); buildCounterDataType++; if (buildCounterDataType < 3) { - o.field = buildUnnamed2004(); + o.field = buildUnnamed1775(); o.name = "foo"; } buildCounterDataType--; @@ -434,7 +434,7 @@ checkDataType(api.DataType o) { buildCounterDataType++; if (buildCounterDataType < 3) { - checkUnnamed2004(o.field); + checkUnnamed1775(o.field); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDataType--; @@ -463,14 +463,14 @@ buildCounterDataTypeField--; } -buildUnnamed2005() { +buildUnnamed1776() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed2005(core.List<api.DataPoint> o) { +checkUnnamed1776(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -485,7 +485,7 @@ o.maxEndTimeNs = "foo"; o.minStartTimeNs = "foo"; o.nextPageToken = "foo"; - o.point = buildUnnamed2005(); + o.point = buildUnnamed1776(); } buildCounterDataset--; return o; @@ -498,7 +498,7 @@ unittest.expect(o.maxEndTimeNs, unittest.equals('foo')); unittest.expect(o.minStartTimeNs, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2005(o.point); + checkUnnamed1776(o.point); } buildCounterDataset--; } @@ -530,14 +530,14 @@ buildCounterDevice--; } -buildUnnamed2006() { +buildUnnamed1777() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed2006(core.List<api.DataSource> o) { +checkUnnamed1777(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -548,7 +548,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSource = buildUnnamed2006(); + o.dataSource = buildUnnamed1777(); } buildCounterListDataSourcesResponse--; return o; @@ -557,32 +557,32 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed2006(o.dataSource); + checkUnnamed1777(o.dataSource); } buildCounterListDataSourcesResponse--; } -buildUnnamed2007() { +buildUnnamed1778() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2007(core.List<api.Session> o) { +checkUnnamed1778(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); } -buildUnnamed2008() { +buildUnnamed1779() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2008(core.List<api.Session> o) { +checkUnnamed1779(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -593,10 +593,10 @@ var o = new api.ListSessionsResponse(); buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - o.deletedSession = buildUnnamed2007(); + o.deletedSession = buildUnnamed1778(); o.hasMoreData = true; o.nextPageToken = "foo"; - o.session = buildUnnamed2008(); + o.session = buildUnnamed1779(); } buildCounterListSessionsResponse--; return o; @@ -605,10 +605,10 @@ checkListSessionsResponse(api.ListSessionsResponse o) { buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - checkUnnamed2007(o.deletedSession); + checkUnnamed1778(o.deletedSession); unittest.expect(o.hasMoreData, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2008(o.session); + checkUnnamed1779(o.session); } buildCounterListSessionsResponse--; } @@ -667,14 +667,14 @@ buildCounterSession--; } -buildUnnamed2009() { +buildUnnamed1780() { var o = new core.List<api.ValueMapValEntry>(); o.add(buildValueMapValEntry()); o.add(buildValueMapValEntry()); return o; } -checkUnnamed2009(core.List<api.ValueMapValEntry> o) { +checkUnnamed1780(core.List<api.ValueMapValEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkValueMapValEntry(o[0]); checkValueMapValEntry(o[1]); @@ -687,7 +687,7 @@ if (buildCounterValue < 3) { o.fpVal = 42.0; o.intVal = 42; - o.mapVal = buildUnnamed2009(); + o.mapVal = buildUnnamed1780(); o.stringVal = "foo"; } buildCounterValue--; @@ -699,7 +699,7 @@ if (buildCounterValue < 3) { unittest.expect(o.fpVal, unittest.equals(42.0)); unittest.expect(o.intVal, unittest.equals(42)); - checkUnnamed2009(o.mapVal); + checkUnnamed1780(o.mapVal); unittest.expect(o.stringVal, unittest.equals('foo')); } buildCounterValue--; @@ -726,14 +726,14 @@ buildCounterValueMapValEntry--; } -buildUnnamed2010() { +buildUnnamed1781() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2010(core.List<core.String> o) { +checkUnnamed1781(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1068,7 +1068,7 @@ var mock = new HttpServerMock(); api.UsersDataSourcesResourceApi res = new api.FitnessApi(mock).users.dataSources; var arg_userId = "foo"; - var arg_dataTypeName = buildUnnamed2010(); + var arg_dataTypeName = buildUnnamed1781(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index fb27315..7fc8cfa 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -132,14 +132,14 @@ buildCounterColumn--; } -buildUnnamed3140() { +buildUnnamed2928() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3140(core.List<api.Column> o) { +checkUnnamed2928(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -150,7 +150,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed3140(); + o.items = buildUnnamed2928(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -162,7 +162,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed3140(o.items); + checkUnnamed2928(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -170,14 +170,14 @@ buildCounterColumnList--; } -buildUnnamed3141() { +buildUnnamed2929() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3141(core.List<core.Object> o) { +checkUnnamed2929(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -188,7 +188,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed3141(); + o.geometries = buildUnnamed2929(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -199,7 +199,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed3141(o.geometries); + checkUnnamed2929(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -227,30 +227,30 @@ buildCounterImport--; } -buildUnnamed3142() { +buildUnnamed2930() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3142(core.List<core.double> o) { +checkUnnamed2930(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3143() { +buildUnnamed2931() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3142()); - o.add(buildUnnamed3142()); + o.add(buildUnnamed2930()); + o.add(buildUnnamed2930()); return o; } -checkUnnamed3143(core.List<core.List<core.double>> o) { +checkUnnamed2931(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3142(o[0]); - checkUnnamed3142(o[1]); + checkUnnamed2930(o[0]); + checkUnnamed2930(o[1]); } core.int buildCounterLine = 0; @@ -258,7 +258,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed3143(); + o.coordinates = buildUnnamed2931(); o.type = "foo"; } buildCounterLine--; @@ -268,7 +268,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed3143(o.coordinates); + checkUnnamed2931(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -301,14 +301,14 @@ buildCounterLineStyle--; } -buildUnnamed3144() { +buildUnnamed2932() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3144(core.List<core.double> o) { +checkUnnamed2932(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -319,7 +319,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed3144(); + o.coordinates = buildUnnamed2932(); o.type = "foo"; } buildCounterPoint--; @@ -329,7 +329,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed3144(o.coordinates); + checkUnnamed2932(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -356,43 +356,43 @@ buildCounterPointStyle--; } -buildUnnamed3145() { +buildUnnamed2933() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3145(core.List<core.double> o) { +checkUnnamed2933(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3146() { +buildUnnamed2934() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3145()); - o.add(buildUnnamed3145()); + o.add(buildUnnamed2933()); + o.add(buildUnnamed2933()); return o; } -checkUnnamed3146(core.List<core.List<core.double>> o) { +checkUnnamed2934(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3145(o[0]); - checkUnnamed3145(o[1]); + checkUnnamed2933(o[0]); + checkUnnamed2933(o[1]); } -buildUnnamed3147() { +buildUnnamed2935() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed3146()); - o.add(buildUnnamed3146()); + o.add(buildUnnamed2934()); + o.add(buildUnnamed2934()); return o; } -checkUnnamed3147(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed2935(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3146(o[0]); - checkUnnamed3146(o[1]); + checkUnnamed2934(o[0]); + checkUnnamed2934(o[1]); } core.int buildCounterPolygon = 0; @@ -400,7 +400,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed3147(); + o.coordinates = buildUnnamed2935(); o.type = "foo"; } buildCounterPolygon--; @@ -410,7 +410,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed3147(o.coordinates); + checkUnnamed2935(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -449,43 +449,43 @@ buildCounterPolygonStyle--; } -buildUnnamed3148() { +buildUnnamed2936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3148(core.List<core.String> o) { +checkUnnamed2936(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3149() { +buildUnnamed2937() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3149(core.List<core.Object> o) { +checkUnnamed2937(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed3150() { +buildUnnamed2938() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3149()); - o.add(buildUnnamed3149()); + o.add(buildUnnamed2937()); + o.add(buildUnnamed2937()); return o; } -checkUnnamed3150(core.List<core.List<core.Object>> o) { +checkUnnamed2938(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3149(o[0]); - checkUnnamed3149(o[1]); + checkUnnamed2937(o[0]); + checkUnnamed2937(o[1]); } core.int buildCounterSqlresponse = 0; @@ -493,9 +493,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed3148(); + o.columns = buildUnnamed2936(); o.kind = "foo"; - o.rows = buildUnnamed3150(); + o.rows = buildUnnamed2938(); } buildCounterSqlresponse--; return o; @@ -504,21 +504,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed3148(o.columns); + checkUnnamed2936(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3150(o.rows); + checkUnnamed2938(o.rows); } buildCounterSqlresponse--; } -buildUnnamed3151() { +buildUnnamed2939() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed3151(core.List<api.Bucket> o) { +checkUnnamed2939(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -545,14 +545,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed3152() { +buildUnnamed2940() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed3152(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed2940(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -563,7 +563,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed3152(); + o.colors = buildUnnamed2940(); o.max = 42.0; o.min = 42.0; } @@ -574,7 +574,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed3152(o.colors); + checkUnnamed2940(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -586,7 +586,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed3151(); + o.buckets = buildUnnamed2939(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -598,7 +598,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed3151(o.buckets); + checkUnnamed2939(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -637,14 +637,14 @@ buildCounterStyleSetting--; } -buildUnnamed3153() { +buildUnnamed2941() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed3153(core.List<api.StyleSetting> o) { +checkUnnamed2941(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -655,7 +655,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed3153(); + o.items = buildUnnamed2941(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -667,7 +667,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed3153(o.items); + checkUnnamed2941(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -675,27 +675,27 @@ buildCounterStyleSettingList--; } -buildUnnamed3154() { +buildUnnamed2942() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3154(core.List<core.String> o) { +checkUnnamed2942(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3155() { +buildUnnamed2943() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3155(core.List<api.Column> o) { +checkUnnamed2943(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -708,8 +708,8 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed3154(); - o.columns = buildUnnamed3155(); + o.baseTableIds = buildUnnamed2942(); + o.columns = buildUnnamed2943(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -726,8 +726,8 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed3154(o.baseTableIds); - checkUnnamed3155(o.columns); + checkUnnamed2942(o.baseTableIds); + checkUnnamed2943(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -738,14 +738,14 @@ buildCounterTable--; } -buildUnnamed3156() { +buildUnnamed2944() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed3156(core.List<api.Table> o) { +checkUnnamed2944(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -756,7 +756,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed3156(); + o.items = buildUnnamed2944(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -767,7 +767,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed3156(o.items); + checkUnnamed2944(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -801,14 +801,14 @@ buildCounterTask--; } -buildUnnamed3157() { +buildUnnamed2945() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3157(core.List<api.Task> o) { +checkUnnamed2945(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -819,7 +819,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed3157(); + o.items = buildUnnamed2945(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -831,7 +831,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed3157(o.items); + checkUnnamed2945(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -839,14 +839,14 @@ buildCounterTaskList--; } -buildUnnamed3158() { +buildUnnamed2946() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3158(core.List<core.String> o) { +checkUnnamed2946(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -857,7 +857,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed3158(); + o.automaticColumnNames = buildUnnamed2946(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -871,7 +871,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed3158(o.automaticColumnNames); + checkUnnamed2946(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -881,14 +881,14 @@ buildCounterTemplate--; } -buildUnnamed3159() { +buildUnnamed2947() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed3159(core.List<api.Template> o) { +checkUnnamed2947(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -899,7 +899,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed3159(); + o.items = buildUnnamed2947(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -911,7 +911,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed3159(o.items); + checkUnnamed2947(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42));
diff --git a/generated/googleapis/test/fusiontables/v2_test.dart b/generated/googleapis/test/fusiontables/v2_test.dart index 45c03ae..f89d007 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -101,14 +101,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed666() { +buildUnnamed406() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed666(core.List<core.String> o) { +checkUnnamed406(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ o.kind = "foo"; o.name = "foo"; o.type = "foo"; - o.validValues = buildUnnamed666(); + o.validValues = buildUnnamed406(); o.validateData = true; } buildCounterColumn--; @@ -149,20 +149,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed666(o.validValues); + checkUnnamed406(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed667() { +buildUnnamed407() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed667(core.List<api.Column> o) { +checkUnnamed407(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -173,7 +173,7 @@ var o = new api.ColumnList(); buildCounterColumnList++; if (buildCounterColumnList < 3) { - o.items = buildUnnamed667(); + o.items = buildUnnamed407(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -185,7 +185,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed667(o.items); + checkUnnamed407(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -193,14 +193,14 @@ buildCounterColumnList--; } -buildUnnamed668() { +buildUnnamed408() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed668(core.List<core.Object> o) { +checkUnnamed408(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -211,7 +211,7 @@ var o = new api.Geometry(); buildCounterGeometry++; if (buildCounterGeometry < 3) { - o.geometries = buildUnnamed668(); + o.geometries = buildUnnamed408(); o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.type = "foo"; } @@ -222,7 +222,7 @@ checkGeometry(api.Geometry o) { buildCounterGeometry++; if (buildCounterGeometry < 3) { - checkUnnamed668(o.geometries); + checkUnnamed408(o.geometries); var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -250,30 +250,30 @@ buildCounterImport--; } -buildUnnamed669() { +buildUnnamed409() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed669(core.List<core.double> o) { +checkUnnamed409(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed670() { +buildUnnamed410() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed669()); - o.add(buildUnnamed669()); + o.add(buildUnnamed409()); + o.add(buildUnnamed409()); return o; } -checkUnnamed670(core.List<core.List<core.double>> o) { +checkUnnamed410(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed669(o[0]); - checkUnnamed669(o[1]); + checkUnnamed409(o[0]); + checkUnnamed409(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed670(); + o.coordinates = buildUnnamed410(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed670(o.coordinates); + checkUnnamed410(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed671() { +buildUnnamed411() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed671(core.List<core.double> o) { +checkUnnamed411(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -342,7 +342,7 @@ var o = new api.Point(); buildCounterPoint++; if (buildCounterPoint < 3) { - o.coordinates = buildUnnamed671(); + o.coordinates = buildUnnamed411(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed671(o.coordinates); + checkUnnamed411(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed672() { +buildUnnamed412() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed672(core.List<core.double> o) { +checkUnnamed412(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed673() { +buildUnnamed413() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed672()); - o.add(buildUnnamed672()); + o.add(buildUnnamed412()); + o.add(buildUnnamed412()); return o; } -checkUnnamed673(core.List<core.List<core.double>> o) { +checkUnnamed413(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed672(o[0]); - checkUnnamed672(o[1]); + checkUnnamed412(o[0]); + checkUnnamed412(o[1]); } -buildUnnamed674() { +buildUnnamed414() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed673()); - o.add(buildUnnamed673()); + o.add(buildUnnamed413()); + o.add(buildUnnamed413()); return o; } -checkUnnamed674(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed414(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed673(o[0]); - checkUnnamed673(o[1]); + checkUnnamed413(o[0]); + checkUnnamed413(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed674(); + o.coordinates = buildUnnamed414(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed674(o.coordinates); + checkUnnamed414(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,43 +472,43 @@ buildCounterPolygonStyle--; } -buildUnnamed675() { +buildUnnamed415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed675(core.List<core.String> o) { +checkUnnamed415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed676() { +buildUnnamed416() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed676(core.List<core.Object> o) { +checkUnnamed416(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed677() { +buildUnnamed417() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed676()); - o.add(buildUnnamed676()); + o.add(buildUnnamed416()); + o.add(buildUnnamed416()); return o; } -checkUnnamed677(core.List<core.List<core.Object>> o) { +checkUnnamed417(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed676(o[0]); - checkUnnamed676(o[1]); + checkUnnamed416(o[0]); + checkUnnamed416(o[1]); } core.int buildCounterSqlresponse = 0; @@ -516,9 +516,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed675(); + o.columns = buildUnnamed415(); o.kind = "foo"; - o.rows = buildUnnamed677(); + o.rows = buildUnnamed417(); } buildCounterSqlresponse--; return o; @@ -527,21 +527,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed675(o.columns); + checkUnnamed415(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed677(o.rows); + checkUnnamed417(o.rows); } buildCounterSqlresponse--; } -buildUnnamed678() { +buildUnnamed418() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed678(core.List<api.Bucket> o) { +checkUnnamed418(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -568,14 +568,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed679() { +buildUnnamed419() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed679(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed419(core.List<api.StyleFunctionGradientColors> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleFunctionGradientColors(o[0]); checkStyleFunctionGradientColors(o[1]); @@ -586,7 +586,7 @@ var o = new api.StyleFunctionGradient(); buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - o.colors = buildUnnamed679(); + o.colors = buildUnnamed419(); o.max = 42.0; o.min = 42.0; } @@ -597,7 +597,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed679(o.colors); + checkUnnamed419(o.colors); unittest.expect(o.max, unittest.equals(42.0)); unittest.expect(o.min, unittest.equals(42.0)); } @@ -609,7 +609,7 @@ var o = new api.StyleFunction(); buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - o.buckets = buildUnnamed678(); + o.buckets = buildUnnamed418(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -621,7 +621,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed678(o.buckets); + checkUnnamed418(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -660,14 +660,14 @@ buildCounterStyleSetting--; } -buildUnnamed680() { +buildUnnamed420() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed680(core.List<api.StyleSetting> o) { +checkUnnamed420(core.List<api.StyleSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkStyleSetting(o[0]); checkStyleSetting(o[1]); @@ -678,7 +678,7 @@ var o = new api.StyleSettingList(); buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - o.items = buildUnnamed680(); + o.items = buildUnnamed420(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -690,7 +690,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed680(o.items); + checkUnnamed420(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -698,27 +698,27 @@ buildCounterStyleSettingList--; } -buildUnnamed681() { +buildUnnamed421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed681(core.List<core.String> o) { +checkUnnamed421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed682() { +buildUnnamed422() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed682(core.List<api.Column> o) { +checkUnnamed422(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -731,9 +731,9 @@ if (buildCounterTable < 3) { o.attribution = "foo"; o.attributionLink = "foo"; - o.baseTableIds = buildUnnamed681(); + o.baseTableIds = buildUnnamed421(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed682(); + o.columns = buildUnnamed422(); o.description = "foo"; o.isExportable = true; o.kind = "foo"; @@ -752,9 +752,9 @@ if (buildCounterTable < 3) { unittest.expect(o.attribution, unittest.equals('foo')); unittest.expect(o.attributionLink, unittest.equals('foo')); - checkUnnamed681(o.baseTableIds); + checkUnnamed421(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed682(o.columns); + checkUnnamed422(o.columns); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isExportable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -767,14 +767,14 @@ buildCounterTable--; } -buildUnnamed683() { +buildUnnamed423() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed683(core.List<api.Table> o) { +checkUnnamed423(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -785,7 +785,7 @@ var o = new api.TableList(); buildCounterTableList++; if (buildCounterTableList < 3) { - o.items = buildUnnamed683(); + o.items = buildUnnamed423(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,7 +796,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed683(o.items); + checkUnnamed423(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -830,14 +830,14 @@ buildCounterTask--; } -buildUnnamed684() { +buildUnnamed424() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed684(core.List<api.Task> o) { +checkUnnamed424(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -848,7 +848,7 @@ var o = new api.TaskList(); buildCounterTaskList++; if (buildCounterTaskList < 3) { - o.items = buildUnnamed684(); + o.items = buildUnnamed424(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -860,7 +860,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed684(o.items); + checkUnnamed424(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -868,14 +868,14 @@ buildCounterTaskList--; } -buildUnnamed685() { +buildUnnamed425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed685(core.List<core.String> o) { +checkUnnamed425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -886,7 +886,7 @@ var o = new api.Template(); buildCounterTemplate++; if (buildCounterTemplate < 3) { - o.automaticColumnNames = buildUnnamed685(); + o.automaticColumnNames = buildUnnamed425(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -900,7 +900,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed685(o.automaticColumnNames); + checkUnnamed425(o.automaticColumnNames); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -910,14 +910,14 @@ buildCounterTemplate--; } -buildUnnamed686() { +buildUnnamed426() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed686(core.List<api.Template> o) { +checkUnnamed426(core.List<api.Template> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplate(o[0]); checkTemplate(o[1]); @@ -928,7 +928,7 @@ var o = new api.TemplateList(); buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - o.items = buildUnnamed686(); + o.items = buildUnnamed426(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -940,7 +940,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed686(o.items); + checkUnnamed426(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42));
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index 6dfda57..0c569b8 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -113,14 +113,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed894() { +buildUnnamed634() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed894(core.List<api.AchievementConfiguration> o) { +checkUnnamed634(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -131,7 +131,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed894(); + o.items = buildUnnamed634(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed894(o.items); + checkUnnamed634(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed895() { +buildUnnamed635() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed895(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed635(core.List<api.LeaderboardConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardConfiguration(o[0]); checkLeaderboardConfiguration(o[1]); @@ -306,7 +306,7 @@ var o = new api.LeaderboardConfigurationListResponse(); buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - o.items = buildUnnamed895(); + o.items = buildUnnamed635(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -317,7 +317,7 @@ checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed895(o.items); + checkUnnamed635(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -347,14 +347,14 @@ buildCounterLocalizedString--; } -buildUnnamed896() { +buildUnnamed636() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed896(core.List<api.LocalizedString> o) { +checkUnnamed636(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -366,7 +366,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed896(); + o.translations = buildUnnamed636(); } buildCounterLocalizedStringBundle--; return o; @@ -376,7 +376,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed896(o.translations); + checkUnnamed636(o.translations); } buildCounterLocalizedStringBundle--; }
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index f24e4cd..560f2f3 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed886() { +buildUnnamed626() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed886(core.List<api.AchievementResetResponse> o) { +checkUnnamed626(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -70,7 +70,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed886(); + o.results = buildUnnamed626(); } buildCounterAchievementResetAllResponse--; return o; @@ -80,19 +80,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed886(o.results); + checkUnnamed626(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed887() { +buildUnnamed627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed887(core.List<core.String> o) { +checkUnnamed627(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -103,7 +103,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed887(); + o.achievementIds = buildUnnamed627(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed887(o.achievementIds); + checkUnnamed627(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed888() { +buildUnnamed628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed888(core.List<core.String> o) { +checkUnnamed628(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -162,7 +162,7 @@ var o = new api.EventsResetMultipleForAllRequest(); buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - o.eventIds = buildUnnamed888(); + o.eventIds = buildUnnamed628(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed888(o.eventIds); + checkUnnamed628(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -270,14 +270,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed889() { +buildUnnamed629() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed889(core.List<api.HiddenPlayer> o) { +checkUnnamed629(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -288,7 +288,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed889(); + o.items = buildUnnamed629(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -299,7 +299,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed889(o.items); + checkUnnamed629(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -368,14 +368,14 @@ buildCounterPlayer--; } -buildUnnamed890() { +buildUnnamed630() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed890(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed630(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -387,7 +387,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed890(); + o.results = buildUnnamed630(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -397,19 +397,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed890(o.results); + checkUnnamed630(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed891() { +buildUnnamed631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed891(core.List<core.String> o) { +checkUnnamed631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -422,7 +422,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed891(); + o.resetScoreTimeSpans = buildUnnamed631(); } buildCounterPlayerScoreResetResponse--; return o; @@ -433,7 +433,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed891(o.resetScoreTimeSpans); + checkUnnamed631(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -459,14 +459,14 @@ buildCounterProfileSettings--; } -buildUnnamed892() { +buildUnnamed632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed892(core.List<core.String> o) { +checkUnnamed632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -478,7 +478,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed892(); + o.questIds = buildUnnamed632(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -488,19 +488,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed892(o.questIds); + checkUnnamed632(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed893() { +buildUnnamed633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed893(core.List<core.String> o) { +checkUnnamed633(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -512,7 +512,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed893(); + o.leaderboardIds = buildUnnamed633(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -522,7 +522,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed893(o.leaderboardIds); + checkUnnamed633(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index e30db48..d110ed2 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -51,30 +51,30 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3025() { +buildUnnamed2813() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3025(core.List<core.Object> o) { +checkUnnamed2813(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3026() { +buildUnnamed2814() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3025(); - o["y"] = buildUnnamed3025(); + o["x"] = buildUnnamed2813(); + o["y"] = buildUnnamed2813(); return o; } -checkUnnamed3026(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2814(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3025(o["x"]); - checkUnnamed3025(o["y"]); + checkUnnamed2813(o["x"]); + checkUnnamed2813(o["y"]); } core.int buildCounterAnnotation = 0; @@ -85,7 +85,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed3026(); + o.info = buildUnnamed2814(); o.name = "foo"; o.referenceId = "foo"; o.referenceName = "foo"; @@ -105,7 +105,7 @@ unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3026(o.info); + checkUnnamed2814(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -118,30 +118,30 @@ buildCounterAnnotation--; } -buildUnnamed3027() { +buildUnnamed2815() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3027(core.List<core.Object> o) { +checkUnnamed2815(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3028() { +buildUnnamed2816() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3027(); - o["y"] = buildUnnamed3027(); + o["x"] = buildUnnamed2815(); + o["y"] = buildUnnamed2815(); return o; } -checkUnnamed3028(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2816(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3027(o["x"]); - checkUnnamed3027(o["y"]); + checkUnnamed2815(o["x"]); + checkUnnamed2815(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -151,7 +151,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed3028(); + o.info = buildUnnamed2816(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -166,7 +166,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3028(o.info); + checkUnnamed2816(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -175,14 +175,14 @@ buildCounterAnnotationSet--; } -buildUnnamed3029() { +buildUnnamed2817() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3029(core.List<api.Annotation> o) { +checkUnnamed2817(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -193,7 +193,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed3029(); + o.annotations = buildUnnamed2817(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -203,20 +203,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed3029(o.annotations); + checkUnnamed2817(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed3030() { +buildUnnamed2818() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed3030(core.List<api.Entry> o) { +checkUnnamed2818(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -227,7 +227,7 @@ var o = new api.BatchCreateAnnotationsResponse(); buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - o.entries = buildUnnamed3030(); + o.entries = buildUnnamed2818(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -236,19 +236,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed3030(o.entries); + checkUnnamed2818(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed3031() { +buildUnnamed2819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3031(core.List<core.String> o) { +checkUnnamed2819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -259,7 +259,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed3031(); + o.members = buildUnnamed2819(); o.role = "foo"; } buildCounterBinding--; @@ -269,46 +269,46 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed3031(o.members); + checkUnnamed2819(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed3032() { +buildUnnamed2820() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3032(core.List<core.Object> o) { +checkUnnamed2820(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3033() { +buildUnnamed2821() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3032(); - o["y"] = buildUnnamed3032(); + o["x"] = buildUnnamed2820(); + o["y"] = buildUnnamed2820(); return o; } -checkUnnamed3033(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2821(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3032(o["x"]); - checkUnnamed3032(o["y"]); + checkUnnamed2820(o["x"]); + checkUnnamed2820(o["y"]); } -buildUnnamed3034() { +buildUnnamed2822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3034(core.List<core.String> o) { +checkUnnamed2822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -321,10 +321,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed3033(); + o.info = buildUnnamed2821(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed3034(); + o.variantSetIds = buildUnnamed2822(); } buildCounterCallSet--; return o; @@ -335,10 +335,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3033(o.info); + checkUnnamed2821(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed3034(o.variantSetIds); + checkUnnamed2822(o.variantSetIds); } buildCounterCallSet--; } @@ -383,27 +383,27 @@ buildCounterCigarUnit--; } -buildUnnamed3035() { +buildUnnamed2823() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed3035(core.List<api.ExternalId> o) { +checkUnnamed2823(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed3036() { +buildUnnamed2824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3036(core.List<core.String> o) { +checkUnnamed2824(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -415,8 +415,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed3035(); - o.names = buildUnnamed3036(); + o.externalIds = buildUnnamed2823(); + o.names = buildUnnamed2824(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -427,8 +427,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed3035(o.externalIds); - checkUnnamed3036(o.names); + checkUnnamed2823(o.externalIds); + checkUnnamed2824(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -455,14 +455,14 @@ buildCounterCodingSequence--; } -buildUnnamed3037() { +buildUnnamed2825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3037(core.List<core.String> o) { +checkUnnamed2825(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -473,7 +473,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed3037(); + o.diskNames = buildUnnamed2825(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -485,7 +485,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed3037(o.diskNames); + checkUnnamed2825(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -625,14 +625,14 @@ buildCounterExperiment--; } -buildUnnamed3038() { +buildUnnamed2826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3038(core.List<core.String> o) { +checkUnnamed2826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -645,7 +645,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed3038(); + o.referenceNames = buildUnnamed2826(); } buildCounterExportReadGroupSetRequest--; return o; @@ -656,19 +656,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed3038(o.referenceNames); + checkUnnamed2826(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed3039() { +buildUnnamed2827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3039(core.List<core.String> o) { +checkUnnamed2827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -681,7 +681,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed3039(); + o.callSetIds = buildUnnamed2827(); o.format = "foo"; o.projectId = "foo"; } @@ -694,7 +694,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed3039(o.callSetIds); + checkUnnamed2827(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -739,14 +739,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed3040() { +buildUnnamed2828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3040(core.List<core.String> o) { +checkUnnamed2828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -760,7 +760,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed3040(); + o.sourceUris = buildUnnamed2828(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -772,19 +772,19 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed3040(o.sourceUris); + checkUnnamed2828(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed3041() { +buildUnnamed2829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3041(core.List<core.String> o) { +checkUnnamed2829(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -795,7 +795,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed3041(); + o.readGroupSetIds = buildUnnamed2829(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -804,32 +804,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed3041(o.readGroupSetIds); + checkUnnamed2829(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed3042() { +buildUnnamed2830() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3042(core.Map<core.String, core.String> o) { +checkUnnamed2830(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3043() { +buildUnnamed2831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3043(core.List<core.String> o) { +checkUnnamed2831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -841,9 +841,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed3042(); + o.infoMergeConfig = buildUnnamed2830(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed3043(); + o.sourceUris = buildUnnamed2831(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -854,22 +854,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed3042(o.infoMergeConfig); + checkUnnamed2830(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed3043(o.sourceUris); + checkUnnamed2831(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed3044() { +buildUnnamed2832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3044(core.List<core.String> o) { +checkUnnamed2832(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -880,7 +880,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed3044(); + o.callSetIds = buildUnnamed2832(); } buildCounterImportVariantsResponse--; return o; @@ -889,19 +889,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed3044(o.callSetIds); + checkUnnamed2832(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed3045() { +buildUnnamed2833() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed3045(core.List<api.CigarUnit> o) { +checkUnnamed2833(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -912,7 +912,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed3045(); + o.cigar = buildUnnamed2833(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -923,7 +923,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed3045(o.cigar); + checkUnnamed2833(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -953,14 +953,14 @@ buildCounterListBasesResponse--; } -buildUnnamed3046() { +buildUnnamed2834() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed3046(core.List<api.CoverageBucket> o) { +checkUnnamed2834(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -972,7 +972,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed3046(); + o.coverageBuckets = buildUnnamed2834(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -983,20 +983,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed3046(o.coverageBuckets); + checkUnnamed2834(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed3047() { +buildUnnamed2835() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed3047(core.List<api.Dataset> o) { +checkUnnamed2835(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1007,7 +1007,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed3047(); + o.datasets = buildUnnamed2835(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1017,20 +1017,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed3047(o.datasets); + checkUnnamed2835(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed3048() { +buildUnnamed2836() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3048(core.List<api.Operation> o) { +checkUnnamed2836(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1042,7 +1042,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3048(); + o.operations = buildUnnamed2836(); } buildCounterListOperationsResponse--; return o; @@ -1052,32 +1052,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3048(o.operations); + checkUnnamed2836(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3049() { +buildUnnamed2837() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3049(core.Map<core.String, core.String> o) { +checkUnnamed2837(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3050() { +buildUnnamed2838() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3050(core.List<api.Variant> o) { +checkUnnamed2838(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1088,9 +1088,9 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.infoMergeConfig = buildUnnamed3049(); + o.infoMergeConfig = buildUnnamed2837(); o.variantSetId = "foo"; - o.variants = buildUnnamed3050(); + o.variants = buildUnnamed2838(); } buildCounterMergeVariantsRequest--; return o; @@ -1099,34 +1099,34 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed3049(o.infoMergeConfig); + checkUnnamed2837(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed3050(o.variants); + checkUnnamed2838(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed3051() { +buildUnnamed2839() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3051(core.Map<core.String, core.Object> o) { +checkUnnamed2839(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3052() { +buildUnnamed2840() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3052(core.Map<core.String, core.Object> o) { +checkUnnamed2840(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -1139,9 +1139,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3051(); + o.metadata = buildUnnamed2839(); o.name = "foo"; - o.response = buildUnnamed3052(); + o.response = buildUnnamed2840(); } buildCounterOperation--; return o; @@ -1152,9 +1152,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3051(o.metadata); + checkUnnamed2839(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3052(o.response); + checkUnnamed2840(o.response); } buildCounterOperation--; } @@ -1182,53 +1182,53 @@ buildCounterOperationEvent--; } -buildUnnamed3053() { +buildUnnamed2841() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed3053(core.List<api.OperationEvent> o) { +checkUnnamed2841(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed3054() { +buildUnnamed2842() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3054(core.Map<core.String, core.String> o) { +checkUnnamed2842(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed3055() { +buildUnnamed2843() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3055(core.Map<core.String, core.Object> o) { +checkUnnamed2843(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed3056() { +buildUnnamed2844() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3056(core.Map<core.String, core.Object> o) { +checkUnnamed2844(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); @@ -1242,11 +1242,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed3053(); - o.labels = buildUnnamed3054(); + o.events = buildUnnamed2841(); + o.labels = buildUnnamed2842(); o.projectId = "foo"; - o.request = buildUnnamed3055(); - o.runtimeMetadata = buildUnnamed3056(); + o.request = buildUnnamed2843(); + o.runtimeMetadata = buildUnnamed2844(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1259,24 +1259,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed3053(o.events); - checkUnnamed3054(o.labels); + checkUnnamed2841(o.events); + checkUnnamed2842(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed3055(o.request); - checkUnnamed3056(o.runtimeMetadata); + checkUnnamed2843(o.request); + checkUnnamed2844(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed3057() { +buildUnnamed2845() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3057(core.List<api.Binding> o) { +checkUnnamed2845(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1287,7 +1287,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3057(); + o.bindings = buildUnnamed2845(); o.etag = "foo"; o.version = 42; } @@ -1298,7 +1298,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3057(o.bindings); + checkUnnamed2845(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1378,43 +1378,43 @@ buildCounterRange--; } -buildUnnamed3058() { +buildUnnamed2846() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3058(core.List<core.int> o) { +checkUnnamed2846(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3059() { +buildUnnamed2847() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3059(core.List<core.Object> o) { +checkUnnamed2847(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o[0]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); var casted16 = (o[1]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); } -buildUnnamed3060() { +buildUnnamed2848() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3059(); - o["y"] = buildUnnamed3059(); + o["x"] = buildUnnamed2847(); + o["y"] = buildUnnamed2847(); return o; } -checkUnnamed3060(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2848(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3059(o["x"]); - checkUnnamed3059(o["y"]); + checkUnnamed2847(o["x"]); + checkUnnamed2847(o["y"]); } core.int buildCounterRead = 0; @@ -1422,7 +1422,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed3058(); + o.alignedQuality = buildUnnamed2846(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1430,7 +1430,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed3060(); + o.info = buildUnnamed2848(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1447,7 +1447,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed3058(o.alignedQuality); + checkUnnamed2846(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1455,7 +1455,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3060(o.info); + checkUnnamed2848(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1468,40 +1468,40 @@ buildCounterRead--; } -buildUnnamed3061() { +buildUnnamed2849() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3061(core.List<core.Object> o) { +checkUnnamed2849(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); } -buildUnnamed3062() { +buildUnnamed2850() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3061(); - o["y"] = buildUnnamed3061(); + o["x"] = buildUnnamed2849(); + o["y"] = buildUnnamed2849(); return o; } -checkUnnamed3062(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2850(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3061(o["x"]); - checkUnnamed3061(o["y"]); + checkUnnamed2849(o["x"]); + checkUnnamed2849(o["y"]); } -buildUnnamed3063() { +buildUnnamed2851() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed3063(core.List<api.Program> o) { +checkUnnamed2851(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1516,10 +1516,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed3062(); + o.info = buildUnnamed2850(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed3063(); + o.programs = buildUnnamed2851(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1534,50 +1534,50 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3062(o.info); + checkUnnamed2850(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed3063(o.programs); + checkUnnamed2851(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed3064() { +buildUnnamed2852() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3064(core.List<core.Object> o) { +checkUnnamed2852(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o[0]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); var casted20 = (o[1]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed3065() { +buildUnnamed2853() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3064(); - o["y"] = buildUnnamed3064(); + o["x"] = buildUnnamed2852(); + o["y"] = buildUnnamed2852(); return o; } -checkUnnamed3065(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2853(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3064(o["x"]); - checkUnnamed3064(o["y"]); + checkUnnamed2852(o["x"]); + checkUnnamed2852(o["y"]); } -buildUnnamed3066() { +buildUnnamed2854() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed3066(core.List<api.ReadGroup> o) { +checkUnnamed2854(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1591,9 +1591,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed3065(); + o.info = buildUnnamed2853(); o.name = "foo"; - o.readGroups = buildUnnamed3066(); + o.readGroups = buildUnnamed2854(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1606,22 +1606,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3065(o.info); + checkUnnamed2853(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3066(o.readGroups); + checkUnnamed2854(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed3067() { +buildUnnamed2855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3067(core.List<core.String> o) { +checkUnnamed2855(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1637,7 +1637,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed3067(); + o.sourceAccessions = buildUnnamed2855(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1652,7 +1652,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed3067(o.sourceAccessions); + checkUnnamed2855(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1679,27 +1679,27 @@ buildCounterReferenceBound--; } -buildUnnamed3068() { +buildUnnamed2856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3068(core.List<core.String> o) { +checkUnnamed2856(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3069() { +buildUnnamed2857() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3069(core.List<core.String> o) { +checkUnnamed2857(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1715,8 +1715,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed3068(); - o.sourceAccessions = buildUnnamed3069(); + o.referenceIds = buildUnnamed2856(); + o.sourceAccessions = buildUnnamed2857(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1731,8 +1731,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed3068(o.referenceIds); - checkUnnamed3069(o.sourceAccessions); + checkUnnamed2856(o.referenceIds); + checkUnnamed2857(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1757,27 +1757,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed3070() { +buildUnnamed2858() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3070(core.List<core.String> o) { +checkUnnamed2858(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3071() { +buildUnnamed2859() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3071(core.List<core.String> o) { +checkUnnamed2859(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1788,12 +1788,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed3070(); + o.datasetIds = buildUnnamed2858(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed3071(); + o.types = buildUnnamed2859(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1802,24 +1802,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed3070(o.datasetIds); + checkUnnamed2858(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed3071(o.types); + checkUnnamed2859(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed3072() { +buildUnnamed2860() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed3072(core.List<api.AnnotationSet> o) { +checkUnnamed2860(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1830,7 +1830,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed3072(); + o.annotationSets = buildUnnamed2860(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1840,20 +1840,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed3072(o.annotationSets); + checkUnnamed2860(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed3073() { +buildUnnamed2861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3073(core.List<core.String> o) { +checkUnnamed2861(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1864,7 +1864,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed3073(); + o.annotationSetIds = buildUnnamed2861(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -1879,7 +1879,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed3073(o.annotationSetIds); + checkUnnamed2861(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1890,14 +1890,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed3074() { +buildUnnamed2862() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3074(core.List<api.Annotation> o) { +checkUnnamed2862(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1908,7 +1908,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed3074(); + o.annotations = buildUnnamed2862(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1918,20 +1918,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed3074(o.annotations); + checkUnnamed2862(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed3075() { +buildUnnamed2863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3075(core.List<core.String> o) { +checkUnnamed2863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1945,7 +1945,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed3075(); + o.variantSetIds = buildUnnamed2863(); } buildCounterSearchCallSetsRequest--; return o; @@ -1957,19 +1957,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3075(o.variantSetIds); + checkUnnamed2863(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed3076() { +buildUnnamed2864() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed3076(core.List<api.CallSet> o) { +checkUnnamed2864(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1980,7 +1980,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed3076(); + o.callSets = buildUnnamed2864(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1990,20 +1990,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed3076(o.callSets); + checkUnnamed2864(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed3077() { +buildUnnamed2865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3077(core.List<core.String> o) { +checkUnnamed2865(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2014,7 +2014,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed3077(); + o.datasetIds = buildUnnamed2865(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2026,7 +2026,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed3077(o.datasetIds); + checkUnnamed2865(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2034,14 +2034,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed3078() { +buildUnnamed2866() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed3078(core.List<api.ReadGroupSet> o) { +checkUnnamed2866(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2053,7 +2053,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed3078(); + o.readGroupSets = buildUnnamed2866(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2063,32 +2063,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3078(o.readGroupSets); + checkUnnamed2866(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed3079() { +buildUnnamed2867() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3079(core.List<core.String> o) { +checkUnnamed2867(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3080() { +buildUnnamed2868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3080(core.List<core.String> o) { +checkUnnamed2868(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2102,8 +2102,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed3079(); - o.readGroupSetIds = buildUnnamed3080(); + o.readGroupIds = buildUnnamed2867(); + o.readGroupSetIds = buildUnnamed2868(); o.referenceName = "foo"; o.start = "foo"; } @@ -2117,22 +2117,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3079(o.readGroupIds); - checkUnnamed3080(o.readGroupSetIds); + checkUnnamed2867(o.readGroupIds); + checkUnnamed2868(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed3081() { +buildUnnamed2869() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3081(core.List<api.Read> o) { +checkUnnamed2869(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2143,7 +2143,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed3081(); + o.alignments = buildUnnamed2869(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2153,33 +2153,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed3081(o.alignments); + checkUnnamed2869(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed3082() { +buildUnnamed2870() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3082(core.List<core.String> o) { +checkUnnamed2870(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3083() { +buildUnnamed2871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3083(core.List<core.String> o) { +checkUnnamed2871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2190,9 +2190,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed3082(); + o.accessions = buildUnnamed2870(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed3083(); + o.md5checksums = buildUnnamed2871(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2203,23 +2203,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed3082(o.accessions); + checkUnnamed2870(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed3083(o.md5checksums); + checkUnnamed2871(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed3084() { +buildUnnamed2872() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed3084(core.List<api.ReferenceSet> o) { +checkUnnamed2872(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2231,7 +2231,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed3084(); + o.referenceSets = buildUnnamed2872(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2241,32 +2241,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3084(o.referenceSets); + checkUnnamed2872(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed3085() { +buildUnnamed2873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3085(core.List<core.String> o) { +checkUnnamed2873(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3086() { +buildUnnamed2874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3086(core.List<core.String> o) { +checkUnnamed2874(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2277,8 +2277,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed3085(); - o.md5checksums = buildUnnamed3086(); + o.accessions = buildUnnamed2873(); + o.md5checksums = buildUnnamed2874(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2290,8 +2290,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed3085(o.accessions); - checkUnnamed3086(o.md5checksums); + checkUnnamed2873(o.accessions); + checkUnnamed2874(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2299,14 +2299,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed3087() { +buildUnnamed2875() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed3087(core.List<api.Reference> o) { +checkUnnamed2875(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2318,7 +2318,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed3087(); + o.references = buildUnnamed2875(); } buildCounterSearchReferencesResponse--; return o; @@ -2328,19 +2328,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3087(o.references); + checkUnnamed2875(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed3088() { +buildUnnamed2876() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3088(core.List<core.String> o) { +checkUnnamed2876(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2351,7 +2351,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed3088(); + o.datasetIds = buildUnnamed2876(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2362,21 +2362,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed3088(o.datasetIds); + checkUnnamed2876(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed3089() { +buildUnnamed2877() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed3089(core.List<api.VariantSet> o) { +checkUnnamed2877(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2388,7 +2388,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed3089(); + o.variantSets = buildUnnamed2877(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2398,32 +2398,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3089(o.variantSets); + checkUnnamed2877(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed3090() { +buildUnnamed2878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3090(core.List<core.String> o) { +checkUnnamed2878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3091() { +buildUnnamed2879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3091(core.List<core.String> o) { +checkUnnamed2879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2434,7 +2434,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed3090(); + o.callSetIds = buildUnnamed2878(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2442,7 +2442,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed3091(); + o.variantSetIds = buildUnnamed2879(); } buildCounterSearchVariantsRequest--; return o; @@ -2451,7 +2451,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed3090(o.callSetIds); + checkUnnamed2878(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2459,19 +2459,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed3091(o.variantSetIds); + checkUnnamed2879(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed3092() { +buildUnnamed2880() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3092(core.List<api.Variant> o) { +checkUnnamed2880(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2483,7 +2483,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed3092(); + o.variants = buildUnnamed2880(); } buildCounterSearchVariantsResponse--; return o; @@ -2493,7 +2493,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3092(o.variants); + checkUnnamed2880(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2517,30 +2517,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3093() { +buildUnnamed2881() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed3093(core.Map<core.String, core.Object> o) { +checkUnnamed2881(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed3094() { +buildUnnamed2882() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3093()); - o.add(buildUnnamed3093()); + o.add(buildUnnamed2881()); + o.add(buildUnnamed2881()); return o; } -checkUnnamed3094(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2882(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3093(o[0]); - checkUnnamed3093(o[1]); + checkUnnamed2881(o[0]); + checkUnnamed2881(o[1]); } core.int buildCounterStatus = 0; @@ -2549,7 +2549,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3094(); + o.details = buildUnnamed2882(); o.message = "foo"; } buildCounterStatus--; @@ -2560,7 +2560,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3094(o.details); + checkUnnamed2882(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2597,14 +2597,14 @@ buildCounterStreamReadsRequest--; } -buildUnnamed3095() { +buildUnnamed2883() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3095(core.List<api.Read> o) { +checkUnnamed2883(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2615,7 +2615,7 @@ var o = new api.StreamReadsResponse(); buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - o.alignments = buildUnnamed3095(); + o.alignments = buildUnnamed2883(); } buildCounterStreamReadsResponse--; return o; @@ -2624,19 +2624,19 @@ checkStreamReadsResponse(api.StreamReadsResponse o) { buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - checkUnnamed3095(o.alignments); + checkUnnamed2883(o.alignments); } buildCounterStreamReadsResponse--; } -buildUnnamed3096() { +buildUnnamed2884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3096(core.List<core.String> o) { +checkUnnamed2884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2647,7 +2647,7 @@ var o = new api.StreamVariantsRequest(); buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - o.callSetIds = buildUnnamed3096(); + o.callSetIds = buildUnnamed2884(); o.end = "foo"; o.projectId = "foo"; o.referenceName = "foo"; @@ -2661,7 +2661,7 @@ checkStreamVariantsRequest(api.StreamVariantsRequest o) { buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - checkUnnamed3096(o.callSetIds); + checkUnnamed2884(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2671,14 +2671,14 @@ buildCounterStreamVariantsRequest--; } -buildUnnamed3097() { +buildUnnamed2885() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3097(core.List<api.Variant> o) { +checkUnnamed2885(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2689,7 +2689,7 @@ var o = new api.StreamVariantsResponse(); buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - o.variants = buildUnnamed3097(); + o.variants = buildUnnamed2885(); } buildCounterStreamVariantsResponse--; return o; @@ -2698,19 +2698,19 @@ checkStreamVariantsResponse(api.StreamVariantsResponse o) { buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - checkUnnamed3097(o.variants); + checkUnnamed2885(o.variants); } buildCounterStreamVariantsResponse--; } -buildUnnamed3098() { +buildUnnamed2886() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3098(core.List<core.String> o) { +checkUnnamed2886(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2721,7 +2721,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3098(); + o.permissions = buildUnnamed2886(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2730,19 +2730,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3098(o.permissions); + checkUnnamed2886(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3099() { +buildUnnamed2887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3099(core.List<core.String> o) { +checkUnnamed2887(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2753,7 +2753,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3099(); + o.permissions = buildUnnamed2887(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2762,19 +2762,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3099(o.permissions); + checkUnnamed2887(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed3100() { +buildUnnamed2888() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed3100(core.List<api.Exon> o) { +checkUnnamed2888(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2786,7 +2786,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed3100(); + o.exons = buildUnnamed2888(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2797,7 +2797,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed3100(o.exons); + checkUnnamed2888(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2820,79 +2820,79 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed3101() { +buildUnnamed2889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3101(core.List<core.String> o) { +checkUnnamed2889(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3102() { +buildUnnamed2890() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed3102(core.List<api.VariantCall> o) { +checkUnnamed2890(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed3103() { +buildUnnamed2891() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3103(core.List<core.String> o) { +checkUnnamed2891(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3104() { +buildUnnamed2892() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3104(core.List<core.Object> o) { +checkUnnamed2892(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo')); var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo')); } -buildUnnamed3105() { +buildUnnamed2893() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3104(); - o["y"] = buildUnnamed3104(); + o["x"] = buildUnnamed2892(); + o["y"] = buildUnnamed2892(); return o; } -checkUnnamed3105(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2893(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3104(o["x"]); - checkUnnamed3104(o["y"]); + checkUnnamed2892(o["x"]); + checkUnnamed2892(o["y"]); } -buildUnnamed3106() { +buildUnnamed2894() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3106(core.List<core.String> o) { +checkUnnamed2894(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2903,14 +2903,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed3101(); - o.calls = buildUnnamed3102(); + o.alternateBases = buildUnnamed2889(); + o.calls = buildUnnamed2890(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed3103(); + o.filter = buildUnnamed2891(); o.id = "foo"; - o.info = buildUnnamed3105(); - o.names = buildUnnamed3106(); + o.info = buildUnnamed2893(); + o.names = buildUnnamed2894(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2924,14 +2924,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed3101(o.alternateBases); - checkUnnamed3102(o.calls); + checkUnnamed2889(o.alternateBases); + checkUnnamed2890(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed3103(o.filter); + checkUnnamed2891(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3105(o.info); - checkUnnamed3106(o.names); + checkUnnamed2893(o.info); + checkUnnamed2894(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2941,27 +2941,27 @@ buildCounterVariant--; } -buildUnnamed3107() { +buildUnnamed2895() { var o = new core.List<api.ClinicalCondition>(); o.add(buildClinicalCondition()); o.add(buildClinicalCondition()); return o; } -checkUnnamed3107(core.List<api.ClinicalCondition> o) { +checkUnnamed2895(core.List<api.ClinicalCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkClinicalCondition(o[0]); checkClinicalCondition(o[1]); } -buildUnnamed3108() { +buildUnnamed2896() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3108(core.List<core.String> o) { +checkUnnamed2896(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2974,10 +2974,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed3107(); + o.conditions = buildUnnamed2895(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed3108(); + o.transcriptIds = buildUnnamed2896(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2989,65 +2989,65 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed3107(o.conditions); + checkUnnamed2895(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed3108(o.transcriptIds); + checkUnnamed2896(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed3109() { +buildUnnamed2897() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3109(core.List<core.int> o) { +checkUnnamed2897(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); } -buildUnnamed3110() { +buildUnnamed2898() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3110(core.List<core.double> o) { +checkUnnamed2898(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); } -buildUnnamed3111() { +buildUnnamed2899() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3111(core.List<core.Object> o) { +checkUnnamed2899(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo')); var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed3112() { +buildUnnamed2900() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3111(); - o["y"] = buildUnnamed3111(); + o["x"] = buildUnnamed2899(); + o["y"] = buildUnnamed2899(); return o; } -checkUnnamed3112(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2900(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3111(o["x"]); - checkUnnamed3111(o["y"]); + checkUnnamed2899(o["x"]); + checkUnnamed2899(o["y"]); } core.int buildCounterVariantCall = 0; @@ -3057,9 +3057,9 @@ if (buildCounterVariantCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed3109(); - o.genotypeLikelihood = buildUnnamed3110(); - o.info = buildUnnamed3112(); + o.genotype = buildUnnamed2897(); + o.genotypeLikelihood = buildUnnamed2898(); + o.info = buildUnnamed2900(); o.phaseset = "foo"; } buildCounterVariantCall--; @@ -3071,35 +3071,35 @@ if (buildCounterVariantCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed3109(o.genotype); - checkUnnamed3110(o.genotypeLikelihood); - checkUnnamed3112(o.info); + checkUnnamed2897(o.genotype); + checkUnnamed2898(o.genotypeLikelihood); + checkUnnamed2900(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterVariantCall--; } -buildUnnamed3113() { +buildUnnamed2901() { var o = new core.List<api.VariantSetMetadata>(); o.add(buildVariantSetMetadata()); o.add(buildVariantSetMetadata()); return o; } -checkUnnamed3113(core.List<api.VariantSetMetadata> o) { +checkUnnamed2901(core.List<api.VariantSetMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSetMetadata(o[0]); checkVariantSetMetadata(o[1]); } -buildUnnamed3114() { +buildUnnamed2902() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed3114(core.List<api.ReferenceBound> o) { +checkUnnamed2902(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -3113,9 +3113,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed3113(); + o.metadata = buildUnnamed2901(); o.name = "foo"; - o.referenceBounds = buildUnnamed3114(); + o.referenceBounds = buildUnnamed2902(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -3128,38 +3128,38 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3113(o.metadata); + checkUnnamed2901(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3114(o.referenceBounds); + checkUnnamed2902(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--; } -buildUnnamed3115() { +buildUnnamed2903() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed3115(core.List<core.Object> o) { +checkUnnamed2903(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo')); var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo')); } -buildUnnamed3116() { +buildUnnamed2904() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3115(); - o["y"] = buildUnnamed3115(); + o["x"] = buildUnnamed2903(); + o["y"] = buildUnnamed2903(); return o; } -checkUnnamed3116(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed2904(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3115(o["x"]); - checkUnnamed3115(o["y"]); + checkUnnamed2903(o["x"]); + checkUnnamed2903(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3169,7 +3169,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed3116(); + o.info = buildUnnamed2904(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3184,7 +3184,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3116(o.info); + checkUnnamed2904(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo'));
diff --git a/generated/googleapis/test/gmail/v1_test.dart b/generated/googleapis/test/gmail/v1_test.dart index aef35a5..83b6e31 100644 --- a/generated/googleapis/test/gmail/v1_test.dart +++ b/generated/googleapis/test/gmail/v1_test.dart
@@ -106,6 +106,68 @@ buildCounterBatchDeleteMessagesRequest--; } +buildUnnamed99() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed99(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed100() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed100(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed101() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed101(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterBatchModifyMessagesRequest = 0; +buildBatchModifyMessagesRequest() { + var o = new api.BatchModifyMessagesRequest(); + buildCounterBatchModifyMessagesRequest++; + if (buildCounterBatchModifyMessagesRequest < 3) { + o.addLabelIds = buildUnnamed99(); + o.ids = buildUnnamed100(); + o.removeLabelIds = buildUnnamed101(); + } + buildCounterBatchModifyMessagesRequest--; + return o; +} + +checkBatchModifyMessagesRequest(api.BatchModifyMessagesRequest o) { + buildCounterBatchModifyMessagesRequest++; + if (buildCounterBatchModifyMessagesRequest < 3) { + checkUnnamed99(o.addLabelIds); + checkUnnamed100(o.ids); + checkUnnamed101(o.removeLabelIds); + } + buildCounterBatchModifyMessagesRequest--; +} + core.int buildCounterDraft = 0; buildDraft() { var o = new api.Draft(); @@ -150,27 +212,27 @@ buildCounterFilter--; } -buildUnnamed99() { +buildUnnamed102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed99(core.List<core.String> o) { +checkUnnamed102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed100() { +buildUnnamed103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed100(core.List<core.String> o) { +checkUnnamed103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -181,9 +243,9 @@ var o = new api.FilterAction(); buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - o.addLabelIds = buildUnnamed99(); + o.addLabelIds = buildUnnamed102(); o.forward = "foo"; - o.removeLabelIds = buildUnnamed100(); + o.removeLabelIds = buildUnnamed103(); } buildCounterFilterAction--; return o; @@ -192,9 +254,9 @@ checkFilterAction(api.FilterAction o) { buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - checkUnnamed99(o.addLabelIds); + checkUnnamed102(o.addLabelIds); unittest.expect(o.forward, unittest.equals('foo')); - checkUnnamed100(o.removeLabelIds); + checkUnnamed103(o.removeLabelIds); } buildCounterFilterAction--; } @@ -255,66 +317,66 @@ buildCounterForwardingAddress--; } -buildUnnamed101() { +buildUnnamed104() { var o = new core.List<api.HistoryLabelAdded>(); o.add(buildHistoryLabelAdded()); o.add(buildHistoryLabelAdded()); return o; } -checkUnnamed101(core.List<api.HistoryLabelAdded> o) { +checkUnnamed104(core.List<api.HistoryLabelAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelAdded(o[0]); checkHistoryLabelAdded(o[1]); } -buildUnnamed102() { +buildUnnamed105() { var o = new core.List<api.HistoryLabelRemoved>(); o.add(buildHistoryLabelRemoved()); o.add(buildHistoryLabelRemoved()); return o; } -checkUnnamed102(core.List<api.HistoryLabelRemoved> o) { +checkUnnamed105(core.List<api.HistoryLabelRemoved> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelRemoved(o[0]); checkHistoryLabelRemoved(o[1]); } -buildUnnamed103() { +buildUnnamed106() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed103(core.List<api.Message> o) { +checkUnnamed106(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); } -buildUnnamed104() { +buildUnnamed107() { var o = new core.List<api.HistoryMessageAdded>(); o.add(buildHistoryMessageAdded()); o.add(buildHistoryMessageAdded()); return o; } -checkUnnamed104(core.List<api.HistoryMessageAdded> o) { +checkUnnamed107(core.List<api.HistoryMessageAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageAdded(o[0]); checkHistoryMessageAdded(o[1]); } -buildUnnamed105() { +buildUnnamed108() { var o = new core.List<api.HistoryMessageDeleted>(); o.add(buildHistoryMessageDeleted()); o.add(buildHistoryMessageDeleted()); return o; } -checkUnnamed105(core.List<api.HistoryMessageDeleted> o) { +checkUnnamed108(core.List<api.HistoryMessageDeleted> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageDeleted(o[0]); checkHistoryMessageDeleted(o[1]); @@ -326,11 +388,11 @@ buildCounterHistory++; if (buildCounterHistory < 3) { o.id = "foo"; - o.labelsAdded = buildUnnamed101(); - o.labelsRemoved = buildUnnamed102(); - o.messages = buildUnnamed103(); - o.messagesAdded = buildUnnamed104(); - o.messagesDeleted = buildUnnamed105(); + o.labelsAdded = buildUnnamed104(); + o.labelsRemoved = buildUnnamed105(); + o.messages = buildUnnamed106(); + o.messagesAdded = buildUnnamed107(); + o.messagesDeleted = buildUnnamed108(); } buildCounterHistory--; return o; @@ -340,23 +402,23 @@ buildCounterHistory++; if (buildCounterHistory < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed101(o.labelsAdded); - checkUnnamed102(o.labelsRemoved); - checkUnnamed103(o.messages); - checkUnnamed104(o.messagesAdded); - checkUnnamed105(o.messagesDeleted); + checkUnnamed104(o.labelsAdded); + checkUnnamed105(o.labelsRemoved); + checkUnnamed106(o.messages); + checkUnnamed107(o.messagesAdded); + checkUnnamed108(o.messagesDeleted); } buildCounterHistory--; } -buildUnnamed106() { +buildUnnamed109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed106(core.List<core.String> o) { +checkUnnamed109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -367,7 +429,7 @@ var o = new api.HistoryLabelAdded(); buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - o.labelIds = buildUnnamed106(); + o.labelIds = buildUnnamed109(); o.message = buildMessage(); } buildCounterHistoryLabelAdded--; @@ -377,20 +439,20 @@ checkHistoryLabelAdded(api.HistoryLabelAdded o) { buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - checkUnnamed106(o.labelIds); + checkUnnamed109(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelAdded--; } -buildUnnamed107() { +buildUnnamed110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed107(core.List<core.String> o) { +checkUnnamed110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -401,7 +463,7 @@ var o = new api.HistoryLabelRemoved(); buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - o.labelIds = buildUnnamed107(); + o.labelIds = buildUnnamed110(); o.message = buildMessage(); } buildCounterHistoryLabelRemoved--; @@ -411,7 +473,7 @@ checkHistoryLabelRemoved(api.HistoryLabelRemoved o) { buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - checkUnnamed107(o.labelIds); + checkUnnamed110(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelRemoved--; @@ -515,14 +577,14 @@ buildCounterLabel--; } -buildUnnamed108() { +buildUnnamed111() { var o = new core.List<api.Draft>(); o.add(buildDraft()); o.add(buildDraft()); return o; } -checkUnnamed108(core.List<api.Draft> o) { +checkUnnamed111(core.List<api.Draft> o) { unittest.expect(o, unittest.hasLength(2)); checkDraft(o[0]); checkDraft(o[1]); @@ -533,7 +595,7 @@ var o = new api.ListDraftsResponse(); buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - o.drafts = buildUnnamed108(); + o.drafts = buildUnnamed111(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -544,21 +606,21 @@ checkListDraftsResponse(api.ListDraftsResponse o) { buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - checkUnnamed108(o.drafts); + checkUnnamed111(o.drafts); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListDraftsResponse--; } -buildUnnamed109() { +buildUnnamed112() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed109(core.List<api.Filter> o) { +checkUnnamed112(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -569,7 +631,7 @@ var o = new api.ListFiltersResponse(); buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - o.filter = buildUnnamed109(); + o.filter = buildUnnamed112(); } buildCounterListFiltersResponse--; return o; @@ -578,19 +640,19 @@ checkListFiltersResponse(api.ListFiltersResponse o) { buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - checkUnnamed109(o.filter); + checkUnnamed112(o.filter); } buildCounterListFiltersResponse--; } -buildUnnamed110() { +buildUnnamed113() { var o = new core.List<api.ForwardingAddress>(); o.add(buildForwardingAddress()); o.add(buildForwardingAddress()); return o; } -checkUnnamed110(core.List<api.ForwardingAddress> o) { +checkUnnamed113(core.List<api.ForwardingAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingAddress(o[0]); checkForwardingAddress(o[1]); @@ -601,7 +663,7 @@ var o = new api.ListForwardingAddressesResponse(); buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - o.forwardingAddresses = buildUnnamed110(); + o.forwardingAddresses = buildUnnamed113(); } buildCounterListForwardingAddressesResponse--; return o; @@ -610,19 +672,19 @@ checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) { buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - checkUnnamed110(o.forwardingAddresses); + checkUnnamed113(o.forwardingAddresses); } buildCounterListForwardingAddressesResponse--; } -buildUnnamed111() { +buildUnnamed114() { var o = new core.List<api.History>(); o.add(buildHistory()); o.add(buildHistory()); return o; } -checkUnnamed111(core.List<api.History> o) { +checkUnnamed114(core.List<api.History> o) { unittest.expect(o, unittest.hasLength(2)); checkHistory(o[0]); checkHistory(o[1]); @@ -633,7 +695,7 @@ var o = new api.ListHistoryResponse(); buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - o.history = buildUnnamed111(); + o.history = buildUnnamed114(); o.historyId = "foo"; o.nextPageToken = "foo"; } @@ -644,21 +706,21 @@ checkListHistoryResponse(api.ListHistoryResponse o) { buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - checkUnnamed111(o.history); + checkUnnamed114(o.history); unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHistoryResponse--; } -buildUnnamed112() { +buildUnnamed115() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed112(core.List<api.Label> o) { +checkUnnamed115(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); @@ -669,7 +731,7 @@ var o = new api.ListLabelsResponse(); buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - o.labels = buildUnnamed112(); + o.labels = buildUnnamed115(); } buildCounterListLabelsResponse--; return o; @@ -678,19 +740,19 @@ checkListLabelsResponse(api.ListLabelsResponse o) { buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - checkUnnamed112(o.labels); + checkUnnamed115(o.labels); } buildCounterListLabelsResponse--; } -buildUnnamed113() { +buildUnnamed116() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed113(core.List<api.Message> o) { +checkUnnamed116(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -701,7 +763,7 @@ var o = new api.ListMessagesResponse(); buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - o.messages = buildUnnamed113(); + o.messages = buildUnnamed116(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -712,21 +774,21 @@ checkListMessagesResponse(api.ListMessagesResponse o) { buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - checkUnnamed113(o.messages); + checkUnnamed116(o.messages); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListMessagesResponse--; } -buildUnnamed114() { +buildUnnamed117() { var o = new core.List<api.SendAs>(); o.add(buildSendAs()); o.add(buildSendAs()); return o; } -checkUnnamed114(core.List<api.SendAs> o) { +checkUnnamed117(core.List<api.SendAs> o) { unittest.expect(o, unittest.hasLength(2)); checkSendAs(o[0]); checkSendAs(o[1]); @@ -737,7 +799,7 @@ var o = new api.ListSendAsResponse(); buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - o.sendAs = buildUnnamed114(); + o.sendAs = buildUnnamed117(); } buildCounterListSendAsResponse--; return o; @@ -746,19 +808,19 @@ checkListSendAsResponse(api.ListSendAsResponse o) { buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - checkUnnamed114(o.sendAs); + checkUnnamed117(o.sendAs); } buildCounterListSendAsResponse--; } -buildUnnamed115() { +buildUnnamed118() { var o = new core.List<api.Thread>(); o.add(buildThread()); o.add(buildThread()); return o; } -checkUnnamed115(core.List<api.Thread> o) { +checkUnnamed118(core.List<api.Thread> o) { unittest.expect(o, unittest.hasLength(2)); checkThread(o[0]); checkThread(o[1]); @@ -771,7 +833,7 @@ if (buildCounterListThreadsResponse < 3) { o.nextPageToken = "foo"; o.resultSizeEstimate = 42; - o.threads = buildUnnamed115(); + o.threads = buildUnnamed118(); } buildCounterListThreadsResponse--; return o; @@ -782,19 +844,19 @@ if (buildCounterListThreadsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); - checkUnnamed115(o.threads); + checkUnnamed118(o.threads); } buildCounterListThreadsResponse--; } -buildUnnamed116() { +buildUnnamed119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed116(core.List<core.String> o) { +checkUnnamed119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -808,7 +870,7 @@ o.historyId = "foo"; o.id = "foo"; o.internalDate = "foo"; - o.labelIds = buildUnnamed116(); + o.labelIds = buildUnnamed119(); o.payload = buildMessagePart(); o.raw = "foo"; o.sizeEstimate = 42; @@ -825,7 +887,7 @@ unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalDate, unittest.equals('foo')); - checkUnnamed116(o.labelIds); + checkUnnamed119(o.labelIds); checkMessagePart(o.payload); unittest.expect(o.raw, unittest.equals('foo')); unittest.expect(o.sizeEstimate, unittest.equals(42)); @@ -835,27 +897,27 @@ buildCounterMessage--; } -buildUnnamed117() { +buildUnnamed120() { var o = new core.List<api.MessagePartHeader>(); o.add(buildMessagePartHeader()); o.add(buildMessagePartHeader()); return o; } -checkUnnamed117(core.List<api.MessagePartHeader> o) { +checkUnnamed120(core.List<api.MessagePartHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePartHeader(o[0]); checkMessagePartHeader(o[1]); } -buildUnnamed118() { +buildUnnamed121() { var o = new core.List<api.MessagePart>(); o.add(buildMessagePart()); o.add(buildMessagePart()); return o; } -checkUnnamed118(core.List<api.MessagePart> o) { +checkUnnamed121(core.List<api.MessagePart> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePart(o[0]); checkMessagePart(o[1]); @@ -868,10 +930,10 @@ if (buildCounterMessagePart < 3) { o.body = buildMessagePartBody(); o.filename = "foo"; - o.headers = buildUnnamed117(); + o.headers = buildUnnamed120(); o.mimeType = "foo"; o.partId = "foo"; - o.parts = buildUnnamed118(); + o.parts = buildUnnamed121(); } buildCounterMessagePart--; return o; @@ -882,10 +944,10 @@ if (buildCounterMessagePart < 3) { checkMessagePartBody(o.body); unittest.expect(o.filename, unittest.equals('foo')); - checkUnnamed117(o.headers); + checkUnnamed120(o.headers); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.partId, unittest.equals('foo')); - checkUnnamed118(o.parts); + checkUnnamed121(o.parts); } buildCounterMessagePart--; } @@ -934,66 +996,6 @@ buildCounterMessagePartHeader--; } -buildUnnamed119() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed119(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed120() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed120(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterModifyMessageRequest = 0; -buildModifyMessageRequest() { - var o = new api.ModifyMessageRequest(); - buildCounterModifyMessageRequest++; - if (buildCounterModifyMessageRequest < 3) { - o.addLabelIds = buildUnnamed119(); - o.removeLabelIds = buildUnnamed120(); - } - buildCounterModifyMessageRequest--; - return o; -} - -checkModifyMessageRequest(api.ModifyMessageRequest o) { - buildCounterModifyMessageRequest++; - if (buildCounterModifyMessageRequest < 3) { - checkUnnamed119(o.addLabelIds); - checkUnnamed120(o.removeLabelIds); - } - buildCounterModifyMessageRequest--; -} - -buildUnnamed121() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed121(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed122() { var o = new core.List<core.String>(); o.add("foo"); @@ -1007,13 +1009,73 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed123() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed123(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterModifyMessageRequest = 0; +buildModifyMessageRequest() { + var o = new api.ModifyMessageRequest(); + buildCounterModifyMessageRequest++; + if (buildCounterModifyMessageRequest < 3) { + o.addLabelIds = buildUnnamed122(); + o.removeLabelIds = buildUnnamed123(); + } + buildCounterModifyMessageRequest--; + return o; +} + +checkModifyMessageRequest(api.ModifyMessageRequest o) { + buildCounterModifyMessageRequest++; + if (buildCounterModifyMessageRequest < 3) { + checkUnnamed122(o.addLabelIds); + checkUnnamed123(o.removeLabelIds); + } + buildCounterModifyMessageRequest--; +} + +buildUnnamed124() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed124(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed125() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed125(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterModifyThreadRequest = 0; buildModifyThreadRequest() { var o = new api.ModifyThreadRequest(); buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - o.addLabelIds = buildUnnamed121(); - o.removeLabelIds = buildUnnamed122(); + o.addLabelIds = buildUnnamed124(); + o.removeLabelIds = buildUnnamed125(); } buildCounterModifyThreadRequest--; return o; @@ -1022,8 +1084,8 @@ checkModifyThreadRequest(api.ModifyThreadRequest o) { buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - checkUnnamed121(o.addLabelIds); - checkUnnamed122(o.removeLabelIds); + checkUnnamed124(o.addLabelIds); + checkUnnamed125(o.removeLabelIds); } buildCounterModifyThreadRequest--; } @@ -1136,14 +1198,14 @@ buildCounterSmtpMsa--; } -buildUnnamed123() { +buildUnnamed126() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed123(core.List<api.Message> o) { +checkUnnamed126(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -1156,7 +1218,7 @@ if (buildCounterThread < 3) { o.historyId = "foo"; o.id = "foo"; - o.messages = buildUnnamed123(); + o.messages = buildUnnamed126(); o.snippet = "foo"; } buildCounterThread--; @@ -1168,7 +1230,7 @@ if (buildCounterThread < 3) { unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed123(o.messages); + checkUnnamed126(o.messages); unittest.expect(o.snippet, unittest.equals('foo')); } buildCounterThread--; @@ -1207,14 +1269,14 @@ buildCounterVacationSettings--; } -buildUnnamed124() { +buildUnnamed127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed124(core.List<core.String> o) { +checkUnnamed127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1226,7 +1288,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { o.labelFilterAction = "foo"; - o.labelIds = buildUnnamed124(); + o.labelIds = buildUnnamed127(); o.topicName = "foo"; } buildCounterWatchRequest--; @@ -1237,7 +1299,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { unittest.expect(o.labelFilterAction, unittest.equals('foo')); - checkUnnamed124(o.labelIds); + checkUnnamed127(o.labelIds); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterWatchRequest--; @@ -1264,45 +1326,6 @@ buildCounterWatchResponse--; } -buildUnnamed125() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed125(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed126() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed126(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed127() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed127(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed128() { var o = new core.List<core.String>(); o.add("foo"); @@ -1316,6 +1339,45 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed129() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed129(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed130() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed130(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed131() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed131(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + main() { unittest.group("obj-schema-AutoForwarding", () { @@ -1336,6 +1398,15 @@ }); + unittest.group("obj-schema-BatchModifyMessagesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBatchModifyMessagesRequest(); + var od = new api.BatchModifyMessagesRequest.fromJson(o.toJson()); + checkBatchModifyMessagesRequest(od); + }); + }); + + unittest.group("obj-schema-Draft", () { unittest.test("to-json--from-json", () { var o = buildDraft(); @@ -2428,6 +2499,50 @@ res.batchDelete(arg_request, arg_userId).then(unittest.expectAsync((_) {})); }); + unittest.test("method--batchModify", () { + + var mock = new HttpServerMock(); + api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; + var arg_request = buildBatchModifyMessagesRequest(); + var arg_userId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BatchModifyMessagesRequest.fromJson(json); + checkBatchModifyMessagesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchModify(arg_request, arg_userId).then(unittest.expectAsync((_) {})); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -2476,7 +2591,7 @@ var arg_userId = "foo"; var arg_id = "foo"; var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed125(); + var arg_metadataHeaders = buildUnnamed128(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2630,7 +2745,7 @@ api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_userId = "foo"; var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed126(); + var arg_labelIds = buildUnnamed129(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_q = "foo"; @@ -3976,7 +4091,7 @@ var arg_userId = "foo"; var arg_id = "foo"; var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed127(); + var arg_metadataHeaders = buildUnnamed130(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4022,7 +4137,7 @@ api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; var arg_userId = "foo"; var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed128(); + var arg_labelIds = buildUnnamed131(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_q = "foo";
diff --git a/generated/googleapis/test/iam/v1_test.dart b/generated/googleapis/test/iam/v1_test.dart index 7529b01..c59cb46 100644 --- a/generated/googleapis/test/iam/v1_test.dart +++ b/generated/googleapis/test/iam/v1_test.dart
@@ -70,14 +70,14 @@ buildCounterAuditData--; } -buildUnnamed1327() { +buildUnnamed1080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1327(core.List<core.String> o) { +checkUnnamed1080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -88,7 +88,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1327(); + o.members = buildUnnamed1080(); o.role = "foo"; } buildCounterBinding--; @@ -98,7 +98,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1327(o.members); + checkUnnamed1080(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -186,14 +186,14 @@ buildCounterEmpty--; } -buildUnnamed1328() { +buildUnnamed1081() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed1328(core.List<api.ServiceAccountKey> o) { +checkUnnamed1081(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -204,7 +204,7 @@ var o = new api.ListServiceAccountKeysResponse(); buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - o.keys = buildUnnamed1328(); + o.keys = buildUnnamed1081(); } buildCounterListServiceAccountKeysResponse--; return o; @@ -213,19 +213,19 @@ checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - checkUnnamed1328(o.keys); + checkUnnamed1081(o.keys); } buildCounterListServiceAccountKeysResponse--; } -buildUnnamed1329() { +buildUnnamed1082() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1329(core.List<api.ServiceAccount> o) { +checkUnnamed1082(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -236,7 +236,7 @@ var o = new api.ListServiceAccountsResponse(); buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - o.accounts = buildUnnamed1329(); + o.accounts = buildUnnamed1082(); o.nextPageToken = "foo"; } buildCounterListServiceAccountsResponse--; @@ -246,20 +246,20 @@ checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - checkUnnamed1329(o.accounts); + checkUnnamed1082(o.accounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListServiceAccountsResponse--; } -buildUnnamed1330() { +buildUnnamed1083() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1330(core.List<api.Binding> o) { +checkUnnamed1083(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -270,7 +270,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1330(); + o.bindings = buildUnnamed1083(); o.etag = "foo"; o.version = 42; } @@ -281,21 +281,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1330(o.bindings); + checkUnnamed1083(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1331() { +buildUnnamed1084() { var o = new core.List<api.BindingDelta>(); o.add(buildBindingDelta()); o.add(buildBindingDelta()); return o; } -checkUnnamed1331(core.List<api.BindingDelta> o) { +checkUnnamed1084(core.List<api.BindingDelta> o) { unittest.expect(o, unittest.hasLength(2)); checkBindingDelta(o[0]); checkBindingDelta(o[1]); @@ -306,7 +306,7 @@ var o = new api.PolicyDelta(); buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - o.bindingDeltas = buildUnnamed1331(); + o.bindingDeltas = buildUnnamed1084(); } buildCounterPolicyDelta--; return o; @@ -315,7 +315,7 @@ checkPolicyDelta(api.PolicyDelta o) { buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - checkUnnamed1331(o.bindingDeltas); + checkUnnamed1084(o.bindingDeltas); } buildCounterPolicyDelta--; } @@ -339,14 +339,14 @@ buildCounterQueryGrantableRolesRequest--; } -buildUnnamed1332() { +buildUnnamed1085() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed1332(core.List<api.Role> o) { +checkUnnamed1085(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -357,7 +357,7 @@ var o = new api.QueryGrantableRolesResponse(); buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { - o.roles = buildUnnamed1332(); + o.roles = buildUnnamed1085(); } buildCounterQueryGrantableRolesResponse--; return o; @@ -366,7 +366,7 @@ checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { - checkUnnamed1332(o.roles); + checkUnnamed1085(o.roles); } buildCounterQueryGrantableRolesResponse--; } @@ -515,14 +515,14 @@ buildCounterSignBlobResponse--; } -buildUnnamed1333() { +buildUnnamed1086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1333(core.List<core.String> o) { +checkUnnamed1086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -533,7 +533,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1333(); + o.permissions = buildUnnamed1086(); } buildCounterTestIamPermissionsRequest--; return o; @@ -542,19 +542,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1333(o.permissions); + checkUnnamed1086(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1334() { +buildUnnamed1087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1334(core.List<core.String> o) { +checkUnnamed1087(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -565,7 +565,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1334(); + o.permissions = buildUnnamed1087(); } buildCounterTestIamPermissionsResponse--; return o; @@ -574,19 +574,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1334(o.permissions); + checkUnnamed1087(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1335() { +buildUnnamed1088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1335(core.List<core.String> o) { +checkUnnamed1088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1354,7 +1354,7 @@ var mock = new HttpServerMock(); api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; - var arg_keyTypes = buildUnnamed1335(); + var arg_keyTypes = buildUnnamed1088(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index 2d061e6..a972809 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2378() { +buildUnnamed2166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2378(core.List<core.String> o) { +checkUnnamed2166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed2378(); + o.allProviders = buildUnnamed2166(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -85,7 +85,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed2378(o.allProviders); + checkUnnamed2166(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -116,14 +116,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed2379() { +buildUnnamed2167() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2379(core.List<api.UserInfo> o) { +checkUnnamed2167(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -136,7 +136,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed2379(); + o.users = buildUnnamed2167(); } buildCounterDownloadAccountResponse--; return o; @@ -147,7 +147,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2379(o.users); + checkUnnamed2167(o.users); } buildCounterDownloadAccountResponse--; } @@ -181,14 +181,14 @@ buildCounterEmailTemplate--; } -buildUnnamed2380() { +buildUnnamed2168() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2380(core.List<api.UserInfo> o) { +checkUnnamed2168(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -200,7 +200,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed2380(); + o.users = buildUnnamed2168(); } buildCounterGetAccountInfoResponse--; return o; @@ -210,7 +210,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2380(o.users); + checkUnnamed2168(o.users); } buildCounterGetAccountInfoResponse--; } @@ -261,14 +261,14 @@ buildCounterGetRecaptchaParamResponse--; } -buildUnnamed2381() { +buildUnnamed2169() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2381(core.Map<core.String, core.String> o) { +checkUnnamed2169(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -284,7 +284,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; - o.customParameter = buildUnnamed2381(); + o.customParameter = buildUnnamed2169(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -306,7 +306,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); - checkUnnamed2381(o.customParameter); + checkUnnamed2169(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -350,6 +350,7 @@ o.delegatedProjectNumber = "foo"; o.maxResults = 42; o.nextPageToken = "foo"; + o.targetProjectId = "foo"; } buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; return o; @@ -361,31 +362,32 @@ unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.maxResults, unittest.equals(42)); unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.targetProjectId, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; } -buildUnnamed2382() { +buildUnnamed2170() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2382(core.List<core.String> o) { +checkUnnamed2170(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2383() { +buildUnnamed2171() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2383(core.List<core.String> o) { +checkUnnamed2171(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -397,9 +399,9 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed2382(); + o.email = buildUnnamed2170(); o.idToken = "foo"; - o.localId = buildUnnamed2383(); + o.localId = buildUnnamed2171(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -409,34 +411,34 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2382(o.email); + checkUnnamed2170(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed2383(o.localId); + checkUnnamed2171(o.localId); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed2384() { +buildUnnamed2172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2384(core.List<core.String> o) { +checkUnnamed2172(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2385() { +buildUnnamed2173() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2385(core.List<api.IdpConfig> o) { +checkUnnamed2173(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -449,11 +451,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2384(); + o.authorizedDomains = buildUnnamed2172(); o.changeEmailTemplate = buildEmailTemplate(); o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2385(); + o.idpConfig = buildUnnamed2173(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -469,11 +471,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2384(o.authorizedDomains); + checkUnnamed2172(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2385(o.idpConfig); + checkUnnamed2173(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -521,40 +523,40 @@ buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; } -buildUnnamed2386() { +buildUnnamed2174() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2386(core.List<core.String> o) { +checkUnnamed2174(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2387() { +buildUnnamed2175() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2387(core.List<core.String> o) { +checkUnnamed2175(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2388() { +buildUnnamed2176() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2388(core.List<core.String> o) { +checkUnnamed2176(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -569,8 +571,8 @@ o.captchaResponse = "foo"; o.createdAt = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed2386(); - o.deleteProvider = buildUnnamed2387(); + o.deleteAttribute = buildUnnamed2174(); + o.deleteProvider = buildUnnamed2175(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -582,7 +584,7 @@ o.oobCode = "foo"; o.password = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed2388(); + o.provider = buildUnnamed2176(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -598,8 +600,8 @@ unittest.expect(o.captchaResponse, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2386(o.deleteAttribute); - checkUnnamed2387(o.deleteProvider); + checkUnnamed2174(o.deleteAttribute); + checkUnnamed2175(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -611,7 +613,7 @@ unittest.expect(o.oobCode, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2388(o.provider); + checkUnnamed2176(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -619,27 +621,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed2389() { +buildUnnamed2177() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2389(core.List<core.String> o) { +checkUnnamed2177(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2390() { +buildUnnamed2178() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2390(core.List<api.IdpConfig> o) { +checkUnnamed2178(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -652,11 +654,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2389(); + o.authorizedDomains = buildUnnamed2177(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2390(); + o.idpConfig = buildUnnamed2178(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -671,11 +673,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2389(o.authorizedDomains); + checkUnnamed2177(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2390(o.idpConfig); + checkUnnamed2178(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -780,14 +782,14 @@ buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed2391() { +buildUnnamed2179() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2391(core.List<api.UserInfo> o) { +checkUnnamed2179(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -807,7 +809,7 @@ o.sanityCheck = true; o.signerKey = "foo"; o.targetProjectId = "foo"; - o.users = buildUnnamed2391(); + o.users = buildUnnamed2179(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -825,7 +827,7 @@ unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); unittest.expect(o.targetProjectId, unittest.equals('foo')); - checkUnnamed2391(o.users); + checkUnnamed2179(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -927,14 +929,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } -buildUnnamed2392() { +buildUnnamed2180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2392(core.List<core.String> o) { +checkUnnamed2180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -950,7 +952,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed2392(); + o.whitelistedAudiences = buildUnnamed2180(); } buildCounterIdpConfig--; return o; @@ -964,7 +966,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed2392(o.whitelistedAudiences); + checkUnnamed2180(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -1052,14 +1054,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed2393() { +buildUnnamed2181() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed2393(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed2181(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1079,7 +1081,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2393(); + o.providerUserInfo = buildUnnamed2181(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1098,7 +1100,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2393(o.providerUserInfo); + checkUnnamed2181(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1156,14 +1158,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed2394() { +buildUnnamed2182() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed2394(core.List<api.UploadAccountResponseError> o) { +checkUnnamed2182(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1174,7 +1176,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed2394(); + o.error = buildUnnamed2182(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1184,7 +1186,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed2394(o.error); + checkUnnamed2182(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1221,14 +1223,14 @@ buildCounterUserInfoProviderUserInfo--; } -buildUnnamed2395() { +buildUnnamed2183() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed2395(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed2183(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1250,7 +1252,7 @@ o.passwordHash = "foo"; o.passwordUpdatedAt = 42.0; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2395(); + o.providerUserInfo = buildUnnamed2183(); o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; @@ -1275,7 +1277,7 @@ unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2395(o.providerUserInfo); + checkUnnamed2183(o.providerUserInfo); unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); @@ -1285,14 +1287,14 @@ buildCounterUserInfo--; } -buildUnnamed2396() { +buildUnnamed2184() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2396(core.List<core.String> o) { +checkUnnamed2184(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1340,7 +1342,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed2396(); + o.verifiedProvider = buildUnnamed2184(); } buildCounterVerifyAssertionResponse--; return o; @@ -1386,7 +1388,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed2396(o.verifiedProvider); + checkUnnamed2184(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/kgsearch/v1_test.dart b/generated/googleapis/test/kgsearch/v1_test.dart index b6a1c66..0bf76eb 100644 --- a/generated/googleapis/test/kgsearch/v1_test.dart +++ b/generated/googleapis/test/kgsearch/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1110() { +buildUnnamed861() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1110(core.List<core.Object> o) { +checkUnnamed861(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterSearchResponse++; if (buildCounterSearchResponse < 3) { o.context = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; - o.itemListElement = buildUnnamed1110(); + o.itemListElement = buildUnnamed861(); o.type = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; } buildCounterSearchResponse--; @@ -81,46 +81,46 @@ buildCounterSearchResponse++; if (buildCounterSearchResponse < 3) { var casted3 = (o.context) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); - checkUnnamed1110(o.itemListElement); + checkUnnamed861(o.itemListElement); var casted4 = (o.type) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); } buildCounterSearchResponse--; } -buildUnnamed1111() { +buildUnnamed862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1111(core.List<core.String> o) { +checkUnnamed862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1112() { +buildUnnamed863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1112(core.List<core.String> o) { +checkUnnamed863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1113() { +buildUnnamed864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1113(core.List<core.String> o) { +checkUnnamed864(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -143,9 +143,9 @@ var mock = new HttpServerMock(); api.EntitiesResourceApi res = new api.KgsearchApi(mock).entities; var arg_query = "foo"; - var arg_ids = buildUnnamed1111(); - var arg_languages = buildUnnamed1112(); - var arg_types = buildUnnamed1113(); + var arg_ids = buildUnnamed862(); + var arg_languages = buildUnnamed863(); + var arg_types = buildUnnamed864(); var arg_indent = true; var arg_prefix = true; var arg_limit = 42;
diff --git a/generated/googleapis/test/language/v1_test.dart b/generated/googleapis/test/language/v1_test.dart new file mode 100644 index 0000000..e853f9b --- /dev/null +++ b/generated/googleapis/test/language/v1_test.dart
@@ -0,0 +1,1012 @@ +library googleapis.language.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/language/v1.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterAnalyzeEntitiesRequest = 0; +buildAnalyzeEntitiesRequest() { + var o = new api.AnalyzeEntitiesRequest(); + buildCounterAnalyzeEntitiesRequest++; + if (buildCounterAnalyzeEntitiesRequest < 3) { + o.document = buildDocument(); + o.encodingType = "foo"; + } + buildCounterAnalyzeEntitiesRequest--; + return o; +} + +checkAnalyzeEntitiesRequest(api.AnalyzeEntitiesRequest o) { + buildCounterAnalyzeEntitiesRequest++; + if (buildCounterAnalyzeEntitiesRequest < 3) { + checkDocument(o.document); + unittest.expect(o.encodingType, unittest.equals('foo')); + } + buildCounterAnalyzeEntitiesRequest--; +} + +buildUnnamed738() { + var o = new core.List<api.Entity>(); + o.add(buildEntity()); + o.add(buildEntity()); + return o; +} + +checkUnnamed738(core.List<api.Entity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEntity(o[0]); + checkEntity(o[1]); +} + +core.int buildCounterAnalyzeEntitiesResponse = 0; +buildAnalyzeEntitiesResponse() { + var o = new api.AnalyzeEntitiesResponse(); + buildCounterAnalyzeEntitiesResponse++; + if (buildCounterAnalyzeEntitiesResponse < 3) { + o.entities = buildUnnamed738(); + o.language = "foo"; + } + buildCounterAnalyzeEntitiesResponse--; + return o; +} + +checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { + buildCounterAnalyzeEntitiesResponse++; + if (buildCounterAnalyzeEntitiesResponse < 3) { + checkUnnamed738(o.entities); + unittest.expect(o.language, unittest.equals('foo')); + } + buildCounterAnalyzeEntitiesResponse--; +} + +core.int buildCounterAnalyzeSentimentRequest = 0; +buildAnalyzeSentimentRequest() { + var o = new api.AnalyzeSentimentRequest(); + buildCounterAnalyzeSentimentRequest++; + if (buildCounterAnalyzeSentimentRequest < 3) { + o.document = buildDocument(); + o.encodingType = "foo"; + } + buildCounterAnalyzeSentimentRequest--; + return o; +} + +checkAnalyzeSentimentRequest(api.AnalyzeSentimentRequest o) { + buildCounterAnalyzeSentimentRequest++; + if (buildCounterAnalyzeSentimentRequest < 3) { + checkDocument(o.document); + unittest.expect(o.encodingType, unittest.equals('foo')); + } + buildCounterAnalyzeSentimentRequest--; +} + +buildUnnamed739() { + var o = new core.List<api.Sentence>(); + o.add(buildSentence()); + o.add(buildSentence()); + return o; +} + +checkUnnamed739(core.List<api.Sentence> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSentence(o[0]); + checkSentence(o[1]); +} + +core.int buildCounterAnalyzeSentimentResponse = 0; +buildAnalyzeSentimentResponse() { + var o = new api.AnalyzeSentimentResponse(); + buildCounterAnalyzeSentimentResponse++; + if (buildCounterAnalyzeSentimentResponse < 3) { + o.documentSentiment = buildSentiment(); + o.language = "foo"; + o.sentences = buildUnnamed739(); + } + buildCounterAnalyzeSentimentResponse--; + return o; +} + +checkAnalyzeSentimentResponse(api.AnalyzeSentimentResponse o) { + buildCounterAnalyzeSentimentResponse++; + if (buildCounterAnalyzeSentimentResponse < 3) { + checkSentiment(o.documentSentiment); + unittest.expect(o.language, unittest.equals('foo')); + checkUnnamed739(o.sentences); + } + buildCounterAnalyzeSentimentResponse--; +} + +core.int buildCounterAnalyzeSyntaxRequest = 0; +buildAnalyzeSyntaxRequest() { + var o = new api.AnalyzeSyntaxRequest(); + buildCounterAnalyzeSyntaxRequest++; + if (buildCounterAnalyzeSyntaxRequest < 3) { + o.document = buildDocument(); + o.encodingType = "foo"; + } + buildCounterAnalyzeSyntaxRequest--; + return o; +} + +checkAnalyzeSyntaxRequest(api.AnalyzeSyntaxRequest o) { + buildCounterAnalyzeSyntaxRequest++; + if (buildCounterAnalyzeSyntaxRequest < 3) { + checkDocument(o.document); + unittest.expect(o.encodingType, unittest.equals('foo')); + } + buildCounterAnalyzeSyntaxRequest--; +} + +buildUnnamed740() { + var o = new core.List<api.Sentence>(); + o.add(buildSentence()); + o.add(buildSentence()); + return o; +} + +checkUnnamed740(core.List<api.Sentence> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSentence(o[0]); + checkSentence(o[1]); +} + +buildUnnamed741() { + var o = new core.List<api.Token>(); + o.add(buildToken()); + o.add(buildToken()); + return o; +} + +checkUnnamed741(core.List<api.Token> o) { + unittest.expect(o, unittest.hasLength(2)); + checkToken(o[0]); + checkToken(o[1]); +} + +core.int buildCounterAnalyzeSyntaxResponse = 0; +buildAnalyzeSyntaxResponse() { + var o = new api.AnalyzeSyntaxResponse(); + buildCounterAnalyzeSyntaxResponse++; + if (buildCounterAnalyzeSyntaxResponse < 3) { + o.language = "foo"; + o.sentences = buildUnnamed740(); + o.tokens = buildUnnamed741(); + } + buildCounterAnalyzeSyntaxResponse--; + return o; +} + +checkAnalyzeSyntaxResponse(api.AnalyzeSyntaxResponse o) { + buildCounterAnalyzeSyntaxResponse++; + if (buildCounterAnalyzeSyntaxResponse < 3) { + unittest.expect(o.language, unittest.equals('foo')); + checkUnnamed740(o.sentences); + checkUnnamed741(o.tokens); + } + buildCounterAnalyzeSyntaxResponse--; +} + +core.int buildCounterAnnotateTextRequest = 0; +buildAnnotateTextRequest() { + var o = new api.AnnotateTextRequest(); + buildCounterAnnotateTextRequest++; + if (buildCounterAnnotateTextRequest < 3) { + o.document = buildDocument(); + o.encodingType = "foo"; + o.features = buildFeatures(); + } + buildCounterAnnotateTextRequest--; + return o; +} + +checkAnnotateTextRequest(api.AnnotateTextRequest o) { + buildCounterAnnotateTextRequest++; + if (buildCounterAnnotateTextRequest < 3) { + checkDocument(o.document); + unittest.expect(o.encodingType, unittest.equals('foo')); + checkFeatures(o.features); + } + buildCounterAnnotateTextRequest--; +} + +buildUnnamed742() { + var o = new core.List<api.Entity>(); + o.add(buildEntity()); + o.add(buildEntity()); + return o; +} + +checkUnnamed742(core.List<api.Entity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEntity(o[0]); + checkEntity(o[1]); +} + +buildUnnamed743() { + var o = new core.List<api.Sentence>(); + o.add(buildSentence()); + o.add(buildSentence()); + return o; +} + +checkUnnamed743(core.List<api.Sentence> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSentence(o[0]); + checkSentence(o[1]); +} + +buildUnnamed744() { + var o = new core.List<api.Token>(); + o.add(buildToken()); + o.add(buildToken()); + return o; +} + +checkUnnamed744(core.List<api.Token> o) { + unittest.expect(o, unittest.hasLength(2)); + checkToken(o[0]); + checkToken(o[1]); +} + +core.int buildCounterAnnotateTextResponse = 0; +buildAnnotateTextResponse() { + var o = new api.AnnotateTextResponse(); + buildCounterAnnotateTextResponse++; + if (buildCounterAnnotateTextResponse < 3) { + o.documentSentiment = buildSentiment(); + o.entities = buildUnnamed742(); + o.language = "foo"; + o.sentences = buildUnnamed743(); + o.tokens = buildUnnamed744(); + } + buildCounterAnnotateTextResponse--; + return o; +} + +checkAnnotateTextResponse(api.AnnotateTextResponse o) { + buildCounterAnnotateTextResponse++; + if (buildCounterAnnotateTextResponse < 3) { + checkSentiment(o.documentSentiment); + checkUnnamed742(o.entities); + unittest.expect(o.language, unittest.equals('foo')); + checkUnnamed743(o.sentences); + checkUnnamed744(o.tokens); + } + buildCounterAnnotateTextResponse--; +} + +core.int buildCounterDependencyEdge = 0; +buildDependencyEdge() { + var o = new api.DependencyEdge(); + buildCounterDependencyEdge++; + if (buildCounterDependencyEdge < 3) { + o.headTokenIndex = 42; + o.label = "foo"; + } + buildCounterDependencyEdge--; + return o; +} + +checkDependencyEdge(api.DependencyEdge o) { + buildCounterDependencyEdge++; + if (buildCounterDependencyEdge < 3) { + unittest.expect(o.headTokenIndex, unittest.equals(42)); + unittest.expect(o.label, unittest.equals('foo')); + } + buildCounterDependencyEdge--; +} + +core.int buildCounterDocument = 0; +buildDocument() { + var o = new api.Document(); + buildCounterDocument++; + if (buildCounterDocument < 3) { + o.content = "foo"; + o.gcsContentUri = "foo"; + o.language = "foo"; + o.type = "foo"; + } + buildCounterDocument--; + return o; +} + +checkDocument(api.Document o) { + buildCounterDocument++; + if (buildCounterDocument < 3) { + unittest.expect(o.content, unittest.equals('foo')); + unittest.expect(o.gcsContentUri, unittest.equals('foo')); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterDocument--; +} + +buildUnnamed745() { + var o = new core.List<api.EntityMention>(); + o.add(buildEntityMention()); + o.add(buildEntityMention()); + return o; +} + +checkUnnamed745(core.List<api.EntityMention> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEntityMention(o[0]); + checkEntityMention(o[1]); +} + +buildUnnamed746() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed746(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterEntity = 0; +buildEntity() { + var o = new api.Entity(); + buildCounterEntity++; + if (buildCounterEntity < 3) { + o.mentions = buildUnnamed745(); + o.metadata = buildUnnamed746(); + o.name = "foo"; + o.salience = 42.0; + o.type = "foo"; + } + buildCounterEntity--; + return o; +} + +checkEntity(api.Entity o) { + buildCounterEntity++; + if (buildCounterEntity < 3) { + checkUnnamed745(o.mentions); + checkUnnamed746(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.salience, unittest.equals(42.0)); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterEntity--; +} + +core.int buildCounterEntityMention = 0; +buildEntityMention() { + var o = new api.EntityMention(); + buildCounterEntityMention++; + if (buildCounterEntityMention < 3) { + o.text = buildTextSpan(); + o.type = "foo"; + } + buildCounterEntityMention--; + return o; +} + +checkEntityMention(api.EntityMention o) { + buildCounterEntityMention++; + if (buildCounterEntityMention < 3) { + checkTextSpan(o.text); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterEntityMention--; +} + +core.int buildCounterFeatures = 0; +buildFeatures() { + var o = new api.Features(); + buildCounterFeatures++; + if (buildCounterFeatures < 3) { + o.extractDocumentSentiment = true; + o.extractEntities = true; + o.extractSyntax = true; + } + buildCounterFeatures--; + return o; +} + +checkFeatures(api.Features o) { + buildCounterFeatures++; + if (buildCounterFeatures < 3) { + unittest.expect(o.extractDocumentSentiment, unittest.isTrue); + unittest.expect(o.extractEntities, unittest.isTrue); + unittest.expect(o.extractSyntax, unittest.isTrue); + } + buildCounterFeatures--; +} + +core.int buildCounterPartOfSpeech = 0; +buildPartOfSpeech() { + var o = new api.PartOfSpeech(); + buildCounterPartOfSpeech++; + if (buildCounterPartOfSpeech < 3) { + o.aspect = "foo"; + o.case_ = "foo"; + o.form = "foo"; + o.gender = "foo"; + o.mood = "foo"; + o.number = "foo"; + o.person = "foo"; + o.proper = "foo"; + o.reciprocity = "foo"; + o.tag = "foo"; + o.tense = "foo"; + o.voice = "foo"; + } + buildCounterPartOfSpeech--; + return o; +} + +checkPartOfSpeech(api.PartOfSpeech o) { + buildCounterPartOfSpeech++; + if (buildCounterPartOfSpeech < 3) { + unittest.expect(o.aspect, unittest.equals('foo')); + unittest.expect(o.case_, unittest.equals('foo')); + unittest.expect(o.form, unittest.equals('foo')); + unittest.expect(o.gender, unittest.equals('foo')); + unittest.expect(o.mood, unittest.equals('foo')); + unittest.expect(o.number, unittest.equals('foo')); + unittest.expect(o.person, unittest.equals('foo')); + unittest.expect(o.proper, unittest.equals('foo')); + unittest.expect(o.reciprocity, unittest.equals('foo')); + unittest.expect(o.tag, unittest.equals('foo')); + unittest.expect(o.tense, unittest.equals('foo')); + unittest.expect(o.voice, unittest.equals('foo')); + } + buildCounterPartOfSpeech--; +} + +core.int buildCounterSentence = 0; +buildSentence() { + var o = new api.Sentence(); + buildCounterSentence++; + if (buildCounterSentence < 3) { + o.sentiment = buildSentiment(); + o.text = buildTextSpan(); + } + buildCounterSentence--; + return o; +} + +checkSentence(api.Sentence o) { + buildCounterSentence++; + if (buildCounterSentence < 3) { + checkSentiment(o.sentiment); + checkTextSpan(o.text); + } + buildCounterSentence--; +} + +core.int buildCounterSentiment = 0; +buildSentiment() { + var o = new api.Sentiment(); + buildCounterSentiment++; + if (buildCounterSentiment < 3) { + o.magnitude = 42.0; + o.score = 42.0; + } + buildCounterSentiment--; + return o; +} + +checkSentiment(api.Sentiment o) { + buildCounterSentiment++; + if (buildCounterSentiment < 3) { + unittest.expect(o.magnitude, unittest.equals(42.0)); + unittest.expect(o.score, unittest.equals(42.0)); + } + buildCounterSentiment--; +} + +buildUnnamed747() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; + return o; +} + +checkUnnamed747(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); + var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); +} + +buildUnnamed748() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed747()); + o.add(buildUnnamed747()); + return o; +} + +checkUnnamed748(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed747(o[0]); + checkUnnamed747(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed748(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed748(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +core.int buildCounterTextSpan = 0; +buildTextSpan() { + var o = new api.TextSpan(); + buildCounterTextSpan++; + if (buildCounterTextSpan < 3) { + o.beginOffset = 42; + o.content = "foo"; + } + buildCounterTextSpan--; + return o; +} + +checkTextSpan(api.TextSpan o) { + buildCounterTextSpan++; + if (buildCounterTextSpan < 3) { + unittest.expect(o.beginOffset, unittest.equals(42)); + unittest.expect(o.content, unittest.equals('foo')); + } + buildCounterTextSpan--; +} + +core.int buildCounterToken = 0; +buildToken() { + var o = new api.Token(); + buildCounterToken++; + if (buildCounterToken < 3) { + o.dependencyEdge = buildDependencyEdge(); + o.lemma = "foo"; + o.partOfSpeech = buildPartOfSpeech(); + o.text = buildTextSpan(); + } + buildCounterToken--; + return o; +} + +checkToken(api.Token o) { + buildCounterToken++; + if (buildCounterToken < 3) { + checkDependencyEdge(o.dependencyEdge); + unittest.expect(o.lemma, unittest.equals('foo')); + checkPartOfSpeech(o.partOfSpeech); + checkTextSpan(o.text); + } + buildCounterToken--; +} + + +main() { + unittest.group("obj-schema-AnalyzeEntitiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeEntitiesRequest(); + var od = new api.AnalyzeEntitiesRequest.fromJson(o.toJson()); + checkAnalyzeEntitiesRequest(od); + }); + }); + + + unittest.group("obj-schema-AnalyzeEntitiesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeEntitiesResponse(); + var od = new api.AnalyzeEntitiesResponse.fromJson(o.toJson()); + checkAnalyzeEntitiesResponse(od); + }); + }); + + + unittest.group("obj-schema-AnalyzeSentimentRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeSentimentRequest(); + var od = new api.AnalyzeSentimentRequest.fromJson(o.toJson()); + checkAnalyzeSentimentRequest(od); + }); + }); + + + unittest.group("obj-schema-AnalyzeSentimentResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeSentimentResponse(); + var od = new api.AnalyzeSentimentResponse.fromJson(o.toJson()); + checkAnalyzeSentimentResponse(od); + }); + }); + + + unittest.group("obj-schema-AnalyzeSyntaxRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeSyntaxRequest(); + var od = new api.AnalyzeSyntaxRequest.fromJson(o.toJson()); + checkAnalyzeSyntaxRequest(od); + }); + }); + + + unittest.group("obj-schema-AnalyzeSyntaxResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyzeSyntaxResponse(); + var od = new api.AnalyzeSyntaxResponse.fromJson(o.toJson()); + checkAnalyzeSyntaxResponse(od); + }); + }); + + + unittest.group("obj-schema-AnnotateTextRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAnnotateTextRequest(); + var od = new api.AnnotateTextRequest.fromJson(o.toJson()); + checkAnnotateTextRequest(od); + }); + }); + + + unittest.group("obj-schema-AnnotateTextResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAnnotateTextResponse(); + var od = new api.AnnotateTextResponse.fromJson(o.toJson()); + checkAnnotateTextResponse(od); + }); + }); + + + unittest.group("obj-schema-DependencyEdge", () { + unittest.test("to-json--from-json", () { + var o = buildDependencyEdge(); + var od = new api.DependencyEdge.fromJson(o.toJson()); + checkDependencyEdge(od); + }); + }); + + + unittest.group("obj-schema-Document", () { + unittest.test("to-json--from-json", () { + var o = buildDocument(); + var od = new api.Document.fromJson(o.toJson()); + checkDocument(od); + }); + }); + + + unittest.group("obj-schema-Entity", () { + unittest.test("to-json--from-json", () { + var o = buildEntity(); + var od = new api.Entity.fromJson(o.toJson()); + checkEntity(od); + }); + }); + + + unittest.group("obj-schema-EntityMention", () { + unittest.test("to-json--from-json", () { + var o = buildEntityMention(); + var od = new api.EntityMention.fromJson(o.toJson()); + checkEntityMention(od); + }); + }); + + + unittest.group("obj-schema-Features", () { + unittest.test("to-json--from-json", () { + var o = buildFeatures(); + var od = new api.Features.fromJson(o.toJson()); + checkFeatures(od); + }); + }); + + + unittest.group("obj-schema-PartOfSpeech", () { + unittest.test("to-json--from-json", () { + var o = buildPartOfSpeech(); + var od = new api.PartOfSpeech.fromJson(o.toJson()); + checkPartOfSpeech(od); + }); + }); + + + unittest.group("obj-schema-Sentence", () { + unittest.test("to-json--from-json", () { + var o = buildSentence(); + var od = new api.Sentence.fromJson(o.toJson()); + checkSentence(od); + }); + }); + + + unittest.group("obj-schema-Sentiment", () { + unittest.test("to-json--from-json", () { + var o = buildSentiment(); + var od = new api.Sentiment.fromJson(o.toJson()); + checkSentiment(od); + }); + }); + + + unittest.group("obj-schema-Status", () { + unittest.test("to-json--from-json", () { + var o = buildStatus(); + var od = new api.Status.fromJson(o.toJson()); + checkStatus(od); + }); + }); + + + unittest.group("obj-schema-TextSpan", () { + unittest.test("to-json--from-json", () { + var o = buildTextSpan(); + var od = new api.TextSpan.fromJson(o.toJson()); + checkTextSpan(od); + }); + }); + + + unittest.group("obj-schema-Token", () { + unittest.test("to-json--from-json", () { + var o = buildToken(); + var od = new api.Token.fromJson(o.toJson()); + checkToken(od); + }); + }); + + + unittest.group("resource-DocumentsResourceApi", () { + unittest.test("method--analyzeEntities", () { + + var mock = new HttpServerMock(); + api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; + var arg_request = buildAnalyzeEntitiesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AnalyzeEntitiesRequest.fromJson(json); + checkAnalyzeEntitiesRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("v1/documents:analyzeEntities")); + pathOffset += 28; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAnalyzeEntitiesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.analyzeEntities(arg_request).then(unittest.expectAsync(((api.AnalyzeEntitiesResponse response) { + checkAnalyzeEntitiesResponse(response); + }))); + }); + + unittest.test("method--analyzeSentiment", () { + + var mock = new HttpServerMock(); + api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; + var arg_request = buildAnalyzeSentimentRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AnalyzeSentimentRequest.fromJson(json); + checkAnalyzeSentimentRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.equals("v1/documents:analyzeSentiment")); + pathOffset += 29; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAnalyzeSentimentResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.analyzeSentiment(arg_request).then(unittest.expectAsync(((api.AnalyzeSentimentResponse response) { + checkAnalyzeSentimentResponse(response); + }))); + }); + + unittest.test("method--analyzeSyntax", () { + + var mock = new HttpServerMock(); + api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; + var arg_request = buildAnalyzeSyntaxRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AnalyzeSyntaxRequest.fromJson(json); + checkAnalyzeSyntaxRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("v1/documents:analyzeSyntax")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAnalyzeSyntaxResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.analyzeSyntax(arg_request).then(unittest.expectAsync(((api.AnalyzeSyntaxResponse response) { + checkAnalyzeSyntaxResponse(response); + }))); + }); + + unittest.test("method--annotateText", () { + + var mock = new HttpServerMock(); + api.DocumentsResourceApi res = new api.LanguageApi(mock).documents; + var arg_request = buildAnnotateTextRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AnnotateTextRequest.fromJson(json); + checkAnnotateTextRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("v1/documents:annotateText")); + pathOffset += 25; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildAnnotateTextResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.annotateText(arg_request).then(unittest.expectAsync(((api.AnnotateTextResponse response) { + checkAnnotateTextResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index 5284397..96192ebe 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -99,14 +99,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed2133() { +buildUnnamed1904() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed2133(core.List<api.LicenseAssignment> o) { +checkUnnamed1904(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -118,7 +118,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed2133(); + o.items = buildUnnamed1904(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -130,7 +130,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2133(o.items); + checkUnnamed1904(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart index b6f74b7..e7f9a18 100644 --- a/generated/googleapis/test/logging/v2_test.dart +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -136,27 +136,27 @@ buildCounterLabelDescriptor--; } -buildUnnamed174() { +buildUnnamed177() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed174(core.List<core.String> o) { +checkUnnamed177(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed175() { +buildUnnamed178() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed175(core.List<core.String> o) { +checkUnnamed178(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,8 +171,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed174(); - o.resourceNames = buildUnnamed175(); + o.projectIds = buildUnnamed177(); + o.resourceNames = buildUnnamed178(); } buildCounterListLogEntriesRequest--; return o; @@ -185,20 +185,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed174(o.projectIds); - checkUnnamed175(o.resourceNames); + checkUnnamed177(o.projectIds); + checkUnnamed178(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed176() { +buildUnnamed179() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed176(core.List<api.LogEntry> o) { +checkUnnamed179(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -209,7 +209,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed176(); + o.entries = buildUnnamed179(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -219,20 +219,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed176(o.entries); + checkUnnamed179(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed177() { +buildUnnamed180() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed177(core.List<api.LogMetric> o) { +checkUnnamed180(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -243,7 +243,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed177(); + o.metrics = buildUnnamed180(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -253,20 +253,54 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed177(o.metrics); + checkUnnamed180(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed178() { +buildUnnamed181() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed181(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterListLogsResponse = 0; +buildListLogsResponse() { + var o = new api.ListLogsResponse(); + buildCounterListLogsResponse++; + if (buildCounterListLogsResponse < 3) { + o.logNames = buildUnnamed181(); + o.nextPageToken = "foo"; + } + buildCounterListLogsResponse--; + return o; +} + +checkListLogsResponse(api.ListLogsResponse o) { + buildCounterListLogsResponse++; + if (buildCounterListLogsResponse < 3) { + checkUnnamed181(o.logNames); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogsResponse--; +} + +buildUnnamed182() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed178(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed182(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -278,7 +312,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed178(); + o.resourceDescriptors = buildUnnamed182(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -288,19 +322,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed178(o.resourceDescriptors); + checkUnnamed182(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed179() { +buildUnnamed183() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed179(core.List<api.LogSink> o) { +checkUnnamed183(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -312,7 +346,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed179(); + o.sinks = buildUnnamed183(); } buildCounterListSinksResponse--; return o; @@ -322,45 +356,45 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed179(o.sinks); + checkUnnamed183(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed180() { +buildUnnamed184() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed180(core.Map<core.String, core.Object> o) { +checkUnnamed184(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed181() { +buildUnnamed185() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed181(core.Map<core.String, core.String> o) { +checkUnnamed185(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed182() { +buildUnnamed186() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed182(core.Map<core.String, core.Object> o) { +checkUnnamed186(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -373,15 +407,17 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed180(); - o.labels = buildUnnamed181(); + o.jsonPayload = buildUnnamed184(); + o.labels = buildUnnamed185(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed182(); + o.protoPayload = buildUnnamed186(); o.resource = buildMonitoredResource(); o.severity = "foo"; + o.sourceLocation = buildLogEntrySourceLocation(); o.textPayload = "foo"; o.timestamp = "foo"; + o.trace = "foo"; } buildCounterLogEntry--; return o; @@ -392,15 +428,17 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed180(o.jsonPayload); - checkUnnamed181(o.labels); + checkUnnamed184(o.jsonPayload); + checkUnnamed185(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed182(o.protoPayload); + checkUnnamed186(o.protoPayload); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); + checkLogEntrySourceLocation(o.sourceLocation); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); + unittest.expect(o.trace, unittest.equals('foo')); } buildCounterLogEntry--; } @@ -430,6 +468,29 @@ buildCounterLogEntryOperation--; } +core.int buildCounterLogEntrySourceLocation = 0; +buildLogEntrySourceLocation() { + var o = new api.LogEntrySourceLocation(); + buildCounterLogEntrySourceLocation++; + if (buildCounterLogEntrySourceLocation < 3) { + o.file = "foo"; + o.function = "foo"; + o.line = "foo"; + } + buildCounterLogEntrySourceLocation--; + return o; +} + +checkLogEntrySourceLocation(api.LogEntrySourceLocation o) { + buildCounterLogEntrySourceLocation++; + if (buildCounterLogEntrySourceLocation < 3) { + unittest.expect(o.file, unittest.equals('foo')); + unittest.expect(o.function, unittest.equals('foo')); + unittest.expect(o.line, unittest.equals('foo')); + } + buildCounterLogEntrySourceLocation--; +} + core.int buildCounterLogLine = 0; buildLogLine() { var o = new api.LogLine(); @@ -511,14 +572,14 @@ buildCounterLogSink--; } -buildUnnamed183() { +buildUnnamed187() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed183(core.Map<core.String, core.String> o) { +checkUnnamed187(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -529,7 +590,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed183(); + o.labels = buildUnnamed187(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -539,20 +600,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed183(o.labels); + checkUnnamed187(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed184() { +buildUnnamed188() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed184(core.List<api.LabelDescriptor> o) { +checkUnnamed188(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -565,7 +626,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed184(); + o.labels = buildUnnamed188(); o.name = "foo"; o.type = "foo"; } @@ -578,34 +639,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed184(o.labels); + checkUnnamed188(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed185() { +buildUnnamed189() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed185(core.List<api.LogLine> o) { +checkUnnamed189(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed186() { +buildUnnamed190() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed186(core.List<api.SourceReference> o) { +checkUnnamed190(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -628,7 +689,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed185(); + o.line = buildUnnamed189(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -638,7 +699,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed186(); + o.sourceReference = buildUnnamed190(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -668,7 +729,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed185(o.line); + checkUnnamed189(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -678,7 +739,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed186(o.sourceReference); + checkUnnamed190(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -736,27 +797,27 @@ buildCounterSourceReference--; } -buildUnnamed187() { +buildUnnamed191() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed187(core.List<api.LogEntry> o) { +checkUnnamed191(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed188() { +buildUnnamed192() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed188(core.Map<core.String, core.String> o) { +checkUnnamed192(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -767,8 +828,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed187(); - o.labels = buildUnnamed188(); + o.entries = buildUnnamed191(); + o.labels = buildUnnamed192(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -780,8 +841,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed187(o.entries); - checkUnnamed188(o.labels); + checkUnnamed191(o.entries); + checkUnnamed192(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -862,6 +923,15 @@ }); + unittest.group("obj-schema-ListLogsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLogsResponse(); + var od = new api.ListLogsResponse.fromJson(o.toJson()); + checkListLogsResponse(od); + }); + }); + + unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () { unittest.test("to-json--from-json", () { var o = buildListMonitoredResourceDescriptorsResponse(); @@ -898,6 +968,15 @@ }); + unittest.group("obj-schema-LogEntrySourceLocation", () { + unittest.test("to-json--from-json", () { + var o = buildLogEntrySourceLocation(); + var od = new api.LogEntrySourceLocation.fromJson(o.toJson()); + checkLogEntrySourceLocation(od); + }); + }); + + unittest.group("obj-schema-LogLine", () { unittest.test("to-json--from-json", () { var o = buildLogLine(); @@ -1034,6 +1113,55 @@ }))); }); + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) { + checkListLogsResponse(response); + }))); + }); + }); @@ -1380,6 +1508,349 @@ }); + unittest.group("resource-FoldersLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.FoldersLogsResourceApi res = new api.LoggingApi(mock).folders.logs; + var arg_logName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.FoldersLogsResourceApi res = new api.LoggingApi(mock).folders.logs; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) { + checkListLogsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-FoldersSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; + var arg_request = buildLogSink(); + var arg_parent = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_sinkName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; + var arg_sinkName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListSinksResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSinksResponse response) { + checkListSinksResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.FoldersSinksResourceApi res = new api.LoggingApi(mock).folders.sinks; + var arg_request = buildLogSink(); + var arg_sinkName = "foo"; + var arg_uniqueWriterIdentity = true; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogSink.fromJson(json); + checkLogSink(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogSink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { + checkLogSink(response); + }))); + }); + + }); + + unittest.group("resource-MonitoredResourceDescriptorsResourceApi", () { unittest.test("method--list", () { @@ -1477,6 +1948,55 @@ }))); }); + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) { + checkListLogsResponse(response); + }))); + }); + }); @@ -1771,6 +2291,55 @@ }))); }); + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v2/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListLogsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogsResponse response) { + checkListLogsResponse(response); + }))); + }); + });
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index c8e95ea..b2a8b36 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1811() { +buildUnnamed1564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1811(core.List<core.String> o) { +checkUnnamed1564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1812() { +buildUnnamed1565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1812(core.List<core.String> o) { +checkUnnamed1565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -83,12 +83,12 @@ buildCounterAttributes++; if (buildCounterAttributes < 3) { o.brand = "foo"; - o.gtin = buildUnnamed1811(); + o.gtin = buildUnnamed1564(); o.mpn = "foo"; o.productLine = "foo"; o.productName = "foo"; o.productPageUrl = "foo"; - o.productType = buildUnnamed1812(); + o.productType = buildUnnamed1565(); o.title = "foo"; } buildCounterAttributes--; @@ -99,12 +99,12 @@ buildCounterAttributes++; if (buildCounterAttributes < 3) { unittest.expect(o.brand, unittest.equals('foo')); - checkUnnamed1811(o.gtin); + checkUnnamed1564(o.gtin); unittest.expect(o.mpn, unittest.equals('foo')); unittest.expect(o.productLine, unittest.equals('foo')); unittest.expect(o.productName, unittest.equals('foo')); unittest.expect(o.productPageUrl, unittest.equals('foo')); - checkUnnamed1812(o.productType); + checkUnnamed1565(o.productType); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAttributes--; @@ -135,14 +135,14 @@ buildCounterIssue--; } -buildUnnamed1813() { +buildUnnamed1566() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed1813(core.List<api.Product> o) { +checkUnnamed1566(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -154,7 +154,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed1813(); + o.products = buildUnnamed1566(); } buildCounterListProductsResponse--; return o; @@ -164,32 +164,32 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1813(o.products); + checkUnnamed1566(o.products); } buildCounterListProductsResponse--; } -buildUnnamed1814() { +buildUnnamed1567() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed1814(core.List<api.Issue> o) { +checkUnnamed1567(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed1815() { +buildUnnamed1568() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1815(core.List<core.String> o) { +checkUnnamed1568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -202,8 +202,8 @@ if (buildCounterProduct < 3) { o.contentLanguage = "foo"; o.finalAttributes = buildAttributes(); - o.issues = buildUnnamed1814(); - o.manuallyDeletedAttributes = buildUnnamed1815(); + o.issues = buildUnnamed1567(); + o.manuallyDeletedAttributes = buildUnnamed1568(); o.manuallyProvidedAttributes = buildAttributes(); o.name = "foo"; o.parent = "foo"; @@ -220,8 +220,8 @@ if (buildCounterProduct < 3) { unittest.expect(o.contentLanguage, unittest.equals('foo')); checkAttributes(o.finalAttributes); - checkUnnamed1814(o.issues); - checkUnnamed1815(o.manuallyDeletedAttributes); + checkUnnamed1567(o.issues); + checkUnnamed1568(o.manuallyDeletedAttributes); checkAttributes(o.manuallyProvidedAttributes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo'));
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index 26df054..d71ecc2 100644 --- a/generated/googleapis/test/mirror/v1_test.dart +++ b/generated/googleapis/test/mirror/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1481() { +buildUnnamed1234() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed1481(core.List<api.AuthToken> o) { +checkUnnamed1234(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed1482() { +buildUnnamed1235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1482(core.List<core.String> o) { +checkUnnamed1235(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1483() { +buildUnnamed1236() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed1483(core.List<api.UserData> o) { +checkUnnamed1236(core.List<api.UserData> o) { unittest.expect(o, unittest.hasLength(2)); checkUserData(o[0]); checkUserData(o[1]); @@ -95,10 +95,10 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.authTokens = buildUnnamed1481(); - o.features = buildUnnamed1482(); + o.authTokens = buildUnnamed1234(); + o.features = buildUnnamed1235(); o.password = "foo"; - o.userData = buildUnnamed1483(); + o.userData = buildUnnamed1236(); } buildCounterAccount--; return o; @@ -107,10 +107,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1481(o.authTokens); - checkUnnamed1482(o.features); + checkUnnamed1234(o.authTokens); + checkUnnamed1235(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed1483(o.userData); + checkUnnamed1236(o.userData); } buildCounterAccount--; } @@ -140,14 +140,14 @@ buildCounterAttachment--; } -buildUnnamed1484() { +buildUnnamed1237() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1484(core.List<api.Attachment> o) { +checkUnnamed1237(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -158,7 +158,7 @@ var o = new api.AttachmentsListResponse(); buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - o.items = buildUnnamed1484(); + o.items = buildUnnamed1237(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -168,7 +168,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed1484(o.items); + checkUnnamed1237(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -214,53 +214,53 @@ buildCounterCommand--; } -buildUnnamed1485() { +buildUnnamed1238() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed1485(core.List<api.Command> o) { +checkUnnamed1238(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed1486() { +buildUnnamed1239() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1486(core.List<core.String> o) { +checkUnnamed1239(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1487() { +buildUnnamed1240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1487(core.List<core.String> o) { +checkUnnamed1240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1488() { +buildUnnamed1241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1488(core.List<core.String> o) { +checkUnnamed1241(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -271,15 +271,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed1485(); - o.acceptTypes = buildUnnamed1486(); + o.acceptCommands = buildUnnamed1238(); + o.acceptTypes = buildUnnamed1239(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed1487(); + o.imageUrls = buildUnnamed1240(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed1488(); + o.sharingFeatures = buildUnnamed1241(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -291,15 +291,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed1485(o.acceptCommands); - checkUnnamed1486(o.acceptTypes); + checkUnnamed1238(o.acceptCommands); + checkUnnamed1239(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1487(o.imageUrls); + checkUnnamed1240(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed1488(o.sharingFeatures); + checkUnnamed1241(o.sharingFeatures); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.speakableName, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -307,14 +307,14 @@ buildCounterContact--; } -buildUnnamed1489() { +buildUnnamed1242() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1489(core.List<api.Contact> o) { +checkUnnamed1242(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -325,7 +325,7 @@ var o = new api.ContactsListResponse(); buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - o.items = buildUnnamed1489(); + o.items = buildUnnamed1242(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -335,7 +335,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed1489(o.items); + checkUnnamed1242(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed1490() { +buildUnnamed1243() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1490(core.List<api.Location> o) { +checkUnnamed1243(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -392,7 +392,7 @@ var o = new api.LocationsListResponse(); buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - o.items = buildUnnamed1490(); + o.items = buildUnnamed1243(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed1490(o.items); + checkUnnamed1243(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed1491() { +buildUnnamed1244() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed1491(core.List<api.MenuValue> o) { +checkUnnamed1244(core.List<api.MenuValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuValue(o[0]); checkMenuValue(o[1]); @@ -431,7 +431,7 @@ o.id = "foo"; o.payload = "foo"; o.removeWhenSelected = true; - o.values = buildUnnamed1491(); + o.values = buildUnnamed1244(); } buildCounterMenuItem--; return o; @@ -445,7 +445,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.payload, unittest.equals('foo')); unittest.expect(o.removeWhenSelected, unittest.isTrue); - checkUnnamed1491(o.values); + checkUnnamed1244(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed1492() { +buildUnnamed1245() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed1492(core.List<api.UserAction> o) { +checkUnnamed1245(core.List<api.UserAction> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAction(o[0]); checkUserAction(o[1]); @@ -494,7 +494,7 @@ o.collection = "foo"; o.itemId = "foo"; o.operation = "foo"; - o.userActions = buildUnnamed1492(); + o.userActions = buildUnnamed1245(); o.userToken = "foo"; o.verifyToken = "foo"; } @@ -508,7 +508,7 @@ unittest.expect(o.collection, unittest.equals('foo')); unittest.expect(o.itemId, unittest.equals('foo')); unittest.expect(o.operation, unittest.equals('foo')); - checkUnnamed1492(o.userActions); + checkUnnamed1245(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -559,14 +559,14 @@ buildCounterSetting--; } -buildUnnamed1493() { +buildUnnamed1246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1493(core.List<core.String> o) { +checkUnnamed1246(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -582,7 +582,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed1493(); + o.operation = buildUnnamed1246(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.userToken = "foo"; o.verifyToken = "foo"; @@ -599,7 +599,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkNotification(o.notification); - checkUnnamed1493(o.operation); + checkUnnamed1246(o.operation); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); @@ -607,14 +607,14 @@ buildCounterSubscription--; } -buildUnnamed1494() { +buildUnnamed1247() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1494(core.List<api.Subscription> o) { +checkUnnamed1247(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -625,7 +625,7 @@ var o = new api.SubscriptionsListResponse(); buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - o.items = buildUnnamed1494(); + o.items = buildUnnamed1247(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -635,46 +635,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed1494(o.items); + checkUnnamed1247(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed1495() { +buildUnnamed1248() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1495(core.List<api.Attachment> o) { +checkUnnamed1248(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed1496() { +buildUnnamed1249() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed1496(core.List<api.MenuItem> o) { +checkUnnamed1249(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed1497() { +buildUnnamed1250() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1497(core.List<api.Contact> o) { +checkUnnamed1250(core.List<api.Contact> o) { unittest.expect(o, unittest.hasLength(2)); checkContact(o[0]); checkContact(o[1]); @@ -685,7 +685,7 @@ var o = new api.TimelineItem(); buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - o.attachments = buildUnnamed1495(); + o.attachments = buildUnnamed1248(); o.bundleId = "foo"; o.canonicalUrl = "foo"; o.created = core.DateTime.parse("2002-02-27T14:01:02"); @@ -700,10 +700,10 @@ o.isPinned = true; o.kind = "foo"; o.location = buildLocation(); - o.menuItems = buildUnnamed1496(); + o.menuItems = buildUnnamed1249(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed1497(); + o.recipients = buildUnnamed1250(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -719,7 +719,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed1495(o.attachments); + checkUnnamed1248(o.attachments); unittest.expect(o.bundleId, unittest.equals('foo')); unittest.expect(o.canonicalUrl, unittest.equals('foo')); unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -734,10 +734,10 @@ unittest.expect(o.isPinned, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); checkLocation(o.location); - checkUnnamed1496(o.menuItems); + checkUnnamed1249(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed1497(o.recipients); + checkUnnamed1250(o.recipients); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sourceItemId, unittest.equals('foo')); unittest.expect(o.speakableText, unittest.equals('foo')); @@ -749,14 +749,14 @@ buildCounterTimelineItem--; } -buildUnnamed1498() { +buildUnnamed1251() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed1498(core.List<api.TimelineItem> o) { +checkUnnamed1251(core.List<api.TimelineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTimelineItem(o[0]); checkTimelineItem(o[1]); @@ -767,7 +767,7 @@ var o = new api.TimelineListResponse(); buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - o.items = buildUnnamed1498(); + o.items = buildUnnamed1251(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -778,7 +778,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed1498(o.items); + checkUnnamed1251(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/monitoring/v3_test.dart b/generated/googleapis/test/monitoring/v3_test.dart index 70b1640..20b10ac 100644 --- a/generated/googleapis/test/monitoring/v3_test.dart +++ b/generated/googleapis/test/monitoring/v3_test.dart
@@ -74,27 +74,27 @@ buildCounterBucketOptions--; } -buildUnnamed1521() { +buildUnnamed1274() { var o = new core.Map<core.String, api.TypedValue>(); o["x"] = buildTypedValue(); o["y"] = buildTypedValue(); return o; } -checkUnnamed1521(core.Map<core.String, api.TypedValue> o) { +checkUnnamed1274(core.Map<core.String, api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o["x"]); checkTypedValue(o["y"]); } -buildUnnamed1522() { +buildUnnamed1275() { var o = new core.List<api.CollectdValue>(); o.add(buildCollectdValue()); o.add(buildCollectdValue()); return o; } -checkUnnamed1522(core.List<api.CollectdValue> o) { +checkUnnamed1275(core.List<api.CollectdValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValue(o[0]); checkCollectdValue(o[1]); @@ -106,13 +106,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { o.endTime = "foo"; - o.metadata = buildUnnamed1521(); + o.metadata = buildUnnamed1274(); o.plugin = "foo"; o.pluginInstance = "foo"; o.startTime = "foo"; o.type = "foo"; o.typeInstance = "foo"; - o.values = buildUnnamed1522(); + o.values = buildUnnamed1275(); } buildCounterCollectdPayload--; return o; @@ -122,13 +122,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1521(o.metadata); + checkUnnamed1274(o.metadata); unittest.expect(o.plugin, unittest.equals('foo')); unittest.expect(o.pluginInstance, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.typeInstance, unittest.equals('foo')); - checkUnnamed1522(o.values); + checkUnnamed1275(o.values); } buildCounterCollectdPayload--; } @@ -156,14 +156,14 @@ buildCounterCollectdValue--; } -buildUnnamed1523() { +buildUnnamed1276() { var o = new core.List<api.CollectdPayload>(); o.add(buildCollectdPayload()); o.add(buildCollectdPayload()); return o; } -checkUnnamed1523(core.List<api.CollectdPayload> o) { +checkUnnamed1276(core.List<api.CollectdPayload> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayload(o[0]); checkCollectdPayload(o[1]); @@ -174,7 +174,7 @@ var o = new api.CreateCollectdTimeSeriesRequest(); buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - o.collectdPayloads = buildUnnamed1523(); + o.collectdPayloads = buildUnnamed1276(); o.collectdVersion = "foo"; o.resource = buildMonitoredResource(); } @@ -185,21 +185,21 @@ checkCreateCollectdTimeSeriesRequest(api.CreateCollectdTimeSeriesRequest o) { buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - checkUnnamed1523(o.collectdPayloads); + checkUnnamed1276(o.collectdPayloads); unittest.expect(o.collectdVersion, unittest.equals('foo')); checkMonitoredResource(o.resource); } buildCounterCreateCollectdTimeSeriesRequest--; } -buildUnnamed1524() { +buildUnnamed1277() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1524(core.List<api.TimeSeries> o) { +checkUnnamed1277(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -210,7 +210,7 @@ var o = new api.CreateTimeSeriesRequest(); buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - o.timeSeries = buildUnnamed1524(); + o.timeSeries = buildUnnamed1277(); } buildCounterCreateTimeSeriesRequest--; return o; @@ -219,19 +219,19 @@ checkCreateTimeSeriesRequest(api.CreateTimeSeriesRequest o) { buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - checkUnnamed1524(o.timeSeries); + checkUnnamed1277(o.timeSeries); } buildCounterCreateTimeSeriesRequest--; } -buildUnnamed1525() { +buildUnnamed1278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1525(core.List<core.String> o) { +checkUnnamed1278(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -242,7 +242,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1525(); + o.bucketCounts = buildUnnamed1278(); o.bucketOptions = buildBucketOptions(); o.count = "foo"; o.mean = 42.0; @@ -256,7 +256,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1525(o.bucketCounts); + checkUnnamed1278(o.bucketCounts); checkBucketOptions(o.bucketOptions); unittest.expect(o.count, unittest.equals('foo')); unittest.expect(o.mean, unittest.equals(42.0)); @@ -283,14 +283,14 @@ buildCounterEmpty--; } -buildUnnamed1526() { +buildUnnamed1279() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1526(core.List<core.double> o) { +checkUnnamed1279(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -301,7 +301,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed1526(); + o.bounds = buildUnnamed1279(); } buildCounterExplicit--; return o; @@ -310,7 +310,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed1526(o.bounds); + checkUnnamed1279(o.bounds); } buildCounterExplicit--; } @@ -338,14 +338,14 @@ buildCounterExponential--; } -buildUnnamed1527() { +buildUnnamed1280() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1527(core.List<api.Option> o) { +checkUnnamed1280(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -363,7 +363,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1527(); + o.options = buildUnnamed1280(); o.packed = true; o.typeUrl = "foo"; } @@ -381,7 +381,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1527(o.options); + checkUnnamed1280(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -461,14 +461,14 @@ buildCounterLinear--; } -buildUnnamed1528() { +buildUnnamed1281() { var o = new core.List<api.MonitoredResource>(); o.add(buildMonitoredResource()); o.add(buildMonitoredResource()); return o; } -checkUnnamed1528(core.List<api.MonitoredResource> o) { +checkUnnamed1281(core.List<api.MonitoredResource> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResource(o[0]); checkMonitoredResource(o[1]); @@ -479,7 +479,7 @@ var o = new api.ListGroupMembersResponse(); buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - o.members = buildUnnamed1528(); + o.members = buildUnnamed1281(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -490,21 +490,21 @@ checkListGroupMembersResponse(api.ListGroupMembersResponse o) { buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - checkUnnamed1528(o.members); + checkUnnamed1281(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListGroupMembersResponse--; } -buildUnnamed1529() { +buildUnnamed1282() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1529(core.List<api.Group> o) { +checkUnnamed1282(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -515,7 +515,7 @@ var o = new api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.group = buildUnnamed1529(); + o.group = buildUnnamed1282(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -525,20 +525,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed1529(o.group); + checkUnnamed1282(o.group); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed1530() { +buildUnnamed1283() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1530(core.List<api.MetricDescriptor> o) { +checkUnnamed1283(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); @@ -549,7 +549,7 @@ var o = new api.ListMetricDescriptorsResponse(); buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - o.metricDescriptors = buildUnnamed1530(); + o.metricDescriptors = buildUnnamed1283(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -559,20 +559,20 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) { buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - checkUnnamed1530(o.metricDescriptors); + checkUnnamed1283(o.metricDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; } -buildUnnamed1531() { +buildUnnamed1284() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1531(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1284(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -584,7 +584,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed1531(); + o.resourceDescriptors = buildUnnamed1284(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -594,19 +594,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1531(o.resourceDescriptors); + checkUnnamed1284(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed1532() { +buildUnnamed1285() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1532(core.List<api.TimeSeries> o) { +checkUnnamed1285(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -618,7 +618,7 @@ buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { o.nextPageToken = "foo"; - o.timeSeries = buildUnnamed1532(); + o.timeSeries = buildUnnamed1285(); } buildCounterListTimeSeriesResponse--; return o; @@ -628,19 +628,19 @@ buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1532(o.timeSeries); + checkUnnamed1285(o.timeSeries); } buildCounterListTimeSeriesResponse--; } -buildUnnamed1533() { +buildUnnamed1286() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1533(core.Map<core.String, core.String> o) { +checkUnnamed1286(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -651,7 +651,7 @@ var o = new api.Metric(); buildCounterMetric++; if (buildCounterMetric < 3) { - o.labels = buildUnnamed1533(); + o.labels = buildUnnamed1286(); o.type = "foo"; } buildCounterMetric--; @@ -661,20 +661,20 @@ checkMetric(api.Metric o) { buildCounterMetric++; if (buildCounterMetric < 3) { - checkUnnamed1533(o.labels); + checkUnnamed1286(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMetric--; } -buildUnnamed1534() { +buildUnnamed1287() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1534(core.List<api.LabelDescriptor> o) { +checkUnnamed1287(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -687,7 +687,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1534(); + o.labels = buildUnnamed1287(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -703,7 +703,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1534(o.labels); + checkUnnamed1287(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -713,14 +713,14 @@ buildCounterMetricDescriptor--; } -buildUnnamed1535() { +buildUnnamed1288() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1535(core.Map<core.String, core.String> o) { +checkUnnamed1288(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -731,7 +731,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed1535(); + o.labels = buildUnnamed1288(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -741,20 +741,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed1535(o.labels); + checkUnnamed1288(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed1536() { +buildUnnamed1289() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1536(core.List<api.LabelDescriptor> o) { +checkUnnamed1289(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -767,7 +767,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1536(); + o.labels = buildUnnamed1289(); o.name = "foo"; o.type = "foo"; } @@ -780,21 +780,21 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1536(o.labels); + checkUnnamed1289(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1537() { +buildUnnamed1290() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1537(core.Map<core.String, core.Object> o) { +checkUnnamed1290(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -806,7 +806,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1537(); + o.value = buildUnnamed1290(); } buildCounterOption--; return o; @@ -816,7 +816,7 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1537(o.value); + checkUnnamed1290(o.value); } buildCounterOption--; } @@ -903,14 +903,14 @@ buildCounterTimeInterval--; } -buildUnnamed1538() { +buildUnnamed1291() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed1538(core.List<api.Point> o) { +checkUnnamed1291(core.List<api.Point> o) { unittest.expect(o, unittest.hasLength(2)); checkPoint(o[0]); checkPoint(o[1]); @@ -923,7 +923,7 @@ if (buildCounterTimeSeries < 3) { o.metric = buildMetric(); o.metricKind = "foo"; - o.points = buildUnnamed1538(); + o.points = buildUnnamed1291(); o.resource = buildMonitoredResource(); o.valueType = "foo"; } @@ -936,47 +936,47 @@ if (buildCounterTimeSeries < 3) { checkMetric(o.metric); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed1538(o.points); + checkUnnamed1291(o.points); checkMonitoredResource(o.resource); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterTimeSeries--; } -buildUnnamed1539() { +buildUnnamed1292() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1539(core.List<api.Field> o) { +checkUnnamed1292(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1540() { +buildUnnamed1293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1540(core.List<core.String> o) { +checkUnnamed1293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1541() { +buildUnnamed1294() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1541(core.List<api.Option> o) { +checkUnnamed1294(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -987,10 +987,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1539(); + o.fields = buildUnnamed1292(); o.name = "foo"; - o.oneofs = buildUnnamed1540(); - o.options = buildUnnamed1541(); + o.oneofs = buildUnnamed1293(); + o.options = buildUnnamed1294(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1001,10 +1001,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1539(o.fields); + checkUnnamed1292(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1540(o.oneofs); - checkUnnamed1541(o.options); + checkUnnamed1293(o.oneofs); + checkUnnamed1294(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -1038,14 +1038,14 @@ buildCounterTypedValue--; } -buildUnnamed1542() { +buildUnnamed1295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1542(core.List<core.String> o) { +checkUnnamed1295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2036,7 +2036,7 @@ api.ProjectsTimeSeriesResourceApi res = new api.MonitoringApi(mock).projects.timeSeries; var arg_name = "foo"; var arg_filter = "foo"; - var arg_aggregation_groupByFields = buildUnnamed1542(); + var arg_aggregation_groupByFields = buildUnnamed1295(); var arg_aggregation_crossSeriesReducer = "foo"; var arg_interval_endTime = "foo"; var arg_interval_startTime = "foo";
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index 12f4100..411f479 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterJwkKeys--; } -buildUnnamed2993() { +buildUnnamed2781() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed2993(core.List<api.JwkKeys> o) { +checkUnnamed2781(core.List<api.JwkKeys> o) { unittest.expect(o, unittest.hasLength(2)); checkJwkKeys(o[0]); checkJwkKeys(o[1]); @@ -98,7 +98,7 @@ var o = new api.Jwk(); buildCounterJwk++; if (buildCounterJwk < 3) { - o.keys = buildUnnamed2993(); + o.keys = buildUnnamed2781(); } buildCounterJwk--; return o; @@ -107,7 +107,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed2993(o.keys); + checkUnnamed2781(o.keys); } buildCounterJwk--; }
diff --git a/generated/googleapis/test/pagespeedonline/v1_test.dart b/generated/googleapis/test/pagespeedonline/v1_test.dart index 701d22e..658c0cc 100644 --- a/generated/googleapis/test/pagespeedonline/v1_test.dart +++ b/generated/googleapis/test/pagespeedonline/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs--; } -buildUnnamed2994() { +buildUnnamed2782() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); return o; } -checkUnnamed2994(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { +checkUnnamed2782(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs(o[1]); @@ -90,7 +90,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - o.args = buildUnnamed2994(); + o.args = buildUnnamed2782(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -100,7 +100,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - checkUnnamed2994(o.args); + checkUnnamed2782(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -127,14 +127,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs--; } -buildUnnamed2995() { +buildUnnamed2783() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); return o; } -checkUnnamed2995(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { +checkUnnamed2783(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs(o[1]); @@ -145,7 +145,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - o.args = buildUnnamed2995(); + o.args = buildUnnamed2783(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; @@ -155,20 +155,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - checkUnnamed2995(o.args); + checkUnnamed2783(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; } -buildUnnamed2996() { +buildUnnamed2784() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); return o; } -checkUnnamed2996(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { +checkUnnamed2784(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[1]); @@ -195,14 +195,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs--; } -buildUnnamed2997() { +buildUnnamed2785() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); return o; } -checkUnnamed2997(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { +checkUnnamed2785(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs(o[1]); @@ -213,7 +213,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - o.args = buildUnnamed2997(); + o.args = buildUnnamed2785(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -223,7 +223,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - checkUnnamed2997(o.args); + checkUnnamed2785(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -234,7 +234,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed2996(); + o.details = buildUnnamed2784(); o.result = buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -244,20 +244,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed2996(o.details); + checkUnnamed2784(o.details); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed2998() { +buildUnnamed2786() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed2998(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed2786(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[1]); @@ -269,7 +269,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildResultFormattedResultsRuleResultsValueUrlBlocksHeader(); - o.urls = buildUnnamed2998(); + o.urls = buildUnnamed2786(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -279,19 +279,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(o.header); - checkUnnamed2998(o.urls); + checkUnnamed2786(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed2999() { +buildUnnamed2787() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed2999(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed2787(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[1]); @@ -304,7 +304,7 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { o.localizedRuleName = "foo"; o.ruleImpact = 42.0; - o.urlBlocks = buildUnnamed2999(); + o.urlBlocks = buildUnnamed2787(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -315,19 +315,19 @@ if (buildCounterResultFormattedResultsRuleResultsValue < 3) { unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); - checkUnnamed2999(o.urlBlocks); + checkUnnamed2787(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed3000() { +buildUnnamed2788() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed3000(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed2788(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); checkResultFormattedResultsRuleResultsValue(o["y"]); @@ -339,7 +339,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed3000(); + o.ruleResults = buildUnnamed2788(); } buildCounterResultFormattedResults--; return o; @@ -349,19 +349,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed3000(o.ruleResults); + checkUnnamed2788(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed3001() { +buildUnnamed2789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3001(core.List<core.String> o) { +checkUnnamed2789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -463,7 +463,7 @@ if (buildCounterResult < 3) { o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed3001(); + o.invalidRules = buildUnnamed2789(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; @@ -481,7 +481,7 @@ if (buildCounterResult < 3) { checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3001(o.invalidRules); + checkUnnamed2789(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); @@ -493,14 +493,14 @@ buildCounterResult--; } -buildUnnamed3002() { +buildUnnamed2790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3002(core.List<core.String> o) { +checkUnnamed2790(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -642,7 +642,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed3002(); + var arg_rule = buildUnnamed2790(); var arg_screenshot = true; var arg_strategy = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/pagespeedonline/v2_test.dart b/generated/googleapis/test/pagespeedonline/v2_test.dart index 63b4103..c5e3379 100644 --- a/generated/googleapis/test/pagespeedonline/v2_test.dart +++ b/generated/googleapis/test/pagespeedonline/v2_test.dart
@@ -76,14 +76,14 @@ buildCounterPagespeedApiFormatStringV2ArgsRects--; } -buildUnnamed1336() { +buildUnnamed1089() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsRects>(); o.add(buildPagespeedApiFormatStringV2ArgsRects()); o.add(buildPagespeedApiFormatStringV2ArgsRects()); return o; } -checkUnnamed1336(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { +checkUnnamed1089(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsRects(o[0]); checkPagespeedApiFormatStringV2ArgsRects(o[1]); @@ -114,14 +114,14 @@ buildCounterPagespeedApiFormatStringV2ArgsSecondaryRects--; } -buildUnnamed1337() { +buildUnnamed1090() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects>(); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); return o; } -checkUnnamed1337(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { +checkUnnamed1090(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[0]); checkPagespeedApiFormatStringV2ArgsSecondaryRects(o[1]); @@ -133,8 +133,8 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { o.key = "foo"; - o.rects = buildUnnamed1336(); - o.secondaryRects = buildUnnamed1337(); + o.rects = buildUnnamed1089(); + o.secondaryRects = buildUnnamed1090(); o.type = "foo"; o.value = "foo"; } @@ -146,22 +146,22 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1336(o.rects); - checkUnnamed1337(o.secondaryRects); + checkUnnamed1089(o.rects); + checkUnnamed1090(o.secondaryRects); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2Args--; } -buildUnnamed1338() { +buildUnnamed1091() { var o = new core.List<api.PagespeedApiFormatStringV2Args>(); o.add(buildPagespeedApiFormatStringV2Args()); o.add(buildPagespeedApiFormatStringV2Args()); return o; } -checkUnnamed1338(core.List<api.PagespeedApiFormatStringV2Args> o) { +checkUnnamed1091(core.List<api.PagespeedApiFormatStringV2Args> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2Args(o[0]); checkPagespeedApiFormatStringV2Args(o[1]); @@ -172,7 +172,7 @@ var o = new api.PagespeedApiFormatStringV2(); buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - o.args = buildUnnamed1338(); + o.args = buildUnnamed1091(); o.format = "foo"; } buildCounterPagespeedApiFormatStringV2--; @@ -182,7 +182,7 @@ checkPagespeedApiFormatStringV2(api.PagespeedApiFormatStringV2 o) { buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - checkUnnamed1338(o.args); + checkUnnamed1091(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2--; @@ -242,27 +242,27 @@ buildCounterPagespeedApiImageV2--; } -buildUnnamed1339() { +buildUnnamed1092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1339(core.List<core.String> o) { +checkUnnamed1092(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1340() { +buildUnnamed1093() { var o = new core.List<api.PagespeedApiFormatStringV2>(); o.add(buildPagespeedApiFormatStringV2()); o.add(buildPagespeedApiFormatStringV2()); return o; } -checkUnnamed1340(core.List<api.PagespeedApiFormatStringV2> o) { +checkUnnamed1093(core.List<api.PagespeedApiFormatStringV2> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2(o[0]); checkPagespeedApiFormatStringV2(o[1]); @@ -273,7 +273,7 @@ var o = new api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls(); buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - o.details = buildUnnamed1340(); + o.details = buildUnnamed1093(); o.result = buildPagespeedApiFormatStringV2(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -283,20 +283,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed1340(o.details); + checkUnnamed1093(o.details); checkPagespeedApiFormatStringV2(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed1341() { +buildUnnamed1094() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed1341(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed1094(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(o[1]); @@ -308,7 +308,7 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { o.header = buildPagespeedApiFormatStringV2(); - o.urls = buildUnnamed1341(); + o.urls = buildUnnamed1094(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -318,19 +318,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkPagespeedApiFormatStringV2(o.header); - checkUnnamed1341(o.urls); + checkUnnamed1094(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed1342() { +buildUnnamed1095() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed1342(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed1095(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocks(o[1]); @@ -341,11 +341,11 @@ var o = new api.ResultFormattedResultsRuleResultsValue(); buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - o.groups = buildUnnamed1339(); + o.groups = buildUnnamed1092(); o.localizedRuleName = "foo"; o.ruleImpact = 42.0; o.summary = buildPagespeedApiFormatStringV2(); - o.urlBlocks = buildUnnamed1342(); + o.urlBlocks = buildUnnamed1095(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -354,23 +354,23 @@ checkResultFormattedResultsRuleResultsValue(api.ResultFormattedResultsRuleResultsValue o) { buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - checkUnnamed1339(o.groups); + checkUnnamed1092(o.groups); unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); checkPagespeedApiFormatStringV2(o.summary); - checkUnnamed1342(o.urlBlocks); + checkUnnamed1095(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed1343() { +buildUnnamed1096() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed1343(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed1096(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValue(o["x"]); checkResultFormattedResultsRuleResultsValue(o["y"]); @@ -382,7 +382,7 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { o.locale = "foo"; - o.ruleResults = buildUnnamed1343(); + o.ruleResults = buildUnnamed1096(); } buildCounterResultFormattedResults--; return o; @@ -392,19 +392,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1343(o.ruleResults); + checkUnnamed1096(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed1344() { +buildUnnamed1097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1344(core.List<core.String> o) { +checkUnnamed1097(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -472,14 +472,14 @@ buildCounterResultRuleGroupsValue--; } -buildUnnamed1345() { +buildUnnamed1098() { var o = new core.Map<core.String, api.ResultRuleGroupsValue>(); o["x"] = buildResultRuleGroupsValue(); o["y"] = buildResultRuleGroupsValue(); return o; } -checkUnnamed1345(core.Map<core.String, api.ResultRuleGroupsValue> o) { +checkUnnamed1098(core.Map<core.String, api.ResultRuleGroupsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkResultRuleGroupsValue(o["x"]); checkResultRuleGroupsValue(o["y"]); @@ -513,11 +513,11 @@ if (buildCounterResult < 3) { o.formattedResults = buildResultFormattedResults(); o.id = "foo"; - o.invalidRules = buildUnnamed1344(); + o.invalidRules = buildUnnamed1097(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; - o.ruleGroups = buildUnnamed1345(); + o.ruleGroups = buildUnnamed1098(); o.screenshot = buildPagespeedApiImageV2(); o.title = "foo"; o.version = buildResultVersion(); @@ -531,11 +531,11 @@ if (buildCounterResult < 3) { checkResultFormattedResults(o.formattedResults); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1344(o.invalidRules); + checkUnnamed1097(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); - checkUnnamed1345(o.ruleGroups); + checkUnnamed1098(o.ruleGroups); checkPagespeedApiImageV2(o.screenshot); unittest.expect(o.title, unittest.equals('foo')); checkResultVersion(o.version); @@ -543,14 +543,14 @@ buildCounterResult--; } -buildUnnamed1346() { +buildUnnamed1099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1346(core.List<core.String> o) { +checkUnnamed1099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -692,7 +692,7 @@ var arg_url = "foo"; var arg_filterThirdPartyResources = true; var arg_locale = "foo"; - var arg_rule = buildUnnamed1346(); + var arg_rule = buildUnnamed1099(); var arg_screenshot = true; var arg_strategy = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/partners/v2_test.dart b/generated/googleapis/test/partners/v2_test.dart index a0b87fb..7180f78 100644 --- a/generated/googleapis/test/partners/v2_test.dart +++ b/generated/googleapis/test/partners/v2_test.dart
@@ -72,14 +72,14 @@ buildCounterCertificationExamStatus--; } -buildUnnamed2016() { +buildUnnamed1787() { var o = new core.List<api.CertificationExamStatus>(); o.add(buildCertificationExamStatus()); o.add(buildCertificationExamStatus()); return o; } -checkUnnamed2016(core.List<api.CertificationExamStatus> o) { +checkUnnamed1787(core.List<api.CertificationExamStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationExamStatus(o[0]); checkCertificationExamStatus(o[1]); @@ -90,7 +90,7 @@ var o = new api.CertificationStatus(); buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - o.examStatuses = buildUnnamed2016(); + o.examStatuses = buildUnnamed1787(); o.isCertified = true; o.type = "foo"; } @@ -101,86 +101,86 @@ checkCertificationStatus(api.CertificationStatus o) { buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - checkUnnamed2016(o.examStatuses); + checkUnnamed1787(o.examStatuses); unittest.expect(o.isCertified, unittest.isTrue); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCertificationStatus--; } -buildUnnamed2017() { +buildUnnamed1788() { var o = new core.List<api.CertificationStatus>(); o.add(buildCertificationStatus()); o.add(buildCertificationStatus()); return o; } -checkUnnamed2017(core.List<api.CertificationStatus> o) { +checkUnnamed1788(core.List<api.CertificationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationStatus(o[0]); checkCertificationStatus(o[1]); } -buildUnnamed2018() { +buildUnnamed1789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2018(core.List<core.String> o) { +checkUnnamed1789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2019() { +buildUnnamed1790() { var o = new core.List<api.LocalizedCompanyInfo>(); o.add(buildLocalizedCompanyInfo()); o.add(buildLocalizedCompanyInfo()); return o; } -checkUnnamed2019(core.List<api.LocalizedCompanyInfo> o) { +checkUnnamed1790(core.List<api.LocalizedCompanyInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedCompanyInfo(o[0]); checkLocalizedCompanyInfo(o[1]); } -buildUnnamed2020() { +buildUnnamed1791() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2020(core.List<api.Location> o) { +checkUnnamed1791(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); } -buildUnnamed2021() { +buildUnnamed1792() { var o = new core.List<api.Rank>(); o.add(buildRank()); o.add(buildRank()); return o; } -checkUnnamed2021(core.List<api.Rank> o) { +checkUnnamed1792(core.List<api.Rank> o) { unittest.expect(o, unittest.hasLength(2)); checkRank(o[0]); checkRank(o[1]); } -buildUnnamed2022() { +buildUnnamed1793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2022(core.List<core.String> o) { +checkUnnamed1793(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -191,17 +191,17 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.certificationStatuses = buildUnnamed2017(); + o.certificationStatuses = buildUnnamed1788(); o.convertedMinMonthlyBudget = buildMoney(); o.id = "foo"; - o.industries = buildUnnamed2018(); - o.localizedInfos = buildUnnamed2019(); - o.locations = buildUnnamed2020(); + o.industries = buildUnnamed1789(); + o.localizedInfos = buildUnnamed1790(); + o.locations = buildUnnamed1791(); o.name = "foo"; o.originalMinMonthlyBudget = buildMoney(); o.publicProfile = buildPublicProfile(); - o.ranks = buildUnnamed2021(); - o.services = buildUnnamed2022(); + o.ranks = buildUnnamed1792(); + o.services = buildUnnamed1793(); o.websiteUrl = "foo"; } buildCounterCompany--; @@ -211,17 +211,17 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed2017(o.certificationStatuses); + checkUnnamed1788(o.certificationStatuses); checkMoney(o.convertedMinMonthlyBudget); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2018(o.industries); - checkUnnamed2019(o.localizedInfos); - checkUnnamed2020(o.locations); + checkUnnamed1789(o.industries); + checkUnnamed1790(o.localizedInfos); + checkUnnamed1791(o.locations); unittest.expect(o.name, unittest.equals('foo')); checkMoney(o.originalMinMonthlyBudget); checkPublicProfile(o.publicProfile); - checkUnnamed2021(o.ranks); - checkUnnamed2022(o.services); + checkUnnamed1792(o.ranks); + checkUnnamed1793(o.services); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterCompany--; @@ -296,14 +296,14 @@ buildCounterDebugInfo--; } -buildUnnamed2023() { +buildUnnamed1794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2023(core.List<core.String> o) { +checkUnnamed1794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -315,7 +315,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { o.key = "foo"; - o.values = buildUnnamed2023(); + o.values = buildUnnamed1794(); } buildCounterEventData--; return o; @@ -325,7 +325,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2023(o.values); + checkUnnamed1794(o.values); } buildCounterEventData--; } @@ -372,14 +372,14 @@ buildCounterLatLng--; } -buildUnnamed2024() { +buildUnnamed1795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2024(core.List<core.String> o) { +checkUnnamed1795(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -394,7 +394,7 @@ o.email = "foo"; o.familyName = "foo"; o.givenName = "foo"; - o.gpsMotivations = buildUnnamed2024(); + o.gpsMotivations = buildUnnamed1795(); o.id = "foo"; o.minMonthlyBudget = buildMoney(); o.phoneNumber = "foo"; @@ -412,7 +412,7 @@ unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.familyName, unittest.equals('foo')); unittest.expect(o.givenName, unittest.equals('foo')); - checkUnnamed2024(o.gpsMotivations); + checkUnnamed1795(o.gpsMotivations); unittest.expect(o.id, unittest.equals('foo')); checkMoney(o.minMonthlyBudget); unittest.expect(o.phoneNumber, unittest.equals('foo')); @@ -422,14 +422,14 @@ buildCounterLead--; } -buildUnnamed2025() { +buildUnnamed1796() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2025(core.List<api.Company> o) { +checkUnnamed1796(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -440,7 +440,7 @@ var o = new api.ListCompaniesResponse(); buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - o.companies = buildUnnamed2025(); + o.companies = buildUnnamed1796(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); } @@ -451,21 +451,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed2025(o.companies); + checkUnnamed1796(o.companies); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); } buildCounterListCompaniesResponse--; } -buildUnnamed2026() { +buildUnnamed1797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2026(core.List<core.String> o) { +checkUnnamed1797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -477,7 +477,7 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { o.responseMetadata = buildResponseMetadata(); - o.userStates = buildUnnamed2026(); + o.userStates = buildUnnamed1797(); } buildCounterListUserStatesResponse--; return o; @@ -487,19 +487,19 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { checkResponseMetadata(o.responseMetadata); - checkUnnamed2026(o.userStates); + checkUnnamed1797(o.userStates); } buildCounterListUserStatesResponse--; } -buildUnnamed2027() { +buildUnnamed1798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2027(core.List<core.String> o) { +checkUnnamed1798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -510,7 +510,7 @@ var o = new api.LocalizedCompanyInfo(); buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - o.countryCodes = buildUnnamed2027(); + o.countryCodes = buildUnnamed1798(); o.displayName = "foo"; o.languageCode = "foo"; o.overview = "foo"; @@ -522,7 +522,7 @@ checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - checkUnnamed2027(o.countryCodes); + checkUnnamed1798(o.countryCodes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); @@ -551,14 +551,14 @@ buildCounterLocation--; } -buildUnnamed2028() { +buildUnnamed1799() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2028(core.Map<core.String, core.String> o) { +checkUnnamed1799(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -569,7 +569,7 @@ var o = new api.LogMessageRequest(); buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - o.clientInfo = buildUnnamed2028(); + o.clientInfo = buildUnnamed1799(); o.details = "foo"; o.level = "foo"; o.requestMetadata = buildRequestMetadata(); @@ -581,7 +581,7 @@ checkLogMessageRequest(api.LogMessageRequest o) { buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - checkUnnamed2028(o.clientInfo); + checkUnnamed1799(o.clientInfo); unittest.expect(o.details, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); checkRequestMetadata(o.requestMetadata); @@ -608,14 +608,14 @@ buildCounterLogMessageResponse--; } -buildUnnamed2029() { +buildUnnamed1800() { var o = new core.List<api.EventData>(); o.add(buildEventData()); o.add(buildEventData()); return o; } -checkUnnamed2029(core.List<api.EventData> o) { +checkUnnamed1800(core.List<api.EventData> o) { unittest.expect(o, unittest.hasLength(2)); checkEventData(o[0]); checkEventData(o[1]); @@ -628,7 +628,7 @@ if (buildCounterLogUserEventRequest < 3) { o.eventAction = "foo"; o.eventCategory = "foo"; - o.eventDatas = buildUnnamed2029(); + o.eventDatas = buildUnnamed1800(); o.eventScope = "foo"; o.lead = buildLead(); o.requestMetadata = buildRequestMetadata(); @@ -643,7 +643,7 @@ if (buildCounterLogUserEventRequest < 3) { unittest.expect(o.eventAction, unittest.equals('foo')); unittest.expect(o.eventCategory, unittest.equals('foo')); - checkUnnamed2029(o.eventDatas); + checkUnnamed1800(o.eventDatas); unittest.expect(o.eventScope, unittest.equals('foo')); checkLead(o.lead); checkRequestMetadata(o.requestMetadata); @@ -761,14 +761,14 @@ buildCounterRecaptchaChallenge--; } -buildUnnamed2030() { +buildUnnamed1801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2030(core.List<core.String> o) { +checkUnnamed1801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -779,7 +779,7 @@ var o = new api.RequestMetadata(); buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - o.experimentIds = buildUnnamed2030(); + o.experimentIds = buildUnnamed1801(); o.locale = "foo"; o.partnersSessionId = "foo"; o.trafficSource = buildTrafficSource(); @@ -792,7 +792,7 @@ checkRequestMetadata(api.RequestMetadata o) { buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - checkUnnamed2030(o.experimentIds); + checkUnnamed1801(o.experimentIds); unittest.expect(o.locale, unittest.equals('foo')); unittest.expect(o.partnersSessionId, unittest.equals('foo')); checkTrafficSource(o.trafficSource); @@ -862,92 +862,92 @@ buildCounterUserOverrides--; } -buildUnnamed2031() { +buildUnnamed1802() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2031(core.List<core.String> o) { +checkUnnamed1802(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2032() { +buildUnnamed1803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2032(core.List<core.String> o) { +checkUnnamed1803(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2033() { +buildUnnamed1804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2033(core.List<core.String> o) { +checkUnnamed1804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2034() { +buildUnnamed1805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2034(core.List<core.String> o) { +checkUnnamed1805(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2035() { +buildUnnamed1806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2035(core.List<core.String> o) { +checkUnnamed1806(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2036() { +buildUnnamed1807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2036(core.List<core.String> o) { +checkUnnamed1807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2037() { +buildUnnamed1808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2037(core.List<core.String> o) { +checkUnnamed1808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1250,7 +1250,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2031(); + var arg_requestMetadata_experimentIds = buildUnnamed1802(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_view = "foo"; @@ -1318,7 +1318,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2032(); + var arg_requestMetadata_experimentIds = buildUnnamed1803(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; var arg_pageSize = 42; @@ -1331,12 +1331,12 @@ var arg_maxMonthlyBudget_currencyCode = "foo"; var arg_maxMonthlyBudget_units = "foo"; var arg_maxMonthlyBudget_nanos = 42; - var arg_industries = buildUnnamed2033(); - var arg_services = buildUnnamed2034(); - var arg_languageCodes = buildUnnamed2035(); + var arg_industries = buildUnnamed1804(); + var arg_services = buildUnnamed1805(); + var arg_languageCodes = buildUnnamed1806(); var arg_address = "foo"; var arg_orderBy = "foo"; - var arg_gpsMotivations = buildUnnamed2036(); + var arg_gpsMotivations = buildUnnamed1807(); var arg_websiteUrl = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1523,7 +1523,7 @@ var arg_requestMetadata_userOverrides_userId = "foo"; var arg_requestMetadata_locale = "foo"; var arg_requestMetadata_partnersSessionId = "foo"; - var arg_requestMetadata_experimentIds = buildUnnamed2037(); + var arg_requestMetadata_experimentIds = buildUnnamed1808(); var arg_requestMetadata_trafficSource_trafficSourceId = "foo"; var arg_requestMetadata_trafficSource_trafficSubId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/people/v1_test.dart b/generated/googleapis/test/people/v1_test.dart index 07409ac..e7ea6af 100644 --- a/generated/googleapis/test/people/v1_test.dart +++ b/generated/googleapis/test/people/v1_test.dart
@@ -337,14 +337,14 @@ buildCounterGender--; } -buildUnnamed1451() { +buildUnnamed1204() { var o = new core.List<api.PersonResponse>(); o.add(buildPersonResponse()); o.add(buildPersonResponse()); return o; } -checkUnnamed1451(core.List<api.PersonResponse> o) { +checkUnnamed1204(core.List<api.PersonResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonResponse(o[0]); checkPersonResponse(o[1]); @@ -355,7 +355,7 @@ var o = new api.GetPeopleResponse(); buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - o.responses = buildUnnamed1451(); + o.responses = buildUnnamed1204(); } buildCounterGetPeopleResponse--; return o; @@ -364,7 +364,7 @@ checkGetPeopleResponse(api.GetPeopleResponse o) { buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - checkUnnamed1451(o.responses); + checkUnnamed1204(o.responses); } buildCounterGetPeopleResponse--; } @@ -419,14 +419,14 @@ buildCounterInterest--; } -buildUnnamed1452() { +buildUnnamed1205() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1452(core.List<api.Person> o) { +checkUnnamed1205(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -437,7 +437,7 @@ var o = new api.ListConnectionsResponse(); buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - o.connections = buildUnnamed1452(); + o.connections = buildUnnamed1205(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; } @@ -448,7 +448,7 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed1452(o.connections); + checkUnnamed1205(o.connections); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); } @@ -629,326 +629,326 @@ buildCounterOrganization--; } -buildUnnamed1453() { +buildUnnamed1206() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed1453(core.List<api.Address> o) { +checkUnnamed1206(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); } -buildUnnamed1454() { +buildUnnamed1207() { var o = new core.List<api.Biography>(); o.add(buildBiography()); o.add(buildBiography()); return o; } -checkUnnamed1454(core.List<api.Biography> o) { +checkUnnamed1207(core.List<api.Biography> o) { unittest.expect(o, unittest.hasLength(2)); checkBiography(o[0]); checkBiography(o[1]); } -buildUnnamed1455() { +buildUnnamed1208() { var o = new core.List<api.Birthday>(); o.add(buildBirthday()); o.add(buildBirthday()); return o; } -checkUnnamed1455(core.List<api.Birthday> o) { +checkUnnamed1208(core.List<api.Birthday> o) { unittest.expect(o, unittest.hasLength(2)); checkBirthday(o[0]); checkBirthday(o[1]); } -buildUnnamed1456() { +buildUnnamed1209() { var o = new core.List<api.BraggingRights>(); o.add(buildBraggingRights()); o.add(buildBraggingRights()); return o; } -checkUnnamed1456(core.List<api.BraggingRights> o) { +checkUnnamed1209(core.List<api.BraggingRights> o) { unittest.expect(o, unittest.hasLength(2)); checkBraggingRights(o[0]); checkBraggingRights(o[1]); } -buildUnnamed1457() { +buildUnnamed1210() { var o = new core.List<api.CoverPhoto>(); o.add(buildCoverPhoto()); o.add(buildCoverPhoto()); return o; } -checkUnnamed1457(core.List<api.CoverPhoto> o) { +checkUnnamed1210(core.List<api.CoverPhoto> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverPhoto(o[0]); checkCoverPhoto(o[1]); } -buildUnnamed1458() { +buildUnnamed1211() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed1458(core.List<api.EmailAddress> o) { +checkUnnamed1211(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed1459() { +buildUnnamed1212() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1459(core.List<api.Event> o) { +checkUnnamed1212(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); } -buildUnnamed1460() { +buildUnnamed1213() { var o = new core.List<api.Gender>(); o.add(buildGender()); o.add(buildGender()); return o; } -checkUnnamed1460(core.List<api.Gender> o) { +checkUnnamed1213(core.List<api.Gender> o) { unittest.expect(o, unittest.hasLength(2)); checkGender(o[0]); checkGender(o[1]); } -buildUnnamed1461() { +buildUnnamed1214() { var o = new core.List<api.ImClient>(); o.add(buildImClient()); o.add(buildImClient()); return o; } -checkUnnamed1461(core.List<api.ImClient> o) { +checkUnnamed1214(core.List<api.ImClient> o) { unittest.expect(o, unittest.hasLength(2)); checkImClient(o[0]); checkImClient(o[1]); } -buildUnnamed1462() { +buildUnnamed1215() { var o = new core.List<api.Interest>(); o.add(buildInterest()); o.add(buildInterest()); return o; } -checkUnnamed1462(core.List<api.Interest> o) { +checkUnnamed1215(core.List<api.Interest> o) { unittest.expect(o, unittest.hasLength(2)); checkInterest(o[0]); checkInterest(o[1]); } -buildUnnamed1463() { +buildUnnamed1216() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed1463(core.List<api.Locale> o) { +checkUnnamed1216(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed1464() { +buildUnnamed1217() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed1464(core.List<api.Membership> o) { +checkUnnamed1217(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); } -buildUnnamed1465() { +buildUnnamed1218() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed1465(core.List<api.Name> o) { +checkUnnamed1218(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed1466() { +buildUnnamed1219() { var o = new core.List<api.Nickname>(); o.add(buildNickname()); o.add(buildNickname()); return o; } -checkUnnamed1466(core.List<api.Nickname> o) { +checkUnnamed1219(core.List<api.Nickname> o) { unittest.expect(o, unittest.hasLength(2)); checkNickname(o[0]); checkNickname(o[1]); } -buildUnnamed1467() { +buildUnnamed1220() { var o = new core.List<api.Occupation>(); o.add(buildOccupation()); o.add(buildOccupation()); return o; } -checkUnnamed1467(core.List<api.Occupation> o) { +checkUnnamed1220(core.List<api.Occupation> o) { unittest.expect(o, unittest.hasLength(2)); checkOccupation(o[0]); checkOccupation(o[1]); } -buildUnnamed1468() { +buildUnnamed1221() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1468(core.List<api.Organization> o) { +checkUnnamed1221(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); } -buildUnnamed1469() { +buildUnnamed1222() { var o = new core.List<api.PhoneNumber>(); o.add(buildPhoneNumber()); o.add(buildPhoneNumber()); return o; } -checkUnnamed1469(core.List<api.PhoneNumber> o) { +checkUnnamed1222(core.List<api.PhoneNumber> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoneNumber(o[0]); checkPhoneNumber(o[1]); } -buildUnnamed1470() { +buildUnnamed1223() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed1470(core.List<api.Photo> o) { +checkUnnamed1223(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); } -buildUnnamed1471() { +buildUnnamed1224() { var o = new core.List<api.Relation>(); o.add(buildRelation()); o.add(buildRelation()); return o; } -checkUnnamed1471(core.List<api.Relation> o) { +checkUnnamed1224(core.List<api.Relation> o) { unittest.expect(o, unittest.hasLength(2)); checkRelation(o[0]); checkRelation(o[1]); } -buildUnnamed1472() { +buildUnnamed1225() { var o = new core.List<api.RelationshipInterest>(); o.add(buildRelationshipInterest()); o.add(buildRelationshipInterest()); return o; } -checkUnnamed1472(core.List<api.RelationshipInterest> o) { +checkUnnamed1225(core.List<api.RelationshipInterest> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipInterest(o[0]); checkRelationshipInterest(o[1]); } -buildUnnamed1473() { +buildUnnamed1226() { var o = new core.List<api.RelationshipStatus>(); o.add(buildRelationshipStatus()); o.add(buildRelationshipStatus()); return o; } -checkUnnamed1473(core.List<api.RelationshipStatus> o) { +checkUnnamed1226(core.List<api.RelationshipStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipStatus(o[0]); checkRelationshipStatus(o[1]); } -buildUnnamed1474() { +buildUnnamed1227() { var o = new core.List<api.Residence>(); o.add(buildResidence()); o.add(buildResidence()); return o; } -checkUnnamed1474(core.List<api.Residence> o) { +checkUnnamed1227(core.List<api.Residence> o) { unittest.expect(o, unittest.hasLength(2)); checkResidence(o[0]); checkResidence(o[1]); } -buildUnnamed1475() { +buildUnnamed1228() { var o = new core.List<api.Skill>(); o.add(buildSkill()); o.add(buildSkill()); return o; } -checkUnnamed1475(core.List<api.Skill> o) { +checkUnnamed1228(core.List<api.Skill> o) { unittest.expect(o, unittest.hasLength(2)); checkSkill(o[0]); checkSkill(o[1]); } -buildUnnamed1476() { +buildUnnamed1229() { var o = new core.List<api.Tagline>(); o.add(buildTagline()); o.add(buildTagline()); return o; } -checkUnnamed1476(core.List<api.Tagline> o) { +checkUnnamed1229(core.List<api.Tagline> o) { unittest.expect(o, unittest.hasLength(2)); checkTagline(o[0]); checkTagline(o[1]); } -buildUnnamed1477() { +buildUnnamed1230() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed1477(core.List<api.Url> o) { +checkUnnamed1230(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -959,35 +959,35 @@ var o = new api.Person(); buildCounterPerson++; if (buildCounterPerson < 3) { - o.addresses = buildUnnamed1453(); + o.addresses = buildUnnamed1206(); o.ageRange = "foo"; - o.biographies = buildUnnamed1454(); - o.birthdays = buildUnnamed1455(); - o.braggingRights = buildUnnamed1456(); - o.coverPhotos = buildUnnamed1457(); - o.emailAddresses = buildUnnamed1458(); + o.biographies = buildUnnamed1207(); + o.birthdays = buildUnnamed1208(); + o.braggingRights = buildUnnamed1209(); + o.coverPhotos = buildUnnamed1210(); + o.emailAddresses = buildUnnamed1211(); o.etag = "foo"; - o.events = buildUnnamed1459(); - o.genders = buildUnnamed1460(); - o.imClients = buildUnnamed1461(); - o.interests = buildUnnamed1462(); - o.locales = buildUnnamed1463(); - o.memberships = buildUnnamed1464(); + o.events = buildUnnamed1212(); + o.genders = buildUnnamed1213(); + o.imClients = buildUnnamed1214(); + o.interests = buildUnnamed1215(); + o.locales = buildUnnamed1216(); + o.memberships = buildUnnamed1217(); o.metadata = buildPersonMetadata(); - o.names = buildUnnamed1465(); - o.nicknames = buildUnnamed1466(); - o.occupations = buildUnnamed1467(); - o.organizations = buildUnnamed1468(); - o.phoneNumbers = buildUnnamed1469(); - o.photos = buildUnnamed1470(); - o.relations = buildUnnamed1471(); - o.relationshipInterests = buildUnnamed1472(); - o.relationshipStatuses = buildUnnamed1473(); - o.residences = buildUnnamed1474(); + o.names = buildUnnamed1218(); + o.nicknames = buildUnnamed1219(); + o.occupations = buildUnnamed1220(); + o.organizations = buildUnnamed1221(); + o.phoneNumbers = buildUnnamed1222(); + o.photos = buildUnnamed1223(); + o.relations = buildUnnamed1224(); + o.relationshipInterests = buildUnnamed1225(); + o.relationshipStatuses = buildUnnamed1226(); + o.residences = buildUnnamed1227(); o.resourceName = "foo"; - o.skills = buildUnnamed1475(); - o.taglines = buildUnnamed1476(); - o.urls = buildUnnamed1477(); + o.skills = buildUnnamed1228(); + o.taglines = buildUnnamed1229(); + o.urls = buildUnnamed1230(); } buildCounterPerson--; return o; @@ -996,60 +996,60 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed1453(o.addresses); + checkUnnamed1206(o.addresses); unittest.expect(o.ageRange, unittest.equals('foo')); - checkUnnamed1454(o.biographies); - checkUnnamed1455(o.birthdays); - checkUnnamed1456(o.braggingRights); - checkUnnamed1457(o.coverPhotos); - checkUnnamed1458(o.emailAddresses); + checkUnnamed1207(o.biographies); + checkUnnamed1208(o.birthdays); + checkUnnamed1209(o.braggingRights); + checkUnnamed1210(o.coverPhotos); + checkUnnamed1211(o.emailAddresses); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1459(o.events); - checkUnnamed1460(o.genders); - checkUnnamed1461(o.imClients); - checkUnnamed1462(o.interests); - checkUnnamed1463(o.locales); - checkUnnamed1464(o.memberships); + checkUnnamed1212(o.events); + checkUnnamed1213(o.genders); + checkUnnamed1214(o.imClients); + checkUnnamed1215(o.interests); + checkUnnamed1216(o.locales); + checkUnnamed1217(o.memberships); checkPersonMetadata(o.metadata); - checkUnnamed1465(o.names); - checkUnnamed1466(o.nicknames); - checkUnnamed1467(o.occupations); - checkUnnamed1468(o.organizations); - checkUnnamed1469(o.phoneNumbers); - checkUnnamed1470(o.photos); - checkUnnamed1471(o.relations); - checkUnnamed1472(o.relationshipInterests); - checkUnnamed1473(o.relationshipStatuses); - checkUnnamed1474(o.residences); + checkUnnamed1218(o.names); + checkUnnamed1219(o.nicknames); + checkUnnamed1220(o.occupations); + checkUnnamed1221(o.organizations); + checkUnnamed1222(o.phoneNumbers); + checkUnnamed1223(o.photos); + checkUnnamed1224(o.relations); + checkUnnamed1225(o.relationshipInterests); + checkUnnamed1226(o.relationshipStatuses); + checkUnnamed1227(o.residences); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1475(o.skills); - checkUnnamed1476(o.taglines); - checkUnnamed1477(o.urls); + checkUnnamed1228(o.skills); + checkUnnamed1229(o.taglines); + checkUnnamed1230(o.urls); } buildCounterPerson--; } -buildUnnamed1478() { +buildUnnamed1231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1478(core.List<core.String> o) { +checkUnnamed1231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1479() { +buildUnnamed1232() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1479(core.List<api.Source> o) { +checkUnnamed1232(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -1062,8 +1062,8 @@ if (buildCounterPersonMetadata < 3) { o.deleted = true; o.objectType = "foo"; - o.previousResourceNames = buildUnnamed1478(); - o.sources = buildUnnamed1479(); + o.previousResourceNames = buildUnnamed1231(); + o.sources = buildUnnamed1232(); } buildCounterPersonMetadata--; return o; @@ -1074,8 +1074,8 @@ if (buildCounterPersonMetadata < 3) { unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed1478(o.previousResourceNames); - checkUnnamed1479(o.sources); + checkUnnamed1231(o.previousResourceNames); + checkUnnamed1232(o.sources); } buildCounterPersonMetadata--; } @@ -1333,14 +1333,14 @@ buildCounterUrl--; } -buildUnnamed1480() { +buildUnnamed1233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1480(core.List<core.String> o) { +checkUnnamed1233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1715,7 +1715,7 @@ var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; - var arg_resourceNames = buildUnnamed1480(); + var arg_resourceNames = buildUnnamed1233(); var arg_requestMask_includeField = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/playmoviespartner/v1_test.dart b/generated/googleapis/test/playmoviespartner/v1_test.dart index afdc450..a98f4d3 100644 --- a/generated/googleapis/test/playmoviespartner/v1_test.dart +++ b/generated/googleapis/test/playmoviespartner/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3229() { +buildUnnamed3019() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3229(core.List<core.String> o) { +checkUnnamed3019(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -82,7 +82,7 @@ o.episodeTitleInternalAlias = "foo"; o.formatProfile = "foo"; o.licenseType = "foo"; - o.pphNames = buildUnnamed3229(); + o.pphNames = buildUnnamed3019(); o.priceType = "foo"; o.priceValue = "foo"; o.productId = "foo"; @@ -123,7 +123,7 @@ unittest.expect(o.episodeTitleInternalAlias, unittest.equals('foo')); unittest.expect(o.formatProfile, unittest.equals('foo')); unittest.expect(o.licenseType, unittest.equals('foo')); - checkUnnamed3229(o.pphNames); + checkUnnamed3019(o.pphNames); unittest.expect(o.priceType, unittest.equals('foo')); unittest.expect(o.priceValue, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -147,79 +147,79 @@ buildCounterAvail--; } -buildUnnamed3230() { +buildUnnamed3020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3230(core.List<core.String> o) { +checkUnnamed3020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3231() { +buildUnnamed3021() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3231(core.List<core.String> o) { +checkUnnamed3021(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3232() { +buildUnnamed3022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3232(core.List<core.String> o) { +checkUnnamed3022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3233() { +buildUnnamed3023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3233(core.List<core.String> o) { +checkUnnamed3023(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3234() { +buildUnnamed3024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3234(core.List<core.String> o) { +checkUnnamed3024(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3235() { +buildUnnamed3025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3235(core.List<core.String> o) { +checkUnnamed3025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -230,13 +230,13 @@ var o = new api.Component(); buildCounterComponent++; if (buildCounterComponent < 3) { - o.altCutIds = buildUnnamed3230(); + o.altCutIds = buildUnnamed3020(); o.approvedTime = "foo"; o.componentDetailType = "foo"; o.componentId = "foo"; - o.customIds = buildUnnamed3231(); - o.editLevelEidrs = buildUnnamed3232(); - o.elIds = buildUnnamed3233(); + o.customIds = buildUnnamed3021(); + o.editLevelEidrs = buildUnnamed3022(); + o.elIds = buildUnnamed3023(); o.filename = "foo"; o.language = "foo"; o.name = "foo"; @@ -244,13 +244,13 @@ o.playableUnitType = "foo"; o.pphName = "foo"; o.priority = 42.0; - o.processingErrors = buildUnnamed3234(); + o.processingErrors = buildUnnamed3024(); o.receivedTime = "foo"; o.rejectionNote = "foo"; o.status = "foo"; o.statusDetail = "foo"; o.studioName = "foo"; - o.titleLevelEidrs = buildUnnamed3235(); + o.titleLevelEidrs = buildUnnamed3025(); o.type = "foo"; } buildCounterComponent--; @@ -260,13 +260,13 @@ checkComponent(api.Component o) { buildCounterComponent++; if (buildCounterComponent < 3) { - checkUnnamed3230(o.altCutIds); + checkUnnamed3020(o.altCutIds); unittest.expect(o.approvedTime, unittest.equals('foo')); unittest.expect(o.componentDetailType, unittest.equals('foo')); unittest.expect(o.componentId, unittest.equals('foo')); - checkUnnamed3231(o.customIds); - checkUnnamed3232(o.editLevelEidrs); - checkUnnamed3233(o.elIds); + checkUnnamed3021(o.customIds); + checkUnnamed3022(o.editLevelEidrs); + checkUnnamed3023(o.elIds); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -274,39 +274,39 @@ unittest.expect(o.playableUnitType, unittest.equals('foo')); unittest.expect(o.pphName, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42.0)); - checkUnnamed3234(o.processingErrors); + checkUnnamed3024(o.processingErrors); unittest.expect(o.receivedTime, unittest.equals('foo')); unittest.expect(o.rejectionNote, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); unittest.expect(o.studioName, unittest.equals('foo')); - checkUnnamed3235(o.titleLevelEidrs); + checkUnnamed3025(o.titleLevelEidrs); unittest.expect(o.type, unittest.equals('foo')); } buildCounterComponent--; } -buildUnnamed3236() { +buildUnnamed3026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3236(core.List<core.String> o) { +checkUnnamed3026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3237() { +buildUnnamed3027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3237(core.List<core.String> o) { +checkUnnamed3027(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -322,7 +322,7 @@ o.channelId = "foo"; o.country = "foo"; o.createdTime = "foo"; - o.customIds = buildUnnamed3236(); + o.customIds = buildUnnamed3026(); o.earliestAvailStartTime = "foo"; o.editLevelEidr = "foo"; o.elId = "foo"; @@ -331,7 +331,7 @@ o.name = "foo"; o.normalizedPriority = "foo"; o.playableSequenceId = "foo"; - o.pphNames = buildUnnamed3237(); + o.pphNames = buildUnnamed3027(); o.presentationId = "foo"; o.priority = 42.0; o.status = "foo"; @@ -353,7 +353,7 @@ unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.createdTime, unittest.equals('foo')); - checkUnnamed3236(o.customIds); + checkUnnamed3026(o.customIds); unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); unittest.expect(o.editLevelEidr, unittest.equals('foo')); unittest.expect(o.elId, unittest.equals('foo')); @@ -362,7 +362,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.normalizedPriority, unittest.equals('foo')); unittest.expect(o.playableSequenceId, unittest.equals('foo')); - checkUnnamed3237(o.pphNames); + checkUnnamed3027(o.pphNames); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42.0)); unittest.expect(o.status, unittest.equals('foo')); @@ -375,14 +375,14 @@ buildCounterExperienceLocale--; } -buildUnnamed3238() { +buildUnnamed3028() { var o = new core.List<api.Avail>(); o.add(buildAvail()); o.add(buildAvail()); return o; } -checkUnnamed3238(core.List<api.Avail> o) { +checkUnnamed3028(core.List<api.Avail> o) { unittest.expect(o, unittest.hasLength(2)); checkAvail(o[0]); checkAvail(o[1]); @@ -393,7 +393,7 @@ var o = new api.ListAvailsResponse(); buildCounterListAvailsResponse++; if (buildCounterListAvailsResponse < 3) { - o.avails = buildUnnamed3238(); + o.avails = buildUnnamed3028(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -404,21 +404,21 @@ checkListAvailsResponse(api.ListAvailsResponse o) { buildCounterListAvailsResponse++; if (buildCounterListAvailsResponse < 3) { - checkUnnamed3238(o.avails); + checkUnnamed3028(o.avails); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAvailsResponse--; } -buildUnnamed3239() { +buildUnnamed3029() { var o = new core.List<api.Component>(); o.add(buildComponent()); o.add(buildComponent()); return o; } -checkUnnamed3239(core.List<api.Component> o) { +checkUnnamed3029(core.List<api.Component> o) { unittest.expect(o, unittest.hasLength(2)); checkComponent(o[0]); checkComponent(o[1]); @@ -429,7 +429,7 @@ var o = new api.ListComponentsResponse(); buildCounterListComponentsResponse++; if (buildCounterListComponentsResponse < 3) { - o.components = buildUnnamed3239(); + o.components = buildUnnamed3029(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -440,21 +440,21 @@ checkListComponentsResponse(api.ListComponentsResponse o) { buildCounterListComponentsResponse++; if (buildCounterListComponentsResponse < 3) { - checkUnnamed3239(o.components); + checkUnnamed3029(o.components); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListComponentsResponse--; } -buildUnnamed3240() { +buildUnnamed3030() { var o = new core.List<api.ExperienceLocale>(); o.add(buildExperienceLocale()); o.add(buildExperienceLocale()); return o; } -checkUnnamed3240(core.List<api.ExperienceLocale> o) { +checkUnnamed3030(core.List<api.ExperienceLocale> o) { unittest.expect(o, unittest.hasLength(2)); checkExperienceLocale(o[0]); checkExperienceLocale(o[1]); @@ -465,7 +465,7 @@ var o = new api.ListExperienceLocalesResponse(); buildCounterListExperienceLocalesResponse++; if (buildCounterListExperienceLocalesResponse < 3) { - o.experienceLocales = buildUnnamed3240(); + o.experienceLocales = buildUnnamed3030(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -476,21 +476,21 @@ checkListExperienceLocalesResponse(api.ListExperienceLocalesResponse o) { buildCounterListExperienceLocalesResponse++; if (buildCounterListExperienceLocalesResponse < 3) { - checkUnnamed3240(o.experienceLocales); + checkUnnamed3030(o.experienceLocales); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListExperienceLocalesResponse--; } -buildUnnamed3241() { +buildUnnamed3031() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed3241(core.List<api.Order> o) { +checkUnnamed3031(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -502,7 +502,7 @@ buildCounterListOrdersResponse++; if (buildCounterListOrdersResponse < 3) { o.nextPageToken = "foo"; - o.orders = buildUnnamed3241(); + o.orders = buildUnnamed3031(); o.totalSize = 42; } buildCounterListOrdersResponse--; @@ -513,20 +513,20 @@ buildCounterListOrdersResponse++; if (buildCounterListOrdersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3241(o.orders); + checkUnnamed3031(o.orders); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListOrdersResponse--; } -buildUnnamed3242() { +buildUnnamed3032() { var o = new core.List<api.StoreInfo>(); o.add(buildStoreInfo()); o.add(buildStoreInfo()); return o; } -checkUnnamed3242(core.List<api.StoreInfo> o) { +checkUnnamed3032(core.List<api.StoreInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreInfo(o[0]); checkStoreInfo(o[1]); @@ -538,7 +538,7 @@ buildCounterListStoreInfosResponse++; if (buildCounterListStoreInfosResponse < 3) { o.nextPageToken = "foo"; - o.storeInfos = buildUnnamed3242(); + o.storeInfos = buildUnnamed3032(); o.totalSize = 42; } buildCounterListStoreInfosResponse--; @@ -549,20 +549,20 @@ buildCounterListStoreInfosResponse++; if (buildCounterListStoreInfosResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3242(o.storeInfos); + checkUnnamed3032(o.storeInfos); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListStoreInfosResponse--; } -buildUnnamed3243() { +buildUnnamed3033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3243(core.List<core.String> o) { +checkUnnamed3033(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -576,7 +576,7 @@ o.approvedTime = "foo"; o.channelId = "foo"; o.channelName = "foo"; - o.countries = buildUnnamed3243(); + o.countries = buildUnnamed3033(); o.customId = "foo"; o.earliestAvailStartTime = "foo"; o.episodeName = "foo"; @@ -607,7 +607,7 @@ unittest.expect(o.approvedTime, unittest.equals('foo')); unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.channelName, unittest.equals('foo')); - checkUnnamed3243(o.countries); + checkUnnamed3033(o.countries); unittest.expect(o.customId, unittest.equals('foo')); unittest.expect(o.earliestAvailStartTime, unittest.equals('foo')); unittest.expect(o.episodeName, unittest.equals('foo')); @@ -631,40 +631,40 @@ buildCounterOrder--; } -buildUnnamed3244() { +buildUnnamed3034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3244(core.List<core.String> o) { +checkUnnamed3034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3245() { +buildUnnamed3035() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3245(core.List<core.String> o) { +checkUnnamed3035(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3246() { +buildUnnamed3036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3246(core.List<core.String> o) { +checkUnnamed3036(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -675,7 +675,7 @@ var o = new api.StoreInfo(); buildCounterStoreInfo++; if (buildCounterStoreInfo < 3) { - o.audioTracks = buildUnnamed3244(); + o.audioTracks = buildUnnamed3034(); o.country = "foo"; o.editLevelEidr = "foo"; o.episodeNumber = "foo"; @@ -688,14 +688,14 @@ o.liveTime = "foo"; o.mid = "foo"; o.name = "foo"; - o.pphNames = buildUnnamed3245(); + o.pphNames = buildUnnamed3035(); o.seasonId = "foo"; o.seasonName = "foo"; o.seasonNumber = "foo"; o.showId = "foo"; o.showName = "foo"; o.studioName = "foo"; - o.subtitles = buildUnnamed3246(); + o.subtitles = buildUnnamed3036(); o.titleLevelEidr = "foo"; o.trailerId = "foo"; o.type = "foo"; @@ -708,7 +708,7 @@ checkStoreInfo(api.StoreInfo o) { buildCounterStoreInfo++; if (buildCounterStoreInfo < 3) { - checkUnnamed3244(o.audioTracks); + checkUnnamed3034(o.audioTracks); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.editLevelEidr, unittest.equals('foo')); unittest.expect(o.episodeNumber, unittest.equals('foo')); @@ -721,14 +721,14 @@ unittest.expect(o.liveTime, unittest.equals('foo')); unittest.expect(o.mid, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3245(o.pphNames); + checkUnnamed3035(o.pphNames); unittest.expect(o.seasonId, unittest.equals('foo')); unittest.expect(o.seasonName, unittest.equals('foo')); unittest.expect(o.seasonNumber, unittest.equals('foo')); unittest.expect(o.showId, unittest.equals('foo')); unittest.expect(o.showName, unittest.equals('foo')); unittest.expect(o.studioName, unittest.equals('foo')); - checkUnnamed3246(o.subtitles); + checkUnnamed3036(o.subtitles); unittest.expect(o.titleLevelEidr, unittest.equals('foo')); unittest.expect(o.trailerId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -737,274 +737,274 @@ buildCounterStoreInfo--; } -buildUnnamed3247() { +buildUnnamed3037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3247(core.List<core.String> o) { +checkUnnamed3037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3248() { +buildUnnamed3038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3248(core.List<core.String> o) { +checkUnnamed3038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3249() { +buildUnnamed3039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3249(core.List<core.String> o) { +checkUnnamed3039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3250() { +buildUnnamed3040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3250(core.List<core.String> o) { +checkUnnamed3040(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3251() { +buildUnnamed3041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3251(core.List<core.String> o) { +checkUnnamed3041(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3252() { +buildUnnamed3042() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3252(core.List<core.String> o) { +checkUnnamed3042(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3253() { +buildUnnamed3043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3253(core.List<core.String> o) { +checkUnnamed3043(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3254() { +buildUnnamed3044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3254(core.List<core.String> o) { +checkUnnamed3044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3255() { +buildUnnamed3045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3255(core.List<core.String> o) { +checkUnnamed3045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3256() { +buildUnnamed3046() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3256(core.List<core.String> o) { +checkUnnamed3046(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3257() { +buildUnnamed3047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3257(core.List<core.String> o) { +checkUnnamed3047(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3258() { +buildUnnamed3048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3258(core.List<core.String> o) { +checkUnnamed3048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3259() { +buildUnnamed3049() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3259(core.List<core.String> o) { +checkUnnamed3049(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3260() { +buildUnnamed3050() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3260(core.List<core.String> o) { +checkUnnamed3050(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3261() { +buildUnnamed3051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3261(core.List<core.String> o) { +checkUnnamed3051(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3262() { +buildUnnamed3052() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3262(core.List<core.String> o) { +checkUnnamed3052(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3263() { +buildUnnamed3053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3263(core.List<core.String> o) { +checkUnnamed3053(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3264() { +buildUnnamed3054() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3264(core.List<core.String> o) { +checkUnnamed3054(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3265() { +buildUnnamed3055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3265(core.List<core.String> o) { +checkUnnamed3055(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3266() { +buildUnnamed3056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3266(core.List<core.String> o) { +checkUnnamed3056(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3267() { +buildUnnamed3057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3267(core.List<core.String> o) { +checkUnnamed3057(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1165,13 +1165,13 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3247(); - var arg_studioNames = buildUnnamed3248(); + var arg_pphNames = buildUnnamed3037(); + var arg_studioNames = buildUnnamed3038(); var arg_title = "foo"; - var arg_territories = buildUnnamed3249(); + var arg_territories = buildUnnamed3039(); var arg_altId = "foo"; - var arg_videoIds = buildUnnamed3250(); - var arg_altIds = buildUnnamed3251(); + var arg_videoIds = buildUnnamed3040(); + var arg_altIds = buildUnnamed3041(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1238,11 +1238,11 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3252(); - var arg_studioNames = buildUnnamed3253(); + var arg_pphNames = buildUnnamed3042(); + var arg_studioNames = buildUnnamed3043(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3254(); + var arg_status = buildUnnamed3044(); var arg_customId = "foo"; var arg_inventoryId = "foo"; var arg_presentationId = "foo"; @@ -1443,11 +1443,11 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3255(); - var arg_studioNames = buildUnnamed3256(); + var arg_pphNames = buildUnnamed3045(); + var arg_studioNames = buildUnnamed3046(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3257(); + var arg_status = buildUnnamed3047(); var arg_customId = "foo"; var arg_altCutId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -1571,12 +1571,12 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3258(); - var arg_studioNames = buildUnnamed3259(); + var arg_pphNames = buildUnnamed3048(); + var arg_studioNames = buildUnnamed3049(); var arg_name = "foo"; - var arg_status = buildUnnamed3260(); + var arg_status = buildUnnamed3050(); var arg_customId = "foo"; - var arg_videoIds = buildUnnamed3261(); + var arg_videoIds = buildUnnamed3051(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1642,14 +1642,14 @@ var arg_accountId = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_pphNames = buildUnnamed3262(); - var arg_studioNames = buildUnnamed3263(); + var arg_pphNames = buildUnnamed3052(); + var arg_studioNames = buildUnnamed3053(); var arg_videoId = "foo"; - var arg_countries = buildUnnamed3264(); + var arg_countries = buildUnnamed3054(); var arg_name = "foo"; - var arg_videoIds = buildUnnamed3265(); - var arg_mids = buildUnnamed3266(); - var arg_seasonIds = buildUnnamed3267(); + var arg_videoIds = buildUnnamed3055(); + var arg_mids = buildUnnamed3056(); + var arg_seasonIds = buildUnnamed3057(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/plusdomains/v1_test.dart b/generated/googleapis/test/plusdomains/v1_test.dart index c438be0..7bf4b5d 100644 --- a/generated/googleapis/test/plusdomains/v1_test.dart +++ b/generated/googleapis/test/plusdomains/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1173() { +buildUnnamed924() { var o = new core.List<api.PlusDomainsAclentryResource>(); o.add(buildPlusDomainsAclentryResource()); o.add(buildPlusDomainsAclentryResource()); return o; } -checkUnnamed1173(core.List<api.PlusDomainsAclentryResource> o) { +checkUnnamed924(core.List<api.PlusDomainsAclentryResource> o) { unittest.expect(o, unittest.hasLength(2)); checkPlusDomainsAclentryResource(o[0]); checkPlusDomainsAclentryResource(o[1]); @@ -71,7 +71,7 @@ if (buildCounterAcl < 3) { o.description = "foo"; o.domainRestricted = true; - o.items = buildUnnamed1173(); + o.items = buildUnnamed924(); o.kind = "foo"; } buildCounterAcl--; @@ -83,7 +83,7 @@ if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.domainRestricted, unittest.isTrue); - checkUnnamed1173(o.items); + checkUnnamed924(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -412,14 +412,14 @@ buildCounterActivityObjectAttachmentsPreviewThumbnails--; } -buildUnnamed1174() { +buildUnnamed925() { var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); return o; } -checkUnnamed1174(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { +checkUnnamed925(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsPreviewThumbnails(o[0]); checkActivityObjectAttachmentsPreviewThumbnails(o[1]); @@ -473,14 +473,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed1175() { +buildUnnamed926() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed1175(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed926(core.List<api.ActivityObjectAttachmentsThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsThumbnails(o[0]); checkActivityObjectAttachmentsThumbnails(o[1]); @@ -498,8 +498,8 @@ o.id = "foo"; o.image = buildActivityObjectAttachmentsImage(); o.objectType = "foo"; - o.previewThumbnails = buildUnnamed1174(); - o.thumbnails = buildUnnamed1175(); + o.previewThumbnails = buildUnnamed925(); + o.thumbnails = buildUnnamed926(); o.url = "foo"; } buildCounterActivityObjectAttachments--; @@ -516,21 +516,21 @@ unittest.expect(o.id, unittest.equals('foo')); checkActivityObjectAttachmentsImage(o.image); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed1174(o.previewThumbnails); - checkUnnamed1175(o.thumbnails); + checkUnnamed925(o.previewThumbnails); + checkUnnamed926(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed1176() { +buildUnnamed927() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed1176(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed927(core.List<api.ActivityObjectAttachments> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachments(o[0]); checkActivityObjectAttachments(o[1]); @@ -632,7 +632,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed1176(); + o.attachments = buildUnnamed927(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -651,7 +651,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed1176(o.attachments); + checkUnnamed927(o.attachments); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); @@ -741,14 +741,14 @@ buildCounterActivity--; } -buildUnnamed1177() { +buildUnnamed928() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1177(core.List<api.Activity> o) { +checkUnnamed928(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -761,7 +761,7 @@ if (buildCounterActivityFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1177(); + o.items = buildUnnamed928(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -778,7 +778,7 @@ if (buildCounterActivityFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1177(o.items); + checkUnnamed928(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -816,14 +816,14 @@ buildCounterAudience--; } -buildUnnamed1178() { +buildUnnamed929() { var o = new core.List<api.Audience>(); o.add(buildAudience()); o.add(buildAudience()); return o; } -checkUnnamed1178(core.List<api.Audience> o) { +checkUnnamed929(core.List<api.Audience> o) { unittest.expect(o, unittest.hasLength(2)); checkAudience(o[0]); checkAudience(o[1]); @@ -835,7 +835,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1178(); + o.items = buildUnnamed929(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -848,7 +848,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1178(o.items); + checkUnnamed929(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -906,14 +906,14 @@ buildCounterCircle--; } -buildUnnamed1179() { +buildUnnamed930() { var o = new core.List<api.Circle>(); o.add(buildCircle()); o.add(buildCircle()); return o; } -checkUnnamed1179(core.List<api.Circle> o) { +checkUnnamed930(core.List<api.Circle> o) { unittest.expect(o, unittest.hasLength(2)); checkCircle(o[0]); checkCircle(o[1]); @@ -925,7 +925,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1179(); + o.items = buildUnnamed930(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -941,7 +941,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1179(o.items); + checkUnnamed930(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1078,14 +1078,14 @@ buildCounterCommentInReplyTo--; } -buildUnnamed1180() { +buildUnnamed931() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed1180(core.List<api.CommentInReplyTo> o) { +checkUnnamed931(core.List<api.CommentInReplyTo> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentInReplyTo(o[0]); checkCommentInReplyTo(o[1]); @@ -1141,7 +1141,7 @@ o.actor = buildCommentActor(); o.etag = "foo"; o.id = "foo"; - o.inReplyTo = buildUnnamed1180(); + o.inReplyTo = buildUnnamed931(); o.kind = "foo"; o.object = buildCommentObject(); o.plusoners = buildCommentPlusoners(); @@ -1160,7 +1160,7 @@ checkCommentActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1180(o.inReplyTo); + checkUnnamed931(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -1172,14 +1172,14 @@ buildCounterComment--; } -buildUnnamed1181() { +buildUnnamed932() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1181(core.List<api.Comment> o) { +checkUnnamed932(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1192,7 +1192,7 @@ if (buildCounterCommentFeed < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1181(); + o.items = buildUnnamed932(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1208,7 +1208,7 @@ if (buildCounterCommentFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1181(o.items); + checkUnnamed932(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1281,14 +1281,14 @@ buildCounterMediaExif--; } -buildUnnamed1182() { +buildUnnamed933() { var o = new core.List<api.Videostream>(); o.add(buildVideostream()); o.add(buildVideostream()); return o; } -checkUnnamed1182(core.List<api.Videostream> o) { +checkUnnamed933(core.List<api.Videostream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideostream(o[0]); checkVideostream(o[1]); @@ -1310,7 +1310,7 @@ o.mediaUrl = "foo"; o.published = core.DateTime.parse("2002-02-27T14:01:02"); o.sizeBytes = "foo"; - o.streams = buildUnnamed1182(); + o.streams = buildUnnamed933(); o.summary = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.url = "foo"; @@ -1336,7 +1336,7 @@ unittest.expect(o.mediaUrl, unittest.equals('foo')); unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.sizeBytes, unittest.equals('foo')); - checkUnnamed1182(o.streams); + checkUnnamed933(o.streams); unittest.expect(o.summary, unittest.equals('foo')); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.url, unittest.equals('foo')); @@ -1347,14 +1347,14 @@ buildCounterMedia--; } -buildUnnamed1183() { +buildUnnamed934() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1183(core.List<api.Person> o) { +checkUnnamed934(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -1366,7 +1366,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { o.etag = "foo"; - o.items = buildUnnamed1183(); + o.items = buildUnnamed934(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1381,7 +1381,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1183(o.items); + checkUnnamed934(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1479,14 +1479,14 @@ buildCounterPersonEmails--; } -buildUnnamed1184() { +buildUnnamed935() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed1184(core.List<api.PersonEmails> o) { +checkUnnamed935(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1577,14 +1577,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed1185() { +buildUnnamed936() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed1185(core.List<api.PersonOrganizations> o) { +checkUnnamed936(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1611,14 +1611,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed1186() { +buildUnnamed937() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed1186(core.List<api.PersonPlacesLived> o) { +checkUnnamed937(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1647,14 +1647,14 @@ buildCounterPersonUrls--; } -buildUnnamed1187() { +buildUnnamed938() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed1187(core.List<api.PersonUrls> o) { +checkUnnamed938(core.List<api.PersonUrls> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonUrls(o[0]); checkPersonUrls(o[1]); @@ -1673,7 +1673,7 @@ o.currentLocation = "foo"; o.displayName = "foo"; o.domain = "foo"; - o.emails = buildUnnamed1184(); + o.emails = buildUnnamed935(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1684,14 +1684,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed1185(); - o.placesLived = buildUnnamed1186(); + o.organizations = buildUnnamed936(); + o.placesLived = buildUnnamed937(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed1187(); + o.urls = buildUnnamed938(); o.verified = true; } buildCounterPerson--; @@ -1709,7 +1709,7 @@ unittest.expect(o.currentLocation, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed1184(o.emails); + checkUnnamed935(o.emails); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1720,14 +1720,14 @@ unittest.expect(o.nickname, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed1185(o.organizations); - checkUnnamed1186(o.placesLived); + checkUnnamed936(o.organizations); + checkUnnamed937(o.placesLived); unittest.expect(o.plusOneCount, unittest.equals(42)); unittest.expect(o.relationshipStatus, unittest.equals('foo')); unittest.expect(o.skills, unittest.equals('foo')); unittest.expect(o.tagline, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed1187(o.urls); + checkUnnamed938(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--; @@ -1848,53 +1848,53 @@ buildCounterVideostream--; } -buildUnnamed1188() { +buildUnnamed939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1188(core.List<core.String> o) { +checkUnnamed939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1189() { +buildUnnamed940() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1189(core.List<core.String> o) { +checkUnnamed940(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1190() { +buildUnnamed941() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1190(core.List<core.String> o) { +checkUnnamed941(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1191() { +buildUnnamed942() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1191(core.List<core.String> o) { +checkUnnamed942(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2700,8 +2700,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed1188(); - var arg_userId = buildUnnamed1189(); + var arg_email = buildUnnamed939(); + var arg_userId = buildUnnamed940(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -3020,8 +3020,8 @@ var mock = new HttpServerMock(); api.CirclesResourceApi res = new api.PlusDomainsApi(mock).circles; var arg_circleId = "foo"; - var arg_email = buildUnnamed1190(); - var arg_userId = buildUnnamed1191(); + var arg_email = buildUnnamed941(); + var arg_userId = buildUnnamed942(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/prediction/v1_6_test.dart b/generated/googleapis/test/prediction/v1_6_test.dart index 324f4d5..353e5e1 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed1951() { +buildUnnamed1722() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed1951(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { +checkUnnamed1722(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); @@ -91,7 +91,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { o.count = "foo"; - o.values = buildUnnamed1951(); + o.values = buildUnnamed1722(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -101,7 +101,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed1951(o.values); + checkUnnamed1722(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -173,14 +173,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed1952() { +buildUnnamed1723() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed1952(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed1723(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -230,14 +230,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed1953() { +buildUnnamed1724() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed1953(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed1724(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionOutputFeatureText(o[0]); checkAnalyzeDataDescriptionOutputFeatureText(o[1]); @@ -249,7 +249,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); - o.text = buildUnnamed1953(); + o.text = buildUnnamed1724(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -259,7 +259,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed1953(o.text); + checkUnnamed1724(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -269,7 +269,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed1952(); + o.features = buildUnnamed1723(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -279,72 +279,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed1952(o.features); + checkUnnamed1723(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed1954() { +buildUnnamed1725() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1954(core.Map<core.String, core.String> o) { +checkUnnamed1725(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1955() { +buildUnnamed1726() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed1954()); - o.add(buildUnnamed1954()); + o.add(buildUnnamed1725()); + o.add(buildUnnamed1725()); return o; } -checkUnnamed1955(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed1726(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1954(o[0]); - checkUnnamed1954(o[1]); + checkUnnamed1725(o[0]); + checkUnnamed1725(o[1]); } -buildUnnamed1956() { +buildUnnamed1727() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1956(core.Map<core.String, core.String> o) { +checkUnnamed1727(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1957() { +buildUnnamed1728() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed1956(); - o["y"] = buildUnnamed1956(); + o["x"] = buildUnnamed1727(); + o["y"] = buildUnnamed1727(); return o; } -checkUnnamed1957(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed1728(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1956(o["x"]); - checkUnnamed1956(o["y"]); + checkUnnamed1727(o["x"]); + checkUnnamed1727(o["y"]); } -buildUnnamed1958() { +buildUnnamed1729() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1958(core.Map<core.String, core.String> o) { +checkUnnamed1729(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -355,8 +355,8 @@ var o = new api.AnalyzeModelDescription(); buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - o.confusionMatrix = buildUnnamed1957(); - o.confusionMatrixRowTotals = buildUnnamed1958(); + o.confusionMatrix = buildUnnamed1728(); + o.confusionMatrixRowTotals = buildUnnamed1729(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -366,8 +366,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed1957(o.confusionMatrix); - checkUnnamed1958(o.confusionMatrixRowTotals); + checkUnnamed1728(o.confusionMatrix); + checkUnnamed1729(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -379,7 +379,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed1955(); + o.errors = buildUnnamed1726(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -393,7 +393,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed1955(o.errors); + checkUnnamed1726(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -402,14 +402,14 @@ buildCounterAnalyze--; } -buildUnnamed1959() { +buildUnnamed1730() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1959(core.List<core.Object> o) { +checkUnnamed1730(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -420,7 +420,7 @@ var o = new api.InputInput(); buildCounterInputInput++; if (buildCounterInputInput < 3) { - o.csvInstance = buildUnnamed1959(); + o.csvInstance = buildUnnamed1730(); } buildCounterInputInput--; return o; @@ -429,7 +429,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed1959(o.csvInstance); + checkUnnamed1730(o.csvInstance); } buildCounterInputInput--; } @@ -453,14 +453,14 @@ buildCounterInput--; } -buildUnnamed1960() { +buildUnnamed1731() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1960(core.List<core.Object> o) { +checkUnnamed1731(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -471,7 +471,7 @@ var o = new api.InsertTrainingInstances(); buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - o.csvInstance = buildUnnamed1960(); + o.csvInstance = buildUnnamed1731(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -481,49 +481,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed1960(o.csvInstance); + checkUnnamed1731(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed1961() { +buildUnnamed1732() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed1961(core.List<api.InsertTrainingInstances> o) { +checkUnnamed1732(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed1962() { +buildUnnamed1733() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1962(core.Map<core.String, core.double> o) { +checkUnnamed1733(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); } -buildUnnamed1963() { +buildUnnamed1734() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed1962()); - o.add(buildUnnamed1962()); + o.add(buildUnnamed1733()); + o.add(buildUnnamed1733()); return o; } -checkUnnamed1963(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed1734(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1962(o[0]); - checkUnnamed1962(o[1]); + checkUnnamed1733(o[0]); + checkUnnamed1733(o[1]); } core.int buildCounterInsert = 0; @@ -537,8 +537,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed1961(); - o.utility = buildUnnamed1963(); + o.trainingInstances = buildUnnamed1732(); + o.utility = buildUnnamed1734(); } buildCounterInsert--; return o; @@ -553,8 +553,8 @@ unittest.expect(o.storageDataLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); - checkUnnamed1961(o.trainingInstances); - checkUnnamed1963(o.utility); + checkUnnamed1732(o.trainingInstances); + checkUnnamed1734(o.utility); } buildCounterInsert--; } @@ -627,14 +627,14 @@ buildCounterInsert2--; } -buildUnnamed1964() { +buildUnnamed1735() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed1964(core.List<api.Insert2> o) { +checkUnnamed1735(core.List<api.Insert2> o) { unittest.expect(o, unittest.hasLength(2)); checkInsert2(o[0]); checkInsert2(o[1]); @@ -645,7 +645,7 @@ var o = new api.List(); buildCounterList++; if (buildCounterList < 3) { - o.items = buildUnnamed1964(); + o.items = buildUnnamed1735(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -657,7 +657,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed1964(o.items); + checkUnnamed1735(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -686,14 +686,14 @@ buildCounterOutputOutputMulti--; } -buildUnnamed1965() { +buildUnnamed1736() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed1965(core.List<api.OutputOutputMulti> o) { +checkUnnamed1736(core.List<api.OutputOutputMulti> o) { unittest.expect(o, unittest.hasLength(2)); checkOutputOutputMulti(o[0]); checkOutputOutputMulti(o[1]); @@ -707,7 +707,7 @@ o.id = "foo"; o.kind = "foo"; o.outputLabel = "foo"; - o.outputMulti = buildUnnamed1965(); + o.outputMulti = buildUnnamed1736(); o.outputValue = "foo"; o.selfLink = "foo"; } @@ -721,21 +721,21 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.outputLabel, unittest.equals('foo')); - checkUnnamed1965(o.outputMulti); + checkUnnamed1736(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed1966() { +buildUnnamed1737() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed1966(core.List<core.Object> o) { +checkUnnamed1737(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); @@ -746,7 +746,7 @@ var o = new api.Update(); buildCounterUpdate++; if (buildCounterUpdate < 3) { - o.csvInstance = buildUnnamed1966(); + o.csvInstance = buildUnnamed1737(); o.output = "foo"; } buildCounterUpdate--; @@ -756,7 +756,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed1966(o.csvInstance); + checkUnnamed1737(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterUpdate--;
diff --git a/generated/googleapis/test/pubsub/v1_test.dart b/generated/googleapis/test/pubsub/v1_test.dart index 357842c..da86f9e 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1362() { +buildUnnamed1115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1362(core.List<core.String> o) { +checkUnnamed1115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -69,7 +69,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed1362(); + o.ackIds = buildUnnamed1115(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1362(o.ackIds); + checkUnnamed1115(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1363() { +buildUnnamed1116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1363(core.List<core.String> o) { +checkUnnamed1116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -101,7 +101,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1363(); + o.members = buildUnnamed1116(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1363(o.members); + checkUnnamed1116(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed1364() { +buildUnnamed1117() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1364(core.List<api.Subscription> o) { +checkUnnamed1117(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -153,7 +153,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1364(); + o.subscriptions = buildUnnamed1117(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1364(o.subscriptions); + checkUnnamed1117(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1365() { +buildUnnamed1118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1365(core.List<core.String> o) { +checkUnnamed1118(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1365(); + o.subscriptions = buildUnnamed1118(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1365(o.subscriptions); + checkUnnamed1118(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1366() { +buildUnnamed1119() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1366(core.List<api.Topic> o) { +checkUnnamed1119(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -221,7 +221,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed1366(); + o.topics = buildUnnamed1119(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1366(o.topics); + checkUnnamed1119(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1367() { +buildUnnamed1120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1367(core.List<core.String> o) { +checkUnnamed1120(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -255,7 +255,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed1367(); + o.ackIds = buildUnnamed1120(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -265,7 +265,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1367(o.ackIds); + checkUnnamed1120(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -289,14 +289,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1368() { +buildUnnamed1121() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1368(core.List<api.Binding> o) { +checkUnnamed1121(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -307,7 +307,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1368(); + o.bindings = buildUnnamed1121(); o.etag = "foo"; o.version = 42; } @@ -318,21 +318,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1368(o.bindings); + checkUnnamed1121(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1369() { +buildUnnamed1122() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1369(core.List<api.PubsubMessage> o) { +checkUnnamed1122(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -343,7 +343,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed1369(); + o.messages = buildUnnamed1122(); } buildCounterPublishRequest--; return o; @@ -352,19 +352,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1369(o.messages); + checkUnnamed1122(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1370() { +buildUnnamed1123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1370(core.List<core.String> o) { +checkUnnamed1123(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -375,7 +375,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed1370(); + o.messageIds = buildUnnamed1123(); } buildCounterPublishResponse--; return o; @@ -384,19 +384,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1370(o.messageIds); + checkUnnamed1123(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1371() { +buildUnnamed1124() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1371(core.Map<core.String, core.String> o) { +checkUnnamed1124(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -407,7 +407,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed1371(); + o.attributes = buildUnnamed1124(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -419,7 +419,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1371(o.attributes); + checkUnnamed1124(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -448,14 +448,14 @@ buildCounterPullRequest--; } -buildUnnamed1372() { +buildUnnamed1125() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1372(core.List<api.ReceivedMessage> o) { +checkUnnamed1125(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -466,7 +466,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed1372(); + o.receivedMessages = buildUnnamed1125(); } buildCounterPullResponse--; return o; @@ -475,19 +475,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1372(o.receivedMessages); + checkUnnamed1125(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1373() { +buildUnnamed1126() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1373(core.Map<core.String, core.String> o) { +checkUnnamed1126(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -498,7 +498,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed1373(); + o.attributes = buildUnnamed1126(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -508,7 +508,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1373(o.attributes); + checkUnnamed1126(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -579,14 +579,14 @@ buildCounterSubscription--; } -buildUnnamed1374() { +buildUnnamed1127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1374(core.List<core.String> o) { +checkUnnamed1127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -597,7 +597,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1374(); + o.permissions = buildUnnamed1127(); } buildCounterTestIamPermissionsRequest--; return o; @@ -606,19 +606,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1374(o.permissions); + checkUnnamed1127(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1375() { +buildUnnamed1128() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1375(core.List<core.String> o) { +checkUnnamed1128(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -629,7 +629,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1375(); + o.permissions = buildUnnamed1128(); } buildCounterTestIamPermissionsResponse--; return o; @@ -638,7 +638,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1375(o.permissions); + checkUnnamed1128(o.permissions); } buildCounterTestIamPermissionsResponse--; }
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index 197d9aa..18f7185 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -238,14 +238,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed2376() { +buildUnnamed2164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2376(core.List<core.String> o) { +checkUnnamed2164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -312,7 +312,7 @@ o.skuId = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed2376(); + o.suspensionReasons = buildUnnamed2164(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -337,21 +337,21 @@ unittest.expect(o.skuId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed2376(o.suspensionReasons); + checkUnnamed2164(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed2377() { +buildUnnamed2165() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2377(core.List<api.Subscription> o) { +checkUnnamed2165(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -364,7 +364,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed2377(); + o.subscriptions = buildUnnamed2165(); } buildCounterSubscriptions--; return o; @@ -375,7 +375,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2377(o.subscriptions); + checkUnnamed2165(o.subscriptions); } buildCounterSubscriptions--; }
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart index 5ecc0b4..1d74aea 100644 --- a/generated/googleapis/test/runtimeconfig/v1_test.dart +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -85,14 +85,14 @@ buildCounterEmpty--; } -buildUnnamed2011() { +buildUnnamed1782() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2011(core.List<api.Operation> o) { +checkUnnamed1782(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -104,7 +104,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2011(); + o.operations = buildUnnamed1782(); } buildCounterListOperationsResponse--; return o; @@ -114,32 +114,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2011(o.operations); + checkUnnamed1782(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2012() { +buildUnnamed1783() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2012(core.Map<core.String, core.Object> o) { +checkUnnamed1783(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2013() { +buildUnnamed1784() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2013(core.Map<core.String, core.Object> o) { +checkUnnamed1784(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -152,9 +152,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2012(); + o.metadata = buildUnnamed1783(); o.name = "foo"; - o.response = buildUnnamed2013(); + o.response = buildUnnamed1784(); } buildCounterOperation--; return o; @@ -165,37 +165,37 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2012(o.metadata); + checkUnnamed1783(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2013(o.response); + checkUnnamed1784(o.response); } buildCounterOperation--; } -buildUnnamed2014() { +buildUnnamed1785() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed2014(core.Map<core.String, core.Object> o) { +checkUnnamed1785(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2015() { +buildUnnamed1786() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2014()); - o.add(buildUnnamed2014()); + o.add(buildUnnamed1785()); + o.add(buildUnnamed1785()); return o; } -checkUnnamed2015(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1786(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2014(o[0]); - checkUnnamed2014(o[1]); + checkUnnamed1785(o[0]); + checkUnnamed1785(o[1]); } core.int buildCounterStatus = 0; @@ -204,7 +204,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2015(); + o.details = buildUnnamed1786(); o.message = "foo"; } buildCounterStatus--; @@ -215,7 +215,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2015(o.details); + checkUnnamed1786(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index cbc80d6..e2bc8d0 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -91,14 +91,14 @@ buildCounterClientInfo--; } -buildUnnamed1195() { +buildUnnamed946() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1195(core.List<core.String> o) { +checkUnnamed946(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -112,7 +112,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed1195(); + o.supportedCompressions = buildUnnamed946(); } buildCounterConstraints--; return o; @@ -124,19 +124,19 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1195(o.supportedCompressions); + checkUnnamed946(o.supportedCompressions); } buildCounterConstraints--; } -buildUnnamed1196() { +buildUnnamed947() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed1196(core.List<api.ListUpdateRequest> o) { +checkUnnamed947(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -148,7 +148,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed1196(); + o.listUpdateRequests = buildUnnamed947(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -158,19 +158,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1196(o.listUpdateRequests); + checkUnnamed947(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed1197() { +buildUnnamed948() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed1197(core.List<api.ListUpdateResponse> o) { +checkUnnamed948(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -181,7 +181,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed1197(); + o.listUpdateResponses = buildUnnamed948(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -191,20 +191,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed1197(o.listUpdateResponses); + checkUnnamed948(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed1198() { +buildUnnamed949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1198(core.List<core.String> o) { +checkUnnamed949(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -216,7 +216,7 @@ buildCounterFindFullHashesRequest++; if (buildCounterFindFullHashesRequest < 3) { o.client = buildClientInfo(); - o.clientStates = buildUnnamed1198(); + o.clientStates = buildUnnamed949(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -227,20 +227,20 @@ buildCounterFindFullHashesRequest++; if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1198(o.clientStates); + checkUnnamed949(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed1199() { +buildUnnamed950() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1199(core.List<api.ThreatMatch> o) { +checkUnnamed950(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -251,7 +251,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed1199(); + o.matches = buildUnnamed950(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -262,7 +262,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed1199(o.matches); + checkUnnamed950(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -290,14 +290,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed1200() { +buildUnnamed951() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1200(core.List<api.ThreatMatch> o) { +checkUnnamed951(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -308,7 +308,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed1200(); + o.matches = buildUnnamed951(); } buildCounterFindThreatMatchesResponse--; return o; @@ -317,19 +317,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed1200(o.matches); + checkUnnamed951(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed1201() { +buildUnnamed952() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed1201(core.List<api.ThreatListDescriptor> o) { +checkUnnamed952(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -340,7 +340,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed1201(); + o.threatLists = buildUnnamed952(); } buildCounterListThreatListsResponse--; return o; @@ -349,7 +349,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed1201(o.threatLists); + checkUnnamed952(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -381,27 +381,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed1202() { +buildUnnamed953() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1202(core.List<api.ThreatEntrySet> o) { +checkUnnamed953(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed1203() { +buildUnnamed954() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1203(core.List<api.ThreatEntrySet> o) { +checkUnnamed954(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -412,11 +412,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed1202(); + o.additions = buildUnnamed953(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed1203(); + o.removals = buildUnnamed954(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -428,11 +428,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed1202(o.additions); + checkUnnamed953(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed1203(o.removals); + checkUnnamed954(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -482,14 +482,14 @@ buildCounterRawHashes--; } -buildUnnamed1204() { +buildUnnamed955() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1204(core.List<core.int> o) { +checkUnnamed955(core.List<core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42)); unittest.expect(o[1], unittest.equals(42)); @@ -500,7 +500,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed1204(); + o.indices = buildUnnamed955(); } buildCounterRawIndices--; return o; @@ -509,7 +509,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed1204(o.indices); + checkUnnamed955(o.indices); } buildCounterRawIndices--; } @@ -562,14 +562,14 @@ buildCounterThreatEntry--; } -buildUnnamed1205() { +buildUnnamed956() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed1205(core.List<api.MetadataEntry> o) { +checkUnnamed956(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -580,7 +580,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed1205(); + o.entries = buildUnnamed956(); } buildCounterThreatEntryMetadata--; return o; @@ -589,7 +589,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed1205(o.entries); + checkUnnamed956(o.entries); } buildCounterThreatEntryMetadata--; } @@ -621,53 +621,53 @@ buildCounterThreatEntrySet--; } -buildUnnamed1206() { +buildUnnamed957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1206(core.List<core.String> o) { +checkUnnamed957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1207() { +buildUnnamed958() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed1207(core.List<api.ThreatEntry> o) { +checkUnnamed958(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed1208() { +buildUnnamed959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1208(core.List<core.String> o) { +checkUnnamed959(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1209() { +buildUnnamed960() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1209(core.List<core.String> o) { +checkUnnamed960(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -678,10 +678,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed1206(); - o.threatEntries = buildUnnamed1207(); - o.threatEntryTypes = buildUnnamed1208(); - o.threatTypes = buildUnnamed1209(); + o.platformTypes = buildUnnamed957(); + o.threatEntries = buildUnnamed958(); + o.threatEntryTypes = buildUnnamed959(); + o.threatTypes = buildUnnamed960(); } buildCounterThreatInfo--; return o; @@ -690,10 +690,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed1206(o.platformTypes); - checkUnnamed1207(o.threatEntries); - checkUnnamed1208(o.threatEntryTypes); - checkUnnamed1209(o.threatTypes); + checkUnnamed957(o.platformTypes); + checkUnnamed958(o.threatEntries); + checkUnnamed959(o.threatEntryTypes); + checkUnnamed960(o.threatTypes); } buildCounterThreatInfo--; }
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 4d71ab9..dfa2826 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed935() { +buildUnnamed675() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed935(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed675(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -71,7 +71,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed935(); + o.scriptStackTraceElements = buildUnnamed675(); } buildCounterExecutionError--; return o; @@ -82,19 +82,19 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed935(o.scriptStackTraceElements); + checkUnnamed675(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed936() { +buildUnnamed676() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed936(core.List<core.Object> o) { +checkUnnamed676(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); @@ -107,7 +107,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed936(); + o.parameters = buildUnnamed676(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -119,7 +119,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed936(o.parameters); + checkUnnamed676(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -146,27 +146,27 @@ buildCounterExecutionResponse--; } -buildUnnamed937() { +buildUnnamed677() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed937(core.Map<core.String, core.Object> o) { +checkUnnamed677(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); } -buildUnnamed938() { +buildUnnamed678() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed938(core.Map<core.String, core.Object> o) { +checkUnnamed678(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); @@ -179,9 +179,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed937(); + o.metadata = buildUnnamed677(); o.name = "foo"; - o.response = buildUnnamed938(); + o.response = buildUnnamed678(); } buildCounterOperation--; return o; @@ -192,9 +192,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed937(o.metadata); + checkUnnamed677(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed938(o.response); + checkUnnamed678(o.response); } buildCounterOperation--; } @@ -220,30 +220,30 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed939() { +buildUnnamed679() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed939(core.Map<core.String, core.Object> o) { +checkUnnamed679(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); } -buildUnnamed940() { +buildUnnamed680() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed939()); - o.add(buildUnnamed939()); + o.add(buildUnnamed679()); + o.add(buildUnnamed679()); return o; } -checkUnnamed940(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed680(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed939(o[0]); - checkUnnamed939(o[1]); + checkUnnamed679(o[0]); + checkUnnamed679(o[1]); } core.int buildCounterStatus = 0; @@ -252,7 +252,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed940(); + o.details = buildUnnamed680(); o.message = "foo"; } buildCounterStatus--; @@ -263,7 +263,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed940(o.details); + checkUnnamed680(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index b850d2c..a9ff0ee 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -93,14 +93,14 @@ buildCounterCheckRequest--; } -buildUnnamed1889() { +buildUnnamed1642() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1889(core.List<api.CheckError> o) { +checkUnnamed1642(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -111,7 +111,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1889(); + o.checkErrors = buildUnnamed1642(); o.operationId = "foo"; o.serviceConfigId = "foo"; } @@ -122,21 +122,21 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1889(o.checkErrors); + checkUnnamed1642(o.checkErrors); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterCheckResponse--; } -buildUnnamed1890() { +buildUnnamed1643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1890(core.List<core.String> o) { +checkUnnamed1643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -147,7 +147,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1890(); + o.bucketCounts = buildUnnamed1643(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -164,7 +164,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1890(o.bucketCounts); + checkUnnamed1643(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -177,14 +177,14 @@ buildCounterDistribution--; } -buildUnnamed1891() { +buildUnnamed1644() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1891(core.List<core.double> o) { +checkUnnamed1644(core.List<core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals(42.0)); unittest.expect(o[1], unittest.equals(42.0)); @@ -195,7 +195,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1891(); + o.bounds = buildUnnamed1644(); } buildCounterExplicitBuckets--; return o; @@ -204,7 +204,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1891(o.bounds); + checkUnnamed1644(o.bounds); } buildCounterExplicitBuckets--; } @@ -255,40 +255,40 @@ buildCounterLinearBuckets--; } -buildUnnamed1892() { +buildUnnamed1645() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1892(core.Map<core.String, core.String> o) { +checkUnnamed1645(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1893() { +buildUnnamed1646() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1893(core.Map<core.String, core.Object> o) { +checkUnnamed1646(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1894() { +buildUnnamed1647() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1894(core.Map<core.String, core.Object> o) { +checkUnnamed1647(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -300,11 +300,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1892(); + o.labels = buildUnnamed1645(); o.name = "foo"; - o.protoPayload = buildUnnamed1893(); + o.protoPayload = buildUnnamed1646(); o.severity = "foo"; - o.structPayload = buildUnnamed1894(); + o.structPayload = buildUnnamed1647(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -316,25 +316,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1892(o.labels); + checkUnnamed1645(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1893(o.protoPayload); + checkUnnamed1646(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1894(o.structPayload); + checkUnnamed1647(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1895() { +buildUnnamed1648() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1895(core.Map<core.String, core.String> o) { +checkUnnamed1648(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -350,7 +350,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1895(); + o.labels = buildUnnamed1648(); o.startTime = "foo"; o.stringValue = "foo"; } @@ -366,21 +366,21 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed1895(o.labels); + checkUnnamed1648(o.labels); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterMetricValue--; } -buildUnnamed1896() { +buildUnnamed1649() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1896(core.List<api.MetricValue> o) { +checkUnnamed1649(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -392,7 +392,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1896(); + o.metricValues = buildUnnamed1649(); } buildCounterMetricValueSet--; return o; @@ -402,45 +402,45 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1896(o.metricValues); + checkUnnamed1649(o.metricValues); } buildCounterMetricValueSet--; } -buildUnnamed1897() { +buildUnnamed1650() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1897(core.Map<core.String, core.String> o) { +checkUnnamed1650(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1898() { +buildUnnamed1651() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1898(core.List<api.LogEntry> o) { +checkUnnamed1651(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1899() { +buildUnnamed1652() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1899(core.List<api.MetricValueSet> o) { +checkUnnamed1652(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -454,9 +454,9 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1897(); - o.logEntries = buildUnnamed1898(); - o.metricValueSets = buildUnnamed1899(); + o.labels = buildUnnamed1650(); + o.logEntries = buildUnnamed1651(); + o.metricValueSets = buildUnnamed1652(); o.operationId = "foo"; o.operationName = "foo"; o.startTime = "foo"; @@ -471,9 +471,9 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1897(o.labels); - checkUnnamed1898(o.logEntries); - checkUnnamed1899(o.metricValueSets); + checkUnnamed1650(o.labels); + checkUnnamed1651(o.logEntries); + checkUnnamed1652(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -502,14 +502,14 @@ buildCounterReportError--; } -buildUnnamed1900() { +buildUnnamed1653() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1900(core.List<api.Operation> o) { +checkUnnamed1653(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -520,7 +520,7 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1900(); + o.operations = buildUnnamed1653(); o.serviceConfigId = "foo"; } buildCounterReportRequest--; @@ -530,20 +530,20 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1900(o.operations); + checkUnnamed1653(o.operations); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1901() { +buildUnnamed1654() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1901(core.List<api.ReportError> o) { +checkUnnamed1654(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); @@ -554,7 +554,7 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1901(); + o.reportErrors = buildUnnamed1654(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -564,36 +564,36 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1901(o.reportErrors); + checkUnnamed1654(o.reportErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; } -buildUnnamed1902() { +buildUnnamed1655() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1902(core.Map<core.String, core.Object> o) { +checkUnnamed1655(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1903() { +buildUnnamed1656() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1902()); - o.add(buildUnnamed1902()); + o.add(buildUnnamed1655()); + o.add(buildUnnamed1655()); return o; } -checkUnnamed1903(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1656(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1902(o[0]); - checkUnnamed1902(o[1]); + checkUnnamed1655(o[0]); + checkUnnamed1655(o[1]); } core.int buildCounterStatus = 0; @@ -602,7 +602,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1903(); + o.details = buildUnnamed1656(); o.message = "foo"; } buildCounterStatus--; @@ -613,7 +613,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1903(o.details); + checkUnnamed1656(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart index 06a8d96..0dacc06 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -70,40 +70,40 @@ buildCounterAdvice--; } -buildUnnamed1246() { +buildUnnamed997() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1246(core.List<api.Method> o) { +checkUnnamed997(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1247() { +buildUnnamed998() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1247(core.List<api.Mixin> o) { +checkUnnamed998(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1248() { +buildUnnamed999() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1248(core.List<api.Option> o) { +checkUnnamed999(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -114,10 +114,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed1246(); - o.mixins = buildUnnamed1247(); + o.methods = buildUnnamed997(); + o.mixins = buildUnnamed998(); o.name = "foo"; - o.options = buildUnnamed1248(); + o.options = buildUnnamed999(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -129,10 +129,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1246(o.methods); - checkUnnamed1247(o.mixins); + checkUnnamed997(o.methods); + checkUnnamed998(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1248(o.options); + checkUnnamed999(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -140,14 +140,27 @@ buildCounterApi--; } -buildUnnamed1249() { +buildUnnamed1000() { + var o = new core.List<api.AuditLogConfig>(); + o.add(buildAuditLogConfig()); + o.add(buildAuditLogConfig()); + return o; +} + +checkUnnamed1000(core.List<api.AuditLogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditLogConfig(o[0]); + checkAuditLogConfig(o[1]); +} + +buildUnnamed1001() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1249(core.List<core.String> o) { +checkUnnamed1001(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -158,7 +171,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.exemptedMembers = buildUnnamed1249(); + o.auditLogConfigs = buildUnnamed1000(); + o.exemptedMembers = buildUnnamed1001(); o.service = "foo"; } buildCounterAuditConfig--; @@ -168,12 +182,47 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1249(o.exemptedMembers); + checkUnnamed1000(o.auditLogConfigs); + checkUnnamed1001(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } +buildUnnamed1002() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1002(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterAuditLogConfig = 0; +buildAuditLogConfig() { + var o = new api.AuditLogConfig(); + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed1002(); + o.logType = "foo"; + } + buildCounterAuditLogConfig--; + return o; +} + +checkAuditLogConfig(api.AuditLogConfig o) { + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + checkUnnamed1002(o.exemptedMembers); + unittest.expect(o.logType, unittest.equals('foo')); + } + buildCounterAuditLogConfig--; +} + core.int buildCounterAuthProvider = 0; buildAuthProvider() { var o = new api.AuthProvider(); @@ -220,27 +269,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1250() { +buildUnnamed1003() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1250(core.List<api.AuthProvider> o) { +checkUnnamed1003(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1251() { +buildUnnamed1004() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1251(core.List<api.AuthenticationRule> o) { +checkUnnamed1004(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -251,8 +300,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1250(); - o.rules = buildUnnamed1251(); + o.providers = buildUnnamed1003(); + o.rules = buildUnnamed1004(); } buildCounterAuthentication--; return o; @@ -261,20 +310,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1250(o.providers); - checkUnnamed1251(o.rules); + checkUnnamed1003(o.providers); + checkUnnamed1004(o.rules); } buildCounterAuthentication--; } -buildUnnamed1252() { +buildUnnamed1005() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1252(core.List<api.AuthRequirement> o) { +checkUnnamed1005(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -287,7 +336,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1252(); + o.requirements = buildUnnamed1005(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -299,20 +348,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed1252(o.requirements); + checkUnnamed1005(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed1253() { +buildUnnamed1006() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1253(core.List<api.BackendRule> o) { +checkUnnamed1006(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -323,7 +372,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1253(); + o.rules = buildUnnamed1006(); } buildCounterBackend--; return o; @@ -332,7 +381,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1253(o.rules); + checkUnnamed1006(o.rules); } buildCounterBackend--; } @@ -360,14 +409,14 @@ buildCounterBackendRule--; } -buildUnnamed1254() { +buildUnnamed1007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1254(core.List<core.String> o) { +checkUnnamed1007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -378,7 +427,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1254(); + o.members = buildUnnamed1007(); o.role = "foo"; } buildCounterBinding--; @@ -388,20 +437,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1254(o.members); + checkUnnamed1007(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1255() { +buildUnnamed1008() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed1255(core.List<api.ConfigChange> o) { +checkUnnamed1008(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -412,7 +461,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed1255(); + o.configChanges = buildUnnamed1008(); } buildCounterChangeReport--; return o; @@ -421,7 +470,7 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed1255(o.configChanges); + checkUnnamed1008(o.configChanges); } buildCounterChangeReport--; } @@ -443,14 +492,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1256() { +buildUnnamed1009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1256(core.List<core.String> o) { +checkUnnamed1009(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -466,7 +515,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1256(); + o.values = buildUnnamed1009(); } buildCounterCondition--; return o; @@ -480,19 +529,19 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1256(o.values); + checkUnnamed1009(o.values); } buildCounterCondition--; } -buildUnnamed1257() { +buildUnnamed1010() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed1257(core.List<api.Advice> o) { +checkUnnamed1010(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -503,7 +552,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed1257(); + o.advices = buildUnnamed1010(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -516,7 +565,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed1257(o.advices); + checkUnnamed1010(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -567,14 +616,14 @@ buildCounterConfigRef--; } -buildUnnamed1258() { +buildUnnamed1011() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed1258(core.List<api.ConfigFile> o) { +checkUnnamed1011(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -585,7 +634,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed1258(); + o.files = buildUnnamed1011(); o.id = "foo"; } buildCounterConfigSource--; @@ -595,20 +644,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed1258(o.files); + checkUnnamed1011(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed1259() { +buildUnnamed1012() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1259(core.List<api.ContextRule> o) { +checkUnnamed1012(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -619,7 +668,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1259(); + o.rules = buildUnnamed1012(); } buildCounterContext--; return o; @@ -628,32 +677,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1259(o.rules); + checkUnnamed1012(o.rules); } buildCounterContext--; } -buildUnnamed1260() { +buildUnnamed1013() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1260(core.List<core.String> o) { +checkUnnamed1013(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1261() { +buildUnnamed1014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1261(core.List<core.String> o) { +checkUnnamed1014(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -664,8 +713,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1260(); - o.requested = buildUnnamed1261(); + o.provided = buildUnnamed1013(); + o.requested = buildUnnamed1014(); o.selector = "foo"; } buildCounterContextRule--; @@ -675,8 +724,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1260(o.provided); - checkUnnamed1261(o.requested); + checkUnnamed1013(o.provided); + checkUnnamed1014(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -722,27 +771,27 @@ buildCounterCounterOptions--; } -buildUnnamed1262() { +buildUnnamed1015() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1262(core.List<api.CustomErrorRule> o) { +checkUnnamed1015(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1263() { +buildUnnamed1016() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1263(core.List<core.String> o) { +checkUnnamed1016(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -753,8 +802,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1262(); - o.types = buildUnnamed1263(); + o.rules = buildUnnamed1015(); + o.types = buildUnnamed1016(); } buildCounterCustomError--; return o; @@ -763,8 +812,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1262(o.rules); - checkUnnamed1263(o.types); + checkUnnamed1015(o.rules); + checkUnnamed1016(o.types); } buildCounterCustomError--; } @@ -887,27 +936,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1264() { +buildUnnamed1017() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1264(core.List<api.Page> o) { +checkUnnamed1017(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1265() { +buildUnnamed1018() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1265(core.List<api.DocumentationRule> o) { +checkUnnamed1018(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -920,8 +969,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1264(); - o.rules = buildUnnamed1265(); + o.pages = buildUnnamed1017(); + o.rules = buildUnnamed1018(); o.summary = "foo"; } buildCounterDocumentation--; @@ -933,8 +982,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1264(o.pages); - checkUnnamed1265(o.rules); + checkUnnamed1017(o.pages); + checkUnnamed1018(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -982,40 +1031,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1266() { +buildUnnamed1019() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1266(core.List<core.String> o) { +checkUnnamed1019(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1267() { +buildUnnamed1020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1267(core.List<core.String> o) { +checkUnnamed1020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1268() { +buildUnnamed1021() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1268(core.List<core.String> o) { +checkUnnamed1021(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1026,10 +1075,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1266(); + o.aliases = buildUnnamed1019(); o.allowCors = true; - o.apis = buildUnnamed1267(); - o.features = buildUnnamed1268(); + o.apis = buildUnnamed1020(); + o.features = buildUnnamed1021(); o.name = "foo"; } buildCounterEndpoint--; @@ -1039,36 +1088,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1266(o.aliases); + checkUnnamed1019(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1267(o.apis); - checkUnnamed1268(o.features); + checkUnnamed1020(o.apis); + checkUnnamed1021(o.features); unittest.expect(o.name, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1269() { +buildUnnamed1022() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1269(core.List<api.EnumValue> o) { +checkUnnamed1022(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1270() { +buildUnnamed1023() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1270(core.List<api.Option> o) { +checkUnnamed1023(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1079,9 +1128,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1269(); + o.enumvalue = buildUnnamed1022(); o.name = "foo"; - o.options = buildUnnamed1270(); + o.options = buildUnnamed1023(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1092,23 +1141,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1269(o.enumvalue); + checkUnnamed1022(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1270(o.options); + checkUnnamed1023(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1271() { +buildUnnamed1024() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1271(core.List<api.Option> o) { +checkUnnamed1024(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1121,7 +1170,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1271(); + o.options = buildUnnamed1024(); } buildCounterEnumValue--; return o; @@ -1132,19 +1181,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1271(o.options); + checkUnnamed1024(o.options); } buildCounterEnumValue--; } -buildUnnamed1272() { +buildUnnamed1025() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1272(core.List<api.Option> o) { +checkUnnamed1025(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1162,7 +1211,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1272(); + o.options = buildUnnamed1025(); o.packed = true; o.typeUrl = "foo"; } @@ -1180,34 +1229,34 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1272(o.options); + checkUnnamed1025(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1273() { +buildUnnamed1026() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1273(core.Map<core.String, core.Object> o) { +checkUnnamed1026(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1274() { +buildUnnamed1027() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1274(core.Map<core.String, core.Object> o) { +checkUnnamed1027(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -1218,8 +1267,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed1273(); - o.oldConfig = buildUnnamed1274(); + o.newConfig = buildUnnamed1026(); + o.oldConfig = buildUnnamed1027(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1228,33 +1277,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed1273(o.newConfig); - checkUnnamed1274(o.oldConfig); + checkUnnamed1026(o.newConfig); + checkUnnamed1027(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed1275() { +buildUnnamed1028() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed1275(core.List<api.ChangeReport> o) { +checkUnnamed1028(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed1276() { +buildUnnamed1029() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed1276(core.List<api.Diagnostic> o) { +checkUnnamed1029(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1265,8 +1314,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed1275(); - o.diagnostics = buildUnnamed1276(); + o.changeReports = buildUnnamed1028(); + o.diagnostics = buildUnnamed1029(); o.id = "foo"; o.serviceName = "foo"; } @@ -1277,8 +1326,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed1275(o.changeReports); - checkUnnamed1276(o.diagnostics); + checkUnnamed1028(o.changeReports); + checkUnnamed1029(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1302,14 +1351,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1277() { +buildUnnamed1030() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1277(core.List<api.HttpRule> o) { +checkUnnamed1030(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1320,7 +1369,7 @@ var o = new api.Http(); buildCounterHttp++; if (buildCounterHttp < 3) { - o.rules = buildUnnamed1277(); + o.rules = buildUnnamed1030(); } buildCounterHttp--; return o; @@ -1329,19 +1378,19 @@ checkHttp(api.Http o) { buildCounterHttp++; if (buildCounterHttp < 3) { - checkUnnamed1277(o.rules); + checkUnnamed1030(o.rules); } buildCounterHttp--; } -buildUnnamed1278() { +buildUnnamed1031() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1278(core.List<api.HttpRule> o) { +checkUnnamed1031(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1352,7 +1401,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1278(); + o.additionalBindings = buildUnnamed1031(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1372,7 +1421,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1278(o.additionalBindings); + checkUnnamed1031(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1411,14 +1460,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1279() { +buildUnnamed1032() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1279(core.List<api.Service> o) { +checkUnnamed1032(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1430,7 +1479,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed1279(); + o.serviceConfigs = buildUnnamed1032(); } buildCounterListServiceConfigsResponse--; return o; @@ -1440,19 +1489,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1279(o.serviceConfigs); + checkUnnamed1032(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed1280() { +buildUnnamed1033() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed1280(core.List<api.Rollout> o) { +checkUnnamed1033(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1464,7 +1513,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed1280(); + o.rollouts = buildUnnamed1033(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1474,19 +1523,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1280(o.rollouts); + checkUnnamed1033(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed1281() { +buildUnnamed1034() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed1281(core.List<api.ManagedService> o) { +checkUnnamed1034(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1498,7 +1547,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1281(); + o.services = buildUnnamed1034(); } buildCounterListServicesResponse--; return o; @@ -1508,7 +1557,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1281(o.services); + checkUnnamed1034(o.services); } buildCounterListServicesResponse--; } @@ -1536,14 +1585,14 @@ buildCounterLogConfig--; } -buildUnnamed1282() { +buildUnnamed1035() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1282(core.List<api.LabelDescriptor> o) { +checkUnnamed1035(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1556,7 +1605,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1282(); + o.labels = buildUnnamed1035(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1568,33 +1617,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1282(o.labels); + checkUnnamed1035(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1283() { +buildUnnamed1036() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1283(core.List<api.LoggingDestination> o) { +checkUnnamed1036(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1284() { +buildUnnamed1037() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1284(core.List<api.LoggingDestination> o) { +checkUnnamed1037(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1605,8 +1654,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1283(); - o.producerDestinations = buildUnnamed1284(); + o.consumerDestinations = buildUnnamed1036(); + o.producerDestinations = buildUnnamed1037(); } buildCounterLogging--; return o; @@ -1615,20 +1664,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1283(o.consumerDestinations); - checkUnnamed1284(o.producerDestinations); + checkUnnamed1036(o.consumerDestinations); + checkUnnamed1037(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1285() { +buildUnnamed1038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1285(core.List<core.String> o) { +checkUnnamed1038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1639,7 +1688,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1285(); + o.logs = buildUnnamed1038(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1649,7 +1698,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1285(o.logs); + checkUnnamed1038(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1714,14 +1763,14 @@ buildCounterMediaUpload--; } -buildUnnamed1286() { +buildUnnamed1039() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1286(core.List<api.Option> o) { +checkUnnamed1039(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1733,7 +1782,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1286(); + o.options = buildUnnamed1039(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1748,7 +1797,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1286(o.options); + checkUnnamed1039(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1758,14 +1807,14 @@ buildCounterMethod--; } -buildUnnamed1287() { +buildUnnamed1040() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1287(core.List<api.LabelDescriptor> o) { +checkUnnamed1040(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1778,7 +1827,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1287(); + o.labels = buildUnnamed1040(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1794,7 +1843,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1287(o.labels); + checkUnnamed1040(o.labels); unittest.expect(o.metricKind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1825,14 +1874,14 @@ buildCounterMixin--; } -buildUnnamed1288() { +buildUnnamed1041() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1288(core.List<api.LabelDescriptor> o) { +checkUnnamed1041(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1845,7 +1894,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1288(); + o.labels = buildUnnamed1041(); o.name = "foo"; o.type = "foo"; } @@ -1858,34 +1907,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1288(o.labels); + checkUnnamed1041(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1289() { +buildUnnamed1042() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1289(core.List<api.MonitoringDestination> o) { +checkUnnamed1042(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1290() { +buildUnnamed1043() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1290(core.List<api.MonitoringDestination> o) { +checkUnnamed1043(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1896,8 +1945,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1289(); - o.producerDestinations = buildUnnamed1290(); + o.consumerDestinations = buildUnnamed1042(); + o.producerDestinations = buildUnnamed1043(); } buildCounterMonitoring--; return o; @@ -1906,20 +1955,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1289(o.consumerDestinations); - checkUnnamed1290(o.producerDestinations); + checkUnnamed1042(o.consumerDestinations); + checkUnnamed1043(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1291() { +buildUnnamed1044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1291(core.List<core.String> o) { +checkUnnamed1044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1930,7 +1979,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1291(); + o.metrics = buildUnnamed1044(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1940,7 +1989,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1291(o.metrics); + checkUnnamed1044(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1965,27 +2014,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1292() { +buildUnnamed1045() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1292(core.Map<core.String, core.Object> o) { +checkUnnamed1045(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1293() { +buildUnnamed1046() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1293(core.Map<core.String, core.Object> o) { +checkUnnamed1046(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); @@ -1998,9 +2047,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1292(); + o.metadata = buildUnnamed1045(); o.name = "foo"; - o.response = buildUnnamed1293(); + o.response = buildUnnamed1046(); } buildCounterOperation--; return o; @@ -2011,34 +2060,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1292(o.metadata); + checkUnnamed1045(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1293(o.response); + checkUnnamed1046(o.response); } buildCounterOperation--; } -buildUnnamed1294() { +buildUnnamed1047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1294(core.List<core.String> o) { +checkUnnamed1047(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1295() { +buildUnnamed1048() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1295(core.List<api.Step> o) { +checkUnnamed1048(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2050,9 +2099,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1294(); + o.resourceNames = buildUnnamed1047(); o.startTime = "foo"; - o.steps = buildUnnamed1295(); + o.steps = buildUnnamed1048(); } buildCounterOperationMetadata--; return o; @@ -2062,21 +2111,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1294(o.resourceNames); + checkUnnamed1047(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1295(o.steps); + checkUnnamed1048(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1296() { +buildUnnamed1049() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1296(core.Map<core.String, core.Object> o) { +checkUnnamed1049(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); @@ -2088,7 +2137,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1296(); + o.value = buildUnnamed1049(); } buildCounterOption--; return o; @@ -2098,19 +2147,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1296(o.value); + checkUnnamed1049(o.value); } buildCounterOption--; } -buildUnnamed1297() { +buildUnnamed1050() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1297(core.List<api.Page> o) { +checkUnnamed1050(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2123,7 +2172,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1297(); + o.subpages = buildUnnamed1050(); } buildCounterPage--; return o; @@ -2134,45 +2183,45 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1297(o.subpages); + checkUnnamed1050(o.subpages); } buildCounterPage--; } -buildUnnamed1298() { +buildUnnamed1051() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1298(core.List<api.AuditConfig> o) { +checkUnnamed1051(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1299() { +buildUnnamed1052() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1299(core.List<api.Binding> o) { +checkUnnamed1052(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1300() { +buildUnnamed1053() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1300(core.List<api.Rule> o) { +checkUnnamed1053(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2183,11 +2232,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1298(); - o.bindings = buildUnnamed1299(); + o.auditConfigs = buildUnnamed1051(); + o.bindings = buildUnnamed1052(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1300(); + o.rules = buildUnnamed1053(); o.version = 42; } buildCounterPolicy--; @@ -2197,11 +2246,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1298(o.auditConfigs); - checkUnnamed1299(o.bindings); + checkUnnamed1051(o.auditConfigs); + checkUnnamed1052(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1300(o.rules); + checkUnnamed1053(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -2238,66 +2287,66 @@ buildCounterRollout--; } -buildUnnamed1301() { +buildUnnamed1054() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1301(core.List<api.Condition> o) { +checkUnnamed1054(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1302() { +buildUnnamed1055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1302(core.List<core.String> o) { +checkUnnamed1055(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1303() { +buildUnnamed1056() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1303(core.List<api.LogConfig> o) { +checkUnnamed1056(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1304() { +buildUnnamed1057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1304(core.List<core.String> o) { +checkUnnamed1057(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1305() { +buildUnnamed1058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1305(core.List<core.String> o) { +checkUnnamed1058(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2309,12 +2358,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1301(); + o.conditions = buildUnnamed1054(); o.description = "foo"; - o.in_ = buildUnnamed1302(); - o.logConfig = buildUnnamed1303(); - o.notIn = buildUnnamed1304(); - o.permissions = buildUnnamed1305(); + o.in_ = buildUnnamed1055(); + o.logConfig = buildUnnamed1056(); + o.notIn = buildUnnamed1057(); + o.permissions = buildUnnamed1058(); } buildCounterRule--; return o; @@ -2324,115 +2373,115 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1301(o.conditions); + checkUnnamed1054(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1302(o.in_); - checkUnnamed1303(o.logConfig); - checkUnnamed1304(o.notIn); - checkUnnamed1305(o.permissions); + checkUnnamed1055(o.in_); + checkUnnamed1056(o.logConfig); + checkUnnamed1057(o.notIn); + checkUnnamed1058(o.permissions); } buildCounterRule--; } -buildUnnamed1306() { +buildUnnamed1059() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1306(core.List<api.Api> o) { +checkUnnamed1059(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1307() { +buildUnnamed1060() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1307(core.List<api.Endpoint> o) { +checkUnnamed1060(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1308() { +buildUnnamed1061() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1308(core.List<api.Enum> o) { +checkUnnamed1061(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1309() { +buildUnnamed1062() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1309(core.List<api.LogDescriptor> o) { +checkUnnamed1062(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1310() { +buildUnnamed1063() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1310(core.List<api.MetricDescriptor> o) { +checkUnnamed1063(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1311() { +buildUnnamed1064() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1311(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1064(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1312() { +buildUnnamed1065() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1312(core.List<api.Type> o) { +checkUnnamed1065(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1313() { +buildUnnamed1066() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1313(core.List<api.Type> o) { +checkUnnamed1066(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2443,7 +2492,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1306(); + o.apis = buildUnnamed1059(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -2451,21 +2500,21 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1307(); - o.enums = buildUnnamed1308(); + o.endpoints = buildUnnamed1060(); + o.enums = buildUnnamed1061(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1309(); - o.metrics = buildUnnamed1310(); - o.monitoredResources = buildUnnamed1311(); + o.logs = buildUnnamed1062(); + o.metrics = buildUnnamed1063(); + o.monitoredResources = buildUnnamed1064(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1312(); + o.systemTypes = buildUnnamed1065(); o.title = "foo"; - o.types = buildUnnamed1313(); + o.types = buildUnnamed1066(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -2476,7 +2525,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1306(o.apis); + checkUnnamed1059(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -2484,21 +2533,21 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1307(o.endpoints); - checkUnnamed1308(o.enums); + checkUnnamed1060(o.endpoints); + checkUnnamed1061(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1309(o.logs); - checkUnnamed1310(o.metrics); - checkUnnamed1311(o.monitoredResources); + checkUnnamed1062(o.logs); + checkUnnamed1063(o.metrics); + checkUnnamed1064(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkSystemParameters(o.systemParameters); - checkUnnamed1312(o.systemTypes); + checkUnnamed1065(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1313(o.types); + checkUnnamed1066(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2543,30 +2592,30 @@ buildCounterSourceContext--; } -buildUnnamed1314() { +buildUnnamed1067() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1314(core.Map<core.String, core.Object> o) { +checkUnnamed1067(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1315() { +buildUnnamed1068() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1314()); - o.add(buildUnnamed1314()); + o.add(buildUnnamed1067()); + o.add(buildUnnamed1067()); return o; } -checkUnnamed1315(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1068(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1314(o[0]); - checkUnnamed1314(o[1]); + checkUnnamed1067(o[0]); + checkUnnamed1067(o[1]); } core.int buildCounterStatus = 0; @@ -2575,7 +2624,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1315(); + o.details = buildUnnamed1068(); o.message = "foo"; } buildCounterStatus--; @@ -2586,7 +2635,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1315(o.details); + checkUnnamed1068(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2676,14 +2725,14 @@ buildCounterSystemParameter--; } -buildUnnamed1316() { +buildUnnamed1069() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1316(core.List<api.SystemParameter> o) { +checkUnnamed1069(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2694,7 +2743,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1316(); + o.parameters = buildUnnamed1069(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2704,20 +2753,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1316(o.parameters); + checkUnnamed1069(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1317() { +buildUnnamed1070() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1317(core.List<api.SystemParameterRule> o) { +checkUnnamed1070(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2728,7 +2777,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1317(); + o.rules = buildUnnamed1070(); } buildCounterSystemParameters--; return o; @@ -2737,19 +2786,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1317(o.rules); + checkUnnamed1070(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1318() { +buildUnnamed1071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1318(core.List<core.String> o) { +checkUnnamed1071(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2760,7 +2809,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1318(); + o.permissions = buildUnnamed1071(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2769,19 +2818,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1318(o.permissions); + checkUnnamed1071(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1319() { +buildUnnamed1072() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1319(core.List<core.String> o) { +checkUnnamed1072(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2792,7 +2841,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1319(); + o.permissions = buildUnnamed1072(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2801,19 +2850,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1319(o.permissions); + checkUnnamed1072(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1320() { +buildUnnamed1073() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1320(core.Map<core.String, core.double> o) { +checkUnnamed1073(core.Map<core.String, core.double> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42.0)); unittest.expect(o["y"], unittest.equals(42.0)); @@ -2824,7 +2873,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed1320(); + o.percentages = buildUnnamed1073(); } buildCounterTrafficPercentStrategy--; return o; @@ -2833,45 +2882,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed1320(o.percentages); + checkUnnamed1073(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed1321() { +buildUnnamed1074() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1321(core.List<api.Field> o) { +checkUnnamed1074(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1322() { +buildUnnamed1075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1322(core.List<core.String> o) { +checkUnnamed1075(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1323() { +buildUnnamed1076() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1323(core.List<api.Option> o) { +checkUnnamed1076(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2882,10 +2931,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1321(); + o.fields = buildUnnamed1074(); o.name = "foo"; - o.oneofs = buildUnnamed1322(); - o.options = buildUnnamed1323(); + o.oneofs = buildUnnamed1075(); + o.options = buildUnnamed1076(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2896,10 +2945,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1321(o.fields); + checkUnnamed1074(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1322(o.oneofs); - checkUnnamed1323(o.options); + checkUnnamed1075(o.oneofs); + checkUnnamed1076(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -2925,27 +2974,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed1324() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1324(core.List<core.String> o) { +checkUnnamed1077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1325() { +buildUnnamed1078() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1325(core.List<api.UsageRule> o) { +checkUnnamed1078(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2956,8 +3005,9 @@ var o = new api.Usage(); buildCounterUsage++; if (buildCounterUsage < 3) { - o.requirements = buildUnnamed1324(); - o.rules = buildUnnamed1325(); + o.producerNotificationChannel = "foo"; + o.requirements = buildUnnamed1077(); + o.rules = buildUnnamed1078(); } buildCounterUsage--; return o; @@ -2966,8 +3016,9 @@ checkUsage(api.Usage o) { buildCounterUsage++; if (buildCounterUsage < 3) { - checkUnnamed1324(o.requirements); - checkUnnamed1325(o.rules); + unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); + checkUnnamed1077(o.requirements); + checkUnnamed1078(o.rules); } buildCounterUsage--; } @@ -2993,14 +3044,14 @@ buildCounterUsageRule--; } -buildUnnamed1326() { +buildUnnamed1079() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1326(core.List<api.VisibilityRule> o) { +checkUnnamed1079(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -3011,7 +3062,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1326(); + o.rules = buildUnnamed1079(); } buildCounterVisibility--; return o; @@ -3020,7 +3071,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1326(o.rules); + checkUnnamed1079(o.rules); } buildCounterVisibility--; } @@ -3075,6 +3126,15 @@ }); + unittest.group("obj-schema-AuditLogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditLogConfig(); + var od = new api.AuditLogConfig.fromJson(o.toJson()); + checkAuditLogConfig(od); + }); + }); + + unittest.group("obj-schema-AuthProvider", () { unittest.test("to-json--from-json", () { var o = buildAuthProvider(); @@ -4261,6 +4321,7 @@ var arg_pageSize = 42; var arg_producerProjectId = "foo"; var arg_pageToken = "foo"; + var arg_consumerId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4290,6 +4351,7 @@ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg_producerProjectId)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consumerId)); var h = { @@ -4298,7 +4360,7 @@ var resp = convert.JSON.encode(buildListServicesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(pageSize: arg_pageSize, producerProjectId: arg_producerProjectId, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListServicesResponse response) { + res.list(pageSize: arg_pageSize, producerProjectId: arg_producerProjectId, pageToken: arg_pageToken, consumerId: arg_consumerId).then(unittest.expectAsync(((api.ListServicesResponse response) { checkListServicesResponse(response); }))); });
diff --git a/generated/googleapis/test/sheets/v4_test.dart b/generated/googleapis/test/sheets/v4_test.dart index bf95f22..068ccb6 100644 --- a/generated/googleapis/test/sheets/v4_test.dart +++ b/generated/googleapis/test/sheets/v4_test.dart
@@ -300,14 +300,14 @@ buildCounterAddSheetResponse--; } -buildUnnamed617() { +buildUnnamed356() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed617(core.List<api.RowData> o) { +checkUnnamed356(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -319,7 +319,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { o.fields = "foo"; - o.rows = buildUnnamed617(); + o.rows = buildUnnamed356(); o.sheetId = 42; } buildCounterAppendCellsRequest--; @@ -330,7 +330,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed617(o.rows); + checkUnnamed356(o.rows); unittest.expect(o.sheetId, unittest.equals(42)); } buildCounterAppendCellsRequest--; @@ -539,40 +539,40 @@ buildCounterBasicChartSeries--; } -buildUnnamed618() { +buildUnnamed357() { var o = new core.List<api.BasicChartAxis>(); o.add(buildBasicChartAxis()); o.add(buildBasicChartAxis()); return o; } -checkUnnamed618(core.List<api.BasicChartAxis> o) { +checkUnnamed357(core.List<api.BasicChartAxis> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartAxis(o[0]); checkBasicChartAxis(o[1]); } -buildUnnamed619() { +buildUnnamed358() { var o = new core.List<api.BasicChartDomain>(); o.add(buildBasicChartDomain()); o.add(buildBasicChartDomain()); return o; } -checkUnnamed619(core.List<api.BasicChartDomain> o) { +checkUnnamed358(core.List<api.BasicChartDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartDomain(o[0]); checkBasicChartDomain(o[1]); } -buildUnnamed620() { +buildUnnamed359() { var o = new core.List<api.BasicChartSeries>(); o.add(buildBasicChartSeries()); o.add(buildBasicChartSeries()); return o; } -checkUnnamed620(core.List<api.BasicChartSeries> o) { +checkUnnamed359(core.List<api.BasicChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartSeries(o[0]); checkBasicChartSeries(o[1]); @@ -583,12 +583,12 @@ var o = new api.BasicChartSpec(); buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - o.axis = buildUnnamed618(); + o.axis = buildUnnamed357(); o.chartType = "foo"; - o.domains = buildUnnamed619(); + o.domains = buildUnnamed358(); o.headerCount = 42; o.legendPosition = "foo"; - o.series = buildUnnamed620(); + o.series = buildUnnamed359(); } buildCounterBasicChartSpec--; return o; @@ -597,37 +597,37 @@ checkBasicChartSpec(api.BasicChartSpec o) { buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - checkUnnamed618(o.axis); + checkUnnamed357(o.axis); unittest.expect(o.chartType, unittest.equals('foo')); - checkUnnamed619(o.domains); + checkUnnamed358(o.domains); unittest.expect(o.headerCount, unittest.equals(42)); unittest.expect(o.legendPosition, unittest.equals('foo')); - checkUnnamed620(o.series); + checkUnnamed359(o.series); } buildCounterBasicChartSpec--; } -buildUnnamed621() { +buildUnnamed360() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed621(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed360(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed622() { +buildUnnamed361() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed622(core.List<api.SortSpec> o) { +checkUnnamed361(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -638,9 +638,9 @@ var o = new api.BasicFilter(); buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - o.criteria = buildUnnamed621(); + o.criteria = buildUnnamed360(); o.range = buildGridRange(); - o.sortSpecs = buildUnnamed622(); + o.sortSpecs = buildUnnamed361(); } buildCounterBasicFilter--; return o; @@ -649,21 +649,21 @@ checkBasicFilter(api.BasicFilter o) { buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - checkUnnamed621(o.criteria); + checkUnnamed360(o.criteria); checkGridRange(o.range); - checkUnnamed622(o.sortSpecs); + checkUnnamed361(o.sortSpecs); } buildCounterBasicFilter--; } -buildUnnamed623() { +buildUnnamed362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed623(core.List<core.String> o) { +checkUnnamed362(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -674,7 +674,7 @@ var o = new api.BatchClearValuesRequest(); buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - o.ranges = buildUnnamed623(); + o.ranges = buildUnnamed362(); } buildCounterBatchClearValuesRequest--; return o; @@ -683,19 +683,19 @@ checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - checkUnnamed623(o.ranges); + checkUnnamed362(o.ranges); } buildCounterBatchClearValuesRequest--; } -buildUnnamed624() { +buildUnnamed363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed624(core.List<core.String> o) { +checkUnnamed363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -706,7 +706,7 @@ var o = new api.BatchClearValuesResponse(); buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - o.clearedRanges = buildUnnamed624(); + o.clearedRanges = buildUnnamed363(); o.spreadsheetId = "foo"; } buildCounterBatchClearValuesResponse--; @@ -716,20 +716,20 @@ checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - checkUnnamed624(o.clearedRanges); + checkUnnamed363(o.clearedRanges); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchClearValuesResponse--; } -buildUnnamed625() { +buildUnnamed364() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed625(core.List<api.ValueRange> o) { +checkUnnamed364(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -741,7 +741,7 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed625(); + o.valueRanges = buildUnnamed364(); } buildCounterBatchGetValuesResponse--; return o; @@ -751,30 +751,46 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed625(o.valueRanges); + checkUnnamed364(o.valueRanges); } buildCounterBatchGetValuesResponse--; } -buildUnnamed626() { +buildUnnamed365() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed626(core.List<api.Request> o) { +checkUnnamed365(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); } +buildUnnamed366() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed366(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterBatchUpdateSpreadsheetRequest = 0; buildBatchUpdateSpreadsheetRequest() { var o = new api.BatchUpdateSpreadsheetRequest(); buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - o.requests = buildUnnamed626(); + o.includeSpreadsheetInResponse = true; + o.requests = buildUnnamed365(); + o.responseIncludeGridData = true; + o.responseRanges = buildUnnamed366(); } buildCounterBatchUpdateSpreadsheetRequest--; return o; @@ -783,19 +799,22 @@ checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - checkUnnamed626(o.requests); + unittest.expect(o.includeSpreadsheetInResponse, unittest.isTrue); + checkUnnamed365(o.requests); + unittest.expect(o.responseIncludeGridData, unittest.isTrue); + checkUnnamed366(o.responseRanges); } buildCounterBatchUpdateSpreadsheetRequest--; } -buildUnnamed627() { +buildUnnamed367() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed627(core.List<api.Response> o) { +checkUnnamed367(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -806,8 +825,9 @@ var o = new api.BatchUpdateSpreadsheetResponse(); buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - o.replies = buildUnnamed627(); + o.replies = buildUnnamed367(); o.spreadsheetId = "foo"; + o.updatedSpreadsheet = buildSpreadsheet(); } buildCounterBatchUpdateSpreadsheetResponse--; return o; @@ -816,20 +836,21 @@ checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - checkUnnamed627(o.replies); + checkUnnamed367(o.replies); unittest.expect(o.spreadsheetId, unittest.equals('foo')); + checkSpreadsheet(o.updatedSpreadsheet); } buildCounterBatchUpdateSpreadsheetResponse--; } -buildUnnamed628() { +buildUnnamed368() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed628(core.List<api.ValueRange> o) { +checkUnnamed368(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -840,7 +861,10 @@ var o = new api.BatchUpdateValuesRequest(); buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - o.data = buildUnnamed628(); + o.data = buildUnnamed368(); + o.includeValuesInResponse = true; + o.responseDateTimeRenderOption = "foo"; + o.responseValueRenderOption = "foo"; o.valueInputOption = "foo"; } buildCounterBatchUpdateValuesRequest--; @@ -850,20 +874,23 @@ checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - checkUnnamed628(o.data); + checkUnnamed368(o.data); + unittest.expect(o.includeValuesInResponse, unittest.isTrue); + unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); + unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); unittest.expect(o.valueInputOption, unittest.equals('foo')); } buildCounterBatchUpdateValuesRequest--; } -buildUnnamed629() { +buildUnnamed369() { var o = new core.List<api.UpdateValuesResponse>(); o.add(buildUpdateValuesResponse()); o.add(buildUpdateValuesResponse()); return o; } -checkUnnamed629(core.List<api.UpdateValuesResponse> o) { +checkUnnamed369(core.List<api.UpdateValuesResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesResponse(o[0]); checkUpdateValuesResponse(o[1]); @@ -874,7 +901,7 @@ var o = new api.BatchUpdateValuesResponse(); buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - o.responses = buildUnnamed629(); + o.responses = buildUnnamed369(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -888,7 +915,7 @@ checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - checkUnnamed629(o.responses); + checkUnnamed369(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -898,14 +925,14 @@ buildCounterBatchUpdateValuesResponse--; } -buildUnnamed630() { +buildUnnamed370() { var o = new core.List<api.ConditionValue>(); o.add(buildConditionValue()); o.add(buildConditionValue()); return o; } -checkUnnamed630(core.List<api.ConditionValue> o) { +checkUnnamed370(core.List<api.ConditionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionValue(o[0]); checkConditionValue(o[1]); @@ -917,7 +944,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { o.type = "foo"; - o.values = buildUnnamed630(); + o.values = buildUnnamed370(); } buildCounterBooleanCondition--; return o; @@ -927,7 +954,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed630(o.values); + checkUnnamed370(o.values); } buildCounterBooleanCondition--; } @@ -1001,14 +1028,14 @@ buildCounterBorders--; } -buildUnnamed631() { +buildUnnamed371() { var o = new core.List<api.TextFormatRun>(); o.add(buildTextFormatRun()); o.add(buildTextFormatRun()); return o; } -checkUnnamed631(core.List<api.TextFormatRun> o) { +checkUnnamed371(core.List<api.TextFormatRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTextFormatRun(o[0]); checkTextFormatRun(o[1]); @@ -1026,7 +1053,7 @@ o.hyperlink = "foo"; o.note = "foo"; o.pivotTable = buildPivotTable(); - o.textFormatRuns = buildUnnamed631(); + o.textFormatRuns = buildUnnamed371(); o.userEnteredFormat = buildCellFormat(); o.userEnteredValue = buildExtendedValue(); } @@ -1044,7 +1071,7 @@ unittest.expect(o.hyperlink, unittest.equals('foo')); unittest.expect(o.note, unittest.equals('foo')); checkPivotTable(o.pivotTable); - checkUnnamed631(o.textFormatRuns); + checkUnnamed371(o.textFormatRuns); checkCellFormat(o.userEnteredFormat); checkExtendedValue(o.userEnteredValue); } @@ -1107,14 +1134,14 @@ buildCounterChartData--; } -buildUnnamed632() { +buildUnnamed372() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed632(core.List<api.GridRange> o) { +checkUnnamed372(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1125,7 +1152,7 @@ var o = new api.ChartSourceRange(); buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - o.sources = buildUnnamed632(); + o.sources = buildUnnamed372(); } buildCounterChartSourceRange--; return o; @@ -1134,7 +1161,7 @@ checkChartSourceRange(api.ChartSourceRange o) { buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - checkUnnamed632(o.sources); + checkUnnamed372(o.sources); } buildCounterChartSourceRange--; } @@ -1267,14 +1294,14 @@ buildCounterConditionValue--; } -buildUnnamed633() { +buildUnnamed373() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed633(core.List<api.GridRange> o) { +checkUnnamed373(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1287,7 +1314,7 @@ if (buildCounterConditionalFormatRule < 3) { o.booleanRule = buildBooleanRule(); o.gradientRule = buildGradientRule(); - o.ranges = buildUnnamed633(); + o.ranges = buildUnnamed373(); } buildCounterConditionalFormatRule--; return o; @@ -1298,7 +1325,7 @@ if (buildCounterConditionalFormatRule < 3) { checkBooleanRule(o.booleanRule); checkGradientRule(o.gradientRule); - checkUnnamed633(o.ranges); + checkUnnamed373(o.ranges); } buildCounterConditionalFormatRule--; } @@ -1698,27 +1725,27 @@ buildCounterDuplicateSheetResponse--; } -buildUnnamed634() { +buildUnnamed374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed634(core.List<core.String> o) { +checkUnnamed374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed635() { +buildUnnamed375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed635(core.List<core.String> o) { +checkUnnamed375(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1730,8 +1757,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { o.domainUsersCanEdit = true; - o.groups = buildUnnamed634(); - o.users = buildUnnamed635(); + o.groups = buildUnnamed374(); + o.users = buildUnnamed375(); } buildCounterEditors--; return o; @@ -1741,8 +1768,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { unittest.expect(o.domainUsersCanEdit, unittest.isTrue); - checkUnnamed634(o.groups); - checkUnnamed635(o.users); + checkUnnamed374(o.groups); + checkUnnamed375(o.users); } buildCounterEditors--; } @@ -1841,14 +1868,14 @@ buildCounterExtendedValue--; } -buildUnnamed636() { +buildUnnamed376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed636(core.List<core.String> o) { +checkUnnamed376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1860,7 +1887,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { o.condition = buildBooleanCondition(); - o.hiddenValues = buildUnnamed636(); + o.hiddenValues = buildUnnamed376(); } buildCounterFilterCriteria--; return o; @@ -1870,32 +1897,32 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { checkBooleanCondition(o.condition); - checkUnnamed636(o.hiddenValues); + checkUnnamed376(o.hiddenValues); } buildCounterFilterCriteria--; } -buildUnnamed637() { +buildUnnamed377() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed637(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed377(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed638() { +buildUnnamed378() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed638(core.List<api.SortSpec> o) { +checkUnnamed378(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -1906,11 +1933,11 @@ var o = new api.FilterView(); buildCounterFilterView++; if (buildCounterFilterView < 3) { - o.criteria = buildUnnamed637(); + o.criteria = buildUnnamed377(); o.filterViewId = 42; o.namedRangeId = "foo"; o.range = buildGridRange(); - o.sortSpecs = buildUnnamed638(); + o.sortSpecs = buildUnnamed378(); o.title = "foo"; } buildCounterFilterView--; @@ -1920,11 +1947,11 @@ checkFilterView(api.FilterView o) { buildCounterFilterView++; if (buildCounterFilterView < 3) { - checkUnnamed637(o.criteria); + checkUnnamed377(o.criteria); unittest.expect(o.filterViewId, unittest.equals(42)); unittest.expect(o.namedRangeId, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed638(o.sortSpecs); + checkUnnamed378(o.sortSpecs); unittest.expect(o.title, unittest.equals('foo')); } buildCounterFilterView--; @@ -2038,40 +2065,40 @@ buildCounterGridCoordinate--; } -buildUnnamed639() { +buildUnnamed379() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed639(core.List<api.DimensionProperties> o) { +checkUnnamed379(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); } -buildUnnamed640() { +buildUnnamed380() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed640(core.List<api.RowData> o) { +checkUnnamed380(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); } -buildUnnamed641() { +buildUnnamed381() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed641(core.List<api.DimensionProperties> o) { +checkUnnamed381(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); @@ -2082,9 +2109,9 @@ var o = new api.GridData(); buildCounterGridData++; if (buildCounterGridData < 3) { - o.columnMetadata = buildUnnamed639(); - o.rowData = buildUnnamed640(); - o.rowMetadata = buildUnnamed641(); + o.columnMetadata = buildUnnamed379(); + o.rowData = buildUnnamed380(); + o.rowMetadata = buildUnnamed381(); o.startColumn = 42; o.startRow = 42; } @@ -2095,9 +2122,9 @@ checkGridData(api.GridData o) { buildCounterGridData++; if (buildCounterGridData < 3) { - checkUnnamed639(o.columnMetadata); - checkUnnamed640(o.rowData); - checkUnnamed641(o.rowMetadata); + checkUnnamed379(o.columnMetadata); + checkUnnamed380(o.rowData); + checkUnnamed381(o.rowMetadata); unittest.expect(o.startColumn, unittest.equals(42)); unittest.expect(o.startRow, unittest.equals(42)); } @@ -2394,14 +2421,14 @@ buildCounterPieChartSpec--; } -buildUnnamed642() { +buildUnnamed382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed642(core.List<core.String> o) { +checkUnnamed382(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2412,7 +2439,7 @@ var o = new api.PivotFilterCriteria(); buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - o.visibleValues = buildUnnamed642(); + o.visibleValues = buildUnnamed382(); } buildCounterPivotFilterCriteria--; return o; @@ -2421,19 +2448,19 @@ checkPivotFilterCriteria(api.PivotFilterCriteria o) { buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - checkUnnamed642(o.visibleValues); + checkUnnamed382(o.visibleValues); } buildCounterPivotFilterCriteria--; } -buildUnnamed643() { +buildUnnamed383() { var o = new core.List<api.PivotGroupValueMetadata>(); o.add(buildPivotGroupValueMetadata()); o.add(buildPivotGroupValueMetadata()); return o; } -checkUnnamed643(core.List<api.PivotGroupValueMetadata> o) { +checkUnnamed383(core.List<api.PivotGroupValueMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroupValueMetadata(o[0]); checkPivotGroupValueMetadata(o[1]); @@ -2448,7 +2475,7 @@ o.sortOrder = "foo"; o.sourceColumnOffset = 42; o.valueBucket = buildPivotGroupSortValueBucket(); - o.valueMetadata = buildUnnamed643(); + o.valueMetadata = buildUnnamed383(); } buildCounterPivotGroup--; return o; @@ -2461,19 +2488,19 @@ unittest.expect(o.sortOrder, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); checkPivotGroupSortValueBucket(o.valueBucket); - checkUnnamed643(o.valueMetadata); + checkUnnamed383(o.valueMetadata); } buildCounterPivotGroup--; } -buildUnnamed644() { +buildUnnamed384() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed644(core.List<api.ExtendedValue> o) { +checkUnnamed384(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -2484,7 +2511,7 @@ var o = new api.PivotGroupSortValueBucket(); buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - o.buckets = buildUnnamed644(); + o.buckets = buildUnnamed384(); o.valuesIndex = 42; } buildCounterPivotGroupSortValueBucket--; @@ -2494,7 +2521,7 @@ checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - checkUnnamed644(o.buckets); + checkUnnamed384(o.buckets); unittest.expect(o.valuesIndex, unittest.equals(42)); } buildCounterPivotGroupSortValueBucket--; @@ -2521,53 +2548,53 @@ buildCounterPivotGroupValueMetadata--; } -buildUnnamed645() { +buildUnnamed385() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed645(core.List<api.PivotGroup> o) { +checkUnnamed385(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed646() { +buildUnnamed386() { var o = new core.Map<core.String, api.PivotFilterCriteria>(); o["x"] = buildPivotFilterCriteria(); o["y"] = buildPivotFilterCriteria(); return o; } -checkUnnamed646(core.Map<core.String, api.PivotFilterCriteria> o) { +checkUnnamed386(core.Map<core.String, api.PivotFilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotFilterCriteria(o["x"]); checkPivotFilterCriteria(o["y"]); } -buildUnnamed647() { +buildUnnamed387() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed647(core.List<api.PivotGroup> o) { +checkUnnamed387(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed648() { +buildUnnamed388() { var o = new core.List<api.PivotValue>(); o.add(buildPivotValue()); o.add(buildPivotValue()); return o; } -checkUnnamed648(core.List<api.PivotValue> o) { +checkUnnamed388(core.List<api.PivotValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValue(o[0]); checkPivotValue(o[1]); @@ -2578,12 +2605,12 @@ var o = new api.PivotTable(); buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - o.columns = buildUnnamed645(); - o.criteria = buildUnnamed646(); - o.rows = buildUnnamed647(); + o.columns = buildUnnamed385(); + o.criteria = buildUnnamed386(); + o.rows = buildUnnamed387(); o.source = buildGridRange(); o.valueLayout = "foo"; - o.values = buildUnnamed648(); + o.values = buildUnnamed388(); } buildCounterPivotTable--; return o; @@ -2592,12 +2619,12 @@ checkPivotTable(api.PivotTable o) { buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - checkUnnamed645(o.columns); - checkUnnamed646(o.criteria); - checkUnnamed647(o.rows); + checkUnnamed385(o.columns); + checkUnnamed386(o.criteria); + checkUnnamed387(o.rows); checkGridRange(o.source); unittest.expect(o.valueLayout, unittest.equals('foo')); - checkUnnamed648(o.values); + checkUnnamed388(o.values); } buildCounterPivotTable--; } @@ -2627,14 +2654,14 @@ buildCounterPivotValue--; } -buildUnnamed649() { +buildUnnamed389() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed649(core.List<api.GridRange> o) { +checkUnnamed389(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -2651,7 +2678,7 @@ o.protectedRangeId = 42; o.range = buildGridRange(); o.requestingUserCanEdit = true; - o.unprotectedRanges = buildUnnamed649(); + o.unprotectedRanges = buildUnnamed389(); o.warningOnly = true; } buildCounterProtectedRange--; @@ -2667,7 +2694,7 @@ unittest.expect(o.protectedRangeId, unittest.equals(42)); checkGridRange(o.range); unittest.expect(o.requestingUserCanEdit, unittest.isTrue); - checkUnnamed649(o.unprotectedRanges); + checkUnnamed389(o.unprotectedRanges); unittest.expect(o.warningOnly, unittest.isTrue); } buildCounterProtectedRange--; @@ -2848,14 +2875,14 @@ buildCounterResponse--; } -buildUnnamed650() { +buildUnnamed390() { var o = new core.List<api.CellData>(); o.add(buildCellData()); o.add(buildCellData()); return o; } -checkUnnamed650(core.List<api.CellData> o) { +checkUnnamed390(core.List<api.CellData> o) { unittest.expect(o, unittest.hasLength(2)); checkCellData(o[0]); checkCellData(o[1]); @@ -2866,7 +2893,7 @@ var o = new api.RowData(); buildCounterRowData++; if (buildCounterRowData < 3) { - o.values = buildUnnamed650(); + o.values = buildUnnamed390(); } buildCounterRowData--; return o; @@ -2875,7 +2902,7 @@ checkRowData(api.RowData o) { buildCounterRowData++; if (buildCounterRowData < 3) { - checkUnnamed650(o.values); + checkUnnamed390(o.values); } buildCounterRowData--; } @@ -2920,92 +2947,92 @@ buildCounterSetDataValidationRequest--; } -buildUnnamed651() { +buildUnnamed391() { var o = new core.List<api.BandedRange>(); o.add(buildBandedRange()); o.add(buildBandedRange()); return o; } -checkUnnamed651(core.List<api.BandedRange> o) { +checkUnnamed391(core.List<api.BandedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkBandedRange(o[0]); checkBandedRange(o[1]); } -buildUnnamed652() { +buildUnnamed392() { var o = new core.List<api.EmbeddedChart>(); o.add(buildEmbeddedChart()); o.add(buildEmbeddedChart()); return o; } -checkUnnamed652(core.List<api.EmbeddedChart> o) { +checkUnnamed392(core.List<api.EmbeddedChart> o) { unittest.expect(o, unittest.hasLength(2)); checkEmbeddedChart(o[0]); checkEmbeddedChart(o[1]); } -buildUnnamed653() { +buildUnnamed393() { var o = new core.List<api.ConditionalFormatRule>(); o.add(buildConditionalFormatRule()); o.add(buildConditionalFormatRule()); return o; } -checkUnnamed653(core.List<api.ConditionalFormatRule> o) { +checkUnnamed393(core.List<api.ConditionalFormatRule> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionalFormatRule(o[0]); checkConditionalFormatRule(o[1]); } -buildUnnamed654() { +buildUnnamed394() { var o = new core.List<api.GridData>(); o.add(buildGridData()); o.add(buildGridData()); return o; } -checkUnnamed654(core.List<api.GridData> o) { +checkUnnamed394(core.List<api.GridData> o) { unittest.expect(o, unittest.hasLength(2)); checkGridData(o[0]); checkGridData(o[1]); } -buildUnnamed655() { +buildUnnamed395() { var o = new core.List<api.FilterView>(); o.add(buildFilterView()); o.add(buildFilterView()); return o; } -checkUnnamed655(core.List<api.FilterView> o) { +checkUnnamed395(core.List<api.FilterView> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterView(o[0]); checkFilterView(o[1]); } -buildUnnamed656() { +buildUnnamed396() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed656(core.List<api.GridRange> o) { +checkUnnamed396(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); } -buildUnnamed657() { +buildUnnamed397() { var o = new core.List<api.ProtectedRange>(); o.add(buildProtectedRange()); o.add(buildProtectedRange()); return o; } -checkUnnamed657(core.List<api.ProtectedRange> o) { +checkUnnamed397(core.List<api.ProtectedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkProtectedRange(o[0]); checkProtectedRange(o[1]); @@ -3016,15 +3043,15 @@ var o = new api.Sheet(); buildCounterSheet++; if (buildCounterSheet < 3) { - o.bandedRanges = buildUnnamed651(); + o.bandedRanges = buildUnnamed391(); o.basicFilter = buildBasicFilter(); - o.charts = buildUnnamed652(); - o.conditionalFormats = buildUnnamed653(); - o.data = buildUnnamed654(); - o.filterViews = buildUnnamed655(); - o.merges = buildUnnamed656(); + o.charts = buildUnnamed392(); + o.conditionalFormats = buildUnnamed393(); + o.data = buildUnnamed394(); + o.filterViews = buildUnnamed395(); + o.merges = buildUnnamed396(); o.properties = buildSheetProperties(); - o.protectedRanges = buildUnnamed657(); + o.protectedRanges = buildUnnamed397(); } buildCounterSheet--; return o; @@ -3033,15 +3060,15 @@ checkSheet(api.Sheet o) { buildCounterSheet++; if (buildCounterSheet < 3) { - checkUnnamed651(o.bandedRanges); + checkUnnamed391(o.bandedRanges); checkBasicFilter(o.basicFilter); - checkUnnamed652(o.charts); - checkUnnamed653(o.conditionalFormats); - checkUnnamed654(o.data); - checkUnnamed655(o.filterViews); - checkUnnamed656(o.merges); + checkUnnamed392(o.charts); + checkUnnamed393(o.conditionalFormats); + checkUnnamed394(o.data); + checkUnnamed395(o.filterViews); + checkUnnamed396(o.merges); checkSheetProperties(o.properties); - checkUnnamed657(o.protectedRanges); + checkUnnamed397(o.protectedRanges); } buildCounterSheet--; } @@ -3079,14 +3106,14 @@ buildCounterSheetProperties--; } -buildUnnamed658() { +buildUnnamed398() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed658(core.List<api.SortSpec> o) { +checkUnnamed398(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -3098,7 +3125,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { o.range = buildGridRange(); - o.sortSpecs = buildUnnamed658(); + o.sortSpecs = buildUnnamed398(); } buildCounterSortRangeRequest--; return o; @@ -3108,7 +3135,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { checkGridRange(o.range); - checkUnnamed658(o.sortSpecs); + checkUnnamed398(o.sortSpecs); } buildCounterSortRangeRequest--; } @@ -3157,27 +3184,27 @@ buildCounterSourceAndDestination--; } -buildUnnamed659() { +buildUnnamed399() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed659(core.List<api.NamedRange> o) { +checkUnnamed399(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); } -buildUnnamed660() { +buildUnnamed400() { var o = new core.List<api.Sheet>(); o.add(buildSheet()); o.add(buildSheet()); return o; } -checkUnnamed660(core.List<api.Sheet> o) { +checkUnnamed400(core.List<api.Sheet> o) { unittest.expect(o, unittest.hasLength(2)); checkSheet(o[0]); checkSheet(o[1]); @@ -3188,10 +3215,11 @@ var o = new api.Spreadsheet(); buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - o.namedRanges = buildUnnamed659(); + o.namedRanges = buildUnnamed399(); o.properties = buildSpreadsheetProperties(); - o.sheets = buildUnnamed660(); + o.sheets = buildUnnamed400(); o.spreadsheetId = "foo"; + o.spreadsheetUrl = "foo"; } buildCounterSpreadsheet--; return o; @@ -3200,10 +3228,11 @@ checkSpreadsheet(api.Spreadsheet o) { buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - checkUnnamed659(o.namedRanges); + checkUnnamed399(o.namedRanges); checkSpreadsheetProperties(o.properties); - checkUnnamed660(o.sheets); + checkUnnamed400(o.sheets); unittest.expect(o.spreadsheetId, unittest.equals('foo')); + unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); } buildCounterSpreadsheet--; } @@ -3381,14 +3410,14 @@ buildCounterUpdateBordersRequest--; } -buildUnnamed661() { +buildUnnamed401() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed661(core.List<api.RowData> o) { +checkUnnamed401(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -3401,7 +3430,7 @@ if (buildCounterUpdateCellsRequest < 3) { o.fields = "foo"; o.range = buildGridRange(); - o.rows = buildUnnamed661(); + o.rows = buildUnnamed401(); o.start = buildGridCoordinate(); } buildCounterUpdateCellsRequest--; @@ -3413,7 +3442,7 @@ if (buildCounterUpdateCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed661(o.rows); + checkUnnamed401(o.rows); checkGridCoordinate(o.start); } buildCounterUpdateCellsRequest--; @@ -3668,6 +3697,7 @@ o.spreadsheetId = "foo"; o.updatedCells = 42; o.updatedColumns = 42; + o.updatedData = buildValueRange(); o.updatedRange = "foo"; o.updatedRows = 42; } @@ -3681,36 +3711,37 @@ unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.updatedCells, unittest.equals(42)); unittest.expect(o.updatedColumns, unittest.equals(42)); + checkValueRange(o.updatedData); unittest.expect(o.updatedRange, unittest.equals('foo')); unittest.expect(o.updatedRows, unittest.equals(42)); } buildCounterUpdateValuesResponse--; } -buildUnnamed662() { +buildUnnamed402() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed662(core.List<core.Object> o) { +checkUnnamed402(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed663() { +buildUnnamed403() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed662()); - o.add(buildUnnamed662()); + o.add(buildUnnamed402()); + o.add(buildUnnamed402()); return o; } -checkUnnamed663(core.List<core.List<core.Object>> o) { +checkUnnamed403(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed662(o[0]); - checkUnnamed662(o[1]); + checkUnnamed402(o[0]); + checkUnnamed402(o[1]); } core.int buildCounterValueRange = 0; @@ -3720,7 +3751,7 @@ if (buildCounterValueRange < 3) { o.majorDimension = "foo"; o.range = "foo"; - o.values = buildUnnamed663(); + o.values = buildUnnamed403(); } buildCounterValueRange--; return o; @@ -3731,32 +3762,32 @@ if (buildCounterValueRange < 3) { unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.range, unittest.equals('foo')); - checkUnnamed663(o.values); + checkUnnamed403(o.values); } buildCounterValueRange--; } -buildUnnamed664() { +buildUnnamed404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed664(core.List<core.String> o) { +checkUnnamed404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed665() { +buildUnnamed405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed665(core.List<core.String> o) { +checkUnnamed405(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5042,7 +5073,7 @@ var mock = new HttpServerMock(); api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed664(); + var arg_ranges = buildUnnamed404(); var arg_includeGridData = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -5166,7 +5197,10 @@ var arg_request = buildValueRange(); var arg_spreadsheetId = "foo"; var arg_range = "foo"; + var arg_responseValueRenderOption = "foo"; var arg_valueInputOption = "foo"; + var arg_responseDateTimeRenderOption = "foo"; + var arg_includeValuesInResponse = true; var arg_insertDataOption = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.ValueRange.fromJson(json); @@ -5211,7 +5245,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["responseValueRenderOption"].first, unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_valueInputOption)); + unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest.equals(arg_responseDateTimeRenderOption)); + unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equals("$arg_includeValuesInResponse")); unittest.expect(queryMap["insertDataOption"].first, unittest.equals(arg_insertDataOption)); @@ -5221,7 +5258,7 @@ var resp = convert.JSON.encode(buildAppendValuesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.append(arg_request, arg_spreadsheetId, arg_range, valueInputOption: arg_valueInputOption, insertDataOption: arg_insertDataOption).then(unittest.expectAsync(((api.AppendValuesResponse response) { + res.append(arg_request, arg_spreadsheetId, arg_range, responseValueRenderOption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInResponse: arg_includeValuesInResponse, insertDataOption: arg_insertDataOption).then(unittest.expectAsync(((api.AppendValuesResponse response) { checkAppendValuesResponse(response); }))); }); @@ -5286,7 +5323,7 @@ var mock = new HttpServerMock(); api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed665(); + var arg_ranges = buildUnnamed405(); var arg_valueRenderOption = "foo"; var arg_dateTimeRenderOption = "foo"; var arg_majorDimension = "foo"; @@ -5526,7 +5563,10 @@ var arg_request = buildValueRange(); var arg_spreadsheetId = "foo"; var arg_range = "foo"; + var arg_responseValueRenderOption = "foo"; var arg_valueInputOption = "foo"; + var arg_responseDateTimeRenderOption = "foo"; + var arg_includeValuesInResponse = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.ValueRange.fromJson(json); checkValueRange(obj); @@ -5566,7 +5606,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["responseValueRenderOption"].first, unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_valueInputOption)); + unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest.equals(arg_responseDateTimeRenderOption)); + unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equals("$arg_includeValuesInResponse")); var h = { @@ -5575,7 +5618,7 @@ var resp = convert.JSON.encode(buildUpdateValuesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_spreadsheetId, arg_range, valueInputOption: arg_valueInputOption).then(unittest.expectAsync(((api.UpdateValuesResponse response) { + res.update(arg_request, arg_spreadsheetId, arg_range, responseValueRenderOption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInResponse: arg_includeValuesInResponse).then(unittest.expectAsync(((api.UpdateValuesResponse response) { checkUpdateValuesResponse(response); }))); });
diff --git a/generated/googleapis/test/slides/v1_test.dart b/generated/googleapis/test/slides/v1_test.dart new file mode 100644 index 0000000..210166c --- /dev/null +++ b/generated/googleapis/test/slides/v1_test.dart
@@ -0,0 +1,3842 @@ +library googleapis.slides.v1.test; + +import "dart:core" as core; +import "dart:collection" as collection; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:http/testing.dart' as http_testing; +import 'package:unittest/unittest.dart' as unittest; + +import 'package:googleapis/slides/v1.dart' as api; + +class HttpServerMock extends http.BaseClient { + core.Function _callback; + core.bool _expectJson; + + void register(core.Function callback, core.bool expectJson) { + _callback = callback; + _expectJson = expectJson; + } + + async.Future<http.StreamedResponse> send(http.BaseRequest request) { + if (_expectJson) { + return request.finalize() + .transform(convert.UTF8.decoder) + .join('') + .then((core.String jsonString) { + if (jsonString.isEmpty) { + return _callback(request, null); + } else { + return _callback(request, convert.JSON.decode(jsonString)); + } + }); + } else { + var stream = request.finalize(); + if (stream == null) { + return _callback(request, []); + } else { + return stream.toBytes().then((data) { + return _callback(request, data); + }); + } + } + } +} + +http.StreamedResponse stringResponse( + core.int status, core.Map headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterAffineTransform = 0; +buildAffineTransform() { + var o = new api.AffineTransform(); + buildCounterAffineTransform++; + if (buildCounterAffineTransform < 3) { + o.scaleX = 42.0; + o.scaleY = 42.0; + o.shearX = 42.0; + o.shearY = 42.0; + o.translateX = 42.0; + o.translateY = 42.0; + o.unit = "foo"; + } + buildCounterAffineTransform--; + return o; +} + +checkAffineTransform(api.AffineTransform o) { + buildCounterAffineTransform++; + if (buildCounterAffineTransform < 3) { + unittest.expect(o.scaleX, unittest.equals(42.0)); + unittest.expect(o.scaleY, unittest.equals(42.0)); + unittest.expect(o.shearX, unittest.equals(42.0)); + unittest.expect(o.shearY, unittest.equals(42.0)); + unittest.expect(o.translateX, unittest.equals(42.0)); + unittest.expect(o.translateY, unittest.equals(42.0)); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterAffineTransform--; +} + +core.int buildCounterAutoText = 0; +buildAutoText() { + var o = new api.AutoText(); + buildCounterAutoText++; + if (buildCounterAutoText < 3) { + o.content = "foo"; + o.style = buildTextStyle(); + o.type = "foo"; + } + buildCounterAutoText--; + return o; +} + +checkAutoText(api.AutoText o) { + buildCounterAutoText++; + if (buildCounterAutoText < 3) { + unittest.expect(o.content, unittest.equals('foo')); + checkTextStyle(o.style); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterAutoText--; +} + +buildUnnamed1657() { + var o = new core.List<api.Request>(); + o.add(buildRequest()); + o.add(buildRequest()); + return o; +} + +checkUnnamed1657(core.List<api.Request> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRequest(o[0]); + checkRequest(o[1]); +} + +core.int buildCounterBatchUpdatePresentationRequest = 0; +buildBatchUpdatePresentationRequest() { + var o = new api.BatchUpdatePresentationRequest(); + buildCounterBatchUpdatePresentationRequest++; + if (buildCounterBatchUpdatePresentationRequest < 3) { + o.requests = buildUnnamed1657(); + } + buildCounterBatchUpdatePresentationRequest--; + return o; +} + +checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { + buildCounterBatchUpdatePresentationRequest++; + if (buildCounterBatchUpdatePresentationRequest < 3) { + checkUnnamed1657(o.requests); + } + buildCounterBatchUpdatePresentationRequest--; +} + +buildUnnamed1658() { + var o = new core.List<api.Response>(); + o.add(buildResponse()); + o.add(buildResponse()); + return o; +} + +checkUnnamed1658(core.List<api.Response> o) { + unittest.expect(o, unittest.hasLength(2)); + checkResponse(o[0]); + checkResponse(o[1]); +} + +core.int buildCounterBatchUpdatePresentationResponse = 0; +buildBatchUpdatePresentationResponse() { + var o = new api.BatchUpdatePresentationResponse(); + buildCounterBatchUpdatePresentationResponse++; + if (buildCounterBatchUpdatePresentationResponse < 3) { + o.presentationId = "foo"; + o.replies = buildUnnamed1658(); + } + buildCounterBatchUpdatePresentationResponse--; + return o; +} + +checkBatchUpdatePresentationResponse(api.BatchUpdatePresentationResponse o) { + buildCounterBatchUpdatePresentationResponse++; + if (buildCounterBatchUpdatePresentationResponse < 3) { + unittest.expect(o.presentationId, unittest.equals('foo')); + checkUnnamed1658(o.replies); + } + buildCounterBatchUpdatePresentationResponse--; +} + +core.int buildCounterBullet = 0; +buildBullet() { + var o = new api.Bullet(); + buildCounterBullet++; + if (buildCounterBullet < 3) { + o.bulletStyle = buildTextStyle(); + o.glyph = "foo"; + o.listId = "foo"; + o.nestingLevel = 42; + } + buildCounterBullet--; + return o; +} + +checkBullet(api.Bullet o) { + buildCounterBullet++; + if (buildCounterBullet < 3) { + checkTextStyle(o.bulletStyle); + unittest.expect(o.glyph, unittest.equals('foo')); + unittest.expect(o.listId, unittest.equals('foo')); + unittest.expect(o.nestingLevel, unittest.equals(42)); + } + buildCounterBullet--; +} + +buildUnnamed1659() { + var o = new core.List<api.ThemeColorPair>(); + o.add(buildThemeColorPair()); + o.add(buildThemeColorPair()); + return o; +} + +checkUnnamed1659(core.List<api.ThemeColorPair> o) { + unittest.expect(o, unittest.hasLength(2)); + checkThemeColorPair(o[0]); + checkThemeColorPair(o[1]); +} + +core.int buildCounterColorScheme = 0; +buildColorScheme() { + var o = new api.ColorScheme(); + buildCounterColorScheme++; + if (buildCounterColorScheme < 3) { + o.colors = buildUnnamed1659(); + } + buildCounterColorScheme--; + return o; +} + +checkColorScheme(api.ColorScheme o) { + buildCounterColorScheme++; + if (buildCounterColorScheme < 3) { + checkUnnamed1659(o.colors); + } + buildCounterColorScheme--; +} + +core.int buildCounterColorStop = 0; +buildColorStop() { + var o = new api.ColorStop(); + buildCounterColorStop++; + if (buildCounterColorStop < 3) { + o.alpha = 42.0; + o.color = buildOpaqueColor(); + o.position = 42.0; + } + buildCounterColorStop--; + return o; +} + +checkColorStop(api.ColorStop o) { + buildCounterColorStop++; + if (buildCounterColorStop < 3) { + unittest.expect(o.alpha, unittest.equals(42.0)); + checkOpaqueColor(o.color); + unittest.expect(o.position, unittest.equals(42.0)); + } + buildCounterColorStop--; +} + +core.int buildCounterCreateImageRequest = 0; +buildCreateImageRequest() { + var o = new api.CreateImageRequest(); + buildCounterCreateImageRequest++; + if (buildCounterCreateImageRequest < 3) { + o.elementProperties = buildPageElementProperties(); + o.objectId = "foo"; + o.url = "foo"; + } + buildCounterCreateImageRequest--; + return o; +} + +checkCreateImageRequest(api.CreateImageRequest o) { + buildCounterCreateImageRequest++; + if (buildCounterCreateImageRequest < 3) { + checkPageElementProperties(o.elementProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterCreateImageRequest--; +} + +core.int buildCounterCreateImageResponse = 0; +buildCreateImageResponse() { + var o = new api.CreateImageResponse(); + buildCounterCreateImageResponse++; + if (buildCounterCreateImageResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateImageResponse--; + return o; +} + +checkCreateImageResponse(api.CreateImageResponse o) { + buildCounterCreateImageResponse++; + if (buildCounterCreateImageResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateImageResponse--; +} + +core.int buildCounterCreateLineRequest = 0; +buildCreateLineRequest() { + var o = new api.CreateLineRequest(); + buildCounterCreateLineRequest++; + if (buildCounterCreateLineRequest < 3) { + o.elementProperties = buildPageElementProperties(); + o.lineCategory = "foo"; + o.objectId = "foo"; + } + buildCounterCreateLineRequest--; + return o; +} + +checkCreateLineRequest(api.CreateLineRequest o) { + buildCounterCreateLineRequest++; + if (buildCounterCreateLineRequest < 3) { + checkPageElementProperties(o.elementProperties); + unittest.expect(o.lineCategory, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateLineRequest--; +} + +core.int buildCounterCreateLineResponse = 0; +buildCreateLineResponse() { + var o = new api.CreateLineResponse(); + buildCounterCreateLineResponse++; + if (buildCounterCreateLineResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateLineResponse--; + return o; +} + +checkCreateLineResponse(api.CreateLineResponse o) { + buildCounterCreateLineResponse++; + if (buildCounterCreateLineResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateLineResponse--; +} + +core.int buildCounterCreateParagraphBulletsRequest = 0; +buildCreateParagraphBulletsRequest() { + var o = new api.CreateParagraphBulletsRequest(); + buildCounterCreateParagraphBulletsRequest++; + if (buildCounterCreateParagraphBulletsRequest < 3) { + o.bulletPreset = "foo"; + o.cellLocation = buildTableCellLocation(); + o.objectId = "foo"; + o.textRange = buildRange(); + } + buildCounterCreateParagraphBulletsRequest--; + return o; +} + +checkCreateParagraphBulletsRequest(api.CreateParagraphBulletsRequest o) { + buildCounterCreateParagraphBulletsRequest++; + if (buildCounterCreateParagraphBulletsRequest < 3) { + unittest.expect(o.bulletPreset, unittest.equals('foo')); + checkTableCellLocation(o.cellLocation); + unittest.expect(o.objectId, unittest.equals('foo')); + checkRange(o.textRange); + } + buildCounterCreateParagraphBulletsRequest--; +} + +core.int buildCounterCreateShapeRequest = 0; +buildCreateShapeRequest() { + var o = new api.CreateShapeRequest(); + buildCounterCreateShapeRequest++; + if (buildCounterCreateShapeRequest < 3) { + o.elementProperties = buildPageElementProperties(); + o.objectId = "foo"; + o.shapeType = "foo"; + } + buildCounterCreateShapeRequest--; + return o; +} + +checkCreateShapeRequest(api.CreateShapeRequest o) { + buildCounterCreateShapeRequest++; + if (buildCounterCreateShapeRequest < 3) { + checkPageElementProperties(o.elementProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.shapeType, unittest.equals('foo')); + } + buildCounterCreateShapeRequest--; +} + +core.int buildCounterCreateShapeResponse = 0; +buildCreateShapeResponse() { + var o = new api.CreateShapeResponse(); + buildCounterCreateShapeResponse++; + if (buildCounterCreateShapeResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateShapeResponse--; + return o; +} + +checkCreateShapeResponse(api.CreateShapeResponse o) { + buildCounterCreateShapeResponse++; + if (buildCounterCreateShapeResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateShapeResponse--; +} + +core.int buildCounterCreateSheetsChartRequest = 0; +buildCreateSheetsChartRequest() { + var o = new api.CreateSheetsChartRequest(); + buildCounterCreateSheetsChartRequest++; + if (buildCounterCreateSheetsChartRequest < 3) { + o.chartId = 42; + o.elementProperties = buildPageElementProperties(); + o.linkingMode = "foo"; + o.objectId = "foo"; + o.spreadsheetId = "foo"; + } + buildCounterCreateSheetsChartRequest--; + return o; +} + +checkCreateSheetsChartRequest(api.CreateSheetsChartRequest o) { + buildCounterCreateSheetsChartRequest++; + if (buildCounterCreateSheetsChartRequest < 3) { + unittest.expect(o.chartId, unittest.equals(42)); + checkPageElementProperties(o.elementProperties); + unittest.expect(o.linkingMode, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterCreateSheetsChartRequest--; +} + +core.int buildCounterCreateSheetsChartResponse = 0; +buildCreateSheetsChartResponse() { + var o = new api.CreateSheetsChartResponse(); + buildCounterCreateSheetsChartResponse++; + if (buildCounterCreateSheetsChartResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateSheetsChartResponse--; + return o; +} + +checkCreateSheetsChartResponse(api.CreateSheetsChartResponse o) { + buildCounterCreateSheetsChartResponse++; + if (buildCounterCreateSheetsChartResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateSheetsChartResponse--; +} + +core.int buildCounterCreateSlideRequest = 0; +buildCreateSlideRequest() { + var o = new api.CreateSlideRequest(); + buildCounterCreateSlideRequest++; + if (buildCounterCreateSlideRequest < 3) { + o.insertionIndex = 42; + o.objectId = "foo"; + o.slideLayoutReference = buildLayoutReference(); + } + buildCounterCreateSlideRequest--; + return o; +} + +checkCreateSlideRequest(api.CreateSlideRequest o) { + buildCounterCreateSlideRequest++; + if (buildCounterCreateSlideRequest < 3) { + unittest.expect(o.insertionIndex, unittest.equals(42)); + unittest.expect(o.objectId, unittest.equals('foo')); + checkLayoutReference(o.slideLayoutReference); + } + buildCounterCreateSlideRequest--; +} + +core.int buildCounterCreateSlideResponse = 0; +buildCreateSlideResponse() { + var o = new api.CreateSlideResponse(); + buildCounterCreateSlideResponse++; + if (buildCounterCreateSlideResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateSlideResponse--; + return o; +} + +checkCreateSlideResponse(api.CreateSlideResponse o) { + buildCounterCreateSlideResponse++; + if (buildCounterCreateSlideResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateSlideResponse--; +} + +core.int buildCounterCreateTableRequest = 0; +buildCreateTableRequest() { + var o = new api.CreateTableRequest(); + buildCounterCreateTableRequest++; + if (buildCounterCreateTableRequest < 3) { + o.columns = 42; + o.elementProperties = buildPageElementProperties(); + o.objectId = "foo"; + o.rows = 42; + } + buildCounterCreateTableRequest--; + return o; +} + +checkCreateTableRequest(api.CreateTableRequest o) { + buildCounterCreateTableRequest++; + if (buildCounterCreateTableRequest < 3) { + unittest.expect(o.columns, unittest.equals(42)); + checkPageElementProperties(o.elementProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.rows, unittest.equals(42)); + } + buildCounterCreateTableRequest--; +} + +core.int buildCounterCreateTableResponse = 0; +buildCreateTableResponse() { + var o = new api.CreateTableResponse(); + buildCounterCreateTableResponse++; + if (buildCounterCreateTableResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateTableResponse--; + return o; +} + +checkCreateTableResponse(api.CreateTableResponse o) { + buildCounterCreateTableResponse++; + if (buildCounterCreateTableResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateTableResponse--; +} + +core.int buildCounterCreateVideoRequest = 0; +buildCreateVideoRequest() { + var o = new api.CreateVideoRequest(); + buildCounterCreateVideoRequest++; + if (buildCounterCreateVideoRequest < 3) { + o.elementProperties = buildPageElementProperties(); + o.id = "foo"; + o.objectId = "foo"; + o.source = "foo"; + } + buildCounterCreateVideoRequest--; + return o; +} + +checkCreateVideoRequest(api.CreateVideoRequest o) { + buildCounterCreateVideoRequest++; + if (buildCounterCreateVideoRequest < 3) { + checkPageElementProperties(o.elementProperties); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.source, unittest.equals('foo')); + } + buildCounterCreateVideoRequest--; +} + +core.int buildCounterCreateVideoResponse = 0; +buildCreateVideoResponse() { + var o = new api.CreateVideoResponse(); + buildCounterCreateVideoResponse++; + if (buildCounterCreateVideoResponse < 3) { + o.objectId = "foo"; + } + buildCounterCreateVideoResponse--; + return o; +} + +checkCreateVideoResponse(api.CreateVideoResponse o) { + buildCounterCreateVideoResponse++; + if (buildCounterCreateVideoResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterCreateVideoResponse--; +} + +core.int buildCounterCropProperties = 0; +buildCropProperties() { + var o = new api.CropProperties(); + buildCounterCropProperties++; + if (buildCounterCropProperties < 3) { + o.angle = 42.0; + o.bottomOffset = 42.0; + o.leftOffset = 42.0; + o.rightOffset = 42.0; + o.topOffset = 42.0; + } + buildCounterCropProperties--; + return o; +} + +checkCropProperties(api.CropProperties o) { + buildCounterCropProperties++; + if (buildCounterCropProperties < 3) { + unittest.expect(o.angle, unittest.equals(42.0)); + unittest.expect(o.bottomOffset, unittest.equals(42.0)); + unittest.expect(o.leftOffset, unittest.equals(42.0)); + unittest.expect(o.rightOffset, unittest.equals(42.0)); + unittest.expect(o.topOffset, unittest.equals(42.0)); + } + buildCounterCropProperties--; +} + +core.int buildCounterDeleteObjectRequest = 0; +buildDeleteObjectRequest() { + var o = new api.DeleteObjectRequest(); + buildCounterDeleteObjectRequest++; + if (buildCounterDeleteObjectRequest < 3) { + o.objectId = "foo"; + } + buildCounterDeleteObjectRequest--; + return o; +} + +checkDeleteObjectRequest(api.DeleteObjectRequest o) { + buildCounterDeleteObjectRequest++; + if (buildCounterDeleteObjectRequest < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterDeleteObjectRequest--; +} + +core.int buildCounterDeleteTableColumnRequest = 0; +buildDeleteTableColumnRequest() { + var o = new api.DeleteTableColumnRequest(); + buildCounterDeleteTableColumnRequest++; + if (buildCounterDeleteTableColumnRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.tableObjectId = "foo"; + } + buildCounterDeleteTableColumnRequest--; + return o; +} + +checkDeleteTableColumnRequest(api.DeleteTableColumnRequest o) { + buildCounterDeleteTableColumnRequest++; + if (buildCounterDeleteTableColumnRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.tableObjectId, unittest.equals('foo')); + } + buildCounterDeleteTableColumnRequest--; +} + +core.int buildCounterDeleteTableRowRequest = 0; +buildDeleteTableRowRequest() { + var o = new api.DeleteTableRowRequest(); + buildCounterDeleteTableRowRequest++; + if (buildCounterDeleteTableRowRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.tableObjectId = "foo"; + } + buildCounterDeleteTableRowRequest--; + return o; +} + +checkDeleteTableRowRequest(api.DeleteTableRowRequest o) { + buildCounterDeleteTableRowRequest++; + if (buildCounterDeleteTableRowRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.tableObjectId, unittest.equals('foo')); + } + buildCounterDeleteTableRowRequest--; +} + +core.int buildCounterDeleteTextRequest = 0; +buildDeleteTextRequest() { + var o = new api.DeleteTextRequest(); + buildCounterDeleteTextRequest++; + if (buildCounterDeleteTextRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.objectId = "foo"; + o.textRange = buildRange(); + } + buildCounterDeleteTextRequest--; + return o; +} + +checkDeleteTextRequest(api.DeleteTextRequest o) { + buildCounterDeleteTextRequest++; + if (buildCounterDeleteTextRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.objectId, unittest.equals('foo')); + checkRange(o.textRange); + } + buildCounterDeleteTextRequest--; +} + +core.int buildCounterDimension = 0; +buildDimension() { + var o = new api.Dimension(); + buildCounterDimension++; + if (buildCounterDimension < 3) { + o.magnitude = 42.0; + o.unit = "foo"; + } + buildCounterDimension--; + return o; +} + +checkDimension(api.Dimension o) { + buildCounterDimension++; + if (buildCounterDimension < 3) { + unittest.expect(o.magnitude, unittest.equals(42.0)); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterDimension--; +} + +buildUnnamed1660() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1660(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterDuplicateObjectRequest = 0; +buildDuplicateObjectRequest() { + var o = new api.DuplicateObjectRequest(); + buildCounterDuplicateObjectRequest++; + if (buildCounterDuplicateObjectRequest < 3) { + o.objectId = "foo"; + o.objectIds = buildUnnamed1660(); + } + buildCounterDuplicateObjectRequest--; + return o; +} + +checkDuplicateObjectRequest(api.DuplicateObjectRequest o) { + buildCounterDuplicateObjectRequest++; + if (buildCounterDuplicateObjectRequest < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + checkUnnamed1660(o.objectIds); + } + buildCounterDuplicateObjectRequest--; +} + +core.int buildCounterDuplicateObjectResponse = 0; +buildDuplicateObjectResponse() { + var o = new api.DuplicateObjectResponse(); + buildCounterDuplicateObjectResponse++; + if (buildCounterDuplicateObjectResponse < 3) { + o.objectId = "foo"; + } + buildCounterDuplicateObjectResponse--; + return o; +} + +checkDuplicateObjectResponse(api.DuplicateObjectResponse o) { + buildCounterDuplicateObjectResponse++; + if (buildCounterDuplicateObjectResponse < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterDuplicateObjectResponse--; +} + +buildUnnamed1661() { + var o = new core.List<api.PageElement>(); + o.add(buildPageElement()); + o.add(buildPageElement()); + return o; +} + +checkUnnamed1661(core.List<api.PageElement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPageElement(o[0]); + checkPageElement(o[1]); +} + +core.int buildCounterGroup = 0; +buildGroup() { + var o = new api.Group(); + buildCounterGroup++; + if (buildCounterGroup < 3) { + o.children = buildUnnamed1661(); + } + buildCounterGroup--; + return o; +} + +checkGroup(api.Group o) { + buildCounterGroup++; + if (buildCounterGroup < 3) { + checkUnnamed1661(o.children); + } + buildCounterGroup--; +} + +core.int buildCounterImage = 0; +buildImage() { + var o = new api.Image(); + buildCounterImage++; + if (buildCounterImage < 3) { + o.contentUrl = "foo"; + o.imageProperties = buildImageProperties(); + } + buildCounterImage--; + return o; +} + +checkImage(api.Image o) { + buildCounterImage++; + if (buildCounterImage < 3) { + unittest.expect(o.contentUrl, unittest.equals('foo')); + checkImageProperties(o.imageProperties); + } + buildCounterImage--; +} + +core.int buildCounterImageProperties = 0; +buildImageProperties() { + var o = new api.ImageProperties(); + buildCounterImageProperties++; + if (buildCounterImageProperties < 3) { + o.brightness = 42.0; + o.contrast = 42.0; + o.cropProperties = buildCropProperties(); + o.link = buildLink(); + o.outline = buildOutline(); + o.recolor = buildRecolor(); + o.shadow = buildShadow(); + o.transparency = 42.0; + } + buildCounterImageProperties--; + return o; +} + +checkImageProperties(api.ImageProperties o) { + buildCounterImageProperties++; + if (buildCounterImageProperties < 3) { + unittest.expect(o.brightness, unittest.equals(42.0)); + unittest.expect(o.contrast, unittest.equals(42.0)); + checkCropProperties(o.cropProperties); + checkLink(o.link); + checkOutline(o.outline); + checkRecolor(o.recolor); + checkShadow(o.shadow); + unittest.expect(o.transparency, unittest.equals(42.0)); + } + buildCounterImageProperties--; +} + +core.int buildCounterInsertTableColumnsRequest = 0; +buildInsertTableColumnsRequest() { + var o = new api.InsertTableColumnsRequest(); + buildCounterInsertTableColumnsRequest++; + if (buildCounterInsertTableColumnsRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.insertRight = true; + o.number = 42; + o.tableObjectId = "foo"; + } + buildCounterInsertTableColumnsRequest--; + return o; +} + +checkInsertTableColumnsRequest(api.InsertTableColumnsRequest o) { + buildCounterInsertTableColumnsRequest++; + if (buildCounterInsertTableColumnsRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.insertRight, unittest.isTrue); + unittest.expect(o.number, unittest.equals(42)); + unittest.expect(o.tableObjectId, unittest.equals('foo')); + } + buildCounterInsertTableColumnsRequest--; +} + +core.int buildCounterInsertTableRowsRequest = 0; +buildInsertTableRowsRequest() { + var o = new api.InsertTableRowsRequest(); + buildCounterInsertTableRowsRequest++; + if (buildCounterInsertTableRowsRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.insertBelow = true; + o.number = 42; + o.tableObjectId = "foo"; + } + buildCounterInsertTableRowsRequest--; + return o; +} + +checkInsertTableRowsRequest(api.InsertTableRowsRequest o) { + buildCounterInsertTableRowsRequest++; + if (buildCounterInsertTableRowsRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.insertBelow, unittest.isTrue); + unittest.expect(o.number, unittest.equals(42)); + unittest.expect(o.tableObjectId, unittest.equals('foo')); + } + buildCounterInsertTableRowsRequest--; +} + +core.int buildCounterInsertTextRequest = 0; +buildInsertTextRequest() { + var o = new api.InsertTextRequest(); + buildCounterInsertTextRequest++; + if (buildCounterInsertTextRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.insertionIndex = 42; + o.objectId = "foo"; + o.text = "foo"; + } + buildCounterInsertTextRequest--; + return o; +} + +checkInsertTextRequest(api.InsertTextRequest o) { + buildCounterInsertTextRequest++; + if (buildCounterInsertTextRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.insertionIndex, unittest.equals(42)); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.text, unittest.equals('foo')); + } + buildCounterInsertTextRequest--; +} + +core.int buildCounterLayoutProperties = 0; +buildLayoutProperties() { + var o = new api.LayoutProperties(); + buildCounterLayoutProperties++; + if (buildCounterLayoutProperties < 3) { + o.displayName = "foo"; + o.masterObjectId = "foo"; + o.name = "foo"; + } + buildCounterLayoutProperties--; + return o; +} + +checkLayoutProperties(api.LayoutProperties o) { + buildCounterLayoutProperties++; + if (buildCounterLayoutProperties < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.masterObjectId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLayoutProperties--; +} + +core.int buildCounterLayoutReference = 0; +buildLayoutReference() { + var o = new api.LayoutReference(); + buildCounterLayoutReference++; + if (buildCounterLayoutReference < 3) { + o.layoutId = "foo"; + o.predefinedLayout = "foo"; + } + buildCounterLayoutReference--; + return o; +} + +checkLayoutReference(api.LayoutReference o) { + buildCounterLayoutReference++; + if (buildCounterLayoutReference < 3) { + unittest.expect(o.layoutId, unittest.equals('foo')); + unittest.expect(o.predefinedLayout, unittest.equals('foo')); + } + buildCounterLayoutReference--; +} + +core.int buildCounterLine = 0; +buildLine() { + var o = new api.Line(); + buildCounterLine++; + if (buildCounterLine < 3) { + o.lineProperties = buildLineProperties(); + o.lineType = "foo"; + } + buildCounterLine--; + return o; +} + +checkLine(api.Line o) { + buildCounterLine++; + if (buildCounterLine < 3) { + checkLineProperties(o.lineProperties); + unittest.expect(o.lineType, unittest.equals('foo')); + } + buildCounterLine--; +} + +core.int buildCounterLineFill = 0; +buildLineFill() { + var o = new api.LineFill(); + buildCounterLineFill++; + if (buildCounterLineFill < 3) { + o.solidFill = buildSolidFill(); + } + buildCounterLineFill--; + return o; +} + +checkLineFill(api.LineFill o) { + buildCounterLineFill++; + if (buildCounterLineFill < 3) { + checkSolidFill(o.solidFill); + } + buildCounterLineFill--; +} + +core.int buildCounterLineProperties = 0; +buildLineProperties() { + var o = new api.LineProperties(); + buildCounterLineProperties++; + if (buildCounterLineProperties < 3) { + o.dashStyle = "foo"; + o.endArrow = "foo"; + o.lineFill = buildLineFill(); + o.link = buildLink(); + o.startArrow = "foo"; + o.weight = buildDimension(); + } + buildCounterLineProperties--; + return o; +} + +checkLineProperties(api.LineProperties o) { + buildCounterLineProperties++; + if (buildCounterLineProperties < 3) { + unittest.expect(o.dashStyle, unittest.equals('foo')); + unittest.expect(o.endArrow, unittest.equals('foo')); + checkLineFill(o.lineFill); + checkLink(o.link); + unittest.expect(o.startArrow, unittest.equals('foo')); + checkDimension(o.weight); + } + buildCounterLineProperties--; +} + +core.int buildCounterLink = 0; +buildLink() { + var o = new api.Link(); + buildCounterLink++; + if (buildCounterLink < 3) { + o.pageObjectId = "foo"; + o.relativeLink = "foo"; + o.slideIndex = 42; + o.url = "foo"; + } + buildCounterLink--; + return o; +} + +checkLink(api.Link o) { + buildCounterLink++; + if (buildCounterLink < 3) { + unittest.expect(o.pageObjectId, unittest.equals('foo')); + unittest.expect(o.relativeLink, unittest.equals('foo')); + unittest.expect(o.slideIndex, unittest.equals(42)); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterLink--; +} + +buildUnnamed1662() { + var o = new core.Map<core.String, api.NestingLevel>(); + o["x"] = buildNestingLevel(); + o["y"] = buildNestingLevel(); + return o; +} + +checkUnnamed1662(core.Map<core.String, api.NestingLevel> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNestingLevel(o["x"]); + checkNestingLevel(o["y"]); +} + +core.int buildCounterList = 0; +buildList() { + var o = new api.List(); + buildCounterList++; + if (buildCounterList < 3) { + o.listId = "foo"; + o.nestingLevel = buildUnnamed1662(); + } + buildCounterList--; + return o; +} + +checkList(api.List o) { + buildCounterList++; + if (buildCounterList < 3) { + unittest.expect(o.listId, unittest.equals('foo')); + checkUnnamed1662(o.nestingLevel); + } + buildCounterList--; +} + +core.int buildCounterNestingLevel = 0; +buildNestingLevel() { + var o = new api.NestingLevel(); + buildCounterNestingLevel++; + if (buildCounterNestingLevel < 3) { + o.bulletStyle = buildTextStyle(); + } + buildCounterNestingLevel--; + return o; +} + +checkNestingLevel(api.NestingLevel o) { + buildCounterNestingLevel++; + if (buildCounterNestingLevel < 3) { + checkTextStyle(o.bulletStyle); + } + buildCounterNestingLevel--; +} + +core.int buildCounterOpaqueColor = 0; +buildOpaqueColor() { + var o = new api.OpaqueColor(); + buildCounterOpaqueColor++; + if (buildCounterOpaqueColor < 3) { + o.rgbColor = buildRgbColor(); + o.themeColor = "foo"; + } + buildCounterOpaqueColor--; + return o; +} + +checkOpaqueColor(api.OpaqueColor o) { + buildCounterOpaqueColor++; + if (buildCounterOpaqueColor < 3) { + checkRgbColor(o.rgbColor); + unittest.expect(o.themeColor, unittest.equals('foo')); + } + buildCounterOpaqueColor--; +} + +core.int buildCounterOptionalColor = 0; +buildOptionalColor() { + var o = new api.OptionalColor(); + buildCounterOptionalColor++; + if (buildCounterOptionalColor < 3) { + o.opaqueColor = buildOpaqueColor(); + } + buildCounterOptionalColor--; + return o; +} + +checkOptionalColor(api.OptionalColor o) { + buildCounterOptionalColor++; + if (buildCounterOptionalColor < 3) { + checkOpaqueColor(o.opaqueColor); + } + buildCounterOptionalColor--; +} + +core.int buildCounterOutline = 0; +buildOutline() { + var o = new api.Outline(); + buildCounterOutline++; + if (buildCounterOutline < 3) { + o.dashStyle = "foo"; + o.outlineFill = buildOutlineFill(); + o.propertyState = "foo"; + o.weight = buildDimension(); + } + buildCounterOutline--; + return o; +} + +checkOutline(api.Outline o) { + buildCounterOutline++; + if (buildCounterOutline < 3) { + unittest.expect(o.dashStyle, unittest.equals('foo')); + checkOutlineFill(o.outlineFill); + unittest.expect(o.propertyState, unittest.equals('foo')); + checkDimension(o.weight); + } + buildCounterOutline--; +} + +core.int buildCounterOutlineFill = 0; +buildOutlineFill() { + var o = new api.OutlineFill(); + buildCounterOutlineFill++; + if (buildCounterOutlineFill < 3) { + o.solidFill = buildSolidFill(); + } + buildCounterOutlineFill--; + return o; +} + +checkOutlineFill(api.OutlineFill o) { + buildCounterOutlineFill++; + if (buildCounterOutlineFill < 3) { + checkSolidFill(o.solidFill); + } + buildCounterOutlineFill--; +} + +buildUnnamed1663() { + var o = new core.List<api.PageElement>(); + o.add(buildPageElement()); + o.add(buildPageElement()); + return o; +} + +checkUnnamed1663(core.List<api.PageElement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPageElement(o[0]); + checkPageElement(o[1]); +} + +core.int buildCounterPage = 0; +buildPage() { + var o = new api.Page(); + buildCounterPage++; + if (buildCounterPage < 3) { + o.layoutProperties = buildLayoutProperties(); + o.objectId = "foo"; + o.pageElements = buildUnnamed1663(); + o.pageProperties = buildPageProperties(); + o.pageType = "foo"; + o.slideProperties = buildSlideProperties(); + } + buildCounterPage--; + return o; +} + +checkPage(api.Page o) { + buildCounterPage++; + if (buildCounterPage < 3) { + checkLayoutProperties(o.layoutProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + checkUnnamed1663(o.pageElements); + checkPageProperties(o.pageProperties); + unittest.expect(o.pageType, unittest.equals('foo')); + checkSlideProperties(o.slideProperties); + } + buildCounterPage--; +} + +core.int buildCounterPageBackgroundFill = 0; +buildPageBackgroundFill() { + var o = new api.PageBackgroundFill(); + buildCounterPageBackgroundFill++; + if (buildCounterPageBackgroundFill < 3) { + o.propertyState = "foo"; + o.solidFill = buildSolidFill(); + o.stretchedPictureFill = buildStretchedPictureFill(); + } + buildCounterPageBackgroundFill--; + return o; +} + +checkPageBackgroundFill(api.PageBackgroundFill o) { + buildCounterPageBackgroundFill++; + if (buildCounterPageBackgroundFill < 3) { + unittest.expect(o.propertyState, unittest.equals('foo')); + checkSolidFill(o.solidFill); + checkStretchedPictureFill(o.stretchedPictureFill); + } + buildCounterPageBackgroundFill--; +} + +core.int buildCounterPageElement = 0; +buildPageElement() { + var o = new api.PageElement(); + buildCounterPageElement++; + if (buildCounterPageElement < 3) { + o.description = "foo"; + o.elementGroup = buildGroup(); + o.image = buildImage(); + o.line = buildLine(); + o.objectId = "foo"; + o.shape = buildShape(); + o.sheetsChart = buildSheetsChart(); + o.size = buildSize(); + o.table = buildTable(); + o.title = "foo"; + o.transform = buildAffineTransform(); + o.video = buildVideo(); + o.wordArt = buildWordArt(); + } + buildCounterPageElement--; + return o; +} + +checkPageElement(api.PageElement o) { + buildCounterPageElement++; + if (buildCounterPageElement < 3) { + unittest.expect(o.description, unittest.equals('foo')); + checkGroup(o.elementGroup); + checkImage(o.image); + checkLine(o.line); + unittest.expect(o.objectId, unittest.equals('foo')); + checkShape(o.shape); + checkSheetsChart(o.sheetsChart); + checkSize(o.size); + checkTable(o.table); + unittest.expect(o.title, unittest.equals('foo')); + checkAffineTransform(o.transform); + checkVideo(o.video); + checkWordArt(o.wordArt); + } + buildCounterPageElement--; +} + +core.int buildCounterPageElementProperties = 0; +buildPageElementProperties() { + var o = new api.PageElementProperties(); + buildCounterPageElementProperties++; + if (buildCounterPageElementProperties < 3) { + o.pageObjectId = "foo"; + o.size = buildSize(); + o.transform = buildAffineTransform(); + } + buildCounterPageElementProperties--; + return o; +} + +checkPageElementProperties(api.PageElementProperties o) { + buildCounterPageElementProperties++; + if (buildCounterPageElementProperties < 3) { + unittest.expect(o.pageObjectId, unittest.equals('foo')); + checkSize(o.size); + checkAffineTransform(o.transform); + } + buildCounterPageElementProperties--; +} + +core.int buildCounterPageProperties = 0; +buildPageProperties() { + var o = new api.PageProperties(); + buildCounterPageProperties++; + if (buildCounterPageProperties < 3) { + o.colorScheme = buildColorScheme(); + o.pageBackgroundFill = buildPageBackgroundFill(); + } + buildCounterPageProperties--; + return o; +} + +checkPageProperties(api.PageProperties o) { + buildCounterPageProperties++; + if (buildCounterPageProperties < 3) { + checkColorScheme(o.colorScheme); + checkPageBackgroundFill(o.pageBackgroundFill); + } + buildCounterPageProperties--; +} + +core.int buildCounterParagraphMarker = 0; +buildParagraphMarker() { + var o = new api.ParagraphMarker(); + buildCounterParagraphMarker++; + if (buildCounterParagraphMarker < 3) { + o.bullet = buildBullet(); + o.style = buildParagraphStyle(); + } + buildCounterParagraphMarker--; + return o; +} + +checkParagraphMarker(api.ParagraphMarker o) { + buildCounterParagraphMarker++; + if (buildCounterParagraphMarker < 3) { + checkBullet(o.bullet); + checkParagraphStyle(o.style); + } + buildCounterParagraphMarker--; +} + +core.int buildCounterParagraphStyle = 0; +buildParagraphStyle() { + var o = new api.ParagraphStyle(); + buildCounterParagraphStyle++; + if (buildCounterParagraphStyle < 3) { + o.alignment = "foo"; + o.direction = "foo"; + o.indentEnd = buildDimension(); + o.indentFirstLine = buildDimension(); + o.indentStart = buildDimension(); + o.lineSpacing = 42.0; + o.spaceAbove = buildDimension(); + o.spaceBelow = buildDimension(); + o.spacingMode = "foo"; + } + buildCounterParagraphStyle--; + return o; +} + +checkParagraphStyle(api.ParagraphStyle o) { + buildCounterParagraphStyle++; + if (buildCounterParagraphStyle < 3) { + unittest.expect(o.alignment, unittest.equals('foo')); + unittest.expect(o.direction, unittest.equals('foo')); + checkDimension(o.indentEnd); + checkDimension(o.indentFirstLine); + checkDimension(o.indentStart); + unittest.expect(o.lineSpacing, unittest.equals(42.0)); + checkDimension(o.spaceAbove); + checkDimension(o.spaceBelow); + unittest.expect(o.spacingMode, unittest.equals('foo')); + } + buildCounterParagraphStyle--; +} + +core.int buildCounterPlaceholder = 0; +buildPlaceholder() { + var o = new api.Placeholder(); + buildCounterPlaceholder++; + if (buildCounterPlaceholder < 3) { + o.index = 42; + o.parentObjectId = "foo"; + o.type = "foo"; + } + buildCounterPlaceholder--; + return o; +} + +checkPlaceholder(api.Placeholder o) { + buildCounterPlaceholder++; + if (buildCounterPlaceholder < 3) { + unittest.expect(o.index, unittest.equals(42)); + unittest.expect(o.parentObjectId, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterPlaceholder--; +} + +buildUnnamed1664() { + var o = new core.List<api.Page>(); + o.add(buildPage()); + o.add(buildPage()); + return o; +} + +checkUnnamed1664(core.List<api.Page> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPage(o[0]); + checkPage(o[1]); +} + +buildUnnamed1665() { + var o = new core.List<api.Page>(); + o.add(buildPage()); + o.add(buildPage()); + return o; +} + +checkUnnamed1665(core.List<api.Page> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPage(o[0]); + checkPage(o[1]); +} + +buildUnnamed1666() { + var o = new core.List<api.Page>(); + o.add(buildPage()); + o.add(buildPage()); + return o; +} + +checkUnnamed1666(core.List<api.Page> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPage(o[0]); + checkPage(o[1]); +} + +core.int buildCounterPresentation = 0; +buildPresentation() { + var o = new api.Presentation(); + buildCounterPresentation++; + if (buildCounterPresentation < 3) { + o.layouts = buildUnnamed1664(); + o.locale = "foo"; + o.masters = buildUnnamed1665(); + o.pageSize = buildSize(); + o.presentationId = "foo"; + o.slides = buildUnnamed1666(); + o.title = "foo"; + } + buildCounterPresentation--; + return o; +} + +checkPresentation(api.Presentation o) { + buildCounterPresentation++; + if (buildCounterPresentation < 3) { + checkUnnamed1664(o.layouts); + unittest.expect(o.locale, unittest.equals('foo')); + checkUnnamed1665(o.masters); + checkSize(o.pageSize); + unittest.expect(o.presentationId, unittest.equals('foo')); + checkUnnamed1666(o.slides); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterPresentation--; +} + +core.int buildCounterRange = 0; +buildRange() { + var o = new api.Range(); + buildCounterRange++; + if (buildCounterRange < 3) { + o.endIndex = 42; + o.startIndex = 42; + o.type = "foo"; + } + buildCounterRange--; + return o; +} + +checkRange(api.Range o) { + buildCounterRange++; + if (buildCounterRange < 3) { + unittest.expect(o.endIndex, unittest.equals(42)); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterRange--; +} + +buildUnnamed1667() { + var o = new core.List<api.ColorStop>(); + o.add(buildColorStop()); + o.add(buildColorStop()); + return o; +} + +checkUnnamed1667(core.List<api.ColorStop> o) { + unittest.expect(o, unittest.hasLength(2)); + checkColorStop(o[0]); + checkColorStop(o[1]); +} + +core.int buildCounterRecolor = 0; +buildRecolor() { + var o = new api.Recolor(); + buildCounterRecolor++; + if (buildCounterRecolor < 3) { + o.recolorStops = buildUnnamed1667(); + } + buildCounterRecolor--; + return o; +} + +checkRecolor(api.Recolor o) { + buildCounterRecolor++; + if (buildCounterRecolor < 3) { + checkUnnamed1667(o.recolorStops); + } + buildCounterRecolor--; +} + +core.int buildCounterRefreshSheetsChartRequest = 0; +buildRefreshSheetsChartRequest() { + var o = new api.RefreshSheetsChartRequest(); + buildCounterRefreshSheetsChartRequest++; + if (buildCounterRefreshSheetsChartRequest < 3) { + o.objectId = "foo"; + } + buildCounterRefreshSheetsChartRequest--; + return o; +} + +checkRefreshSheetsChartRequest(api.RefreshSheetsChartRequest o) { + buildCounterRefreshSheetsChartRequest++; + if (buildCounterRefreshSheetsChartRequest < 3) { + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterRefreshSheetsChartRequest--; +} + +core.int buildCounterReplaceAllShapesWithImageRequest = 0; +buildReplaceAllShapesWithImageRequest() { + var o = new api.ReplaceAllShapesWithImageRequest(); + buildCounterReplaceAllShapesWithImageRequest++; + if (buildCounterReplaceAllShapesWithImageRequest < 3) { + o.containsText = buildSubstringMatchCriteria(); + o.imageUrl = "foo"; + o.replaceMethod = "foo"; + } + buildCounterReplaceAllShapesWithImageRequest--; + return o; +} + +checkReplaceAllShapesWithImageRequest(api.ReplaceAllShapesWithImageRequest o) { + buildCounterReplaceAllShapesWithImageRequest++; + if (buildCounterReplaceAllShapesWithImageRequest < 3) { + checkSubstringMatchCriteria(o.containsText); + unittest.expect(o.imageUrl, unittest.equals('foo')); + unittest.expect(o.replaceMethod, unittest.equals('foo')); + } + buildCounterReplaceAllShapesWithImageRequest--; +} + +core.int buildCounterReplaceAllShapesWithImageResponse = 0; +buildReplaceAllShapesWithImageResponse() { + var o = new api.ReplaceAllShapesWithImageResponse(); + buildCounterReplaceAllShapesWithImageResponse++; + if (buildCounterReplaceAllShapesWithImageResponse < 3) { + o.occurrencesChanged = 42; + } + buildCounterReplaceAllShapesWithImageResponse--; + return o; +} + +checkReplaceAllShapesWithImageResponse(api.ReplaceAllShapesWithImageResponse o) { + buildCounterReplaceAllShapesWithImageResponse++; + if (buildCounterReplaceAllShapesWithImageResponse < 3) { + unittest.expect(o.occurrencesChanged, unittest.equals(42)); + } + buildCounterReplaceAllShapesWithImageResponse--; +} + +core.int buildCounterReplaceAllTextRequest = 0; +buildReplaceAllTextRequest() { + var o = new api.ReplaceAllTextRequest(); + buildCounterReplaceAllTextRequest++; + if (buildCounterReplaceAllTextRequest < 3) { + o.containsText = buildSubstringMatchCriteria(); + o.replaceText = "foo"; + } + buildCounterReplaceAllTextRequest--; + return o; +} + +checkReplaceAllTextRequest(api.ReplaceAllTextRequest o) { + buildCounterReplaceAllTextRequest++; + if (buildCounterReplaceAllTextRequest < 3) { + checkSubstringMatchCriteria(o.containsText); + unittest.expect(o.replaceText, unittest.equals('foo')); + } + buildCounterReplaceAllTextRequest--; +} + +core.int buildCounterReplaceAllTextResponse = 0; +buildReplaceAllTextResponse() { + var o = new api.ReplaceAllTextResponse(); + buildCounterReplaceAllTextResponse++; + if (buildCounterReplaceAllTextResponse < 3) { + o.occurrencesChanged = 42; + } + buildCounterReplaceAllTextResponse--; + return o; +} + +checkReplaceAllTextResponse(api.ReplaceAllTextResponse o) { + buildCounterReplaceAllTextResponse++; + if (buildCounterReplaceAllTextResponse < 3) { + unittest.expect(o.occurrencesChanged, unittest.equals(42)); + } + buildCounterReplaceAllTextResponse--; +} + +core.int buildCounterRequest = 0; +buildRequest() { + var o = new api.Request(); + buildCounterRequest++; + if (buildCounterRequest < 3) { + o.createImage = buildCreateImageRequest(); + o.createLine = buildCreateLineRequest(); + o.createParagraphBullets = buildCreateParagraphBulletsRequest(); + o.createShape = buildCreateShapeRequest(); + o.createSheetsChart = buildCreateSheetsChartRequest(); + o.createSlide = buildCreateSlideRequest(); + o.createTable = buildCreateTableRequest(); + o.createVideo = buildCreateVideoRequest(); + o.deleteObject = buildDeleteObjectRequest(); + o.deleteTableColumn = buildDeleteTableColumnRequest(); + o.deleteTableRow = buildDeleteTableRowRequest(); + o.deleteText = buildDeleteTextRequest(); + o.duplicateObject = buildDuplicateObjectRequest(); + o.insertTableColumns = buildInsertTableColumnsRequest(); + o.insertTableRows = buildInsertTableRowsRequest(); + o.insertText = buildInsertTextRequest(); + o.refreshSheetsChart = buildRefreshSheetsChartRequest(); + o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageRequest(); + o.replaceAllText = buildReplaceAllTextRequest(); + o.updateImageProperties = buildUpdateImagePropertiesRequest(); + o.updateLineProperties = buildUpdateLinePropertiesRequest(); + o.updatePageElementTransform = buildUpdatePageElementTransformRequest(); + o.updatePageProperties = buildUpdatePagePropertiesRequest(); + o.updateShapeProperties = buildUpdateShapePropertiesRequest(); + o.updateSlidesPosition = buildUpdateSlidesPositionRequest(); + o.updateTableCellProperties = buildUpdateTableCellPropertiesRequest(); + o.updateTextStyle = buildUpdateTextStyleRequest(); + o.updateVideoProperties = buildUpdateVideoPropertiesRequest(); + } + buildCounterRequest--; + return o; +} + +checkRequest(api.Request o) { + buildCounterRequest++; + if (buildCounterRequest < 3) { + checkCreateImageRequest(o.createImage); + checkCreateLineRequest(o.createLine); + checkCreateParagraphBulletsRequest(o.createParagraphBullets); + checkCreateShapeRequest(o.createShape); + checkCreateSheetsChartRequest(o.createSheetsChart); + checkCreateSlideRequest(o.createSlide); + checkCreateTableRequest(o.createTable); + checkCreateVideoRequest(o.createVideo); + checkDeleteObjectRequest(o.deleteObject); + checkDeleteTableColumnRequest(o.deleteTableColumn); + checkDeleteTableRowRequest(o.deleteTableRow); + checkDeleteTextRequest(o.deleteText); + checkDuplicateObjectRequest(o.duplicateObject); + checkInsertTableColumnsRequest(o.insertTableColumns); + checkInsertTableRowsRequest(o.insertTableRows); + checkInsertTextRequest(o.insertText); + checkRefreshSheetsChartRequest(o.refreshSheetsChart); + checkReplaceAllShapesWithImageRequest(o.replaceAllShapesWithImage); + checkReplaceAllTextRequest(o.replaceAllText); + checkUpdateImagePropertiesRequest(o.updateImageProperties); + checkUpdateLinePropertiesRequest(o.updateLineProperties); + checkUpdatePageElementTransformRequest(o.updatePageElementTransform); + checkUpdatePagePropertiesRequest(o.updatePageProperties); + checkUpdateShapePropertiesRequest(o.updateShapeProperties); + checkUpdateSlidesPositionRequest(o.updateSlidesPosition); + checkUpdateTableCellPropertiesRequest(o.updateTableCellProperties); + checkUpdateTextStyleRequest(o.updateTextStyle); + checkUpdateVideoPropertiesRequest(o.updateVideoProperties); + } + buildCounterRequest--; +} + +core.int buildCounterResponse = 0; +buildResponse() { + var o = new api.Response(); + buildCounterResponse++; + if (buildCounterResponse < 3) { + o.createImage = buildCreateImageResponse(); + o.createLine = buildCreateLineResponse(); + o.createShape = buildCreateShapeResponse(); + o.createSheetsChart = buildCreateSheetsChartResponse(); + o.createSlide = buildCreateSlideResponse(); + o.createTable = buildCreateTableResponse(); + o.createVideo = buildCreateVideoResponse(); + o.duplicateObject = buildDuplicateObjectResponse(); + o.replaceAllShapesWithImage = buildReplaceAllShapesWithImageResponse(); + o.replaceAllText = buildReplaceAllTextResponse(); + } + buildCounterResponse--; + return o; +} + +checkResponse(api.Response o) { + buildCounterResponse++; + if (buildCounterResponse < 3) { + checkCreateImageResponse(o.createImage); + checkCreateLineResponse(o.createLine); + checkCreateShapeResponse(o.createShape); + checkCreateSheetsChartResponse(o.createSheetsChart); + checkCreateSlideResponse(o.createSlide); + checkCreateTableResponse(o.createTable); + checkCreateVideoResponse(o.createVideo); + checkDuplicateObjectResponse(o.duplicateObject); + checkReplaceAllShapesWithImageResponse(o.replaceAllShapesWithImage); + checkReplaceAllTextResponse(o.replaceAllText); + } + buildCounterResponse--; +} + +core.int buildCounterRgbColor = 0; +buildRgbColor() { + var o = new api.RgbColor(); + buildCounterRgbColor++; + if (buildCounterRgbColor < 3) { + o.blue = 42.0; + o.green = 42.0; + o.red = 42.0; + } + buildCounterRgbColor--; + return o; +} + +checkRgbColor(api.RgbColor o) { + buildCounterRgbColor++; + if (buildCounterRgbColor < 3) { + unittest.expect(o.blue, unittest.equals(42.0)); + unittest.expect(o.green, unittest.equals(42.0)); + unittest.expect(o.red, unittest.equals(42.0)); + } + buildCounterRgbColor--; +} + +core.int buildCounterShadow = 0; +buildShadow() { + var o = new api.Shadow(); + buildCounterShadow++; + if (buildCounterShadow < 3) { + o.alignment = "foo"; + o.alpha = 42.0; + o.blurRadius = buildDimension(); + o.color = buildOpaqueColor(); + o.propertyState = "foo"; + o.rotateWithShape = true; + o.transform = buildAffineTransform(); + o.type = "foo"; + } + buildCounterShadow--; + return o; +} + +checkShadow(api.Shadow o) { + buildCounterShadow++; + if (buildCounterShadow < 3) { + unittest.expect(o.alignment, unittest.equals('foo')); + unittest.expect(o.alpha, unittest.equals(42.0)); + checkDimension(o.blurRadius); + checkOpaqueColor(o.color); + unittest.expect(o.propertyState, unittest.equals('foo')); + unittest.expect(o.rotateWithShape, unittest.isTrue); + checkAffineTransform(o.transform); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterShadow--; +} + +core.int buildCounterShape = 0; +buildShape() { + var o = new api.Shape(); + buildCounterShape++; + if (buildCounterShape < 3) { + o.placeholder = buildPlaceholder(); + o.shapeProperties = buildShapeProperties(); + o.shapeType = "foo"; + o.text = buildTextContent(); + } + buildCounterShape--; + return o; +} + +checkShape(api.Shape o) { + buildCounterShape++; + if (buildCounterShape < 3) { + checkPlaceholder(o.placeholder); + checkShapeProperties(o.shapeProperties); + unittest.expect(o.shapeType, unittest.equals('foo')); + checkTextContent(o.text); + } + buildCounterShape--; +} + +core.int buildCounterShapeBackgroundFill = 0; +buildShapeBackgroundFill() { + var o = new api.ShapeBackgroundFill(); + buildCounterShapeBackgroundFill++; + if (buildCounterShapeBackgroundFill < 3) { + o.propertyState = "foo"; + o.solidFill = buildSolidFill(); + } + buildCounterShapeBackgroundFill--; + return o; +} + +checkShapeBackgroundFill(api.ShapeBackgroundFill o) { + buildCounterShapeBackgroundFill++; + if (buildCounterShapeBackgroundFill < 3) { + unittest.expect(o.propertyState, unittest.equals('foo')); + checkSolidFill(o.solidFill); + } + buildCounterShapeBackgroundFill--; +} + +core.int buildCounterShapeProperties = 0; +buildShapeProperties() { + var o = new api.ShapeProperties(); + buildCounterShapeProperties++; + if (buildCounterShapeProperties < 3) { + o.link = buildLink(); + o.outline = buildOutline(); + o.shadow = buildShadow(); + o.shapeBackgroundFill = buildShapeBackgroundFill(); + } + buildCounterShapeProperties--; + return o; +} + +checkShapeProperties(api.ShapeProperties o) { + buildCounterShapeProperties++; + if (buildCounterShapeProperties < 3) { + checkLink(o.link); + checkOutline(o.outline); + checkShadow(o.shadow); + checkShapeBackgroundFill(o.shapeBackgroundFill); + } + buildCounterShapeProperties--; +} + +core.int buildCounterSheetsChart = 0; +buildSheetsChart() { + var o = new api.SheetsChart(); + buildCounterSheetsChart++; + if (buildCounterSheetsChart < 3) { + o.chartId = 42; + o.contentUrl = "foo"; + o.sheetsChartProperties = buildSheetsChartProperties(); + o.spreadsheetId = "foo"; + } + buildCounterSheetsChart--; + return o; +} + +checkSheetsChart(api.SheetsChart o) { + buildCounterSheetsChart++; + if (buildCounterSheetsChart < 3) { + unittest.expect(o.chartId, unittest.equals(42)); + unittest.expect(o.contentUrl, unittest.equals('foo')); + checkSheetsChartProperties(o.sheetsChartProperties); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterSheetsChart--; +} + +core.int buildCounterSheetsChartProperties = 0; +buildSheetsChartProperties() { + var o = new api.SheetsChartProperties(); + buildCounterSheetsChartProperties++; + if (buildCounterSheetsChartProperties < 3) { + o.chartImageProperties = buildImageProperties(); + } + buildCounterSheetsChartProperties--; + return o; +} + +checkSheetsChartProperties(api.SheetsChartProperties o) { + buildCounterSheetsChartProperties++; + if (buildCounterSheetsChartProperties < 3) { + checkImageProperties(o.chartImageProperties); + } + buildCounterSheetsChartProperties--; +} + +core.int buildCounterSize = 0; +buildSize() { + var o = new api.Size(); + buildCounterSize++; + if (buildCounterSize < 3) { + o.height = buildDimension(); + o.width = buildDimension(); + } + buildCounterSize--; + return o; +} + +checkSize(api.Size o) { + buildCounterSize++; + if (buildCounterSize < 3) { + checkDimension(o.height); + checkDimension(o.width); + } + buildCounterSize--; +} + +core.int buildCounterSlideProperties = 0; +buildSlideProperties() { + var o = new api.SlideProperties(); + buildCounterSlideProperties++; + if (buildCounterSlideProperties < 3) { + o.layoutObjectId = "foo"; + o.masterObjectId = "foo"; + } + buildCounterSlideProperties--; + return o; +} + +checkSlideProperties(api.SlideProperties o) { + buildCounterSlideProperties++; + if (buildCounterSlideProperties < 3) { + unittest.expect(o.layoutObjectId, unittest.equals('foo')); + unittest.expect(o.masterObjectId, unittest.equals('foo')); + } + buildCounterSlideProperties--; +} + +core.int buildCounterSolidFill = 0; +buildSolidFill() { + var o = new api.SolidFill(); + buildCounterSolidFill++; + if (buildCounterSolidFill < 3) { + o.alpha = 42.0; + o.color = buildOpaqueColor(); + } + buildCounterSolidFill--; + return o; +} + +checkSolidFill(api.SolidFill o) { + buildCounterSolidFill++; + if (buildCounterSolidFill < 3) { + unittest.expect(o.alpha, unittest.equals(42.0)); + checkOpaqueColor(o.color); + } + buildCounterSolidFill--; +} + +core.int buildCounterStretchedPictureFill = 0; +buildStretchedPictureFill() { + var o = new api.StretchedPictureFill(); + buildCounterStretchedPictureFill++; + if (buildCounterStretchedPictureFill < 3) { + o.contentUrl = "foo"; + o.size = buildSize(); + } + buildCounterStretchedPictureFill--; + return o; +} + +checkStretchedPictureFill(api.StretchedPictureFill o) { + buildCounterStretchedPictureFill++; + if (buildCounterStretchedPictureFill < 3) { + unittest.expect(o.contentUrl, unittest.equals('foo')); + checkSize(o.size); + } + buildCounterStretchedPictureFill--; +} + +core.int buildCounterSubstringMatchCriteria = 0; +buildSubstringMatchCriteria() { + var o = new api.SubstringMatchCriteria(); + buildCounterSubstringMatchCriteria++; + if (buildCounterSubstringMatchCriteria < 3) { + o.matchCase = true; + o.text = "foo"; + } + buildCounterSubstringMatchCriteria--; + return o; +} + +checkSubstringMatchCriteria(api.SubstringMatchCriteria o) { + buildCounterSubstringMatchCriteria++; + if (buildCounterSubstringMatchCriteria < 3) { + unittest.expect(o.matchCase, unittest.isTrue); + unittest.expect(o.text, unittest.equals('foo')); + } + buildCounterSubstringMatchCriteria--; +} + +buildUnnamed1668() { + var o = new core.List<api.TableColumnProperties>(); + o.add(buildTableColumnProperties()); + o.add(buildTableColumnProperties()); + return o; +} + +checkUnnamed1668(core.List<api.TableColumnProperties> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTableColumnProperties(o[0]); + checkTableColumnProperties(o[1]); +} + +buildUnnamed1669() { + var o = new core.List<api.TableRow>(); + o.add(buildTableRow()); + o.add(buildTableRow()); + return o; +} + +checkUnnamed1669(core.List<api.TableRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTableRow(o[0]); + checkTableRow(o[1]); +} + +core.int buildCounterTable = 0; +buildTable() { + var o = new api.Table(); + buildCounterTable++; + if (buildCounterTable < 3) { + o.columns = 42; + o.rows = 42; + o.tableColumns = buildUnnamed1668(); + o.tableRows = buildUnnamed1669(); + } + buildCounterTable--; + return o; +} + +checkTable(api.Table o) { + buildCounterTable++; + if (buildCounterTable < 3) { + unittest.expect(o.columns, unittest.equals(42)); + unittest.expect(o.rows, unittest.equals(42)); + checkUnnamed1668(o.tableColumns); + checkUnnamed1669(o.tableRows); + } + buildCounterTable--; +} + +core.int buildCounterTableCell = 0; +buildTableCell() { + var o = new api.TableCell(); + buildCounterTableCell++; + if (buildCounterTableCell < 3) { + o.columnSpan = 42; + o.location = buildTableCellLocation(); + o.rowSpan = 42; + o.tableCellProperties = buildTableCellProperties(); + o.text = buildTextContent(); + } + buildCounterTableCell--; + return o; +} + +checkTableCell(api.TableCell o) { + buildCounterTableCell++; + if (buildCounterTableCell < 3) { + unittest.expect(o.columnSpan, unittest.equals(42)); + checkTableCellLocation(o.location); + unittest.expect(o.rowSpan, unittest.equals(42)); + checkTableCellProperties(o.tableCellProperties); + checkTextContent(o.text); + } + buildCounterTableCell--; +} + +core.int buildCounterTableCellBackgroundFill = 0; +buildTableCellBackgroundFill() { + var o = new api.TableCellBackgroundFill(); + buildCounterTableCellBackgroundFill++; + if (buildCounterTableCellBackgroundFill < 3) { + o.propertyState = "foo"; + o.solidFill = buildSolidFill(); + } + buildCounterTableCellBackgroundFill--; + return o; +} + +checkTableCellBackgroundFill(api.TableCellBackgroundFill o) { + buildCounterTableCellBackgroundFill++; + if (buildCounterTableCellBackgroundFill < 3) { + unittest.expect(o.propertyState, unittest.equals('foo')); + checkSolidFill(o.solidFill); + } + buildCounterTableCellBackgroundFill--; +} + +core.int buildCounterTableCellLocation = 0; +buildTableCellLocation() { + var o = new api.TableCellLocation(); + buildCounterTableCellLocation++; + if (buildCounterTableCellLocation < 3) { + o.columnIndex = 42; + o.rowIndex = 42; + } + buildCounterTableCellLocation--; + return o; +} + +checkTableCellLocation(api.TableCellLocation o) { + buildCounterTableCellLocation++; + if (buildCounterTableCellLocation < 3) { + unittest.expect(o.columnIndex, unittest.equals(42)); + unittest.expect(o.rowIndex, unittest.equals(42)); + } + buildCounterTableCellLocation--; +} + +core.int buildCounterTableCellProperties = 0; +buildTableCellProperties() { + var o = new api.TableCellProperties(); + buildCounterTableCellProperties++; + if (buildCounterTableCellProperties < 3) { + o.tableCellBackgroundFill = buildTableCellBackgroundFill(); + } + buildCounterTableCellProperties--; + return o; +} + +checkTableCellProperties(api.TableCellProperties o) { + buildCounterTableCellProperties++; + if (buildCounterTableCellProperties < 3) { + checkTableCellBackgroundFill(o.tableCellBackgroundFill); + } + buildCounterTableCellProperties--; +} + +core.int buildCounterTableColumnProperties = 0; +buildTableColumnProperties() { + var o = new api.TableColumnProperties(); + buildCounterTableColumnProperties++; + if (buildCounterTableColumnProperties < 3) { + o.columnWidth = buildDimension(); + } + buildCounterTableColumnProperties--; + return o; +} + +checkTableColumnProperties(api.TableColumnProperties o) { + buildCounterTableColumnProperties++; + if (buildCounterTableColumnProperties < 3) { + checkDimension(o.columnWidth); + } + buildCounterTableColumnProperties--; +} + +core.int buildCounterTableRange = 0; +buildTableRange() { + var o = new api.TableRange(); + buildCounterTableRange++; + if (buildCounterTableRange < 3) { + o.columnSpan = 42; + o.location = buildTableCellLocation(); + o.rowSpan = 42; + } + buildCounterTableRange--; + return o; +} + +checkTableRange(api.TableRange o) { + buildCounterTableRange++; + if (buildCounterTableRange < 3) { + unittest.expect(o.columnSpan, unittest.equals(42)); + checkTableCellLocation(o.location); + unittest.expect(o.rowSpan, unittest.equals(42)); + } + buildCounterTableRange--; +} + +buildUnnamed1670() { + var o = new core.List<api.TableCell>(); + o.add(buildTableCell()); + o.add(buildTableCell()); + return o; +} + +checkUnnamed1670(core.List<api.TableCell> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTableCell(o[0]); + checkTableCell(o[1]); +} + +core.int buildCounterTableRow = 0; +buildTableRow() { + var o = new api.TableRow(); + buildCounterTableRow++; + if (buildCounterTableRow < 3) { + o.rowHeight = buildDimension(); + o.tableCells = buildUnnamed1670(); + } + buildCounterTableRow--; + return o; +} + +checkTableRow(api.TableRow o) { + buildCounterTableRow++; + if (buildCounterTableRow < 3) { + checkDimension(o.rowHeight); + checkUnnamed1670(o.tableCells); + } + buildCounterTableRow--; +} + +buildUnnamed1671() { + var o = new core.Map<core.String, api.List>(); + o["x"] = buildList(); + o["y"] = buildList(); + return o; +} + +checkUnnamed1671(core.Map<core.String, api.List> o) { + unittest.expect(o, unittest.hasLength(2)); + checkList(o["x"]); + checkList(o["y"]); +} + +buildUnnamed1672() { + var o = new core.List<api.TextElement>(); + o.add(buildTextElement()); + o.add(buildTextElement()); + return o; +} + +checkUnnamed1672(core.List<api.TextElement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTextElement(o[0]); + checkTextElement(o[1]); +} + +core.int buildCounterTextContent = 0; +buildTextContent() { + var o = new api.TextContent(); + buildCounterTextContent++; + if (buildCounterTextContent < 3) { + o.lists = buildUnnamed1671(); + o.textElements = buildUnnamed1672(); + } + buildCounterTextContent--; + return o; +} + +checkTextContent(api.TextContent o) { + buildCounterTextContent++; + if (buildCounterTextContent < 3) { + checkUnnamed1671(o.lists); + checkUnnamed1672(o.textElements); + } + buildCounterTextContent--; +} + +core.int buildCounterTextElement = 0; +buildTextElement() { + var o = new api.TextElement(); + buildCounterTextElement++; + if (buildCounterTextElement < 3) { + o.autoText = buildAutoText(); + o.endIndex = 42; + o.paragraphMarker = buildParagraphMarker(); + o.startIndex = 42; + o.textRun = buildTextRun(); + } + buildCounterTextElement--; + return o; +} + +checkTextElement(api.TextElement o) { + buildCounterTextElement++; + if (buildCounterTextElement < 3) { + checkAutoText(o.autoText); + unittest.expect(o.endIndex, unittest.equals(42)); + checkParagraphMarker(o.paragraphMarker); + unittest.expect(o.startIndex, unittest.equals(42)); + checkTextRun(o.textRun); + } + buildCounterTextElement--; +} + +core.int buildCounterTextRun = 0; +buildTextRun() { + var o = new api.TextRun(); + buildCounterTextRun++; + if (buildCounterTextRun < 3) { + o.content = "foo"; + o.style = buildTextStyle(); + } + buildCounterTextRun--; + return o; +} + +checkTextRun(api.TextRun o) { + buildCounterTextRun++; + if (buildCounterTextRun < 3) { + unittest.expect(o.content, unittest.equals('foo')); + checkTextStyle(o.style); + } + buildCounterTextRun--; +} + +core.int buildCounterTextStyle = 0; +buildTextStyle() { + var o = new api.TextStyle(); + buildCounterTextStyle++; + if (buildCounterTextStyle < 3) { + o.backgroundColor = buildOptionalColor(); + o.baselineOffset = "foo"; + o.bold = true; + o.fontFamily = "foo"; + o.fontSize = buildDimension(); + o.foregroundColor = buildOptionalColor(); + o.italic = true; + o.link = buildLink(); + o.smallCaps = true; + o.strikethrough = true; + o.underline = true; + } + buildCounterTextStyle--; + return o; +} + +checkTextStyle(api.TextStyle o) { + buildCounterTextStyle++; + if (buildCounterTextStyle < 3) { + checkOptionalColor(o.backgroundColor); + unittest.expect(o.baselineOffset, unittest.equals('foo')); + unittest.expect(o.bold, unittest.isTrue); + unittest.expect(o.fontFamily, unittest.equals('foo')); + checkDimension(o.fontSize); + checkOptionalColor(o.foregroundColor); + unittest.expect(o.italic, unittest.isTrue); + checkLink(o.link); + unittest.expect(o.smallCaps, unittest.isTrue); + unittest.expect(o.strikethrough, unittest.isTrue); + unittest.expect(o.underline, unittest.isTrue); + } + buildCounterTextStyle--; +} + +core.int buildCounterThemeColorPair = 0; +buildThemeColorPair() { + var o = new api.ThemeColorPair(); + buildCounterThemeColorPair++; + if (buildCounterThemeColorPair < 3) { + o.color = buildRgbColor(); + o.type = "foo"; + } + buildCounterThemeColorPair--; + return o; +} + +checkThemeColorPair(api.ThemeColorPair o) { + buildCounterThemeColorPair++; + if (buildCounterThemeColorPair < 3) { + checkRgbColor(o.color); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterThemeColorPair--; +} + +core.int buildCounterUpdateImagePropertiesRequest = 0; +buildUpdateImagePropertiesRequest() { + var o = new api.UpdateImagePropertiesRequest(); + buildCounterUpdateImagePropertiesRequest++; + if (buildCounterUpdateImagePropertiesRequest < 3) { + o.fields = "foo"; + o.imageProperties = buildImageProperties(); + o.objectId = "foo"; + } + buildCounterUpdateImagePropertiesRequest--; + return o; +} + +checkUpdateImagePropertiesRequest(api.UpdateImagePropertiesRequest o) { + buildCounterUpdateImagePropertiesRequest++; + if (buildCounterUpdateImagePropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + checkImageProperties(o.imageProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterUpdateImagePropertiesRequest--; +} + +core.int buildCounterUpdateLinePropertiesRequest = 0; +buildUpdateLinePropertiesRequest() { + var o = new api.UpdateLinePropertiesRequest(); + buildCounterUpdateLinePropertiesRequest++; + if (buildCounterUpdateLinePropertiesRequest < 3) { + o.fields = "foo"; + o.lineProperties = buildLineProperties(); + o.objectId = "foo"; + } + buildCounterUpdateLinePropertiesRequest--; + return o; +} + +checkUpdateLinePropertiesRequest(api.UpdateLinePropertiesRequest o) { + buildCounterUpdateLinePropertiesRequest++; + if (buildCounterUpdateLinePropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + checkLineProperties(o.lineProperties); + unittest.expect(o.objectId, unittest.equals('foo')); + } + buildCounterUpdateLinePropertiesRequest--; +} + +core.int buildCounterUpdatePageElementTransformRequest = 0; +buildUpdatePageElementTransformRequest() { + var o = new api.UpdatePageElementTransformRequest(); + buildCounterUpdatePageElementTransformRequest++; + if (buildCounterUpdatePageElementTransformRequest < 3) { + o.applyMode = "foo"; + o.objectId = "foo"; + o.transform = buildAffineTransform(); + } + buildCounterUpdatePageElementTransformRequest--; + return o; +} + +checkUpdatePageElementTransformRequest(api.UpdatePageElementTransformRequest o) { + buildCounterUpdatePageElementTransformRequest++; + if (buildCounterUpdatePageElementTransformRequest < 3) { + unittest.expect(o.applyMode, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkAffineTransform(o.transform); + } + buildCounterUpdatePageElementTransformRequest--; +} + +core.int buildCounterUpdatePagePropertiesRequest = 0; +buildUpdatePagePropertiesRequest() { + var o = new api.UpdatePagePropertiesRequest(); + buildCounterUpdatePagePropertiesRequest++; + if (buildCounterUpdatePagePropertiesRequest < 3) { + o.fields = "foo"; + o.objectId = "foo"; + o.pageProperties = buildPageProperties(); + } + buildCounterUpdatePagePropertiesRequest--; + return o; +} + +checkUpdatePagePropertiesRequest(api.UpdatePagePropertiesRequest o) { + buildCounterUpdatePagePropertiesRequest++; + if (buildCounterUpdatePagePropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkPageProperties(o.pageProperties); + } + buildCounterUpdatePagePropertiesRequest--; +} + +core.int buildCounterUpdateShapePropertiesRequest = 0; +buildUpdateShapePropertiesRequest() { + var o = new api.UpdateShapePropertiesRequest(); + buildCounterUpdateShapePropertiesRequest++; + if (buildCounterUpdateShapePropertiesRequest < 3) { + o.fields = "foo"; + o.objectId = "foo"; + o.shapeProperties = buildShapeProperties(); + } + buildCounterUpdateShapePropertiesRequest--; + return o; +} + +checkUpdateShapePropertiesRequest(api.UpdateShapePropertiesRequest o) { + buildCounterUpdateShapePropertiesRequest++; + if (buildCounterUpdateShapePropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkShapeProperties(o.shapeProperties); + } + buildCounterUpdateShapePropertiesRequest--; +} + +buildUnnamed1673() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1673(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterUpdateSlidesPositionRequest = 0; +buildUpdateSlidesPositionRequest() { + var o = new api.UpdateSlidesPositionRequest(); + buildCounterUpdateSlidesPositionRequest++; + if (buildCounterUpdateSlidesPositionRequest < 3) { + o.insertionIndex = 42; + o.slideObjectIds = buildUnnamed1673(); + } + buildCounterUpdateSlidesPositionRequest--; + return o; +} + +checkUpdateSlidesPositionRequest(api.UpdateSlidesPositionRequest o) { + buildCounterUpdateSlidesPositionRequest++; + if (buildCounterUpdateSlidesPositionRequest < 3) { + unittest.expect(o.insertionIndex, unittest.equals(42)); + checkUnnamed1673(o.slideObjectIds); + } + buildCounterUpdateSlidesPositionRequest--; +} + +core.int buildCounterUpdateTableCellPropertiesRequest = 0; +buildUpdateTableCellPropertiesRequest() { + var o = new api.UpdateTableCellPropertiesRequest(); + buildCounterUpdateTableCellPropertiesRequest++; + if (buildCounterUpdateTableCellPropertiesRequest < 3) { + o.fields = "foo"; + o.objectId = "foo"; + o.tableCellProperties = buildTableCellProperties(); + o.tableRange = buildTableRange(); + } + buildCounterUpdateTableCellPropertiesRequest--; + return o; +} + +checkUpdateTableCellPropertiesRequest(api.UpdateTableCellPropertiesRequest o) { + buildCounterUpdateTableCellPropertiesRequest++; + if (buildCounterUpdateTableCellPropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkTableCellProperties(o.tableCellProperties); + checkTableRange(o.tableRange); + } + buildCounterUpdateTableCellPropertiesRequest--; +} + +core.int buildCounterUpdateTextStyleRequest = 0; +buildUpdateTextStyleRequest() { + var o = new api.UpdateTextStyleRequest(); + buildCounterUpdateTextStyleRequest++; + if (buildCounterUpdateTextStyleRequest < 3) { + o.cellLocation = buildTableCellLocation(); + o.fields = "foo"; + o.objectId = "foo"; + o.style = buildTextStyle(); + o.textRange = buildRange(); + } + buildCounterUpdateTextStyleRequest--; + return o; +} + +checkUpdateTextStyleRequest(api.UpdateTextStyleRequest o) { + buildCounterUpdateTextStyleRequest++; + if (buildCounterUpdateTextStyleRequest < 3) { + checkTableCellLocation(o.cellLocation); + unittest.expect(o.fields, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkTextStyle(o.style); + checkRange(o.textRange); + } + buildCounterUpdateTextStyleRequest--; +} + +core.int buildCounterUpdateVideoPropertiesRequest = 0; +buildUpdateVideoPropertiesRequest() { + var o = new api.UpdateVideoPropertiesRequest(); + buildCounterUpdateVideoPropertiesRequest++; + if (buildCounterUpdateVideoPropertiesRequest < 3) { + o.fields = "foo"; + o.objectId = "foo"; + o.videoProperties = buildVideoProperties(); + } + buildCounterUpdateVideoPropertiesRequest--; + return o; +} + +checkUpdateVideoPropertiesRequest(api.UpdateVideoPropertiesRequest o) { + buildCounterUpdateVideoPropertiesRequest++; + if (buildCounterUpdateVideoPropertiesRequest < 3) { + unittest.expect(o.fields, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + checkVideoProperties(o.videoProperties); + } + buildCounterUpdateVideoPropertiesRequest--; +} + +core.int buildCounterVideo = 0; +buildVideo() { + var o = new api.Video(); + buildCounterVideo++; + if (buildCounterVideo < 3) { + o.id = "foo"; + o.source = "foo"; + o.url = "foo"; + o.videoProperties = buildVideoProperties(); + } + buildCounterVideo--; + return o; +} + +checkVideo(api.Video o) { + buildCounterVideo++; + if (buildCounterVideo < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.source, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + checkVideoProperties(o.videoProperties); + } + buildCounterVideo--; +} + +core.int buildCounterVideoProperties = 0; +buildVideoProperties() { + var o = new api.VideoProperties(); + buildCounterVideoProperties++; + if (buildCounterVideoProperties < 3) { + o.outline = buildOutline(); + } + buildCounterVideoProperties--; + return o; +} + +checkVideoProperties(api.VideoProperties o) { + buildCounterVideoProperties++; + if (buildCounterVideoProperties < 3) { + checkOutline(o.outline); + } + buildCounterVideoProperties--; +} + +core.int buildCounterWordArt = 0; +buildWordArt() { + var o = new api.WordArt(); + buildCounterWordArt++; + if (buildCounterWordArt < 3) { + o.renderedText = "foo"; + } + buildCounterWordArt--; + return o; +} + +checkWordArt(api.WordArt o) { + buildCounterWordArt++; + if (buildCounterWordArt < 3) { + unittest.expect(o.renderedText, unittest.equals('foo')); + } + buildCounterWordArt--; +} + + +main() { + unittest.group("obj-schema-AffineTransform", () { + unittest.test("to-json--from-json", () { + var o = buildAffineTransform(); + var od = new api.AffineTransform.fromJson(o.toJson()); + checkAffineTransform(od); + }); + }); + + + unittest.group("obj-schema-AutoText", () { + unittest.test("to-json--from-json", () { + var o = buildAutoText(); + var od = new api.AutoText.fromJson(o.toJson()); + checkAutoText(od); + }); + }); + + + unittest.group("obj-schema-BatchUpdatePresentationRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBatchUpdatePresentationRequest(); + var od = new api.BatchUpdatePresentationRequest.fromJson(o.toJson()); + checkBatchUpdatePresentationRequest(od); + }); + }); + + + unittest.group("obj-schema-BatchUpdatePresentationResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBatchUpdatePresentationResponse(); + var od = new api.BatchUpdatePresentationResponse.fromJson(o.toJson()); + checkBatchUpdatePresentationResponse(od); + }); + }); + + + unittest.group("obj-schema-Bullet", () { + unittest.test("to-json--from-json", () { + var o = buildBullet(); + var od = new api.Bullet.fromJson(o.toJson()); + checkBullet(od); + }); + }); + + + unittest.group("obj-schema-ColorScheme", () { + unittest.test("to-json--from-json", () { + var o = buildColorScheme(); + var od = new api.ColorScheme.fromJson(o.toJson()); + checkColorScheme(od); + }); + }); + + + unittest.group("obj-schema-ColorStop", () { + unittest.test("to-json--from-json", () { + var o = buildColorStop(); + var od = new api.ColorStop.fromJson(o.toJson()); + checkColorStop(od); + }); + }); + + + unittest.group("obj-schema-CreateImageRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateImageRequest(); + var od = new api.CreateImageRequest.fromJson(o.toJson()); + checkCreateImageRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateImageResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateImageResponse(); + var od = new api.CreateImageResponse.fromJson(o.toJson()); + checkCreateImageResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateLineRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateLineRequest(); + var od = new api.CreateLineRequest.fromJson(o.toJson()); + checkCreateLineRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateLineResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateLineResponse(); + var od = new api.CreateLineResponse.fromJson(o.toJson()); + checkCreateLineResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateParagraphBulletsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateParagraphBulletsRequest(); + var od = new api.CreateParagraphBulletsRequest.fromJson(o.toJson()); + checkCreateParagraphBulletsRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateShapeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShapeRequest(); + var od = new api.CreateShapeRequest.fromJson(o.toJson()); + checkCreateShapeRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateShapeResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShapeResponse(); + var od = new api.CreateShapeResponse.fromJson(o.toJson()); + checkCreateShapeResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateSheetsChartRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateSheetsChartRequest(); + var od = new api.CreateSheetsChartRequest.fromJson(o.toJson()); + checkCreateSheetsChartRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateSheetsChartResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateSheetsChartResponse(); + var od = new api.CreateSheetsChartResponse.fromJson(o.toJson()); + checkCreateSheetsChartResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateSlideRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateSlideRequest(); + var od = new api.CreateSlideRequest.fromJson(o.toJson()); + checkCreateSlideRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateSlideResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateSlideResponse(); + var od = new api.CreateSlideResponse.fromJson(o.toJson()); + checkCreateSlideResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateTableRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateTableRequest(); + var od = new api.CreateTableRequest.fromJson(o.toJson()); + checkCreateTableRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateTableResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateTableResponse(); + var od = new api.CreateTableResponse.fromJson(o.toJson()); + checkCreateTableResponse(od); + }); + }); + + + unittest.group("obj-schema-CreateVideoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateVideoRequest(); + var od = new api.CreateVideoRequest.fromJson(o.toJson()); + checkCreateVideoRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateVideoResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateVideoResponse(); + var od = new api.CreateVideoResponse.fromJson(o.toJson()); + checkCreateVideoResponse(od); + }); + }); + + + unittest.group("obj-schema-CropProperties", () { + unittest.test("to-json--from-json", () { + var o = buildCropProperties(); + var od = new api.CropProperties.fromJson(o.toJson()); + checkCropProperties(od); + }); + }); + + + unittest.group("obj-schema-DeleteObjectRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteObjectRequest(); + var od = new api.DeleteObjectRequest.fromJson(o.toJson()); + checkDeleteObjectRequest(od); + }); + }); + + + unittest.group("obj-schema-DeleteTableColumnRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteTableColumnRequest(); + var od = new api.DeleteTableColumnRequest.fromJson(o.toJson()); + checkDeleteTableColumnRequest(od); + }); + }); + + + unittest.group("obj-schema-DeleteTableRowRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteTableRowRequest(); + var od = new api.DeleteTableRowRequest.fromJson(o.toJson()); + checkDeleteTableRowRequest(od); + }); + }); + + + unittest.group("obj-schema-DeleteTextRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteTextRequest(); + var od = new api.DeleteTextRequest.fromJson(o.toJson()); + checkDeleteTextRequest(od); + }); + }); + + + unittest.group("obj-schema-Dimension", () { + unittest.test("to-json--from-json", () { + var o = buildDimension(); + var od = new api.Dimension.fromJson(o.toJson()); + checkDimension(od); + }); + }); + + + unittest.group("obj-schema-DuplicateObjectRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDuplicateObjectRequest(); + var od = new api.DuplicateObjectRequest.fromJson(o.toJson()); + checkDuplicateObjectRequest(od); + }); + }); + + + unittest.group("obj-schema-DuplicateObjectResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDuplicateObjectResponse(); + var od = new api.DuplicateObjectResponse.fromJson(o.toJson()); + checkDuplicateObjectResponse(od); + }); + }); + + + unittest.group("obj-schema-Group", () { + unittest.test("to-json--from-json", () { + var o = buildGroup(); + var od = new api.Group.fromJson(o.toJson()); + checkGroup(od); + }); + }); + + + unittest.group("obj-schema-Image", () { + unittest.test("to-json--from-json", () { + var o = buildImage(); + var od = new api.Image.fromJson(o.toJson()); + checkImage(od); + }); + }); + + + unittest.group("obj-schema-ImageProperties", () { + unittest.test("to-json--from-json", () { + var o = buildImageProperties(); + var od = new api.ImageProperties.fromJson(o.toJson()); + checkImageProperties(od); + }); + }); + + + unittest.group("obj-schema-InsertTableColumnsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildInsertTableColumnsRequest(); + var od = new api.InsertTableColumnsRequest.fromJson(o.toJson()); + checkInsertTableColumnsRequest(od); + }); + }); + + + unittest.group("obj-schema-InsertTableRowsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildInsertTableRowsRequest(); + var od = new api.InsertTableRowsRequest.fromJson(o.toJson()); + checkInsertTableRowsRequest(od); + }); + }); + + + unittest.group("obj-schema-InsertTextRequest", () { + unittest.test("to-json--from-json", () { + var o = buildInsertTextRequest(); + var od = new api.InsertTextRequest.fromJson(o.toJson()); + checkInsertTextRequest(od); + }); + }); + + + unittest.group("obj-schema-LayoutProperties", () { + unittest.test("to-json--from-json", () { + var o = buildLayoutProperties(); + var od = new api.LayoutProperties.fromJson(o.toJson()); + checkLayoutProperties(od); + }); + }); + + + unittest.group("obj-schema-LayoutReference", () { + unittest.test("to-json--from-json", () { + var o = buildLayoutReference(); + var od = new api.LayoutReference.fromJson(o.toJson()); + checkLayoutReference(od); + }); + }); + + + unittest.group("obj-schema-Line", () { + unittest.test("to-json--from-json", () { + var o = buildLine(); + var od = new api.Line.fromJson(o.toJson()); + checkLine(od); + }); + }); + + + unittest.group("obj-schema-LineFill", () { + unittest.test("to-json--from-json", () { + var o = buildLineFill(); + var od = new api.LineFill.fromJson(o.toJson()); + checkLineFill(od); + }); + }); + + + unittest.group("obj-schema-LineProperties", () { + unittest.test("to-json--from-json", () { + var o = buildLineProperties(); + var od = new api.LineProperties.fromJson(o.toJson()); + checkLineProperties(od); + }); + }); + + + unittest.group("obj-schema-Link", () { + unittest.test("to-json--from-json", () { + var o = buildLink(); + var od = new api.Link.fromJson(o.toJson()); + checkLink(od); + }); + }); + + + unittest.group("obj-schema-List", () { + unittest.test("to-json--from-json", () { + var o = buildList(); + var od = new api.List.fromJson(o.toJson()); + checkList(od); + }); + }); + + + unittest.group("obj-schema-NestingLevel", () { + unittest.test("to-json--from-json", () { + var o = buildNestingLevel(); + var od = new api.NestingLevel.fromJson(o.toJson()); + checkNestingLevel(od); + }); + }); + + + unittest.group("obj-schema-OpaqueColor", () { + unittest.test("to-json--from-json", () { + var o = buildOpaqueColor(); + var od = new api.OpaqueColor.fromJson(o.toJson()); + checkOpaqueColor(od); + }); + }); + + + unittest.group("obj-schema-OptionalColor", () { + unittest.test("to-json--from-json", () { + var o = buildOptionalColor(); + var od = new api.OptionalColor.fromJson(o.toJson()); + checkOptionalColor(od); + }); + }); + + + unittest.group("obj-schema-Outline", () { + unittest.test("to-json--from-json", () { + var o = buildOutline(); + var od = new api.Outline.fromJson(o.toJson()); + checkOutline(od); + }); + }); + + + unittest.group("obj-schema-OutlineFill", () { + unittest.test("to-json--from-json", () { + var o = buildOutlineFill(); + var od = new api.OutlineFill.fromJson(o.toJson()); + checkOutlineFill(od); + }); + }); + + + unittest.group("obj-schema-Page", () { + unittest.test("to-json--from-json", () { + var o = buildPage(); + var od = new api.Page.fromJson(o.toJson()); + checkPage(od); + }); + }); + + + unittest.group("obj-schema-PageBackgroundFill", () { + unittest.test("to-json--from-json", () { + var o = buildPageBackgroundFill(); + var od = new api.PageBackgroundFill.fromJson(o.toJson()); + checkPageBackgroundFill(od); + }); + }); + + + unittest.group("obj-schema-PageElement", () { + unittest.test("to-json--from-json", () { + var o = buildPageElement(); + var od = new api.PageElement.fromJson(o.toJson()); + checkPageElement(od); + }); + }); + + + unittest.group("obj-schema-PageElementProperties", () { + unittest.test("to-json--from-json", () { + var o = buildPageElementProperties(); + var od = new api.PageElementProperties.fromJson(o.toJson()); + checkPageElementProperties(od); + }); + }); + + + unittest.group("obj-schema-PageProperties", () { + unittest.test("to-json--from-json", () { + var o = buildPageProperties(); + var od = new api.PageProperties.fromJson(o.toJson()); + checkPageProperties(od); + }); + }); + + + unittest.group("obj-schema-ParagraphMarker", () { + unittest.test("to-json--from-json", () { + var o = buildParagraphMarker(); + var od = new api.ParagraphMarker.fromJson(o.toJson()); + checkParagraphMarker(od); + }); + }); + + + unittest.group("obj-schema-ParagraphStyle", () { + unittest.test("to-json--from-json", () { + var o = buildParagraphStyle(); + var od = new api.ParagraphStyle.fromJson(o.toJson()); + checkParagraphStyle(od); + }); + }); + + + unittest.group("obj-schema-Placeholder", () { + unittest.test("to-json--from-json", () { + var o = buildPlaceholder(); + var od = new api.Placeholder.fromJson(o.toJson()); + checkPlaceholder(od); + }); + }); + + + unittest.group("obj-schema-Presentation", () { + unittest.test("to-json--from-json", () { + var o = buildPresentation(); + var od = new api.Presentation.fromJson(o.toJson()); + checkPresentation(od); + }); + }); + + + unittest.group("obj-schema-Range", () { + unittest.test("to-json--from-json", () { + var o = buildRange(); + var od = new api.Range.fromJson(o.toJson()); + checkRange(od); + }); + }); + + + unittest.group("obj-schema-Recolor", () { + unittest.test("to-json--from-json", () { + var o = buildRecolor(); + var od = new api.Recolor.fromJson(o.toJson()); + checkRecolor(od); + }); + }); + + + unittest.group("obj-schema-RefreshSheetsChartRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRefreshSheetsChartRequest(); + var od = new api.RefreshSheetsChartRequest.fromJson(o.toJson()); + checkRefreshSheetsChartRequest(od); + }); + }); + + + unittest.group("obj-schema-ReplaceAllShapesWithImageRequest", () { + unittest.test("to-json--from-json", () { + var o = buildReplaceAllShapesWithImageRequest(); + var od = new api.ReplaceAllShapesWithImageRequest.fromJson(o.toJson()); + checkReplaceAllShapesWithImageRequest(od); + }); + }); + + + unittest.group("obj-schema-ReplaceAllShapesWithImageResponse", () { + unittest.test("to-json--from-json", () { + var o = buildReplaceAllShapesWithImageResponse(); + var od = new api.ReplaceAllShapesWithImageResponse.fromJson(o.toJson()); + checkReplaceAllShapesWithImageResponse(od); + }); + }); + + + unittest.group("obj-schema-ReplaceAllTextRequest", () { + unittest.test("to-json--from-json", () { + var o = buildReplaceAllTextRequest(); + var od = new api.ReplaceAllTextRequest.fromJson(o.toJson()); + checkReplaceAllTextRequest(od); + }); + }); + + + unittest.group("obj-schema-ReplaceAllTextResponse", () { + unittest.test("to-json--from-json", () { + var o = buildReplaceAllTextResponse(); + var od = new api.ReplaceAllTextResponse.fromJson(o.toJson()); + checkReplaceAllTextResponse(od); + }); + }); + + + unittest.group("obj-schema-Request", () { + unittest.test("to-json--from-json", () { + var o = buildRequest(); + var od = new api.Request.fromJson(o.toJson()); + checkRequest(od); + }); + }); + + + unittest.group("obj-schema-Response", () { + unittest.test("to-json--from-json", () { + var o = buildResponse(); + var od = new api.Response.fromJson(o.toJson()); + checkResponse(od); + }); + }); + + + unittest.group("obj-schema-RgbColor", () { + unittest.test("to-json--from-json", () { + var o = buildRgbColor(); + var od = new api.RgbColor.fromJson(o.toJson()); + checkRgbColor(od); + }); + }); + + + unittest.group("obj-schema-Shadow", () { + unittest.test("to-json--from-json", () { + var o = buildShadow(); + var od = new api.Shadow.fromJson(o.toJson()); + checkShadow(od); + }); + }); + + + unittest.group("obj-schema-Shape", () { + unittest.test("to-json--from-json", () { + var o = buildShape(); + var od = new api.Shape.fromJson(o.toJson()); + checkShape(od); + }); + }); + + + unittest.group("obj-schema-ShapeBackgroundFill", () { + unittest.test("to-json--from-json", () { + var o = buildShapeBackgroundFill(); + var od = new api.ShapeBackgroundFill.fromJson(o.toJson()); + checkShapeBackgroundFill(od); + }); + }); + + + unittest.group("obj-schema-ShapeProperties", () { + unittest.test("to-json--from-json", () { + var o = buildShapeProperties(); + var od = new api.ShapeProperties.fromJson(o.toJson()); + checkShapeProperties(od); + }); + }); + + + unittest.group("obj-schema-SheetsChart", () { + unittest.test("to-json--from-json", () { + var o = buildSheetsChart(); + var od = new api.SheetsChart.fromJson(o.toJson()); + checkSheetsChart(od); + }); + }); + + + unittest.group("obj-schema-SheetsChartProperties", () { + unittest.test("to-json--from-json", () { + var o = buildSheetsChartProperties(); + var od = new api.SheetsChartProperties.fromJson(o.toJson()); + checkSheetsChartProperties(od); + }); + }); + + + unittest.group("obj-schema-Size", () { + unittest.test("to-json--from-json", () { + var o = buildSize(); + var od = new api.Size.fromJson(o.toJson()); + checkSize(od); + }); + }); + + + unittest.group("obj-schema-SlideProperties", () { + unittest.test("to-json--from-json", () { + var o = buildSlideProperties(); + var od = new api.SlideProperties.fromJson(o.toJson()); + checkSlideProperties(od); + }); + }); + + + unittest.group("obj-schema-SolidFill", () { + unittest.test("to-json--from-json", () { + var o = buildSolidFill(); + var od = new api.SolidFill.fromJson(o.toJson()); + checkSolidFill(od); + }); + }); + + + unittest.group("obj-schema-StretchedPictureFill", () { + unittest.test("to-json--from-json", () { + var o = buildStretchedPictureFill(); + var od = new api.StretchedPictureFill.fromJson(o.toJson()); + checkStretchedPictureFill(od); + }); + }); + + + unittest.group("obj-schema-SubstringMatchCriteria", () { + unittest.test("to-json--from-json", () { + var o = buildSubstringMatchCriteria(); + var od = new api.SubstringMatchCriteria.fromJson(o.toJson()); + checkSubstringMatchCriteria(od); + }); + }); + + + unittest.group("obj-schema-Table", () { + unittest.test("to-json--from-json", () { + var o = buildTable(); + var od = new api.Table.fromJson(o.toJson()); + checkTable(od); + }); + }); + + + unittest.group("obj-schema-TableCell", () { + unittest.test("to-json--from-json", () { + var o = buildTableCell(); + var od = new api.TableCell.fromJson(o.toJson()); + checkTableCell(od); + }); + }); + + + unittest.group("obj-schema-TableCellBackgroundFill", () { + unittest.test("to-json--from-json", () { + var o = buildTableCellBackgroundFill(); + var od = new api.TableCellBackgroundFill.fromJson(o.toJson()); + checkTableCellBackgroundFill(od); + }); + }); + + + unittest.group("obj-schema-TableCellLocation", () { + unittest.test("to-json--from-json", () { + var o = buildTableCellLocation(); + var od = new api.TableCellLocation.fromJson(o.toJson()); + checkTableCellLocation(od); + }); + }); + + + unittest.group("obj-schema-TableCellProperties", () { + unittest.test("to-json--from-json", () { + var o = buildTableCellProperties(); + var od = new api.TableCellProperties.fromJson(o.toJson()); + checkTableCellProperties(od); + }); + }); + + + unittest.group("obj-schema-TableColumnProperties", () { + unittest.test("to-json--from-json", () { + var o = buildTableColumnProperties(); + var od = new api.TableColumnProperties.fromJson(o.toJson()); + checkTableColumnProperties(od); + }); + }); + + + unittest.group("obj-schema-TableRange", () { + unittest.test("to-json--from-json", () { + var o = buildTableRange(); + var od = new api.TableRange.fromJson(o.toJson()); + checkTableRange(od); + }); + }); + + + unittest.group("obj-schema-TableRow", () { + unittest.test("to-json--from-json", () { + var o = buildTableRow(); + var od = new api.TableRow.fromJson(o.toJson()); + checkTableRow(od); + }); + }); + + + unittest.group("obj-schema-TextContent", () { + unittest.test("to-json--from-json", () { + var o = buildTextContent(); + var od = new api.TextContent.fromJson(o.toJson()); + checkTextContent(od); + }); + }); + + + unittest.group("obj-schema-TextElement", () { + unittest.test("to-json--from-json", () { + var o = buildTextElement(); + var od = new api.TextElement.fromJson(o.toJson()); + checkTextElement(od); + }); + }); + + + unittest.group("obj-schema-TextRun", () { + unittest.test("to-json--from-json", () { + var o = buildTextRun(); + var od = new api.TextRun.fromJson(o.toJson()); + checkTextRun(od); + }); + }); + + + unittest.group("obj-schema-TextStyle", () { + unittest.test("to-json--from-json", () { + var o = buildTextStyle(); + var od = new api.TextStyle.fromJson(o.toJson()); + checkTextStyle(od); + }); + }); + + + unittest.group("obj-schema-ThemeColorPair", () { + unittest.test("to-json--from-json", () { + var o = buildThemeColorPair(); + var od = new api.ThemeColorPair.fromJson(o.toJson()); + checkThemeColorPair(od); + }); + }); + + + unittest.group("obj-schema-UpdateImagePropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateImagePropertiesRequest(); + var od = new api.UpdateImagePropertiesRequest.fromJson(o.toJson()); + checkUpdateImagePropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateLinePropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateLinePropertiesRequest(); + var od = new api.UpdateLinePropertiesRequest.fromJson(o.toJson()); + checkUpdateLinePropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdatePageElementTransformRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdatePageElementTransformRequest(); + var od = new api.UpdatePageElementTransformRequest.fromJson(o.toJson()); + checkUpdatePageElementTransformRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdatePagePropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdatePagePropertiesRequest(); + var od = new api.UpdatePagePropertiesRequest.fromJson(o.toJson()); + checkUpdatePagePropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateShapePropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateShapePropertiesRequest(); + var od = new api.UpdateShapePropertiesRequest.fromJson(o.toJson()); + checkUpdateShapePropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateSlidesPositionRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateSlidesPositionRequest(); + var od = new api.UpdateSlidesPositionRequest.fromJson(o.toJson()); + checkUpdateSlidesPositionRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateTableCellPropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateTableCellPropertiesRequest(); + var od = new api.UpdateTableCellPropertiesRequest.fromJson(o.toJson()); + checkUpdateTableCellPropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateTextStyleRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateTextStyleRequest(); + var od = new api.UpdateTextStyleRequest.fromJson(o.toJson()); + checkUpdateTextStyleRequest(od); + }); + }); + + + unittest.group("obj-schema-UpdateVideoPropertiesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateVideoPropertiesRequest(); + var od = new api.UpdateVideoPropertiesRequest.fromJson(o.toJson()); + checkUpdateVideoPropertiesRequest(od); + }); + }); + + + unittest.group("obj-schema-Video", () { + unittest.test("to-json--from-json", () { + var o = buildVideo(); + var od = new api.Video.fromJson(o.toJson()); + checkVideo(od); + }); + }); + + + unittest.group("obj-schema-VideoProperties", () { + unittest.test("to-json--from-json", () { + var o = buildVideoProperties(); + var od = new api.VideoProperties.fromJson(o.toJson()); + checkVideoProperties(od); + }); + }); + + + unittest.group("obj-schema-WordArt", () { + unittest.test("to-json--from-json", () { + var o = buildWordArt(); + var od = new api.WordArt.fromJson(o.toJson()); + checkWordArt(od); + }); + }); + + + unittest.group("resource-PresentationsResourceApi", () { + unittest.test("method--batchUpdate", () { + + var mock = new HttpServerMock(); + api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; + var arg_request = buildBatchUpdatePresentationRequest(); + var arg_presentationId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BatchUpdatePresentationRequest.fromJson(json); + checkBatchUpdatePresentationRequest(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/presentations/")); + pathOffset += 17; + index = path.indexOf(":batchUpdate", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_presentationId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals(":batchUpdate")); + pathOffset += 12; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildBatchUpdatePresentationResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchUpdate(arg_request, arg_presentationId).then(unittest.expectAsync(((api.BatchUpdatePresentationResponse response) { + checkBatchUpdatePresentationResponse(response); + }))); + }); + + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; + var arg_request = buildPresentation(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Presentation.fromJson(json); + checkPresentation(obj); + + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("v1/presentations")); + pathOffset += 16; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPresentation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.Presentation response) { + checkPresentation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.PresentationsResourceApi res = new api.SlidesApi(mock).presentations; + var arg_presentationId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/presentations/")); + pathOffset += 17; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPresentation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_presentationId).then(unittest.expectAsync(((api.Presentation response) { + checkPresentation(response); + }))); + }); + + }); + + + unittest.group("resource-PresentationsPagesResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.PresentationsPagesResourceApi res = new api.SlidesApi(mock).presentations.pages; + var arg_presentationId = "foo"; + var arg_pageObjectId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/presentations/")); + pathOffset += 17; + index = path.indexOf("/pages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_presentationId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/pages/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_pageObjectId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = {}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildPage()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_presentationId, arg_pageObjectId).then(unittest.expectAsync(((api.Page response) { + checkPage(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index 07610b1..4693d9c 100644 --- a/generated/googleapis/test/storage/v1_test.dart +++ b/generated/googleapis/test/storage/v1_test.dart
@@ -51,53 +51,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed981() { +buildUnnamed721() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed981(core.List<api.BucketAccessControl> o) { +checkUnnamed721(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); } -buildUnnamed982() { +buildUnnamed722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed982(core.List<core.String> o) { +checkUnnamed722(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed983() { +buildUnnamed723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed983(core.List<core.String> o) { +checkUnnamed723(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed984() { +buildUnnamed724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed984(core.List<core.String> o) { +checkUnnamed724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -109,9 +109,9 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { o.maxAgeSeconds = 42; - o.method = buildUnnamed982(); - o.origin = buildUnnamed983(); - o.responseHeader = buildUnnamed984(); + o.method = buildUnnamed722(); + o.origin = buildUnnamed723(); + o.responseHeader = buildUnnamed724(); } buildCounterBucketCors--; return o; @@ -121,34 +121,34 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { unittest.expect(o.maxAgeSeconds, unittest.equals(42)); - checkUnnamed982(o.method); - checkUnnamed983(o.origin); - checkUnnamed984(o.responseHeader); + checkUnnamed722(o.method); + checkUnnamed723(o.origin); + checkUnnamed724(o.responseHeader); } buildCounterBucketCors--; } -buildUnnamed985() { +buildUnnamed725() { var o = new core.List<api.BucketCors>(); o.add(buildBucketCors()); o.add(buildBucketCors()); return o; } -checkUnnamed985(core.List<api.BucketCors> o) { +checkUnnamed725(core.List<api.BucketCors> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketCors(o[0]); checkBucketCors(o[1]); } -buildUnnamed986() { +buildUnnamed726() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed986(core.List<api.ObjectAccessControl> o) { +checkUnnamed726(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -175,14 +175,14 @@ buildCounterBucketLifecycleRuleAction--; } -buildUnnamed987() { +buildUnnamed727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed987(core.List<core.String> o) { +checkUnnamed727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -196,7 +196,7 @@ o.age = 42; o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.isLive = true; - o.matchesStorageClass = buildUnnamed987(); + o.matchesStorageClass = buildUnnamed727(); o.numNewerVersions = 42; } buildCounterBucketLifecycleRuleCondition--; @@ -209,7 +209,7 @@ unittest.expect(o.age, unittest.equals(42)); unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.isLive, unittest.isTrue); - checkUnnamed987(o.matchesStorageClass); + checkUnnamed727(o.matchesStorageClass); unittest.expect(o.numNewerVersions, unittest.equals(42)); } buildCounterBucketLifecycleRuleCondition--; @@ -236,14 +236,14 @@ buildCounterBucketLifecycleRule--; } -buildUnnamed988() { +buildUnnamed728() { var o = new core.List<api.BucketLifecycleRule>(); o.add(buildBucketLifecycleRule()); o.add(buildBucketLifecycleRule()); return o; } -checkUnnamed988(core.List<api.BucketLifecycleRule> o) { +checkUnnamed728(core.List<api.BucketLifecycleRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketLifecycleRule(o[0]); checkBucketLifecycleRule(o[1]); @@ -254,7 +254,7 @@ var o = new api.BucketLifecycle(); buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - o.rule = buildUnnamed988(); + o.rule = buildUnnamed728(); } buildCounterBucketLifecycle--; return o; @@ -263,7 +263,7 @@ checkBucketLifecycle(api.BucketLifecycle o) { buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - checkUnnamed988(o.rule); + checkUnnamed728(o.rule); } buildCounterBucketLifecycle--; } @@ -355,9 +355,9 @@ var o = new api.Bucket(); buildCounterBucket++; if (buildCounterBucket < 3) { - o.acl = buildUnnamed981(); - o.cors = buildUnnamed985(); - o.defaultObjectAcl = buildUnnamed986(); + o.acl = buildUnnamed721(); + o.cors = buildUnnamed725(); + o.defaultObjectAcl = buildUnnamed726(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -382,9 +382,9 @@ checkBucket(api.Bucket o) { buildCounterBucket++; if (buildCounterBucket < 3) { - checkUnnamed981(o.acl); - checkUnnamed985(o.cors); - checkUnnamed986(o.defaultObjectAcl); + checkUnnamed721(o.acl); + checkUnnamed725(o.cors); + checkUnnamed726(o.defaultObjectAcl); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -465,14 +465,14 @@ buildCounterBucketAccessControl--; } -buildUnnamed989() { +buildUnnamed729() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed989(core.List<api.BucketAccessControl> o) { +checkUnnamed729(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -483,7 +483,7 @@ var o = new api.BucketAccessControls(); buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - o.items = buildUnnamed989(); + o.items = buildUnnamed729(); o.kind = "foo"; } buildCounterBucketAccessControls--; @@ -493,20 +493,20 @@ checkBucketAccessControls(api.BucketAccessControls o) { buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - checkUnnamed989(o.items); + checkUnnamed729(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBucketAccessControls--; } -buildUnnamed990() { +buildUnnamed730() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed990(core.List<api.Bucket> o) { +checkUnnamed730(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -517,7 +517,7 @@ var o = new api.Buckets(); buildCounterBuckets++; if (buildCounterBuckets < 3) { - o.items = buildUnnamed990(); + o.items = buildUnnamed730(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -528,21 +528,21 @@ checkBuckets(api.Buckets o) { buildCounterBuckets++; if (buildCounterBuckets < 3) { - checkUnnamed990(o.items); + checkUnnamed730(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuckets--; } -buildUnnamed991() { +buildUnnamed731() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed991(core.Map<core.String, core.String> o) { +checkUnnamed731(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -557,7 +557,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed991(); + o.params = buildUnnamed731(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -575,7 +575,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed991(o.params); + checkUnnamed731(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -627,14 +627,14 @@ buildCounterComposeRequestSourceObjects--; } -buildUnnamed992() { +buildUnnamed732() { var o = new core.List<api.ComposeRequestSourceObjects>(); o.add(buildComposeRequestSourceObjects()); o.add(buildComposeRequestSourceObjects()); return o; } -checkUnnamed992(core.List<api.ComposeRequestSourceObjects> o) { +checkUnnamed732(core.List<api.ComposeRequestSourceObjects> o) { unittest.expect(o, unittest.hasLength(2)); checkComposeRequestSourceObjects(o[0]); checkComposeRequestSourceObjects(o[1]); @@ -647,7 +647,7 @@ if (buildCounterComposeRequest < 3) { o.destination = buildObject(); o.kind = "foo"; - o.sourceObjects = buildUnnamed992(); + o.sourceObjects = buildUnnamed732(); } buildCounterComposeRequest--; return o; @@ -658,19 +658,19 @@ if (buildCounterComposeRequest < 3) { checkObject(o.destination); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed992(o.sourceObjects); + checkUnnamed732(o.sourceObjects); } buildCounterComposeRequest--; } -buildUnnamed993() { +buildUnnamed733() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed993(core.List<api.ObjectAccessControl> o) { +checkUnnamed733(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -697,14 +697,14 @@ buildCounterObjectCustomerEncryption--; } -buildUnnamed994() { +buildUnnamed734() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed994(core.Map<core.String, core.String> o) { +checkUnnamed734(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -736,7 +736,7 @@ var o = new api.Object(); buildCounterObject++; if (buildCounterObject < 3) { - o.acl = buildUnnamed993(); + o.acl = buildUnnamed733(); o.bucket = "foo"; o.cacheControl = "foo"; o.componentCount = 42; @@ -752,7 +752,7 @@ o.kind = "foo"; o.md5Hash = "foo"; o.mediaLink = "foo"; - o.metadata = buildUnnamed994(); + o.metadata = buildUnnamed734(); o.metageneration = "foo"; o.name = "foo"; o.owner = buildObjectOwner(); @@ -761,6 +761,7 @@ o.storageClass = "foo"; o.timeCreated = core.DateTime.parse("2002-02-27T14:01:02"); o.timeDeleted = core.DateTime.parse("2002-02-27T14:01:02"); + o.timeStorageClassUpdated = core.DateTime.parse("2002-02-27T14:01:02"); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); } buildCounterObject--; @@ -770,7 +771,7 @@ checkObject(api.Object o) { buildCounterObject++; if (buildCounterObject < 3) { - checkUnnamed993(o.acl); + checkUnnamed733(o.acl); unittest.expect(o.bucket, unittest.equals('foo')); unittest.expect(o.cacheControl, unittest.equals('foo')); unittest.expect(o.componentCount, unittest.equals(42)); @@ -786,7 +787,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.md5Hash, unittest.equals('foo')); unittest.expect(o.mediaLink, unittest.equals('foo')); - checkUnnamed994(o.metadata); + checkUnnamed734(o.metadata); unittest.expect(o.metageneration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkObjectOwner(o.owner); @@ -795,6 +796,7 @@ unittest.expect(o.storageClass, unittest.equals('foo')); unittest.expect(o.timeCreated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.timeDeleted, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.timeStorageClassUpdated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } buildCounterObject--; @@ -864,14 +866,14 @@ buildCounterObjectAccessControl--; } -buildUnnamed995() { +buildUnnamed735() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed995(core.List<api.ObjectAccessControl> o) { +checkUnnamed735(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -882,7 +884,7 @@ var o = new api.ObjectAccessControls(); buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - o.items = buildUnnamed995(); + o.items = buildUnnamed735(); o.kind = "foo"; } buildCounterObjectAccessControls--; @@ -892,33 +894,33 @@ checkObjectAccessControls(api.ObjectAccessControls o) { buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - checkUnnamed995(o.items); + checkUnnamed735(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterObjectAccessControls--; } -buildUnnamed996() { +buildUnnamed736() { var o = new core.List<api.Object>(); o.add(buildObject()); o.add(buildObject()); return o; } -checkUnnamed996(core.List<api.Object> o) { +checkUnnamed736(core.List<api.Object> o) { unittest.expect(o, unittest.hasLength(2)); checkObject(o[0]); checkObject(o[1]); } -buildUnnamed997() { +buildUnnamed737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed997(core.List<core.String> o) { +checkUnnamed737(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -929,10 +931,10 @@ var o = new api.Objects(); buildCounterObjects++; if (buildCounterObjects < 3) { - o.items = buildUnnamed996(); + o.items = buildUnnamed736(); o.kind = "foo"; o.nextPageToken = "foo"; - o.prefixes = buildUnnamed997(); + o.prefixes = buildUnnamed737(); } buildCounterObjects--; return o; @@ -941,10 +943,10 @@ checkObjects(api.Objects o) { buildCounterObjects++; if (buildCounterObjects < 3) { - checkUnnamed996(o.items); + checkUnnamed736(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed997(o.prefixes); + checkUnnamed737(o.prefixes); } buildCounterObjects--; }
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index e58f24d..cbc7c9f 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -133,14 +133,14 @@ buildCounterEmpty--; } -buildUnnamed1411() { +buildUnnamed1164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1411(core.List<core.String> o) { +checkUnnamed1164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -151,7 +151,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1411(); + o.errorDetails = buildUnnamed1164(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -161,20 +161,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1411(o.errorDetails); + checkUnnamed1164(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1412() { +buildUnnamed1165() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1412(core.List<api.ErrorLogEntry> o) { +checkUnnamed1165(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -187,7 +187,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1412(); + o.errorLogEntries = buildUnnamed1165(); } buildCounterErrorSummary--; return o; @@ -198,7 +198,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1412(o.errorLogEntries); + checkUnnamed1165(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -260,14 +260,14 @@ buildCounterHttpData--; } -buildUnnamed1413() { +buildUnnamed1166() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1413(core.List<api.Operation> o) { +checkUnnamed1166(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -279,7 +279,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1413(); + o.operations = buildUnnamed1166(); } buildCounterListOperationsResponse--; return o; @@ -289,19 +289,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1413(o.operations); + checkUnnamed1166(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1414() { +buildUnnamed1167() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1414(core.List<api.TransferJob> o) { +checkUnnamed1167(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -313,7 +313,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1414(); + o.transferJobs = buildUnnamed1167(); } buildCounterListTransferJobsResponse--; return o; @@ -323,32 +323,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1414(o.transferJobs); + checkUnnamed1167(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1415() { +buildUnnamed1168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1415(core.List<core.String> o) { +checkUnnamed1168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1416() { +buildUnnamed1169() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1416(core.List<core.String> o) { +checkUnnamed1169(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -359,8 +359,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1415(); - o.includePrefixes = buildUnnamed1416(); + o.excludePrefixes = buildUnnamed1168(); + o.includePrefixes = buildUnnamed1169(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -371,35 +371,35 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1415(o.excludePrefixes); - checkUnnamed1416(o.includePrefixes); + checkUnnamed1168(o.excludePrefixes); + checkUnnamed1169(o.includePrefixes); unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); } buildCounterObjectConditions--; } -buildUnnamed1417() { +buildUnnamed1170() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1417(core.Map<core.String, core.Object> o) { +checkUnnamed1170(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1418() { +buildUnnamed1171() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1418(core.Map<core.String, core.Object> o) { +checkUnnamed1171(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); @@ -412,9 +412,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1417(); + o.metadata = buildUnnamed1170(); o.name = "foo"; - o.response = buildUnnamed1418(); + o.response = buildUnnamed1171(); } buildCounterOperation--; return o; @@ -425,9 +425,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1417(o.metadata); + checkUnnamed1170(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1418(o.response); + checkUnnamed1171(o.response); } buildCounterOperation--; } @@ -489,30 +489,30 @@ buildCounterSchedule--; } -buildUnnamed1419() { +buildUnnamed1172() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1419(core.Map<core.String, core.Object> o) { +checkUnnamed1172(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1420() { +buildUnnamed1173() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1419()); - o.add(buildUnnamed1419()); + o.add(buildUnnamed1172()); + o.add(buildUnnamed1172()); return o; } -checkUnnamed1420(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1173(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1419(o[0]); - checkUnnamed1419(o[1]); + checkUnnamed1172(o[0]); + checkUnnamed1172(o[1]); } core.int buildCounterStatus = 0; @@ -521,7 +521,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1420(); + o.details = buildUnnamed1173(); o.message = "foo"; } buildCounterStatus--; @@ -532,7 +532,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1420(o.details); + checkUnnamed1173(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -647,14 +647,14 @@ buildCounterTransferJob--; } -buildUnnamed1421() { +buildUnnamed1174() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1421(core.List<api.ErrorSummary> o) { +checkUnnamed1174(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -667,7 +667,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1421(); + o.errorBreakdowns = buildUnnamed1174(); o.name = "foo"; o.projectId = "foo"; o.startTime = "foo"; @@ -684,7 +684,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1421(o.errorBreakdowns); + checkUnnamed1174(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo'));
diff --git a/generated/googleapis/test/surveys/v2_test.dart b/generated/googleapis/test/surveys/v2_test.dart index 3f1b29c..a42942d 100644 --- a/generated/googleapis/test/surveys/v2_test.dart +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2202() { +buildUnnamed1975() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2202(core.List<api.FieldMask> o) { +checkUnnamed1975(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -69,7 +69,7 @@ var o = new api.FieldMask(); buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - o.fields = buildUnnamed2202(); + o.fields = buildUnnamed1975(); o.id = 42; } buildCounterFieldMask--; @@ -79,20 +79,20 @@ checkFieldMask(api.FieldMask o) { buildCounterFieldMask++; if (buildCounterFieldMask < 3) { - checkUnnamed2202(o.fields); + checkUnnamed1975(o.fields); unittest.expect(o.id, unittest.equals(42)); } buildCounterFieldMask--; } -buildUnnamed2203() { +buildUnnamed1976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2203(core.List<core.String> o) { +checkUnnamed1976(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -108,7 +108,7 @@ o.language = "foo"; o.mobileAppPanelId = "foo"; o.name = "foo"; - o.owners = buildUnnamed2203(); + o.owners = buildUnnamed1976(); } buildCounterMobileAppPanel--; return o; @@ -122,19 +122,19 @@ unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2203(o.owners); + checkUnnamed1976(o.owners); } buildCounterMobileAppPanel--; } -buildUnnamed2204() { +buildUnnamed1977() { var o = new core.List<api.MobileAppPanel>(); o.add(buildMobileAppPanel()); o.add(buildMobileAppPanel()); return o; } -checkUnnamed2204(core.List<api.MobileAppPanel> o) { +checkUnnamed1977(core.List<api.MobileAppPanel> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileAppPanel(o[0]); checkMobileAppPanel(o[1]); @@ -147,7 +147,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2204(); + o.resources = buildUnnamed1977(); o.tokenPagination = buildTokenPagination(); } buildCounterMobileAppPanelsListResponse--; @@ -159,7 +159,7 @@ if (buildCounterMobileAppPanelsListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2204(o.resources); + checkUnnamed1977(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterMobileAppPanelsListResponse--; @@ -207,14 +207,14 @@ buildCounterResultsGetRequest--; } -buildUnnamed2205() { +buildUnnamed1978() { var o = new core.List<api.FieldMask>(); o.add(buildFieldMask()); o.add(buildFieldMask()); return o; } -checkUnnamed2205(core.List<api.FieldMask> o) { +checkUnnamed1978(core.List<api.FieldMask> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMask(o[0]); checkFieldMask(o[1]); @@ -225,7 +225,7 @@ var o = new api.ResultsMask(); buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - o.fields = buildUnnamed2205(); + o.fields = buildUnnamed1978(); o.projection = "foo"; } buildCounterResultsMask--; @@ -235,33 +235,33 @@ checkResultsMask(api.ResultsMask o) { buildCounterResultsMask++; if (buildCounterResultsMask < 3) { - checkUnnamed2205(o.fields); + checkUnnamed1978(o.fields); unittest.expect(o.projection, unittest.equals('foo')); } buildCounterResultsMask--; } -buildUnnamed2206() { +buildUnnamed1979() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2206(core.List<core.String> o) { +checkUnnamed1979(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2207() { +buildUnnamed1980() { var o = new core.List<api.SurveyQuestion>(); o.add(buildSurveyQuestion()); o.add(buildSurveyQuestion()); return o; } -checkUnnamed2207(core.List<api.SurveyQuestion> o) { +checkUnnamed1980(core.List<api.SurveyQuestion> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestion(o[0]); checkSurveyQuestion(o[1]); @@ -276,8 +276,8 @@ o.cost = buildSurveyCost(); o.customerData = "foo"; o.description = "foo"; - o.owners = buildUnnamed2206(); - o.questions = buildUnnamed2207(); + o.owners = buildUnnamed1979(); + o.questions = buildUnnamed1980(); o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; @@ -295,8 +295,8 @@ checkSurveyCost(o.cost); unittest.expect(o.customerData, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2206(o.owners); - checkUnnamed2207(o.questions); + checkUnnamed1979(o.owners); + checkUnnamed1980(o.questions); checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); @@ -306,27 +306,27 @@ buildCounterSurvey--; } -buildUnnamed2208() { +buildUnnamed1981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2208(core.List<core.String> o) { +checkUnnamed1981(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2209() { +buildUnnamed1982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2209(core.List<core.String> o) { +checkUnnamed1982(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -337,11 +337,11 @@ var o = new api.SurveyAudience(); buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - o.ages = buildUnnamed2208(); + o.ages = buildUnnamed1981(); o.country = "foo"; o.countrySubdivision = "foo"; o.gender = "foo"; - o.languages = buildUnnamed2209(); + o.languages = buildUnnamed1982(); o.mobileAppPanelId = "foo"; o.populationSource = "foo"; } @@ -352,11 +352,11 @@ checkSurveyAudience(api.SurveyAudience o) { buildCounterSurveyAudience++; if (buildCounterSurveyAudience < 3) { - checkUnnamed2208(o.ages); + checkUnnamed1981(o.ages); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.countrySubdivision, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed2209(o.languages); + checkUnnamed1982(o.languages); unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); unittest.expect(o.populationSource, unittest.equals('foo')); } @@ -388,53 +388,53 @@ buildCounterSurveyCost--; } -buildUnnamed2210() { +buildUnnamed1983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2210(core.List<core.String> o) { +checkUnnamed1983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2211() { +buildUnnamed1984() { var o = new core.List<api.SurveyQuestionImage>(); o.add(buildSurveyQuestionImage()); o.add(buildSurveyQuestionImage()); return o; } -checkUnnamed2211(core.List<api.SurveyQuestionImage> o) { +checkUnnamed1984(core.List<api.SurveyQuestionImage> o) { unittest.expect(o, unittest.hasLength(2)); checkSurveyQuestionImage(o[0]); checkSurveyQuestionImage(o[1]); } -buildUnnamed2212() { +buildUnnamed1985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2212(core.List<core.String> o) { +checkUnnamed1985(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2213() { +buildUnnamed1986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2213(core.List<core.String> o) { +checkUnnamed1986(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -446,20 +446,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { o.answerOrder = "foo"; - o.answers = buildUnnamed2210(); + o.answers = buildUnnamed1983(); o.hasOther = true; o.highValueLabel = "foo"; - o.images = buildUnnamed2211(); + o.images = buildUnnamed1984(); o.lastAnswerPositionPinned = true; o.lowValueLabel = "foo"; o.mustPickSuggestion = true; o.numStars = "foo"; o.openTextPlaceholder = "foo"; - o.openTextSuggestions = buildUnnamed2212(); + o.openTextSuggestions = buildUnnamed1985(); o.question = "foo"; o.sentimentText = "foo"; o.singleLineResponse = true; - o.thresholdAnswers = buildUnnamed2213(); + o.thresholdAnswers = buildUnnamed1986(); o.type = "foo"; o.unitOfMeasurementLabel = "foo"; o.videoId = "foo"; @@ -472,20 +472,20 @@ buildCounterSurveyQuestion++; if (buildCounterSurveyQuestion < 3) { unittest.expect(o.answerOrder, unittest.equals('foo')); - checkUnnamed2210(o.answers); + checkUnnamed1983(o.answers); unittest.expect(o.hasOther, unittest.isTrue); unittest.expect(o.highValueLabel, unittest.equals('foo')); - checkUnnamed2211(o.images); + checkUnnamed1984(o.images); unittest.expect(o.lastAnswerPositionPinned, unittest.isTrue); unittest.expect(o.lowValueLabel, unittest.equals('foo')); unittest.expect(o.mustPickSuggestion, unittest.isTrue); unittest.expect(o.numStars, unittest.equals('foo')); unittest.expect(o.openTextPlaceholder, unittest.equals('foo')); - checkUnnamed2212(o.openTextSuggestions); + checkUnnamed1985(o.openTextSuggestions); unittest.expect(o.question, unittest.equals('foo')); unittest.expect(o.sentimentText, unittest.equals('foo')); unittest.expect(o.singleLineResponse, unittest.isTrue); - checkUnnamed2213(o.thresholdAnswers); + checkUnnamed1986(o.thresholdAnswers); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); @@ -577,14 +577,14 @@ buildCounterSurveysDeleteResponse--; } -buildUnnamed2214() { +buildUnnamed1987() { var o = new core.List<api.Survey>(); o.add(buildSurvey()); o.add(buildSurvey()); return o; } -checkUnnamed2214(core.List<api.Survey> o) { +checkUnnamed1987(core.List<api.Survey> o) { unittest.expect(o, unittest.hasLength(2)); checkSurvey(o[0]); checkSurvey(o[1]); @@ -597,7 +597,7 @@ if (buildCounterSurveysListResponse < 3) { o.pageInfo = buildPageInfo(); o.requestId = "foo"; - o.resources = buildUnnamed2214(); + o.resources = buildUnnamed1987(); o.tokenPagination = buildTokenPagination(); } buildCounterSurveysListResponse--; @@ -609,7 +609,7 @@ if (buildCounterSurveysListResponse < 3) { checkPageInfo(o.pageInfo); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed2214(o.resources); + checkUnnamed1987(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterSurveysListResponse--;
diff --git a/generated/googleapis/test/tagmanager/v1_test.dart b/generated/googleapis/test/tagmanager/v1_test.dart index 297f8f3..39cce27 100644 --- a/generated/googleapis/test/tagmanager/v1_test.dart +++ b/generated/googleapis/test/tagmanager/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed1837() { +buildUnnamed1590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1837(core.List<core.String> o) { +checkUnnamed1590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -94,7 +94,7 @@ var o = new api.AccountAccess(); buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - o.permission = buildUnnamed1837(); + o.permission = buildUnnamed1590(); } buildCounterAccountAccess--; return o; @@ -103,19 +103,19 @@ checkAccountAccess(api.AccountAccess o) { buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - checkUnnamed1837(o.permission); + checkUnnamed1590(o.permission); } buildCounterAccountAccess--; } -buildUnnamed1838() { +buildUnnamed1591() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1838(core.List<api.Parameter> o) { +checkUnnamed1591(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -126,7 +126,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed1838(); + o.parameter = buildUnnamed1591(); o.type = "foo"; } buildCounterCondition--; @@ -136,46 +136,46 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed1838(o.parameter); + checkUnnamed1591(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed1839() { +buildUnnamed1592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1839(core.List<core.String> o) { +checkUnnamed1592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1840() { +buildUnnamed1593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1840(core.List<core.String> o) { +checkUnnamed1593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1841() { +buildUnnamed1594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1841(core.List<core.String> o) { +checkUnnamed1594(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -188,15 +188,15 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed1839(); - o.enabledBuiltInVariable = buildUnnamed1840(); + o.domainName = buildUnnamed1592(); + o.enabledBuiltInVariable = buildUnnamed1593(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.publicId = "foo"; o.timeZoneCountryId = "foo"; o.timeZoneId = "foo"; - o.usageContext = buildUnnamed1841(); + o.usageContext = buildUnnamed1594(); } buildCounterContainer--; return o; @@ -207,27 +207,27 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1839(o.domainName); - checkUnnamed1840(o.enabledBuiltInVariable); + checkUnnamed1592(o.domainName); + checkUnnamed1593(o.enabledBuiltInVariable); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.publicId, unittest.equals('foo')); unittest.expect(o.timeZoneCountryId, unittest.equals('foo')); unittest.expect(o.timeZoneId, unittest.equals('foo')); - checkUnnamed1841(o.usageContext); + checkUnnamed1594(o.usageContext); } buildCounterContainer--; } -buildUnnamed1842() { +buildUnnamed1595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1842(core.List<core.String> o) { +checkUnnamed1595(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -239,7 +239,7 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { o.containerId = "foo"; - o.permission = buildUnnamed1842(); + o.permission = buildUnnamed1595(); } buildCounterContainerAccess--; return o; @@ -249,84 +249,84 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1842(o.permission); + checkUnnamed1595(o.permission); } buildCounterContainerAccess--; } -buildUnnamed1843() { +buildUnnamed1596() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1843(core.List<api.Folder> o) { +checkUnnamed1596(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed1844() { +buildUnnamed1597() { var o = new core.List<api.Macro>(); o.add(buildMacro()); o.add(buildMacro()); return o; } -checkUnnamed1844(core.List<api.Macro> o) { +checkUnnamed1597(core.List<api.Macro> o) { unittest.expect(o, unittest.hasLength(2)); checkMacro(o[0]); checkMacro(o[1]); } -buildUnnamed1845() { +buildUnnamed1598() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1845(core.List<api.Rule> o) { +checkUnnamed1598(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); } -buildUnnamed1846() { +buildUnnamed1599() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1846(core.List<api.Tag> o) { +checkUnnamed1599(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1847() { +buildUnnamed1600() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1847(core.List<api.Trigger> o) { +checkUnnamed1600(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1848() { +buildUnnamed1601() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1848(core.List<api.Variable> o) { +checkUnnamed1601(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -343,14 +343,14 @@ o.containerVersionId = "foo"; o.deleted = true; o.fingerprint = "foo"; - o.folder = buildUnnamed1843(); - o.macro = buildUnnamed1844(); + o.folder = buildUnnamed1596(); + o.macro = buildUnnamed1597(); o.name = "foo"; o.notes = "foo"; - o.rule = buildUnnamed1845(); - o.tag = buildUnnamed1846(); - o.trigger = buildUnnamed1847(); - o.variable = buildUnnamed1848(); + o.rule = buildUnnamed1598(); + o.tag = buildUnnamed1599(); + o.trigger = buildUnnamed1600(); + o.variable = buildUnnamed1601(); } buildCounterContainerVersion--; return o; @@ -365,14 +365,14 @@ unittest.expect(o.containerVersionId, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1843(o.folder); - checkUnnamed1844(o.macro); + checkUnnamed1596(o.folder); + checkUnnamed1597(o.macro); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1845(o.rule); - checkUnnamed1846(o.tag); - checkUnnamed1847(o.trigger); - checkUnnamed1848(o.variable); + checkUnnamed1598(o.rule); + checkUnnamed1599(o.tag); + checkUnnamed1600(o.trigger); + checkUnnamed1601(o.variable); } buildCounterContainerVersion--; } @@ -526,40 +526,40 @@ buildCounterFolder--; } -buildUnnamed1849() { +buildUnnamed1602() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1849(core.List<api.Tag> o) { +checkUnnamed1602(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1850() { +buildUnnamed1603() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1850(core.List<api.Trigger> o) { +checkUnnamed1603(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1851() { +buildUnnamed1604() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1851(core.List<api.Variable> o) { +checkUnnamed1604(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -570,9 +570,9 @@ var o = new api.FolderEntities(); buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - o.tag = buildUnnamed1849(); - o.trigger = buildUnnamed1850(); - o.variable = buildUnnamed1851(); + o.tag = buildUnnamed1602(); + o.trigger = buildUnnamed1603(); + o.variable = buildUnnamed1604(); } buildCounterFolderEntities--; return o; @@ -581,21 +581,21 @@ checkFolderEntities(api.FolderEntities o) { buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - checkUnnamed1849(o.tag); - checkUnnamed1850(o.trigger); - checkUnnamed1851(o.variable); + checkUnnamed1602(o.tag); + checkUnnamed1603(o.trigger); + checkUnnamed1604(o.variable); } buildCounterFolderEntities--; } -buildUnnamed1852() { +buildUnnamed1605() { var o = new core.List<api.UserAccess>(); o.add(buildUserAccess()); o.add(buildUserAccess()); return o; } -checkUnnamed1852(core.List<api.UserAccess> o) { +checkUnnamed1605(core.List<api.UserAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAccess(o[0]); checkUserAccess(o[1]); @@ -606,7 +606,7 @@ var o = new api.ListAccountUsersResponse(); buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - o.userAccess = buildUnnamed1852(); + o.userAccess = buildUnnamed1605(); } buildCounterListAccountUsersResponse--; return o; @@ -615,19 +615,19 @@ checkListAccountUsersResponse(api.ListAccountUsersResponse o) { buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - checkUnnamed1852(o.userAccess); + checkUnnamed1605(o.userAccess); } buildCounterListAccountUsersResponse--; } -buildUnnamed1853() { +buildUnnamed1606() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1853(core.List<api.Account> o) { +checkUnnamed1606(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -638,7 +638,7 @@ var o = new api.ListAccountsResponse(); buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - o.accounts = buildUnnamed1853(); + o.accounts = buildUnnamed1606(); } buildCounterListAccountsResponse--; return o; @@ -647,32 +647,32 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed1853(o.accounts); + checkUnnamed1606(o.accounts); } buildCounterListAccountsResponse--; } -buildUnnamed1854() { +buildUnnamed1607() { var o = new core.List<api.ContainerVersion>(); o.add(buildContainerVersion()); o.add(buildContainerVersion()); return o; } -checkUnnamed1854(core.List<api.ContainerVersion> o) { +checkUnnamed1607(core.List<api.ContainerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersion(o[0]); checkContainerVersion(o[1]); } -buildUnnamed1855() { +buildUnnamed1608() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed1855(core.List<api.ContainerVersionHeader> o) { +checkUnnamed1608(core.List<api.ContainerVersionHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersionHeader(o[0]); checkContainerVersionHeader(o[1]); @@ -683,8 +683,8 @@ var o = new api.ListContainerVersionsResponse(); buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - o.containerVersion = buildUnnamed1854(); - o.containerVersionHeader = buildUnnamed1855(); + o.containerVersion = buildUnnamed1607(); + o.containerVersionHeader = buildUnnamed1608(); } buildCounterListContainerVersionsResponse--; return o; @@ -693,20 +693,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed1854(o.containerVersion); - checkUnnamed1855(o.containerVersionHeader); + checkUnnamed1607(o.containerVersion); + checkUnnamed1608(o.containerVersionHeader); } buildCounterListContainerVersionsResponse--; } -buildUnnamed1856() { +buildUnnamed1609() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed1856(core.List<api.Container> o) { +checkUnnamed1609(core.List<api.Container> o) { unittest.expect(o, unittest.hasLength(2)); checkContainer(o[0]); checkContainer(o[1]); @@ -717,7 +717,7 @@ var o = new api.ListContainersResponse(); buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - o.containers = buildUnnamed1856(); + o.containers = buildUnnamed1609(); } buildCounterListContainersResponse--; return o; @@ -726,19 +726,19 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed1856(o.containers); + checkUnnamed1609(o.containers); } buildCounterListContainersResponse--; } -buildUnnamed1857() { +buildUnnamed1610() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed1857(core.List<api.Environment> o) { +checkUnnamed1610(core.List<api.Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironment(o[0]); checkEnvironment(o[1]); @@ -749,7 +749,7 @@ var o = new api.ListEnvironmentsResponse(); buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - o.environments = buildUnnamed1857(); + o.environments = buildUnnamed1610(); } buildCounterListEnvironmentsResponse--; return o; @@ -758,19 +758,19 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed1857(o.environments); + checkUnnamed1610(o.environments); } buildCounterListEnvironmentsResponse--; } -buildUnnamed1858() { +buildUnnamed1611() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1858(core.List<api.Folder> o) { +checkUnnamed1611(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -781,7 +781,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folders = buildUnnamed1858(); + o.folders = buildUnnamed1611(); } buildCounterListFoldersResponse--; return o; @@ -790,19 +790,19 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed1858(o.folders); + checkUnnamed1611(o.folders); } buildCounterListFoldersResponse--; } -buildUnnamed1859() { +buildUnnamed1612() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1859(core.List<api.Tag> o) { +checkUnnamed1612(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); @@ -813,7 +813,7 @@ var o = new api.ListTagsResponse(); buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - o.tags = buildUnnamed1859(); + o.tags = buildUnnamed1612(); } buildCounterListTagsResponse--; return o; @@ -822,19 +822,19 @@ checkListTagsResponse(api.ListTagsResponse o) { buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - checkUnnamed1859(o.tags); + checkUnnamed1612(o.tags); } buildCounterListTagsResponse--; } -buildUnnamed1860() { +buildUnnamed1613() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1860(core.List<api.Trigger> o) { +checkUnnamed1613(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); @@ -845,7 +845,7 @@ var o = new api.ListTriggersResponse(); buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - o.triggers = buildUnnamed1860(); + o.triggers = buildUnnamed1613(); } buildCounterListTriggersResponse--; return o; @@ -854,19 +854,19 @@ checkListTriggersResponse(api.ListTriggersResponse o) { buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - checkUnnamed1860(o.triggers); + checkUnnamed1613(o.triggers); } buildCounterListTriggersResponse--; } -buildUnnamed1861() { +buildUnnamed1614() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1861(core.List<api.Variable> o) { +checkUnnamed1614(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -877,7 +877,7 @@ var o = new api.ListVariablesResponse(); buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - o.variables = buildUnnamed1861(); + o.variables = buildUnnamed1614(); } buildCounterListVariablesResponse--; return o; @@ -886,45 +886,45 @@ checkListVariablesResponse(api.ListVariablesResponse o) { buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - checkUnnamed1861(o.variables); + checkUnnamed1614(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed1862() { +buildUnnamed1615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1862(core.List<core.String> o) { +checkUnnamed1615(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1863() { +buildUnnamed1616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1863(core.List<core.String> o) { +checkUnnamed1616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1864() { +buildUnnamed1617() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1864(core.List<api.Parameter> o) { +checkUnnamed1617(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -937,13 +937,13 @@ if (buildCounterMacro < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingRuleId = buildUnnamed1862(); - o.enablingRuleId = buildUnnamed1863(); + o.disablingRuleId = buildUnnamed1615(); + o.enablingRuleId = buildUnnamed1616(); o.fingerprint = "foo"; o.macroId = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1864(); + o.parameter = buildUnnamed1617(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -958,13 +958,13 @@ if (buildCounterMacro < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1862(o.disablingRuleId); - checkUnnamed1863(o.enablingRuleId); + checkUnnamed1615(o.disablingRuleId); + checkUnnamed1616(o.enablingRuleId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.macroId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1864(o.parameter); + checkUnnamed1617(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -973,27 +973,27 @@ buildCounterMacro--; } -buildUnnamed1865() { +buildUnnamed1618() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1865(core.List<api.Parameter> o) { +checkUnnamed1618(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1866() { +buildUnnamed1619() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1866(core.List<api.Parameter> o) { +checkUnnamed1619(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1005,8 +1005,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { o.key = "foo"; - o.list = buildUnnamed1865(); - o.map = buildUnnamed1866(); + o.list = buildUnnamed1618(); + o.map = buildUnnamed1619(); o.type = "foo"; o.value = "foo"; } @@ -1018,8 +1018,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1865(o.list); - checkUnnamed1866(o.map); + checkUnnamed1618(o.list); + checkUnnamed1619(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1047,14 +1047,14 @@ buildCounterPublishContainerVersionResponse--; } -buildUnnamed1867() { +buildUnnamed1620() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1867(core.List<api.Condition> o) { +checkUnnamed1620(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); @@ -1066,7 +1066,7 @@ buildCounterRule++; if (buildCounterRule < 3) { o.accountId = "foo"; - o.condition = buildUnnamed1867(); + o.condition = buildUnnamed1620(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -1081,7 +1081,7 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1867(o.condition); + checkUnnamed1620(o.condition); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1112,92 +1112,92 @@ buildCounterSetupTag--; } -buildUnnamed1868() { +buildUnnamed1621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1868(core.List<core.String> o) { +checkUnnamed1621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1869() { +buildUnnamed1622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1869(core.List<core.String> o) { +checkUnnamed1622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1870() { +buildUnnamed1623() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1870(core.List<core.String> o) { +checkUnnamed1623(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1871() { +buildUnnamed1624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1871(core.List<core.String> o) { +checkUnnamed1624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1872() { +buildUnnamed1625() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1872(core.List<api.Parameter> o) { +checkUnnamed1625(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1873() { +buildUnnamed1626() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed1873(core.List<api.SetupTag> o) { +checkUnnamed1626(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed1874() { +buildUnnamed1627() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed1874(core.List<api.TeardownTag> o) { +checkUnnamed1627(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1209,24 +1209,24 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed1868(); - o.blockingTriggerId = buildUnnamed1869(); + o.blockingRuleId = buildUnnamed1621(); + o.blockingTriggerId = buildUnnamed1622(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed1870(); - o.firingTriggerId = buildUnnamed1871(); + o.firingRuleId = buildUnnamed1623(); + o.firingTriggerId = buildUnnamed1624(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1872(); + o.parameter = buildUnnamed1625(); o.parentFolderId = "foo"; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed1873(); + o.setupTag = buildUnnamed1626(); o.tagFiringOption = "foo"; o.tagId = "foo"; - o.teardownTag = buildUnnamed1874(); + o.teardownTag = buildUnnamed1627(); o.type = "foo"; } buildCounterTag--; @@ -1237,24 +1237,24 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1868(o.blockingRuleId); - checkUnnamed1869(o.blockingTriggerId); + checkUnnamed1621(o.blockingRuleId); + checkUnnamed1622(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1870(o.firingRuleId); - checkUnnamed1871(o.firingTriggerId); + checkUnnamed1623(o.firingRuleId); + checkUnnamed1624(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1872(o.parameter); + checkUnnamed1625(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed1873(o.setupTag); + checkUnnamed1626(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); - checkUnnamed1874(o.teardownTag); + checkUnnamed1627(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); } buildCounterTag--; @@ -1281,40 +1281,40 @@ buildCounterTeardownTag--; } -buildUnnamed1875() { +buildUnnamed1628() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1875(core.List<api.Condition> o) { +checkUnnamed1628(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1876() { +buildUnnamed1629() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1876(core.List<api.Condition> o) { +checkUnnamed1629(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1877() { +buildUnnamed1630() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1877(core.List<api.Condition> o) { +checkUnnamed1630(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); @@ -1326,13 +1326,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed1875(); + o.autoEventFilter = buildUnnamed1628(); o.checkValidation = buildParameter(); o.containerId = "foo"; - o.customEventFilter = buildUnnamed1876(); + o.customEventFilter = buildUnnamed1629(); o.enableAllVideos = buildParameter(); o.eventName = buildParameter(); - o.filter = buildUnnamed1877(); + o.filter = buildUnnamed1630(); o.fingerprint = "foo"; o.interval = buildParameter(); o.limit = buildParameter(); @@ -1353,13 +1353,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1875(o.autoEventFilter); + checkUnnamed1628(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1876(o.customEventFilter); + checkUnnamed1629(o.customEventFilter); checkParameter(o.enableAllVideos); checkParameter(o.eventName); - checkUnnamed1877(o.filter); + checkUnnamed1630(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.interval); checkParameter(o.limit); @@ -1375,14 +1375,14 @@ buildCounterTrigger--; } -buildUnnamed1878() { +buildUnnamed1631() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed1878(core.List<api.ContainerAccess> o) { +checkUnnamed1631(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1395,7 +1395,7 @@ if (buildCounterUserAccess < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed1878(); + o.containerAccess = buildUnnamed1631(); o.emailAddress = "foo"; o.permissionId = "foo"; } @@ -1408,47 +1408,47 @@ if (buildCounterUserAccess < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1878(o.containerAccess); + checkUnnamed1631(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterUserAccess--; } -buildUnnamed1879() { +buildUnnamed1632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1879(core.List<core.String> o) { +checkUnnamed1632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1880() { +buildUnnamed1633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1880(core.List<core.String> o) { +checkUnnamed1633(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1881() { +buildUnnamed1634() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1881(core.List<api.Parameter> o) { +checkUnnamed1634(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1461,12 +1461,12 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed1879(); - o.enablingTriggerId = buildUnnamed1880(); + o.disablingTriggerId = buildUnnamed1632(); + o.enablingTriggerId = buildUnnamed1633(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1881(); + o.parameter = buildUnnamed1634(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -1482,12 +1482,12 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1879(o.disablingTriggerId); - checkUnnamed1880(o.enablingTriggerId); + checkUnnamed1632(o.disablingTriggerId); + checkUnnamed1633(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1881(o.parameter); + checkUnnamed1634(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -1497,40 +1497,40 @@ buildCounterVariable--; } -buildUnnamed1882() { +buildUnnamed1635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1882(core.List<core.String> o) { +checkUnnamed1635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1883() { +buildUnnamed1636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1883(core.List<core.String> o) { +checkUnnamed1636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1884() { +buildUnnamed1637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1884(core.List<core.String> o) { +checkUnnamed1637(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3070,9 +3070,9 @@ var arg_accountId = "foo"; var arg_containerId = "foo"; var arg_folderId = "foo"; - var arg_tagId = buildUnnamed1882(); - var arg_triggerId = buildUnnamed1883(); - var arg_variableId = buildUnnamed1884(); + var arg_tagId = buildUnnamed1635(); + var arg_triggerId = buildUnnamed1636(); + var arg_variableId = buildUnnamed1637(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json); checkFolder(obj);
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index d811703..e689db1 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterTaskLinks--; } -buildUnnamed3182() { +buildUnnamed2972() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed3182(core.List<api.TaskLinks> o) { +checkUnnamed2972(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -99,7 +99,7 @@ o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed3182(); + o.links = buildUnnamed2972(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; @@ -122,7 +122,7 @@ unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3182(o.links); + checkUnnamed2972(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); @@ -163,14 +163,14 @@ buildCounterTaskList--; } -buildUnnamed3183() { +buildUnnamed2973() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed3183(core.List<api.TaskList> o) { +checkUnnamed2973(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -182,7 +182,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed3183(); + o.items = buildUnnamed2973(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -194,21 +194,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3183(o.items); + checkUnnamed2973(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed3184() { +buildUnnamed2974() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3184(core.List<api.Task> o) { +checkUnnamed2974(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -220,7 +220,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed3184(); + o.items = buildUnnamed2974(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -232,7 +232,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3184(o.items); + checkUnnamed2974(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis/test/translate/v2_test.dart b/generated/googleapis/test/translate/v2_test.dart index 6750a66..3efbde1 100644 --- a/generated/googleapis/test/translate/v2_test.dart +++ b/generated/googleapis/test/translate/v2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed897() { +buildUnnamed637() { var o = new core.List<api.DetectionsResource>(); o.add(buildDetectionsResource()); o.add(buildDetectionsResource()); return o; } -checkUnnamed897(core.List<api.DetectionsResource> o) { +checkUnnamed637(core.List<api.DetectionsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectionsResource(o[0]); checkDetectionsResource(o[1]); @@ -69,7 +69,7 @@ var o = new api.DetectionsListResponse(); buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - o.detections = buildUnnamed897(); + o.detections = buildUnnamed637(); } buildCounterDetectionsListResponse--; return o; @@ -78,7 +78,7 @@ checkDetectionsListResponse(api.DetectionsListResponse o) { buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - checkUnnamed897(o.detections); + checkUnnamed637(o.detections); } buildCounterDetectionsListResponse--; } @@ -119,14 +119,14 @@ checkDetectionsResourceElement(o[1]); } -buildUnnamed898() { +buildUnnamed638() { var o = new core.List<api.LanguagesResource>(); o.add(buildLanguagesResource()); o.add(buildLanguagesResource()); return o; } -checkUnnamed898(core.List<api.LanguagesResource> o) { +checkUnnamed638(core.List<api.LanguagesResource> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguagesResource(o[0]); checkLanguagesResource(o[1]); @@ -137,7 +137,7 @@ var o = new api.LanguagesListResponse(); buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - o.languages = buildUnnamed898(); + o.languages = buildUnnamed638(); } buildCounterLanguagesListResponse--; return o; @@ -146,7 +146,7 @@ checkLanguagesListResponse(api.LanguagesListResponse o) { buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - checkUnnamed898(o.languages); + checkUnnamed638(o.languages); } buildCounterLanguagesListResponse--; } @@ -172,14 +172,14 @@ buildCounterLanguagesResource--; } -buildUnnamed899() { +buildUnnamed639() { var o = new core.List<api.TranslationsResource>(); o.add(buildTranslationsResource()); o.add(buildTranslationsResource()); return o; } -checkUnnamed899(core.List<api.TranslationsResource> o) { +checkUnnamed639(core.List<api.TranslationsResource> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslationsResource(o[0]); checkTranslationsResource(o[1]); @@ -190,7 +190,7 @@ var o = new api.TranslationsListResponse(); buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - o.translations = buildUnnamed899(); + o.translations = buildUnnamed639(); } buildCounterTranslationsListResponse--; return o; @@ -199,7 +199,7 @@ checkTranslationsListResponse(api.TranslationsListResponse o) { buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - checkUnnamed899(o.translations); + checkUnnamed639(o.translations); } buildCounterTranslationsListResponse--; } @@ -225,40 +225,40 @@ buildCounterTranslationsResource--; } -buildUnnamed900() { +buildUnnamed640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed900(core.List<core.String> o) { +checkUnnamed640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed901() { +buildUnnamed641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed901(core.List<core.String> o) { +checkUnnamed641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed902() { +buildUnnamed642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed902(core.List<core.String> o) { +checkUnnamed642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -334,7 +334,7 @@ var mock = new HttpServerMock(); api.DetectionsResourceApi res = new api.TranslateApi(mock).detections; - var arg_q = buildUnnamed900(); + var arg_q = buildUnnamed640(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -436,9 +436,9 @@ var mock = new HttpServerMock(); api.TranslationsResourceApi res = new api.TranslateApi(mock).translations; - var arg_q = buildUnnamed901(); + var arg_q = buildUnnamed641(); var arg_target = "foo"; - var arg_cid = buildUnnamed902(); + var arg_cid = buildUnnamed642(); var arg_format = "foo"; var arg_source = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) {
diff --git a/generated/googleapis/test/urlshortener/v1_test.dart b/generated/googleapis/test/urlshortener/v1_test.dart index bbfddec..778e63b 100644 --- a/generated/googleapis/test/urlshortener/v1_test.dart +++ b/generated/googleapis/test/urlshortener/v1_test.dart
@@ -51,53 +51,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed923() { +buildUnnamed663() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed923(core.List<api.StringCount> o) { +checkUnnamed663(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed924() { +buildUnnamed664() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed924(core.List<api.StringCount> o) { +checkUnnamed664(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed925() { +buildUnnamed665() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed925(core.List<api.StringCount> o) { +checkUnnamed665(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed926() { +buildUnnamed666() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed926(core.List<api.StringCount> o) { +checkUnnamed666(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); @@ -108,11 +108,11 @@ var o = new api.AnalyticsSnapshot(); buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - o.browsers = buildUnnamed923(); - o.countries = buildUnnamed924(); + o.browsers = buildUnnamed663(); + o.countries = buildUnnamed664(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed925(); - o.referrers = buildUnnamed926(); + o.platforms = buildUnnamed665(); + o.referrers = buildUnnamed666(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -122,11 +122,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed923(o.browsers); - checkUnnamed924(o.countries); + checkUnnamed663(o.browsers); + checkUnnamed664(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed925(o.platforms); - checkUnnamed926(o.referrers); + checkUnnamed665(o.platforms); + checkUnnamed666(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -209,14 +209,14 @@ buildCounterUrl--; } -buildUnnamed927() { +buildUnnamed667() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed927(core.List<api.Url> o) { +checkUnnamed667(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); @@ -227,7 +227,7 @@ var o = new api.UrlHistory(); buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - o.items = buildUnnamed927(); + o.items = buildUnnamed667(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -240,7 +240,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed927(o.items); + checkUnnamed667(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo'));
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index 0f62af2..c53522b 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1395() { +buildUnnamed1148() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1395(core.List<api.Feature> o) { +checkUnnamed1148(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -69,7 +69,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed1395(); + o.features = buildUnnamed1148(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -80,73 +80,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1395(o.features); + checkUnnamed1148(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1396() { +buildUnnamed1149() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1396(core.List<api.FaceAnnotation> o) { +checkUnnamed1149(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1397() { +buildUnnamed1150() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1397(core.List<api.EntityAnnotation> o) { +checkUnnamed1150(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1398() { +buildUnnamed1151() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1398(core.List<api.EntityAnnotation> o) { +checkUnnamed1151(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1399() { +buildUnnamed1152() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1399(core.List<api.EntityAnnotation> o) { +checkUnnamed1152(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1400() { +buildUnnamed1153() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1400(core.List<api.EntityAnnotation> o) { +checkUnnamed1153(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -158,13 +158,13 @@ buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { o.error = buildStatus(); - o.faceAnnotations = buildUnnamed1396(); + o.faceAnnotations = buildUnnamed1149(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1397(); - o.landmarkAnnotations = buildUnnamed1398(); - o.logoAnnotations = buildUnnamed1399(); + o.labelAnnotations = buildUnnamed1150(); + o.landmarkAnnotations = buildUnnamed1151(); + o.logoAnnotations = buildUnnamed1152(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1400(); + o.textAnnotations = buildUnnamed1153(); } buildCounterAnnotateImageResponse--; return o; @@ -174,25 +174,25 @@ buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { checkStatus(o.error); - checkUnnamed1396(o.faceAnnotations); + checkUnnamed1149(o.faceAnnotations); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1397(o.labelAnnotations); - checkUnnamed1398(o.landmarkAnnotations); - checkUnnamed1399(o.logoAnnotations); + checkUnnamed1150(o.labelAnnotations); + checkUnnamed1151(o.landmarkAnnotations); + checkUnnamed1152(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1400(o.textAnnotations); + checkUnnamed1153(o.textAnnotations); } buildCounterAnnotateImageResponse--; } -buildUnnamed1401() { +buildUnnamed1154() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1401(core.List<api.AnnotateImageRequest> o) { +checkUnnamed1154(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -203,7 +203,7 @@ var o = new api.BatchAnnotateImagesRequest(); buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - o.requests = buildUnnamed1401(); + o.requests = buildUnnamed1154(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -212,19 +212,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1401(o.requests); + checkUnnamed1154(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1402() { +buildUnnamed1155() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1402(core.List<api.AnnotateImageResponse> o) { +checkUnnamed1155(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -235,7 +235,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed1402(); + o.responses = buildUnnamed1155(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -244,19 +244,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1402(o.responses); + checkUnnamed1155(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1403() { +buildUnnamed1156() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1403(core.List<api.Vertex> o) { +checkUnnamed1156(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -267,7 +267,7 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.vertices = buildUnnamed1403(); + o.vertices = buildUnnamed1156(); } buildCounterBoundingPoly--; return o; @@ -276,7 +276,7 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1403(o.vertices); + checkUnnamed1156(o.vertices); } buildCounterBoundingPoly--; } @@ -329,14 +329,14 @@ buildCounterColorInfo--; } -buildUnnamed1404() { +buildUnnamed1157() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1404(core.List<api.ColorInfo> o) { +checkUnnamed1157(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -347,7 +347,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed1404(); + o.colors = buildUnnamed1157(); } buildCounterDominantColorsAnnotation--; return o; @@ -356,32 +356,32 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1404(o.colors); + checkUnnamed1157(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1405() { +buildUnnamed1158() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1405(core.List<api.LocationInfo> o) { +checkUnnamed1158(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1406() { +buildUnnamed1159() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1406(core.List<api.Property> o) { +checkUnnamed1159(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -396,9 +396,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed1405(); + o.locations = buildUnnamed1158(); o.mid = "foo"; - o.properties = buildUnnamed1406(); + o.properties = buildUnnamed1159(); o.score = 42.0; o.topicality = 42.0; } @@ -413,23 +413,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1405(o.locations); + checkUnnamed1158(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1406(o.properties); + checkUnnamed1159(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1407() { +buildUnnamed1160() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1407(core.List<api.Landmark> o) { +checkUnnamed1160(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -448,7 +448,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed1407(); + o.landmarks = buildUnnamed1160(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -471,7 +471,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed1407(o.landmarks); + checkUnnamed1160(o.landmarks); unittest.expect(o.panAngle, unittest.equals(42.0)); unittest.expect(o.rollAngle, unittest.equals(42.0)); unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); @@ -524,14 +524,14 @@ buildCounterImage--; } -buildUnnamed1408() { +buildUnnamed1161() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1408(core.List<core.String> o) { +checkUnnamed1161(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -542,7 +542,7 @@ var o = new api.ImageContext(); buildCounterImageContext++; if (buildCounterImageContext < 3) { - o.languageHints = buildUnnamed1408(); + o.languageHints = buildUnnamed1161(); o.latLongRect = buildLatLongRect(); } buildCounterImageContext--; @@ -552,7 +552,7 @@ checkImageContext(api.ImageContext o) { buildCounterImageContext++; if (buildCounterImageContext < 3) { - checkUnnamed1408(o.languageHints); + checkUnnamed1161(o.languageHints); checkLatLongRect(o.latLongRect); } buildCounterImageContext--; @@ -747,30 +747,30 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1409() { +buildUnnamed1162() { var o = new core.Map<core.String, core.Object>(); o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; return o; } -checkUnnamed1409(core.Map<core.String, core.Object> o) { +checkUnnamed1162(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1410() { +buildUnnamed1163() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1409()); - o.add(buildUnnamed1409()); + o.add(buildUnnamed1162()); + o.add(buildUnnamed1162()); return o; } -checkUnnamed1410(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1163(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1409(o[0]); - checkUnnamed1409(o[1]); + checkUnnamed1162(o[0]); + checkUnnamed1162(o[1]); } core.int buildCounterStatus = 0; @@ -779,7 +779,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1410(); + o.details = buildUnnamed1163(); o.message = "foo"; } buildCounterStatus--; @@ -790,7 +790,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1410(o.details); + checkUnnamed1163(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index 17c3071..b22f595 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -51,40 +51,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1885() { +buildUnnamed1638() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1885(core.Map<core.String, core.String> o) { +checkUnnamed1638(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1886() { +buildUnnamed1639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1886(core.List<core.String> o) { +checkUnnamed1639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1887() { +buildUnnamed1640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1887(core.List<core.String> o) { +checkUnnamed1640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -97,11 +97,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1885(); + o.files = buildUnnamed1638(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1886(); - o.variants = buildUnnamed1887(); + o.subsets = buildUnnamed1639(); + o.variants = buildUnnamed1640(); o.version = "foo"; } buildCounterWebfont--; @@ -113,24 +113,24 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1885(o.files); + checkUnnamed1638(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1886(o.subsets); - checkUnnamed1887(o.variants); + checkUnnamed1639(o.subsets); + checkUnnamed1640(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1888() { +buildUnnamed1641() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1888(core.List<api.Webfont> o) { +checkUnnamed1641(core.List<api.Webfont> o) { unittest.expect(o, unittest.hasLength(2)); checkWebfont(o[0]); checkWebfont(o[1]); @@ -141,7 +141,7 @@ var o = new api.WebfontList(); buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - o.items = buildUnnamed1888(); + o.items = buildUnnamed1641(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1888(o.items); + checkUnnamed1641(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterWebfontList--;
diff --git a/generated/googleapis/test/webmasters/v3_test.dart b/generated/googleapis/test/webmasters/v3_test.dart index 0c48092..719b23e 100644 --- a/generated/googleapis/test/webmasters/v3_test.dart +++ b/generated/googleapis/test/webmasters/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed821() { +buildUnnamed561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed821(core.List<core.String> o) { +checkUnnamed561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -72,7 +72,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed821(); + o.keys = buildUnnamed561(); o.position = 42.0; } buildCounterApiDataRow--; @@ -85,7 +85,7 @@ unittest.expect(o.clicks, unittest.equals(42.0)); unittest.expect(o.ctr, unittest.equals(42.0)); unittest.expect(o.impressions, unittest.equals(42.0)); - checkUnnamed821(o.keys); + checkUnnamed561(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -114,14 +114,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed822() { +buildUnnamed562() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed822(core.List<api.ApiDimensionFilter> o) { +checkUnnamed562(core.List<api.ApiDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilter(o[0]); checkApiDimensionFilter(o[1]); @@ -132,7 +132,7 @@ var o = new api.ApiDimensionFilterGroup(); buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - o.filters = buildUnnamed822(); + o.filters = buildUnnamed562(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -142,33 +142,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed822(o.filters); + checkUnnamed562(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed823() { +buildUnnamed563() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed823(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed563(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed824() { +buildUnnamed564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed824(core.List<core.String> o) { +checkUnnamed564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -180,8 +180,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed823(); - o.dimensions = buildUnnamed824(); + o.dimensionFilterGroups = buildUnnamed563(); + o.dimensions = buildUnnamed564(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -196,8 +196,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed823(o.dimensionFilterGroups); - checkUnnamed824(o.dimensions); + checkUnnamed563(o.dimensionFilterGroups); + checkUnnamed564(o.dimensions); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.rowLimit, unittest.equals(42)); unittest.expect(o.searchType, unittest.equals('foo')); @@ -207,14 +207,14 @@ buildCounterSearchAnalyticsQueryRequest--; } -buildUnnamed825() { +buildUnnamed565() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed825(core.List<api.ApiDataRow> o) { +checkUnnamed565(core.List<api.ApiDataRow> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDataRow(o[0]); checkApiDataRow(o[1]); @@ -226,7 +226,7 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { o.responseAggregationType = "foo"; - o.rows = buildUnnamed825(); + o.rows = buildUnnamed565(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -236,19 +236,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed825(o.rows); + checkUnnamed565(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed826() { +buildUnnamed566() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed826(core.List<api.WmxSitemap> o) { +checkUnnamed566(core.List<api.WmxSitemap> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemap(o[0]); checkWmxSitemap(o[1]); @@ -259,7 +259,7 @@ var o = new api.SitemapsListResponse(); buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - o.sitemap = buildUnnamed826(); + o.sitemap = buildUnnamed566(); } buildCounterSitemapsListResponse--; return o; @@ -268,19 +268,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed826(o.sitemap); + checkUnnamed566(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed827() { +buildUnnamed567() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed827(core.List<api.WmxSite> o) { +checkUnnamed567(core.List<api.WmxSite> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSite(o[0]); checkWmxSite(o[1]); @@ -291,7 +291,7 @@ var o = new api.SitesListResponse(); buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - o.siteEntry = buildUnnamed827(); + o.siteEntry = buildUnnamed567(); } buildCounterSitesListResponse--; return o; @@ -300,7 +300,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed827(o.siteEntry); + checkUnnamed567(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed828() { +buildUnnamed568() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed828(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed568(core.List<api.UrlCrawlErrorCount> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCount(o[0]); checkUrlCrawlErrorCount(o[1]); @@ -345,7 +345,7 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { o.category = "foo"; - o.entries = buildUnnamed828(); + o.entries = buildUnnamed568(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed828(o.entries); + checkUnnamed568(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed829() { +buildUnnamed569() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed829(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed569(core.List<api.UrlCrawlErrorCountsPerType> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorCountsPerType(o[0]); checkUrlCrawlErrorCountsPerType(o[1]); @@ -380,7 +380,7 @@ var o = new api.UrlCrawlErrorsCountsQueryResponse(); buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - o.countPerTypes = buildUnnamed829(); + o.countPerTypes = buildUnnamed569(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -389,7 +389,7 @@ checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed829(o.countPerTypes); + checkUnnamed569(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -421,14 +421,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed830() { +buildUnnamed570() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed830(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed570(core.List<api.UrlCrawlErrorsSample> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlCrawlErrorsSample(o[0]); checkUrlCrawlErrorsSample(o[1]); @@ -439,7 +439,7 @@ var o = new api.UrlCrawlErrorsSamplesListResponse(); buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - o.urlCrawlErrorSample = buildUnnamed830(); + o.urlCrawlErrorSample = buildUnnamed570(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -448,32 +448,32 @@ checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed830(o.urlCrawlErrorSample); + checkUnnamed570(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed831() { +buildUnnamed571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed831(core.List<core.String> o) { +checkUnnamed571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed832() { +buildUnnamed572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed832(core.List<core.String> o) { +checkUnnamed572(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -484,8 +484,8 @@ var o = new api.UrlSampleDetails(); buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - o.containingSitemaps = buildUnnamed831(); - o.linkedFromUrls = buildUnnamed832(); + o.containingSitemaps = buildUnnamed571(); + o.linkedFromUrls = buildUnnamed572(); } buildCounterUrlSampleDetails--; return o; @@ -494,8 +494,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed831(o.containingSitemaps); - checkUnnamed832(o.linkedFromUrls); + checkUnnamed571(o.containingSitemaps); + checkUnnamed572(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -521,14 +521,14 @@ buildCounterWmxSite--; } -buildUnnamed833() { +buildUnnamed573() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed833(core.List<api.WmxSitemapContent> o) { +checkUnnamed573(core.List<api.WmxSitemapContent> o) { unittest.expect(o, unittest.hasLength(2)); checkWmxSitemapContent(o[0]); checkWmxSitemapContent(o[1]); @@ -539,7 +539,7 @@ var o = new api.WmxSitemap(); buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - o.contents = buildUnnamed833(); + o.contents = buildUnnamed573(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -556,7 +556,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed833(o.contents); + checkUnnamed573(o.contents); unittest.expect(o.errors, unittest.equals('foo')); unittest.expect(o.isPending, unittest.isTrue); unittest.expect(o.isSitemapsIndex, unittest.isTrue);
diff --git a/generated/googleapis/test/youtube/v3_test.dart b/generated/googleapis/test/youtube/v3_test.dart index 8dec852..56b4d14 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed737() { +buildUnnamed477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed737(core.List<core.String> o) { +checkUnnamed477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -70,7 +70,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed737(); + o.exception = buildUnnamed477(); } buildCounterAccessPolicy--; return o; @@ -80,7 +80,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed737(o.exception); + checkUnnamed477(o.exception); } buildCounterAccessPolicy--; } @@ -269,27 +269,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed738() { +buildUnnamed478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed738(core.List<core.String> o) { +checkUnnamed478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed739() { +buildUnnamed479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed739(core.List<core.String> o) { +checkUnnamed479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -307,8 +307,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed738(); - o.impressionUrl = buildUnnamed739(); + o.forecastingUrl = buildUnnamed478(); + o.impressionUrl = buildUnnamed479(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -325,8 +325,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed738(o.forecastingUrl); - checkUnnamed739(o.impressionUrl); + checkUnnamed478(o.forecastingUrl); + checkUnnamed479(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -420,14 +420,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed740() { +buildUnnamed480() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed740(core.List<api.Activity> o) { +checkUnnamed480(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -440,7 +440,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed740(); + o.items = buildUnnamed480(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -457,7 +457,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed740(o.items); + checkUnnamed480(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -526,14 +526,14 @@ buildCounterCaption--; } -buildUnnamed741() { +buildUnnamed481() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed741(core.List<api.Caption> o) { +checkUnnamed481(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -546,7 +546,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed741(); + o.items = buildUnnamed481(); o.kind = "foo"; o.visitorId = "foo"; } @@ -559,7 +559,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed741(o.items); + checkUnnamed481(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -636,14 +636,14 @@ buildCounterCdnSettings--; } -buildUnnamed742() { +buildUnnamed482() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed742(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed482(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -663,7 +663,7 @@ o.id = "foo"; o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed742(); + o.localizations = buildUnnamed482(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -685,7 +685,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed742(o.localizations); + checkUnnamed482(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -742,14 +742,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed743() { +buildUnnamed483() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed743(core.List<api.PropertyValue> o) { +checkUnnamed483(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -761,7 +761,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed743(); + o.hints = buildUnnamed483(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -773,7 +773,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed743(o.hints); + checkUnnamed483(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -868,14 +868,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed744() { +buildUnnamed484() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed744(core.List<api.ChannelConversionPing> o) { +checkUnnamed484(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -886,7 +886,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed744(); + o.pings = buildUnnamed484(); } buildCounterChannelConversionPings--; return o; @@ -895,19 +895,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed744(o.pings); + checkUnnamed484(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed745() { +buildUnnamed485() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed745(core.List<api.Channel> o) { +checkUnnamed485(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -920,7 +920,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed745(); + o.items = buildUnnamed485(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -937,7 +937,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed745(o.items); + checkUnnamed485(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -994,14 +994,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed746() { +buildUnnamed486() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed746(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed486(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1016,7 +1016,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed746(); + o.localizations = buildUnnamed486(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1031,34 +1031,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed746(o.localizations); + checkUnnamed486(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed747() { +buildUnnamed487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed747(core.List<core.String> o) { +checkUnnamed487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed748() { +buildUnnamed488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed748(core.List<core.String> o) { +checkUnnamed488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1069,8 +1069,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed747(); - o.playlists = buildUnnamed748(); + o.channels = buildUnnamed487(); + o.playlists = buildUnnamed488(); } buildCounterChannelSectionContentDetails--; return o; @@ -1079,20 +1079,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed747(o.channels); - checkUnnamed748(o.playlists); + checkUnnamed487(o.channels); + checkUnnamed488(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed749() { +buildUnnamed489() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed749(core.List<api.ChannelSection> o) { +checkUnnamed489(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1105,7 +1105,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed749(); + o.items = buildUnnamed489(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1118,7 +1118,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed749(o.items); + checkUnnamed489(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1175,40 +1175,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed750() { +buildUnnamed490() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed750(core.List<core.String> o) { +checkUnnamed490(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed751() { +buildUnnamed491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed751(core.List<core.String> o) { +checkUnnamed491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed752() { +buildUnnamed492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed752(core.List<core.String> o) { +checkUnnamed492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1219,9 +1219,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed750(); - o.languages = buildUnnamed751(); - o.regions = buildUnnamed752(); + o.countries = buildUnnamed490(); + o.languages = buildUnnamed491(); + o.regions = buildUnnamed492(); } buildCounterChannelSectionTargeting--; return o; @@ -1230,21 +1230,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed750(o.countries); - checkUnnamed751(o.languages); - checkUnnamed752(o.regions); + checkUnnamed490(o.countries); + checkUnnamed491(o.languages); + checkUnnamed492(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed753() { +buildUnnamed493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed753(core.List<core.String> o) { +checkUnnamed493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1260,7 +1260,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed753(); + o.featuredChannelsUrls = buildUnnamed493(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1282,7 +1282,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed753(o.featuredChannelsUrls); + checkUnnamed493(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1378,14 +1378,14 @@ buildCounterChannelStatus--; } -buildUnnamed754() { +buildUnnamed494() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed754(core.List<core.String> o) { +checkUnnamed494(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1396,7 +1396,7 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicIds = buildUnnamed754(); + o.topicIds = buildUnnamed494(); } buildCounterChannelTopicDetails--; return o; @@ -1405,7 +1405,7 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed754(o.topicIds); + checkUnnamed494(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1435,14 +1435,14 @@ buildCounterComment--; } -buildUnnamed755() { +buildUnnamed495() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed755(core.List<api.Comment> o) { +checkUnnamed495(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1455,7 +1455,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed755(); + o.items = buildUnnamed495(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1471,7 +1471,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed755(o.items); + checkUnnamed495(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1555,14 +1555,14 @@ buildCounterCommentThread--; } -buildUnnamed756() { +buildUnnamed496() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed756(core.List<api.CommentThread> o) { +checkUnnamed496(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1575,7 +1575,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed756(); + o.items = buildUnnamed496(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1591,7 +1591,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed756(o.items); + checkUnnamed496(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1601,14 +1601,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed757() { +buildUnnamed497() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed757(core.List<api.Comment> o) { +checkUnnamed497(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1619,7 +1619,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed757(); + o.comments = buildUnnamed497(); } buildCounterCommentThreadReplies--; return o; @@ -1628,7 +1628,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed757(o.comments); + checkUnnamed497(o.comments); } buildCounterCommentThreadReplies--; } @@ -1662,27 +1662,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed758() { +buildUnnamed498() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed758(core.List<core.String> o) { +checkUnnamed498(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed759() { +buildUnnamed499() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed759(core.List<core.String> o) { +checkUnnamed499(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1713,7 +1713,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed758(); + o.djctqRatingReasons = buildUnnamed498(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1722,7 +1722,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed759(); + o.fpbRatingReasons = buildUnnamed499(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1735,6 +1735,7 @@ o.lsfRating = "foo"; o.mccaaRating = "foo"; o.mccypRating = "foo"; + o.mcstRating = "foo"; o.mdaRating = "foo"; o.medietilsynetRating = "foo"; o.mekuRating = "foo"; @@ -1788,7 +1789,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed758(o.djctqRatingReasons); + checkUnnamed498(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1797,7 +1798,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed759(o.fpbRatingReasons); + checkUnnamed499(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1810,6 +1811,7 @@ unittest.expect(o.lsfRating, unittest.equals('foo')); unittest.expect(o.mccaaRating, unittest.equals('foo')); unittest.expect(o.mccypRating, unittest.equals('foo')); + unittest.expect(o.mcstRating, unittest.equals('foo')); unittest.expect(o.mdaRating, unittest.equals('foo')); unittest.expect(o.medietilsynetRating, unittest.equals('foo')); unittest.expect(o.mekuRating, unittest.equals('foo')); @@ -1864,14 +1866,14 @@ buildCounterFanFundingEvent--; } -buildUnnamed760() { +buildUnnamed500() { var o = new core.List<api.FanFundingEvent>(); o.add(buildFanFundingEvent()); o.add(buildFanFundingEvent()); return o; } -checkUnnamed760(core.List<api.FanFundingEvent> o) { +checkUnnamed500(core.List<api.FanFundingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkFanFundingEvent(o[0]); checkFanFundingEvent(o[1]); @@ -1884,7 +1886,7 @@ if (buildCounterFanFundingEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed760(); + o.items = buildUnnamed500(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1900,7 +1902,7 @@ if (buildCounterFanFundingEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed760(o.items); + checkUnnamed500(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1989,14 +1991,14 @@ buildCounterGuideCategory--; } -buildUnnamed761() { +buildUnnamed501() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed761(core.List<api.GuideCategory> o) { +checkUnnamed501(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2009,7 +2011,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed761(); + o.items = buildUnnamed501(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2026,7 +2028,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed761(o.items); + checkUnnamed501(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2083,14 +2085,14 @@ buildCounterI18nLanguage--; } -buildUnnamed762() { +buildUnnamed502() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed762(core.List<api.I18nLanguage> o) { +checkUnnamed502(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2103,7 +2105,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed762(); + o.items = buildUnnamed502(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2116,7 +2118,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed762(o.items); + checkUnnamed502(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2169,14 +2171,14 @@ buildCounterI18nRegion--; } -buildUnnamed763() { +buildUnnamed503() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed763(core.List<api.I18nRegion> o) { +checkUnnamed503(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2189,7 +2191,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed763(); + o.items = buildUnnamed503(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2202,7 +2204,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed763(o.items); + checkUnnamed503(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2362,14 +2364,14 @@ buildCounterInvideoPosition--; } -buildUnnamed764() { +buildUnnamed504() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed764(core.List<api.PromotedItem> o) { +checkUnnamed504(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2381,7 +2383,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed764(); + o.items = buildUnnamed504(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2393,7 +2395,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed764(o.items); + checkUnnamed504(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2516,14 +2518,14 @@ buildCounterLiveBroadcastContentDetails--; } -buildUnnamed765() { +buildUnnamed505() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed765(core.List<api.LiveBroadcast> o) { +checkUnnamed505(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2536,7 +2538,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed765(); + o.items = buildUnnamed505(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2553,7 +2555,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed765(o.items); + checkUnnamed505(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2672,14 +2674,14 @@ buildCounterLiveBroadcastTopic--; } -buildUnnamed766() { +buildUnnamed506() { var o = new core.List<api.LiveBroadcastTopic>(); o.add(buildLiveBroadcastTopic()); o.add(buildLiveBroadcastTopic()); return o; } -checkUnnamed766(core.List<api.LiveBroadcastTopic> o) { +checkUnnamed506(core.List<api.LiveBroadcastTopic> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcastTopic(o[0]); checkLiveBroadcastTopic(o[1]); @@ -2690,7 +2692,7 @@ var o = new api.LiveBroadcastTopicDetails(); buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - o.topics = buildUnnamed766(); + o.topics = buildUnnamed506(); } buildCounterLiveBroadcastTopicDetails--; return o; @@ -2699,7 +2701,7 @@ checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - checkUnnamed766(o.topics); + checkUnnamed506(o.topics); } buildCounterLiveBroadcastTopicDetails--; } @@ -2879,14 +2881,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed767() { +buildUnnamed507() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed767(core.List<api.LiveChatMessage> o) { +checkUnnamed507(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2899,7 +2901,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed767(); + o.items = buildUnnamed507(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2917,7 +2919,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed767(o.items); + checkUnnamed507(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.offlineAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -3020,14 +3022,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed768() { +buildUnnamed508() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed768(core.List<api.LiveChatModerator> o) { +checkUnnamed508(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3040,7 +3042,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed768(); + o.items = buildUnnamed508(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3057,7 +3059,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed768(o.items); + checkUnnamed508(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3108,14 +3110,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed769() { +buildUnnamed509() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed769(core.List<api.LiveChatPollItem> o) { +checkUnnamed509(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3127,7 +3129,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed769(); + o.items = buildUnnamed509(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3138,7 +3140,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed769(o.items); + checkUnnamed509(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3165,14 +3167,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed770() { +buildUnnamed510() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed770(core.List<api.LiveChatPollItem> o) { +checkUnnamed510(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3184,7 +3186,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed770(); + o.items = buildUnnamed510(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3195,7 +3197,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed770(o.items); + checkUnnamed510(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3341,14 +3343,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed771() { +buildUnnamed511() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed771(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed511(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3359,7 +3361,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed771(); + o.configurationIssues = buildUnnamed511(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3370,21 +3372,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed771(o.configurationIssues); + checkUnnamed511(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed772() { +buildUnnamed512() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed772(core.List<api.LiveStream> o) { +checkUnnamed512(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3397,7 +3399,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed772(); + o.items = buildUnnamed512(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3414,7 +3416,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed772(o.items); + checkUnnamed512(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3473,14 +3475,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed773() { +buildUnnamed513() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed773(core.List<api.LocalizedString> o) { +checkUnnamed513(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3493,7 +3495,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed773(); + o.localized = buildUnnamed513(); } buildCounterLocalizedProperty--; return o; @@ -3504,7 +3506,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed773(o.localized); + checkUnnamed513(o.localized); } buildCounterLocalizedProperty--; } @@ -3574,14 +3576,14 @@ buildCounterPageInfo--; } -buildUnnamed774() { +buildUnnamed514() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed774(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed514(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3596,7 +3598,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed774(); + o.localizations = buildUnnamed514(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3612,7 +3614,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed774(o.localizations); + checkUnnamed514(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3677,6 +3679,7 @@ o.note = "foo"; o.startAt = "foo"; o.videoId = "foo"; + o.videoPublishedAt = core.DateTime.parse("2002-02-27T14:01:02"); } buildCounterPlaylistItemContentDetails--; return o; @@ -3689,18 +3692,19 @@ unittest.expect(o.note, unittest.equals('foo')); unittest.expect(o.startAt, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); + unittest.expect(o.videoPublishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } buildCounterPlaylistItemContentDetails--; } -buildUnnamed775() { +buildUnnamed515() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed775(core.List<api.PlaylistItem> o) { +checkUnnamed515(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3713,7 +3717,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed775(); + o.items = buildUnnamed515(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3730,7 +3734,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed775(o.items); + checkUnnamed515(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3795,14 +3799,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed776() { +buildUnnamed516() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed776(core.List<api.Playlist> o) { +checkUnnamed516(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3815,7 +3819,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed776(); + o.items = buildUnnamed516(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3832,7 +3836,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed776(o.items); + checkUnnamed516(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3883,14 +3887,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed777() { +buildUnnamed517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed777(core.List<core.String> o) { +checkUnnamed517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3907,7 +3911,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed777(); + o.tags = buildUnnamed517(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3924,7 +3928,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkPlaylistLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed777(o.tags); + checkUnnamed517(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4046,14 +4050,14 @@ buildCounterResourceId--; } -buildUnnamed778() { +buildUnnamed518() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed778(core.List<api.SearchResult> o) { +checkUnnamed518(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4066,7 +4070,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed778(); + o.items = buildUnnamed518(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4084,7 +4088,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed778(o.items); + checkUnnamed518(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4177,14 +4181,14 @@ buildCounterSponsor--; } -buildUnnamed779() { +buildUnnamed519() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed779(core.List<api.Sponsor> o) { +checkUnnamed519(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4197,7 +4201,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed779(); + o.items = buildUnnamed519(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4213,7 +4217,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed779(o.items); + checkUnnamed519(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4298,14 +4302,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed780() { +buildUnnamed520() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed780(core.List<api.Subscription> o) { +checkUnnamed520(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4318,7 +4322,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed780(); + o.items = buildUnnamed520(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4335,7 +4339,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed780(o.items); + checkUnnamed520(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4452,14 +4456,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed781() { +buildUnnamed521() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed781(core.List<api.ThumbnailDetails> o) { +checkUnnamed521(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4472,7 +4476,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed781(); + o.items = buildUnnamed521(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4485,7 +4489,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed781(o.items); + checkUnnamed521(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4509,14 +4513,14 @@ buildCounterTokenPagination--; } -buildUnnamed782() { +buildUnnamed522() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed782(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed522(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4534,7 +4538,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed782(); + o.localizations = buildUnnamed522(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4560,7 +4564,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed782(o.localizations); + checkUnnamed522(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4627,14 +4631,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed783() { +buildUnnamed523() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed783(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed523(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4647,7 +4651,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed783(); + o.items = buildUnnamed523(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4660,21 +4664,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed783(o.items); + checkUnnamed523(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed784() { +buildUnnamed524() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed784(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed524(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4686,7 +4690,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed784(); + o.secondaryReasons = buildUnnamed524(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4696,7 +4700,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed784(o.secondaryReasons); + checkUnnamed524(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4770,14 +4774,14 @@ buildCounterVideoCategory--; } -buildUnnamed785() { +buildUnnamed525() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed785(core.List<api.VideoCategory> o) { +checkUnnamed525(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4790,7 +4794,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed785(); + o.items = buildUnnamed525(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4807,7 +4811,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed785(o.items); + checkUnnamed525(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4878,27 +4882,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed786() { +buildUnnamed526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed786(core.List<core.String> o) { +checkUnnamed526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed787() { +buildUnnamed527() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed787(core.List<core.String> o) { +checkUnnamed527(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4909,8 +4913,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed786(); - o.blocked = buildUnnamed787(); + o.allowed = buildUnnamed526(); + o.blocked = buildUnnamed527(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -4919,33 +4923,33 @@ checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed786(o.allowed); - checkUnnamed787(o.blocked); + checkUnnamed526(o.allowed); + checkUnnamed527(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed788() { +buildUnnamed528() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed788(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed528(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed789() { +buildUnnamed529() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed789(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed529(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -4956,7 +4960,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed788(); + o.audioStreams = buildUnnamed528(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -4964,7 +4968,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.videoStreams = buildUnnamed789(); + o.videoStreams = buildUnnamed529(); } buildCounterVideoFileDetails--; return o; @@ -4973,7 +4977,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed788(o.audioStreams); + checkUnnamed528(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -4981,7 +4985,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkUnnamed789(o.videoStreams); + checkUnnamed529(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5044,14 +5048,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed790() { +buildUnnamed530() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed790(core.List<api.VideoRating> o) { +checkUnnamed530(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5064,7 +5068,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed790(); + o.items = buildUnnamed530(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5077,21 +5081,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed790(o.items); + checkUnnamed530(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed791() { +buildUnnamed531() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed791(core.List<api.Video> o) { +checkUnnamed531(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5104,7 +5108,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed791(); + o.items = buildUnnamed531(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5121,7 +5125,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed791(o.items); + checkUnnamed531(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5280,14 +5284,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed792() { +buildUnnamed532() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed792(core.List<core.String> o) { +checkUnnamed532(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5298,7 +5302,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed792(); + o.tags = buildUnnamed532(); } buildCounterVideoProjectDetails--; return o; @@ -5307,7 +5311,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed792(o.tags); + checkUnnamed532(o.tags); } buildCounterVideoProjectDetails--; } @@ -5356,14 +5360,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed793() { +buildUnnamed533() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed793(core.List<core.String> o) { +checkUnnamed533(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5383,7 +5387,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed793(); + o.tags = buildUnnamed533(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5403,7 +5407,7 @@ unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); checkVideoLocalization(o.localized); unittest.expect(o.publishedAt, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed793(o.tags); + checkUnnamed533(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5470,66 +5474,66 @@ buildCounterVideoStatus--; } -buildUnnamed794() { +buildUnnamed534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed794(core.List<core.String> o) { +checkUnnamed534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed795() { +buildUnnamed535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed795(core.List<core.String> o) { +checkUnnamed535(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed796() { +buildUnnamed536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed796(core.List<core.String> o) { +checkUnnamed536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed797() { +buildUnnamed537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed797(core.List<core.String> o) { +checkUnnamed537(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed798() { +buildUnnamed538() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed798(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed538(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5540,11 +5544,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed794(); - o.processingErrors = buildUnnamed795(); - o.processingHints = buildUnnamed796(); - o.processingWarnings = buildUnnamed797(); - o.tagSuggestions = buildUnnamed798(); + o.editorSuggestions = buildUnnamed534(); + o.processingErrors = buildUnnamed535(); + o.processingHints = buildUnnamed536(); + o.processingWarnings = buildUnnamed537(); + o.tagSuggestions = buildUnnamed538(); } buildCounterVideoSuggestions--; return o; @@ -5553,23 +5557,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed794(o.editorSuggestions); - checkUnnamed795(o.processingErrors); - checkUnnamed796(o.processingHints); - checkUnnamed797(o.processingWarnings); - checkUnnamed798(o.tagSuggestions); + checkUnnamed534(o.editorSuggestions); + checkUnnamed535(o.processingErrors); + checkUnnamed536(o.processingHints); + checkUnnamed537(o.processingWarnings); + checkUnnamed538(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed799() { +buildUnnamed539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed799(core.List<core.String> o) { +checkUnnamed539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5580,7 +5584,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed799(); + o.categoryRestricts = buildUnnamed539(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -5590,33 +5594,33 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed799(o.categoryRestricts); + checkUnnamed539(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed800() { +buildUnnamed540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed800(core.List<core.String> o) { +checkUnnamed540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed801() { +buildUnnamed541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed801(core.List<core.String> o) { +checkUnnamed541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5627,8 +5631,8 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed800(); - o.topicIds = buildUnnamed801(); + o.relevantTopicIds = buildUnnamed540(); + o.topicIds = buildUnnamed541(); } buildCounterVideoTopicDetails--; return o; @@ -5637,8 +5641,8 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed800(o.relevantTopicIds); - checkUnnamed801(o.topicIds); + checkUnnamed540(o.relevantTopicIds); + checkUnnamed541(o.topicIds); } buildCounterVideoTopicDetails--; }
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 25e8afb..6d82b87 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -51,187 +51,6 @@ return new http.StreamedResponse(stream, status, headers: headers); } -core.int buildCounterBatchReportOutputs = 0; -buildBatchReportOutputs() { - var o = new api.BatchReportOutputs(); - buildCounterBatchReportOutputs++; - if (buildCounterBatchReportOutputs < 3) { - o.downloadUrl = "foo"; - o.format = "foo"; - o.type = "foo"; - } - buildCounterBatchReportOutputs--; - return o; -} - -checkBatchReportOutputs(api.BatchReportOutputs o) { - buildCounterBatchReportOutputs++; - if (buildCounterBatchReportOutputs < 3) { - unittest.expect(o.downloadUrl, unittest.equals('foo')); - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterBatchReportOutputs--; -} - -buildUnnamed189() { - var o = new core.List<api.BatchReportOutputs>(); - o.add(buildBatchReportOutputs()); - o.add(buildBatchReportOutputs()); - return o; -} - -checkUnnamed189(core.List<api.BatchReportOutputs> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBatchReportOutputs(o[0]); - checkBatchReportOutputs(o[1]); -} - -core.int buildCounterBatchReportTimeSpan = 0; -buildBatchReportTimeSpan() { - var o = new api.BatchReportTimeSpan(); - buildCounterBatchReportTimeSpan++; - if (buildCounterBatchReportTimeSpan < 3) { - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); - } - buildCounterBatchReportTimeSpan--; - return o; -} - -checkBatchReportTimeSpan(api.BatchReportTimeSpan o) { - buildCounterBatchReportTimeSpan++; - if (buildCounterBatchReportTimeSpan < 3) { - unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - } - buildCounterBatchReportTimeSpan--; -} - -core.int buildCounterBatchReport = 0; -buildBatchReport() { - var o = new api.BatchReport(); - buildCounterBatchReport++; - if (buildCounterBatchReport < 3) { - o.id = "foo"; - o.kind = "foo"; - o.outputs = buildUnnamed189(); - o.reportId = "foo"; - o.timeSpan = buildBatchReportTimeSpan(); - o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); - } - buildCounterBatchReport--; - return o; -} - -checkBatchReport(api.BatchReport o) { - buildCounterBatchReport++; - if (buildCounterBatchReport < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed189(o.outputs); - unittest.expect(o.reportId, unittest.equals('foo')); - checkBatchReportTimeSpan(o.timeSpan); - unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - } - buildCounterBatchReport--; -} - -core.int buildCounterBatchReportDefinition = 0; -buildBatchReportDefinition() { - var o = new api.BatchReportDefinition(); - buildCounterBatchReportDefinition++; - if (buildCounterBatchReportDefinition < 3) { - o.id = "foo"; - o.kind = "foo"; - o.name = "foo"; - o.status = "foo"; - o.type = "foo"; - } - buildCounterBatchReportDefinition--; - return o; -} - -checkBatchReportDefinition(api.BatchReportDefinition o) { - buildCounterBatchReportDefinition++; - if (buildCounterBatchReportDefinition < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterBatchReportDefinition--; -} - -buildUnnamed190() { - var o = new core.List<api.BatchReportDefinition>(); - o.add(buildBatchReportDefinition()); - o.add(buildBatchReportDefinition()); - return o; -} - -checkUnnamed190(core.List<api.BatchReportDefinition> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBatchReportDefinition(o[0]); - checkBatchReportDefinition(o[1]); -} - -core.int buildCounterBatchReportDefinitionList = 0; -buildBatchReportDefinitionList() { - var o = new api.BatchReportDefinitionList(); - buildCounterBatchReportDefinitionList++; - if (buildCounterBatchReportDefinitionList < 3) { - o.items = buildUnnamed190(); - o.kind = "foo"; - } - buildCounterBatchReportDefinitionList--; - return o; -} - -checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { - buildCounterBatchReportDefinitionList++; - if (buildCounterBatchReportDefinitionList < 3) { - checkUnnamed190(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterBatchReportDefinitionList--; -} - -buildUnnamed191() { - var o = new core.List<api.BatchReport>(); - o.add(buildBatchReport()); - o.add(buildBatchReport()); - return o; -} - -checkUnnamed191(core.List<api.BatchReport> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBatchReport(o[0]); - checkBatchReport(o[1]); -} - -core.int buildCounterBatchReportList = 0; -buildBatchReportList() { - var o = new api.BatchReportList(); - buildCounterBatchReportList++; - if (buildCounterBatchReportList < 3) { - o.items = buildUnnamed191(); - o.kind = "foo"; - } - buildCounterBatchReportList--; - return o; -} - -checkBatchReportList(api.BatchReportList o) { - buildCounterBatchReportList++; - if (buildCounterBatchReportList < 3) { - checkUnnamed191(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterBatchReportList--; -} - core.int buildCounterGroupContentDetails = 0; buildGroupContentDetails() { var o = new api.GroupContentDetails(); @@ -349,14 +168,14 @@ buildCounterGroupItem--; } -buildUnnamed192() { +buildUnnamed193() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed192(core.List<api.GroupItem> o) { +checkUnnamed193(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -368,7 +187,7 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed192(); + o.items = buildUnnamed193(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -379,20 +198,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed192(o.items); + checkUnnamed193(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed193() { +buildUnnamed194() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed193(core.List<api.Group> o) { +checkUnnamed194(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -404,7 +223,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed193(); + o.items = buildUnnamed194(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -416,7 +235,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed193(o.items); + checkUnnamed194(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -446,43 +265,43 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed194() { +buildUnnamed195() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed194(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed195(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed195() { +buildUnnamed196() { var o = new core.List<core.Object>(); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); return o; } -checkUnnamed195(core.List<core.Object> o) { +checkUnnamed196(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed196() { +buildUnnamed197() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed195()); - o.add(buildUnnamed195()); + o.add(buildUnnamed196()); + o.add(buildUnnamed196()); return o; } -checkUnnamed196(core.List<core.List<core.Object>> o) { +checkUnnamed197(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed195(o[0]); - checkUnnamed195(o[1]); + checkUnnamed196(o[0]); + checkUnnamed196(o[1]); } core.int buildCounterResultTable = 0; @@ -490,9 +309,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed194(); + o.columnHeaders = buildUnnamed195(); o.kind = "foo"; - o.rows = buildUnnamed196(); + o.rows = buildUnnamed197(); } buildCounterResultTable--; return o; @@ -501,69 +320,15 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed194(o.columnHeaders); + checkUnnamed195(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed196(o.rows); + checkUnnamed197(o.rows); } buildCounterResultTable--; } main() { - unittest.group("obj-schema-BatchReportOutputs", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReportOutputs(); - var od = new api.BatchReportOutputs.fromJson(o.toJson()); - checkBatchReportOutputs(od); - }); - }); - - - unittest.group("obj-schema-BatchReportTimeSpan", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReportTimeSpan(); - var od = new api.BatchReportTimeSpan.fromJson(o.toJson()); - checkBatchReportTimeSpan(od); - }); - }); - - - unittest.group("obj-schema-BatchReport", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReport(); - var od = new api.BatchReport.fromJson(o.toJson()); - checkBatchReport(od); - }); - }); - - - unittest.group("obj-schema-BatchReportDefinition", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReportDefinition(); - var od = new api.BatchReportDefinition.fromJson(o.toJson()); - checkBatchReportDefinition(od); - }); - }); - - - unittest.group("obj-schema-BatchReportDefinitionList", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReportDefinitionList(); - var od = new api.BatchReportDefinitionList.fromJson(o.toJson()); - checkBatchReportDefinitionList(od); - }); - }); - - - unittest.group("obj-schema-BatchReportList", () { - unittest.test("to-json--from-json", () { - var o = buildBatchReportList(); - var od = new api.BatchReportList.fromJson(o.toJson()); - checkBatchReportList(od); - }); - }); - - unittest.group("obj-schema-GroupContentDetails", () { unittest.test("to-json--from-json", () { var o = buildGroupContentDetails(); @@ -645,110 +410,6 @@ }); - unittest.group("resource-BatchReportDefinitionsResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.BatchReportDefinitionsResourceApi res = new api.YoutubeAnalyticsApi(mock).batchReportDefinitions; - var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("youtube/analytics/v1/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.equals("batchReportDefinitions")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildBatchReportDefinitionList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.BatchReportDefinitionList response) { - checkBatchReportDefinitionList(response); - }))); - }); - - }); - - - unittest.group("resource-BatchReportsResourceApi", () { - unittest.test("method--list", () { - - var mock = new HttpServerMock(); - api.BatchReportsResourceApi res = new api.YoutubeAnalyticsApi(mock).batchReports; - var arg_batchReportDefinitionId = "foo"; - var arg_onBehalfOfContentOwner = "foo"; - mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("youtube/analytics/v1/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("batchReports")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = {}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - if (query.length > 0) { - for (var part in query.split("&")) { - var keyvalue = part.split("="); - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); - } - } - unittest.expect(queryMap["batchReportDefinitionId"].first, unittest.equals(arg_batchReportDefinitionId)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildBatchReportList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_batchReportDefinitionId, arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.BatchReportList response) { - checkBatchReportList(response); - }))); - }); - - }); - - unittest.group("resource-GroupItemsResourceApi", () { unittest.test("method--delete", () {
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index 85a5860..9cc1413 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterJob--; } -buildUnnamed1192() { +buildUnnamed943() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1192(core.List<api.Job> o) { +checkUnnamed943(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -115,7 +115,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1192(); + o.jobs = buildUnnamed943(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -125,20 +125,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1192(o.jobs); + checkUnnamed943(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1193() { +buildUnnamed944() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed1193(core.List<api.ReportType> o) { +checkUnnamed944(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -150,7 +150,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed1193(); + o.reportTypes = buildUnnamed944(); } buildCounterListReportTypesResponse--; return o; @@ -160,19 +160,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1193(o.reportTypes); + checkUnnamed944(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed1194() { +buildUnnamed945() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1194(core.List<api.Report> o) { +checkUnnamed945(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -184,7 +184,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed1194(); + o.reports = buildUnnamed945(); } buildCounterListReportsResponse--; return o; @@ -194,7 +194,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1194(o.reports); + checkUnnamed945(o.reports); } buildCounterListReportsResponse--; }